]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Another mono fix
authorJaroslav Kysela <perex@perex.cz>
Wed, 25 Jul 2001 11:49:32 +0000 (11:49 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 25 Jul 2001 11:49:32 +0000 (11:49 +0000)
amixer/amixer.c

index e0330d1443060bb43b68a3ff904ee08dcb674575..d6afd5ef213ea4a879622b3e24ca1b323098796c 100644 (file)
@@ -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");
                                }