mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:35:42 +01:00
Extend 'alsactl names' to show modem devices
Extend 'alsactl names' to show phoneline and modem device names. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
This commit is contained in:
parent
414b308e8c
commit
2963b6e75b
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue