From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thoralf Freitag Subject: Mute LED on HP Pavilion DV7-1160eg Date: Sat, 01 May 2010 22:19:14 +0200 Message-ID: <4BDC8CC2.5040507@cactus-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by alsa0.perex.cz (Postfix) with ESMTP id E2E801037F5 for ; Sat, 1 May 2010 22:19:20 +0200 (CEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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