Re: problem using getenv in asound.conf

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

 



covici@xxxxxxxxxxxxxx wrote:
> I am trying to use  @func getenv to select my default sound card
> via a variable.  I am getting errors when I do this.
>
> pcm.!default {
> type hw
> card @func getenv
> [
> ALSACARD
> ]
> }

@func must be inside a compound node, which then gets replaced with
the value.  Also, the list of variable names needs the key "vars",
and there must be a default value:

pcm.!default {
    type hw
    card {
        @func getenv
        vars [ ALSA_CARD ]
        default 0
    }
}


Regards,
Clemens

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