Skip to content

Commit

Permalink
ALSA: hda: fix mute led polarity for HP laptops with buggy BIOS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo Maciel Dias Vieira authored and Takashi Iwai committed Dec 13, 2011
1 parent 1c89fe3 commit e2ef36c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -4929,6 +4929,12 @@ static int find_mute_led_gpio(struct hda_codec *codec, int default_polarity)
set_hp_led_gpio(codec);
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;
}
}

/*
Expand Down

0 comments on commit e2ef36c

Please sign in to comment.