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

Elimar Riesebieter riesebie at lxtec.de
Wed Jan 11 18:31:18 UTC 2017


* Leszek Godlewski <lg at inequation.org> [2016-12-23 18:46 +0000]:

> 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!

Any news?

[...]

> > 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

-- 
    .~.
    /V\   L   I   N   U   X
   /( )\ >Phear the Penguin<
   ^^-^^



More information about the Pkg-alsa-devel mailing list