mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:15:43 +01:00
Another mono fix
This commit is contained in:
parent
e97a0a1bdb
commit
867febada7
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue