Commit 8c698fe21016c19784df8c91586c857ddbdc0440

Authored by Takashi Iwai
1 parent 89bb3e74b1

ALSA: hda/sigmatel - Move w/a for HP Mini 110 LED to fixup table

Instead of checking the codec SSID in find_mute_led_cfg() for HP Mini
110, set the proper spec->default_polairty in the fixup table.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 5 additions and 7 deletions Side-by-side Diff

sound/pci/hda/patch_sigmatel.c
... ... @@ -2343,6 +2343,8 @@
2343 2343 "HP Mini", STAC_92HD83XXX_HP_LED),
2344 2344 SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x144E,
2345 2345 "HP Pavilion dv5", STAC_92HD83XXX_HP_INV_LED),
  2346 + SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x148a,
  2347 + "HP Mini", STAC_92HD83XXX_HP_LED),
2346 2348 SND_PCI_QUIRK_VENDOR(PCI_VENDOR_ID_HP, "HP", STAC_92HD83XXX_HP),
2347 2349 {} /* terminator */
2348 2350 };
2349 2351  
... ... @@ -6241,14 +6243,10 @@
6241 6243 /* BIOS bug: unfilled OEM string */
6242 6244 if (strstr(dev->name, "HP_Mute_LED_P_G")) {
6243 6245 set_hp_led_gpio(codec);
6244   - switch (codec->subsystem_id) {
6245   - case 0x103c148a:
6246   - spec->gpio_led_polarity = 0;
6247   - break;
6248   - default:
  6246 + if (default_polarity >= 0)
  6247 + spec->gpio_led_polarity = default_polarity;
  6248 + else
6249 6249 spec->gpio_led_polarity = 1;
6250   - break;
6251   - }
6252 6250 return 1;
6253 6251 }
6254 6252 }