Extend 'alsactl names' to show modem devices.
PATCH 1/1 Extend 'alsactl names' to show modem devices.
Extend 'alsactl names' to show phoneline and modem device names.
Index: alsa-utils/alsactl/names.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/alsactl/names.c,v retrieving revision 1.5
alsactl/names.c +4 -1
@@ -204,6 +204,8 @@ static int probe_pcm_card(int card, snd_"surround51:%i" ,"Front, Rear, Center and Woofer" ,"surround71:%i" ,"Front, Rear, Side, Center and Woofer" ,"spdif:%i" ,"S/PDIF (IEC958) Optical or Coaxial Wire" , +"phoneline:%i" ,"Phone Line Interface" , +"modem:%i" ,"Soft Modem" ,NULL };
@@ -239,7 +241,8 @@ static int probe_pcm_card(int card, snd_ class =snd_pcm_info_get_class (info2); }if (class !=SND_PCM_CLASS_GENERIC && - class !=SND_PCM_CLASS_MULTI )/* skip this */ + class !=SND_PCM_CLASS_MULTI && + class !=SND_PCM_CLASS_MODEM )/* skip this */ continue ;if (first) {for (idx =0 ; vnames1[idx] !=NULL ; idx +=2 )
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Takashi Iwai
AppliedAt Tue, 20 Sep 2005 01:18:52 +0300,
Quoted 5 lines · Sasha Khapyorsky
Extend 'alsactl names' to show phoneline and modem device names.
Signed-off-by Sasha Khapyorsky <[email protected]>
Applied. Thanks.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl