ALSA: hda/conexant: Add quirk for Acer Aspire Go 16 mic mute LED
PATCH v2 1/1 ALSA: hda/conexant: Add quirk for Acer Aspire Go 16 mic mute LED
The Acer Aspire Go 16 (AG16-71P) uses a Conexant SN6180 codec (subsystem ID 0x1025:0x1937) with the microphone mute LED wired to GPIO4. Add a quirk entry so the kernel drives the LED in sync with the microphone mute state.
The fixup reuses the existing cxt_setup_mute_led() helper with mask 0x10, matching the behavior verified on the hardware.
Changes in v2:
- Moved the quirk entry to the correct position in PCI SSID sort order, as requested by Takashi Iwai.
--- sound/hda/codecs/conexant.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
sound/hda/codecs/conexant.c +13 -0
@@ -283,6 +283,7 @@ enum {CXT_FIXUP_HP_SPECTRE ,CXT_FIXUP_HP_GATE_MIC ,CXT_FIXUP_MUTE_LED_GPIO , +CXT_FIXUP_ACER_ASPIRE_GO_MUTE_LED ,CXT_FIXUP_HP_ELITEONE_OUT_DIS ,CXT_FIXUP_HP_ZBOOK_MUTE_LED , CXT_FIXUP_HEADSET_MIC,
@@ -786,6 +787,13 @@ static void cxt_fixup_hp_zbook_mute_led(struct hda_codec *codec,cxt_setup_mute_led (codec,0x10 ,0x20 ); } +static void cxt_fixup_acer_aspire_go_mute_led (struct hda_codec *codec, +const struct hda_fixup *fix,int action) +{ +if (action ==HDA_FIXUP_ACT_PRE_PROBE ) +cxt_setup_mute_led (codec,0 ,0x10 ); +} +static void cxt_fixup_hp_a_u (struct hda_codec *codec,const struct hda_fixup *fix,int action) {
@@ -985,6 +993,10 @@ static const struct hda_fixup cxt_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = cxt_fixup_mute_led_gpio, }, + [CXT_FIXUP_ACER_ASPIRE_GO_MUTE_LED] = { + .type = HDA_FIXUP_FUNC, + .v.func = cxt_fixup_acer_aspire_go_mute_led, + }, [CXT_FIXUP_HP_ELITEONE_OUT_DIS] = { .type = HDA_FIXUP_FUNC, .v.func = cxt_fixup_update_pinctl,
@@ -1083,6 +1095,7 @@ static const struct hda_quirk cxt5066_fixups[] = {SND_PCI_QUIRK (0x1025 ,0x054c ,"Acer Aspire 3830TG" ,CXT_FIXUP_ASPIRE_DMIC ),SND_PCI_QUIRK (0x1025 ,0x054f ,"Acer Aspire 4830T" ,CXT_FIXUP_ASPIRE_DMIC ),SND_PCI_QUIRK (0x1025 ,0x136d ,"Acer Swift SF314" ,CXT_FIXUP_ACER_SWIFT_HP ), +SND_PCI_QUIRK (0x1025 ,0x1937 ,"Acer Aspire Go 16" ,CXT_FIXUP_ACER_ASPIRE_GO_MUTE_LED ),SND_PCI_QUIRK (0x103c ,0x8079 ,"HP EliteBook 840 G3" ,CXT_FIXUP_HP_DOCK ),SND_PCI_QUIRK (0x103c ,0x807C ,"HP EliteBook 820 G3" ,CXT_FIXUP_HP_DOCK ), SND_PCI_QUIRK(0x103c, 0x80FD, "HP ProBook 640 G2", CXT_FIXUP_HP_DOCK),
Signature · 1 line
2.56.0
Takashi Iwai
AppliedQuoted 6 lines · Gonçalo Miranda
The Acer Aspire Go 16 (AG16-71P) uses a Conexant SN6180 codec (subsystem ID 0x1025:0x1937) with the microphone mute LED wired to GPIO4. Add a quirk entry so the kernel drives the LED in sync with the microphone mute state.
Quoted 8 lines
The fixup reuses the existing
cxt_setup_mute_led()helper with mask0x10, matching the behavior verified on the hardware.Changes in v2:
- Moved the quirk entry to the correct position in PCI SSID sort order, as requested by Takashi Iwai.Signed-off-by Gonçalo Miranda <[email protected]>
Applied to for-next branch now. Thanks.
Takashi