Skip to content

Commit c99c26b

Browse files
Vogtinatortiwai
authored andcommitted
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>
1 parent ed81cb9 commit c99c26b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7318,6 +7318,7 @@ enum {
73187318
ALC287_FIXUP_CS35L41_I2C_2_THINKPAD_ACPI,
73197319
ALC287_FIXUP_TAS2781_I2C,
73207320
ALC245_FIXUP_HP_MUTE_LED_COEFBIT,
7321+
ALC245_FIXUP_HP_X360_MUTE_LEDS,
73217322
};
73227323

73237324
/* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -9406,6 +9407,12 @@ static const struct hda_fixup alc269_fixups[] = {
94069407
.type = HDA_FIXUP_FUNC,
94079408
.v.func = alc245_fixup_hp_mute_led_coefbit,
94089409
},
9410+
[ALC245_FIXUP_HP_X360_MUTE_LEDS] = {
9411+
.type = HDA_FIXUP_FUNC,
9412+
.v.func = alc245_fixup_hp_mute_led_coefbit,
9413+
.chained = true,
9414+
.chain_id = ALC245_FIXUP_HP_GPIO_LED
9415+
},
94099416
};
94109417

94119418
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -9648,6 +9655,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
96489655
SND_PCI_QUIRK(0x103c, 0x8870, "HP ZBook Fury 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT),
96499656
SND_PCI_QUIRK(0x103c, 0x8873, "HP ZBook Studio 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT),
96509657
SND_PCI_QUIRK(0x103c, 0x887a, "HP Laptop 15s-eq2xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
9658+
SND_PCI_QUIRK(0x103c, 0x888a, "HP ENVY x360 Convertible 15-eu0xxx", ALC245_FIXUP_HP_X360_MUTE_LEDS),
96519659
SND_PCI_QUIRK(0x103c, 0x888d, "HP ZBook Power 15.6 inch G8 Mobile Workstation PC", ALC236_FIXUP_HP_GPIO_LED),
96529660
SND_PCI_QUIRK(0x103c, 0x8895, "HP EliteBook 855 G8 Notebook PC", ALC285_FIXUP_HP_SPEAKERS_MICMUTE_LED),
96539661
SND_PCI_QUIRK(0x103c, 0x8896, "HP EliteBook 855 G8 Notebook PC", ALC285_FIXUP_HP_MUTE_LED),

0 commit comments

Comments
 (0)