diff options
author | Gustavo Maciel Dias Vieira <gustavo@sagui.org> | 2011-12-13 08:47:22 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-13 08:50:52 -0500 |
commit | e2ef36c688d5844a986424c3194bd33212c968ce (patch) | |
tree | 4527873627f853359562798ae720c675f27e6547 /sound/pci/hda | |
parent | 1c89fe3b51a2f8068f2f9faa9c48584151416583 (diff) |
ALSA: hda: fix mute led polarity for HP laptops with buggy BIOS
Some HP laptop models do not have a properly filled OEM string used
to set the gpio and polarity of the mute led. Make the mute led
configuration work for this case.
Signed-off-by: Gustavo Maciel Dias Vieira <gustavo@sagui.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index eeb25d529e30..616678fde486 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -4929,6 +4929,12 @@ static int find_mute_led_gpio(struct hda_codec *codec, int default_polarity) | |||
4929 | set_hp_led_gpio(codec); | 4929 | set_hp_led_gpio(codec); |
4930 | return 1; | 4930 | return 1; |
4931 | } | 4931 | } |
4932 | /* BIOS bug: unfilled OEM string */ | ||
4933 | if (strstr(dev->name, "HP_Mute_LED_P_G")) { | ||
4934 | set_hp_led_gpio(codec); | ||
4935 | spec->gpio_led_polarity = 1; | ||
4936 | return 1; | ||
4937 | } | ||
4932 | } | 4938 | } |
4933 | 4939 | ||
4934 | /* | 4940 | /* |