Commit 89bb3e74 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda/sigmatel - Remove PCI id check in find_mute_led_cfg()

The PCI vendor ID check in find_mute_led_cfg() is now superfluous
because the function is called in the fixup table entries of HP
machines.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 372f8c75
...@@ -6219,9 +6219,7 @@ static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity) ...@@ -6219,9 +6219,7 @@ static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity)
return 1; return 1;
} }
if ((codec->subsystem_id >> 16) == PCI_VENDOR_ID_HP) { while ((dev = dmi_find_device(DMI_DEV_TYPE_OEM_STRING, NULL, dev))) {
while ((dev = dmi_find_device(DMI_DEV_TYPE_OEM_STRING,
NULL, dev))) {
if (sscanf(dev->name, "HP_Mute_LED_%d_%x", if (sscanf(dev->name, "HP_Mute_LED_%d_%x",
&spec->gpio_led_polarity, &spec->gpio_led_polarity,
&spec->gpio_led) == 2) { &spec->gpio_led) == 2) {
...@@ -6266,7 +6264,6 @@ static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity) ...@@ -6266,7 +6264,6 @@ static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity)
spec->gpio_led_polarity = default_polarity; spec->gpio_led_polarity = default_polarity;
return 1; return 1;
} }
}
return 0; return 0;
} }
......
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