lkml.org 
[lkml]   [2004]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 PATCH] front buttons wouldn't mute ESS Maestro
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [from the cache]
©2003-2011 Jasper Spaans