Commit ff8a1e27 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix polarity of mute LED on HP Mini 210

The commit a3e19973 made the LED working again on HP Mini 210 but
with a wrong polarity.  This patch fixes the polarity for this
machine, and also introduce a new model string "hp-inv-led".

Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=772923

Cc: <stable@vger.kernel.org> [v3.3+]
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e5b35420
...@@ -102,6 +102,7 @@ enum { ...@@ -102,6 +102,7 @@ enum {
STAC_HP_DV7_4000, STAC_HP_DV7_4000,
STAC_HP_ZEPHYR, STAC_HP_ZEPHYR,
STAC_92HD83XXX_HP_LED, STAC_92HD83XXX_HP_LED,
STAC_92HD83XXX_HP_INV_LED,
STAC_92HD83XXX_MODELS STAC_92HD83XXX_MODELS
}; };
...@@ -1677,6 +1678,7 @@ static const char * const stac92hd83xxx_models[STAC_92HD83XXX_MODELS] = { ...@@ -1677,6 +1678,7 @@ static const char * const stac92hd83xxx_models[STAC_92HD83XXX_MODELS] = {
[STAC_HP_DV7_4000] = "hp-dv7-4000", [STAC_HP_DV7_4000] = "hp-dv7-4000",
[STAC_HP_ZEPHYR] = "hp-zephyr", [STAC_HP_ZEPHYR] = "hp-zephyr",
[STAC_92HD83XXX_HP_LED] = "hp-led", [STAC_92HD83XXX_HP_LED] = "hp-led",
[STAC_92HD83XXX_HP_INV_LED] = "hp-inv-led",
}; };
static const struct snd_pci_quirk stac92hd83xxx_cfg_tbl[] = { static const struct snd_pci_quirk stac92hd83xxx_cfg_tbl[] = {
...@@ -5561,6 +5563,9 @@ static int patch_stac92hd83xxx(struct hda_codec *codec) ...@@ -5561,6 +5563,9 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
spec->init = stac92hd83xxx_hp_zephyr_init; spec->init = stac92hd83xxx_hp_zephyr_init;
break; break;
case STAC_92HD83XXX_HP_LED: case STAC_92HD83XXX_HP_LED:
default_polarity = 0;
break;
case STAC_92HD83XXX_HP_INV_LED:
default_polarity = 1; default_polarity = 1;
break; break;
} }
......
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