public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 PATCH] front buttons wouldn't mute ESS Maestro
@ 2004-07-24 22:41 Samuel Thibault
  2004-07-28 17:32 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Thibault @ 2004-07-24 22:41 UTC (permalink / raw)
  To: MatzeBraun, tiwai, zab; +Cc: linux-kernel, torvalds

Hi,

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)

--- linux-2.6.7-orig/sound/pci/es1968.c	2004-07-25 00:06:20.000000000 +0200
+++ linux/sound/pci/es1968.c	2004-07-25 00:29:54.000000000 +0200
@@ -1990,6 +1990,8 @@
 			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);


Regards,
Samuel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-29 13:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-24 22:41 [2.6 PATCH] front buttons wouldn't mute ESS Maestro Samuel Thibault
2004-07-28 17:32 ` Takashi Iwai
2004-07-28 18:37   ` Samuel Thibault
2004-07-29 13:43     ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox