Commit 8925fdb3 authored by Samuel Thibault's avatar Samuel Thibault Committed by Linus Torvalds

[PATCH] front buttons wouldn't mute ESS Maestro

Here is a small fix to enable muting ESS Maestro sound card thanks to the
up/down buttons: when has reached the driver's minimum (!  this is
something like -dB value), just mute.  (It was working in OSS driver, but
not in ALSA)
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3bf0aa6f
......@@ -1990,6 +1990,8 @@ static void es1968_update_hw_volume(unsigned long private_data)
if ((val & 0xff00) < 0x1f00)
val += 0x0100;
}
if (val == 0x1f1f)
val |= 0x8000;
snd_ac97_write_cache(chip->ac97, AC97_MASTER, val);
snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE,
&chip->master_volume->id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment