diff options
| author | Takashi Iwai <tiwai@suse.de> | 2012-07-31 04:16:59 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2012-07-31 04:19:17 -0400 |
| commit | ff8a1e274cbc11da6b57849f925b895a212b56c9 (patch) | |
| tree | 5bde988e14a27fcabf4db6fef203263c94b89e6e | |
| parent | e5b35420ef7e6dc92a6cc5914bc9e5e5c1d48819 (diff) | |
ALSA: hda - Fix polarity of mute LED on HP Mini 210
The commit a3e199732b 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: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 217ee1f344b8..a760c30f1caa 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
| @@ -102,6 +102,7 @@ enum { | |||
| 102 | STAC_HP_DV7_4000, | 102 | STAC_HP_DV7_4000, |
| 103 | STAC_HP_ZEPHYR, | 103 | STAC_HP_ZEPHYR, |
| 104 | STAC_92HD83XXX_HP_LED, | 104 | STAC_92HD83XXX_HP_LED, |
| 105 | STAC_92HD83XXX_HP_INV_LED, | ||
| 105 | STAC_92HD83XXX_MODELS | 106 | STAC_92HD83XXX_MODELS |
| 106 | }; | 107 | }; |
| 107 | 108 | ||
| @@ -1677,6 +1678,7 @@ static const char * const stac92hd83xxx_models[STAC_92HD83XXX_MODELS] = { | |||
| 1677 | [STAC_HP_DV7_4000] = "hp-dv7-4000", | 1678 | [STAC_HP_DV7_4000] = "hp-dv7-4000", |
| 1678 | [STAC_HP_ZEPHYR] = "hp-zephyr", | 1679 | [STAC_HP_ZEPHYR] = "hp-zephyr", |
| 1679 | [STAC_92HD83XXX_HP_LED] = "hp-led", | 1680 | [STAC_92HD83XXX_HP_LED] = "hp-led", |
| 1681 | [STAC_92HD83XXX_HP_INV_LED] = "hp-inv-led", | ||
| 1680 | }; | 1682 | }; |
| 1681 | 1683 | ||
| 1682 | static const struct snd_pci_quirk stac92hd83xxx_cfg_tbl[] = { | 1684 | static const struct snd_pci_quirk stac92hd83xxx_cfg_tbl[] = { |
| @@ -5561,6 +5563,9 @@ again: | |||
| 5561 | spec->init = stac92hd83xxx_hp_zephyr_init; | 5563 | spec->init = stac92hd83xxx_hp_zephyr_init; |
| 5562 | break; | 5564 | break; |
| 5563 | case STAC_92HD83XXX_HP_LED: | 5565 | case STAC_92HD83XXX_HP_LED: |
| 5566 | default_polarity = 0; | ||
| 5567 | break; | ||
| 5568 | case STAC_92HD83XXX_HP_INV_LED: | ||
| 5564 | default_polarity = 1; | 5569 | default_polarity = 1; |
| 5565 | break; | 5570 | break; |
| 5566 | } | 5571 | } |
