From 867febada7d049cd88c7e1ad99b052436f0de883 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 25 Jul 2001 11:49:32 +0000 Subject: [PATCH] Another mono fix --- amixer/amixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amixer/amixer.c b/amixer/amixer.c index e0330d1..d6afd5e 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -630,11 +630,11 @@ static int show_selem(snd_mixer_t *handle, snd_mixer_selem_id_t *id, const char (cmono || !snd_mixer_selem_has_capture_channel(elem, chn))) continue; printf("%s%s: ", space, snd_mixer_selem_channel_name(chn)); - if (snd_mixer_selem_has_common_volume(elem)) { + if (!pmono && !cmono && snd_mixer_selem_has_common_volume(elem)) { snd_mixer_selem_get_playback_volume(elem, chn, &pvol); printf("%s ", get_percent(pvol, pmin, pmax)); } - if (snd_mixer_selem_has_common_switch(elem)) { + if (!pmono && !cmono && snd_mixer_selem_has_common_switch(elem)) { snd_mixer_selem_get_playback_switch(elem, chn, &psw); printf("[%s] ", psw ? "on" : "off"); } -- 2.47.1