problem using getenv in asound.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.  I am trying to use  @func getenv to select my default sound card
via a variable.  I am getting errors when I do this.

Here is my config file
pcm.!default {
type hw
card @func getenv
[  
ALSACARD
]
}

ctl.!default {
type hw
card @func getenv
[
ALSACARD
]
}

I am setting the variable ALSACARDD to DAC, but I get
ALSA lib
/var/tmp/portage/media-libs/alsa-lib-1.1.0/work/alsa-lib-1.1.0/src/pcm/pcm_hw.c:1700:(_snd_pcm_hw_open)
Invalid value for card

If I use vars before the [ I get an invalid character on the  A of
ALSACARD.

So, what am I doing wrong here?

Any suggestions would be appreciated.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@xxxxxxxxxxxxxx

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user



[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux