aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGustavo Maciel Dias Vieira <gustavo@sagui.org>2012-01-24 10:27:56 -0500
committerTakashi Iwai <tiwai@suse.de>2012-01-25 04:00:12 -0500
commita6a600d10aaddf1da38053c4c6b64f50f56176e6 (patch)
tree5261c7a8caf0c17f9e207637fa00739a4e455431 /sound
parent3b25eb690e8c7424eecffe1458c02b87b32aa001 (diff)
ALSA: hda: set mute led polarity for laptops with buggy BIOS based on SSID
HP laptop models with buggy BIOS are apparently frequent, including machines with different codecs. Set the polarity of the mute led based on the SSID and include an entry for the HP Mini 110-3100. Signed-off-by: Gustavo Maciel Dias Vieira <gustavo@sagui.org> Tested-by: Predrag Ivanovic <predivan@open.telekom.rs> Cc: <stable@kernel.org> [v3.2+] Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_sigmatel.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 336cfcd324f9..948f0be2f4f3 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -4870,7 +4870,14 @@ static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity)
4870 /* BIOS bug: unfilled OEM string */ 4870 /* BIOS bug: unfilled OEM string */
4871 if (strstr(dev->name, "HP_Mute_LED_P_G")) { 4871 if (strstr(dev->name, "HP_Mute_LED_P_G")) {
4872 set_hp_led_gpio(codec); 4872 set_hp_led_gpio(codec);
4873 spec->gpio_led_polarity = 1; 4873 switch (codec->subsystem_id) {
4874 case 0x103c148a:
4875 spec->gpio_led_polarity = 0;
4876 break;
4877 default:
4878 spec->gpio_led_polarity = 1;
4879 break;
4880 }
4874 return 1; 4881 return 1;
4875 } 4882 }
4876 } 4883 }