I have a /etc/asound.conf file that has the following in it: pcm.playback { type plug slave.pcm { @func concat strings [ "dmix:CARD=" { @func getenv vars [ ALSA_CARD ] default "0" } ",DEV=" { @func getenv vars [ ALSA_DEVICE ] default 0 } ] } } I believe that we can find the index of the card ("PCH" in my case) from its name with: { @func card_inum card 'PCH' } But there does not seem to be a way to find the DEV= value. We currently scan the pcm?p/info files looking for the device name we are interested in, for example "HDMI 1". Is it safe to rely on the device index not changing over reboots and hot plugs for a card's "HDMI 1"? Or is there a better way to get the DEV= value from a string? Barry ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user