From: Abramo Bagnara Date: Wed, 21 Feb 2001 20:46:07 +0000 (+0000) Subject: Fixed mute/unmute X-Git-Tag: v1.0.3~247 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=59bbfe130f8faa86d660525a29d9464b3d15813d;p=alsa-utils.git Fixed mute/unmute --- diff --git a/amixer/amixer.c b/amixer/amixer.c index ad64dd2..241d66c 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -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)) {