All of lore.kernel.org
 help / color / mirror / Atom feed
* Mute LED on HP Pavilion DV7-1160eg
@ 2010-05-01 20:19 Thoralf Freitag
  2010-05-06  8:16 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Thoralf Freitag @ 2010-05-01 20:19 UTC (permalink / raw)
  To: alsa-devel

I tried to find a way for switching/control Mute LED on an HP DV 7
notebook. I found a solution which is very ugly. According the solution
described here
(http://mailman.alsa-project.org/pipermail/alsa-devel/2009-April/016126.html)
I changed the value for LED control in this manner:

diff -u alsa-driver-1.0.23/sound/pci/hda/patch_sigmatel.c
alsa-driver-1.0.23_b/sound/pci/hda/patch_sigmatel.c
--- alsa-driver-1.0.23/sound/pci/hda/patch_sigmatel.c    2010-04-16
13:10:10.000000000 +0200
+++ alsa-driver-1.0.23_b/sound/pci/hda/patch_sigmatel.c    2010-05-01
21:37:36.719063655 +0200
@@ -4952,9 +4952,9 @@
         }
     }
     if (muted)
-        spec->gpio_data &= ~spec->gpio_led; /* orange */
+        spec->gpio_data &= ~0x01; /* orange */
     else
-        spec->gpio_data |= spec->gpio_led; /* white */
+        spec->gpio_data |= 0x01; /* white */
 
     if (!spec->gpio_led_polarity) {
         /* LED state is inverted on these systems */

I hate this solution. Maybe someone of the programming experts could
give me a way to make it better. On which position should I make which
changes ?

Thanx for your guidance.

Thoralf

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH] ALSA: usb/mixer.c: remove unused variable
@ 2010-05-19 15:34 Daniel Mack
  2010-05-19 16:29 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Mack @ 2010-05-19 15:34 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai, Clemens Ladisch

This was a development left-over.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Clemens Ladisch <clemens@ladisch.de>
---
 sound/usb/mixer.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index fd3e08d..a35dd74 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -1970,8 +1970,6 @@ static void snd_usb_mixer_proc_read(struct snd_info_entry *entry,
 static void snd_usb_mixer_interrupt_v2(struct usb_mixer_interface *mixer,
 				       int attribute, int value, int index)
 {
-	struct usb_mixer_elem_info *info;
-
 	switch (attribute) {
 	case UAC2_CS_CUR:
 		snd_usb_mixer_notify_id(mixer, index);
-- 
1.7.1

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

end of thread, other threads:[~2010-05-30 22:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-01 20:19 Mute LED on HP Pavilion DV7-1160eg Thoralf Freitag
2010-05-06  8:16 ` Takashi Iwai
2010-05-10 20:10   ` Thoralf Freitag
2010-05-10 21:09     ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2010-05-19 15:34 [PATCH] ALSA: usb/mixer.c: remove unused variable Daniel Mack
2010-05-19 16:29 ` Takashi Iwai
2010-05-30 22:12   ` Mute LED on HP Pavilion DV7-1160eg Thoralf Freitag

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.