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

* Re: [2.6 PATCH] front buttons wouldn't mute ESS Maestro
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2004-07-28 17:32 UTC (permalink / raw)
  To: Samuel Thibault; +Cc: MatzeBraun, zab, linux-kernel, torvalds

At Sun, 25 Jul 2004 00:41:29 +0200,
Samuel Thibault wrote:
> 
> 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)

Thanks for the patch.  

ALSA doesn't unmute automatically, so I'm afraid that we'll need a
code for that, too.


Takashi

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

* Re: [2.6 PATCH] front buttons wouldn't mute ESS Maestro
  2004-07-28 17:32 ` Takashi Iwai
@ 2004-07-28 18:37   ` Samuel Thibault
  2004-07-29 13:43     ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Thibault @ 2004-07-28 18:37 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: MatzeBraun, zab, linux-kernel, torvalds

Hi,

Le mer 28 jui 2004 à 19:32:43 +0200, Takashi Iwai a tapoté sur son clavier :
> ALSA doesn't unmute automatically, so I'm afraid that we'll need a
> code for that, too.

Well, that's not necessarily a need: provided that the *mix program you
uses does unmute, there's no trouble: I tested aumix, which does fine,
and alsamixer, which indeed doesn't unmute, but has a key for this, and
it fact, in might be useful to change volume level while muted, and then
suddenly unmute.

Regards,
Samuel

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

* Re: [2.6 PATCH] front buttons wouldn't mute ESS Maestro
  2004-07-28 18:37   ` Samuel Thibault
@ 2004-07-29 13:43     ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2004-07-29 13:43 UTC (permalink / raw)
  To: Samuel Thibault; +Cc: MatzeBraun, zab, linux-kernel, torvalds

At Wed, 28 Jul 2004 20:37:14 +0200,
Samuel Thibault wrote:
> 
> Hi,
> 
> Le mer 28 jui 2004 à 19:32:43 +0200, Takashi Iwai a tapoté sur son clavier :
> > ALSA doesn't unmute automatically, so I'm afraid that we'll need a
> > code for that, too.
> 
> Well, that's not necessarily a need: provided that the *mix program you
> uses does unmute, there's no trouble: I tested aumix, which does fine,
> and alsamixer, which indeed doesn't unmute, but has a key for this, and
> it fact, in might be useful to change volume level while muted, and then
> suddenly unmute.

Then I feel it's somehow incosnsitent to mute at the lowest level but
not unmute after that.
For me it's ok to do muting/unmuting automatically per volume level.
It's just a question of user-friendliness.


Takashi

^ 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