From fb219cacb646a784fefd8101c0870814be005f9c Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Fri, 13 Oct 2006 22:25:33 +0100 Subject: Implement Playback/Capture enum. --- amixer/amixer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'amixer') diff --git a/amixer/amixer.c b/amixer/amixer.c index a6592b3..2a8db60 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -714,7 +714,11 @@ static int show_selem(snd_mixer_t *handle, snd_mixer_selem_id_t *id, const char printf(" cswitch-exclusive"); } } - if (snd_mixer_selem_is_enumerated(elem)) { + if (snd_mixer_selem_is_enum_playback(elem)) { + printf(" penum"); + } else if (snd_mixer_selem_is_enum_capture(elem)) { + printf(" cenum"); + } else if (snd_mixer_selem_is_enumerated(elem)) { printf(" enum"); } printf("\n"); -- cgit v1.2.1