Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda/realtek: Add quirk for mute LEDs on HP ENVY x360 15-eu0xxx

The LED for the mic mute button is controlled by GPIO2.
The mute button LED is slightly more complex, it's controlled by two bits
in coeff 0x0b.

Signed-off-by: Fabian Vogt <fabian@ritter-vogt.de>
Link: https://lore.kernel.org/r/2693091.mvXUDI8C0e@fabians-envy
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Fabian Vogt and committed by
Takashi Iwai
c99c26b1 ed81cb9e

+8
+8
sound/pci/hda/patch_realtek.c
··· 7318 7318 ALC287_FIXUP_CS35L41_I2C_2_THINKPAD_ACPI, 7319 7319 ALC287_FIXUP_TAS2781_I2C, 7320 7320 ALC245_FIXUP_HP_MUTE_LED_COEFBIT, 7321 + ALC245_FIXUP_HP_X360_MUTE_LEDS, 7321 7322 }; 7322 7323 7323 7324 /* A special fixup for Lenovo C940 and Yoga Duet 7; ··· 9407 9406 .type = HDA_FIXUP_FUNC, 9408 9407 .v.func = alc245_fixup_hp_mute_led_coefbit, 9409 9408 }, 9409 + [ALC245_FIXUP_HP_X360_MUTE_LEDS] = { 9410 + .type = HDA_FIXUP_FUNC, 9411 + .v.func = alc245_fixup_hp_mute_led_coefbit, 9412 + .chained = true, 9413 + .chain_id = ALC245_FIXUP_HP_GPIO_LED 9414 + }, 9410 9415 }; 9411 9416 9412 9417 static const struct snd_pci_quirk alc269_fixup_tbl[] = { ··· 9655 9648 SND_PCI_QUIRK(0x103c, 0x8870, "HP ZBook Fury 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT), 9656 9649 SND_PCI_QUIRK(0x103c, 0x8873, "HP ZBook Studio 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT), 9657 9650 SND_PCI_QUIRK(0x103c, 0x887a, "HP Laptop 15s-eq2xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2), 9651 + SND_PCI_QUIRK(0x103c, 0x888a, "HP ENVY x360 Convertible 15-eu0xxx", ALC245_FIXUP_HP_X360_MUTE_LEDS), 9658 9652 SND_PCI_QUIRK(0x103c, 0x888d, "HP ZBook Power 15.6 inch G8 Mobile Workstation PC", ALC236_FIXUP_HP_GPIO_LED), 9659 9653 SND_PCI_QUIRK(0x103c, 0x8895, "HP EliteBook 855 G8 Notebook PC", ALC285_FIXUP_HP_SPEAKERS_MICMUTE_LED), 9660 9654 SND_PCI_QUIRK(0x103c, 0x8896, "HP EliteBook 855 G8 Notebook PC", ALC285_FIXUP_HP_MUTE_LED),