From: Sasha Khapyorsky Date: Thu, 29 Sep 2005 10:50:37 +0000 (+0000) Subject: Extend 'alsactl names' to show modem devices X-Git-Tag: v1.0.10rc2~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2963b6e75b845b6d1e13df2a2fa180dba9751cc6;p=alsa-utils.git Extend 'alsactl names' to show modem devices Extend 'alsactl names' to show phoneline and modem device names. Signed-off-by: Sasha Khapyorsky --- diff --git a/alsactl/names.c b/alsactl/names.c index 7f5902d..f158b92 100644 --- a/alsactl/names.c +++ b/alsactl/names.c @@ -204,6 +204,8 @@ static int probe_pcm_card(int card, snd_ctl_t *ctl, snd_config_t *config) "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_ctl_t *ctl, snd_config_t *config) 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)