]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] front buttons wouldn't mute ESS Maestro
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 28 Jul 2004 16:10:30 +0000 (09:10 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 28 Jul 2004 16:10:30 +0000 (09:10 -0700)
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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
sound/pci/es1968.c

index f658de44c6eaa3456293bd57068697a66eda8b04..437d13b42de9453850a2d864149ca1a95a6beafa 100644 (file)
@@ -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);