Hello alsa-users! I found out, how to get to know the device names. It can be done by parsing the output of alsactl store. Every device, that is capable of output, has got a negative or 0-value of dbmax. Best regards, Dennis Dennis Borgmann schrieb: > Hello alsa-users! > > I would like to extract the info, which device is for playback on a > sound device. For example, I have a headset, which gives back this info: > > :~# amixer -c 0 scontrols > Simple mixer control 'Mic',0 > Simple mixer control 'Auto Gain Control',0 > Simple mixer control 'Speaker',0 > > and for another card plugged to the very same system: > > :~# amixer -c 1 scontrols > Simple mixer control 'PCM',0 > > So there is one card having only one channel for playback (device named > "PCM" here) and then there is the headset, which has a "Speaker", an > "Auto Gain Control" and a microphone("Mic"). I want to adjust volumes of > "Speaker" and "PCM". > > To extract "PCM" of the soundcard can be done easily, since there is > only one device. But take the card with the headset - how can I > distinguish, which card if meant for playback? If I have a look at it > with humanoid intuition, it is easy. But if I want to let this be parsed > in a script - what to do? This card has got three devices. > > Any ideas? > > Best regards, > Dennis > ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user