[alsa-devel] Mute LED on HP Pavilion DV7-1160eg

Takashi Iwai tiwai at suse.de
Thu May 6 10:16:01 CEST 2010


At Sat, 01 May 2010 22:19:14 +0200,
Thoralf Freitag wrote:
> 
> 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 ?

The mute LED is set up in find_mute_led_gpio().
If your BIOS doesn't give the proper information, you can add the device
statically in hp_blike_system().


Takashi


More information about the Alsa-devel mailing list