If the codec subvendor is not set to HP, maybe the PCI SSID is set to HP. If so, there might still be a valid mute LED string in BIOS/UEFI.
Cc: <email address hidden> Buglink: https://bugs.launchpad.net/bugs/1099372 Reported-and-tested-by: Tammy Yang <email address hidden> Signed-off-by: David Henningsson <email address hidden> --- sound/pci/hda/patch_sigmatel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index a86547c..40c74a2 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -4948,7 +4948,8 @@ static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity) &spec->gpio_led_polarity); return 1; } - if ((codec->subsystem_id >> 16) == PCI_VENDOR_ID_HP) { + if ((codec->subsystem_id >> 16) == PCI_VENDOR_ID_HP || + codec->bus->pci->subsystem_vendor == PCI_VENDOR_ID_HP) { while ((dev = dmi_find_device(DMI_DEV_TYPE_OEM_STRING, NULL, dev))) { if (sscanf(dev->name, "HP_Mute_LED_%d_%x", -- 1.7.9.5
If the codec subvendor is not set to HP, maybe the PCI SSID is set
to HP. If so, there might still be a valid mute LED string in BIOS/UEFI.
Cc: <email address hidden> /bugs.launchpad .net/bugs/ 1099372 and-tested- by: Tammy Yang <email address hidden> pci/hda/ patch_sigmatel. c | 3 ++-
Buglink: https:/
Reported-
Signed-off-by: David Henningsson <email address hidden>
---
sound/
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/ pci/hda/ patch_sigmatel. c b/sound/ pci/hda/ patch_sigmatel. c pci/hda/ patch_sigmatel. c pci/hda/ patch_sigmatel. c led_cfg( struct hda_codec *codec, int default_polarity)
&spec- >gpio_led_ polarity) ; >subsystem_ id >> 16) == PCI_VENDOR_ID_HP) { >subsystem_ id >> 16) == PCI_VENDOR_ID_HP || bus->pci- >subsystem_ vendor == PCI_VENDOR_ID_HP) { device( DMI_DEV_ TYPE_OEM_ STRING, LED_%d_ %x",
index a86547c..40c74a2 100644
--- a/sound/
+++ b/sound/
@@ -4948,7 +4948,8 @@ static int find_mute_
return 1;
}
- if ((codec-
+ if ((codec-
+ codec->
while ((dev = dmi_find_
NULL, dev))) {
if (sscanf(dev->name, "HP_Mute_
--
1.7.9.5