Commit e2ef36c6 authored by Gustavo Maciel Dias Vieira's avatar Gustavo Maciel Dias Vieira Committed by Takashi Iwai

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: default avatarGustavo Maciel Dias Vieira <gustavo@sagui.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 1c89fe3b
...@@ -4929,6 +4929,12 @@ static int find_mute_led_gpio(struct hda_codec *codec, int default_polarity) ...@@ -4929,6 +4929,12 @@ static int find_mute_led_gpio(struct hda_codec *codec, int default_polarity)
set_hp_led_gpio(codec); set_hp_led_gpio(codec);
return 1; return 1;
} }
/* BIOS bug: unfilled OEM string */
if (strstr(dev->name, "HP_Mute_LED_P_G")) {
set_hp_led_gpio(codec);
spec->gpio_led_polarity = 1;
return 1;
}
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment