[Pkg-alsa-devel] Bug#279325: Try adding a sleep

Marco d'Itri md@Linux.IT (Marco d'Itri), 279325@bugs.debian.org
Thu, 2 Dec 2004 21:16:52 +0100


--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec 01, Thomas Hood <jdthood@aglu.demon.nl> wrote:

> At this stage I am guessing that the bug is in ALSA -- that some driver
> creates the control device before it or another driver is fully prepared
> for that device to be opened.
I redirected the script to a file, and this error is logged:

/usr/sbin/alsactl: set_controls:986: snd_ctl_open error: No such device

This is the code which fails, from set_controls() in
alsa-utils-1.0.7/alsactl/alsactl.c:

        sprintf(name, "hw:%d", card);
        err =3D snd_ctl_open(&handle, name, 0);
        if (err < 0) {
                error("snd_ctl_open error: %s", snd_strerror(err));
                return err;
        }

I do not understand what snd_ctl_open() does exactly.

--=20
ciao, |
Marco | [9539 saNWT4D/z40ek]

--vkogqOf2sHV7VnPd
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBr3g0FGfw2OHuP7ERAuCJAJ44959vclKPYAqJfLurvsm7ST6qBgCdHSQk
h3Asku1419r/VvDRXXi4iSQ=
=tQUU
-----END PGP SIGNATURE-----

--vkogqOf2sHV7VnPd--