[Pkg-alsa-devel] Bug#849203: Bug#849203: libasound2: ALSA_PCM_DEVICE environment variable is ignored

Leszek Godlewski lg at inequation.org
Fri Dec 23 18:46:37 UTC 2016


Hi Elimar,

If that is the case, why does ALSA_PCM_CARD work without such preparation?
/usr/share/alsa/alsa.conf contains a similar block for the card, yet it
isn't needed in /etc/asound.conf.

I will try it anyway and let you know if it worked, thanks!

Leszek

pt., 23 gru 2016 o 19:42 użytkownik Elimar Riesebieter <riesebie at lxtec.de>
napisał:

> * Leszek Godlewski <lg at inequation.org> [2016-12-23 15:54 +0100]:
>
> > Package: libasound2
> > Version: 1.1.2-1
> > Severity: normal
> >
> > Dear Maintainer,
>
> [...]
>
> > inequation at BrixPro:~$ cat /etc/asound.conf
> > defaults.pcm.card 0
> > defaults.pcm.device 3
>
> As far as i understsnd the sources you must prepare your device to
> interpret ALSA_PCM_DEVICE. Try /etc/asound.conf as follows:
>
> defaults.pcm.card 0
> defaults.pcm.device 3
> defaults.pcm.device {
>     @func igetenv
>         vars [ ALSA_PCM_DEVICE ]
>         default 0
> }
>
> Now it should be possible to run
> $ ALSA_PCM_CARD=1 ALSA_PCM_DEVICE=0 mplayer test.mp3
>
>
> Elimar
> --
>   Learned men are the cisterns of knowledge,
>   not the fountainheads ;-)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20161223/ac1a53b0/attachment.html>


More information about the Pkg-alsa-devel mailing list