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

ALSA: hda/realtek: Fix headset mic on ASUS Zenbook 14 UX3405MA

The ASUS Zenbook 14 UX3405MA uses an ALC294 codec with CS35L41
amplifiers over SPI. The existing quirk for this model only configured
the amplifiers, leaving the headset microphone on the combo jack
non-functional.

Introduce a new fixup that configures pin 0x19 as headset mic input
and chains to ALC245_FIXUP_CS35L41_SPI_2 to preserve speaker
functionality.

Similar to the fix done for the UM3406HA in commit 018f659753fd
("ALSA: hda/realtek: Fix headset mic on ASUS Zenbook 14").

Signed-off-by: Erik Sanjaya <sirreidlos@gmail.com>
Link: https://patch.msgid.link/20260217102112.20651-1-sirreidlos@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Erik Sanjaya and committed by
Takashi Iwai
91062e11 7bc0df86

+11 -1
+11 -1
sound/hda/codecs/realtek/alc269.c
··· 3886 3886 ALC294_FIXUP_ASUS_MIC, 3887 3887 ALC294_FIXUP_ASUS_HEADSET_MIC, 3888 3888 ALC294_FIXUP_ASUS_I2C_HEADSET_MIC, 3889 + ALC294_FIXUP_ASUS_SPI_HEADSET_MIC, 3889 3890 ALC294_FIXUP_ASUS_SPK, 3890 3891 ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE, 3891 3892 ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE, ··· 5236 5235 }, 5237 5236 .chained = true, 5238 5237 .chain_id = ALC287_FIXUP_CS35L41_I2C_2 5238 + }, 5239 + [ALC294_FIXUP_ASUS_SPI_HEADSET_MIC] = { 5240 + .type = HDA_FIXUP_PINS, 5241 + .v.pins = (const struct hda_pintbl[]) { 5242 + { 0x19, 0x04a11020 }, /* use as headset mic */ 5243 + { } 5244 + }, 5245 + .chained = true, 5246 + .chain_id = ALC245_FIXUP_CS35L41_SPI_2 5239 5247 }, 5240 5248 [ALC294_FIXUP_ASUS_SPK] = { 5241 5249 .type = HDA_FIXUP_VERBS, ··· 7199 7189 SND_PCI_QUIRK(0x1043, 0x19ce, "ASUS B9450FA", ALC294_FIXUP_ASUS_HPE), 7200 7190 SND_PCI_QUIRK(0x1043, 0x19e1, "ASUS UX581LV", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE), 7201 7191 SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), 7202 - SND_PCI_QUIRK(0x1043, 0x1a63, "ASUS UX3405MA", ALC245_FIXUP_CS35L41_SPI_2), 7192 + SND_PCI_QUIRK(0x1043, 0x1a63, "ASUS UX3405MA", ALC294_FIXUP_ASUS_SPI_HEADSET_MIC), 7203 7193 SND_PCI_QUIRK(0x1043, 0x1a83, "ASUS UM5302LA", ALC294_FIXUP_CS35L41_I2C_2), 7204 7194 SND_PCI_QUIRK(0x1043, 0x1a8e, "ASUS G712LWS", ALC294_FIXUP_LENOVO_MIC_LOCATION), 7205 7195 SND_PCI_QUIRK(0x1043, 0x1a8f, "ASUS UX582ZS", ALC245_FIXUP_CS35L41_SPI_2),