Skip to contentSkip to conversation

Extend 'alsactl names' to show modem devices.

PATCH Applied Sasha Khapyorsky 2 participants 2 messages Sep 19, 2005 – Sep 29, 2005

lore
Share & tools
lore
#0 lore raw

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
diff -u -p -r1.5 names.c
@@ -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