mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:05:41 +01:00
Fixed mute/unmute
This commit is contained in:
parent
bfab88125a
commit
59bbfe130f
1 changed files with 2 additions and 2 deletions
|
@ -928,11 +928,11 @@ static int sset(unsigned int argc, char *argv[], int roflag)
|
|||
for (idx = 1; idx < argc; idx++) {
|
||||
if (!strncmp(argv[idx], "mute", 4) ||
|
||||
!strncmp(argv[idx], "off", 3)) {
|
||||
snd_mixer_selem_set_playback_switch_all(elem, 1);
|
||||
snd_mixer_selem_set_playback_switch_all(elem, 0);
|
||||
continue;
|
||||
} else if (!strncmp(argv[idx], "unmute", 6) ||
|
||||
!strncmp(argv[idx], "on", 2)) {
|
||||
snd_mixer_selem_set_playback_switch_all(elem, 0);
|
||||
snd_mixer_selem_set_playback_switch_all(elem, 1);
|
||||
continue;
|
||||
} else if (!strncmp(argv[idx], "cap", 3) ||
|
||||
!strncmp(argv[idx], "rec", 3)) {
|
||||
|
|
Loading…
Reference in a new issue