Clemens Ladisch <cladisch@xxxxxxxxxxxxxx> wrote: > 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 > } > } > Thanks so much -- I never thought of all that. I do wish the error message was better and I never found a proper explanation of the way to do this, so thanks again. -- 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