Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda/realtek: Fix headset microphone on ASUS UM5606WA
@ 2026-12-05 16:09 Salih Efe Ergür
  2026-12-05 16:24 ` sashiko-bot
  2026-12-05 18:41 ` [PATCH v2] " Salih Efe Ergür
  0 siblings, 2 replies; 3+ messages in thread
From: Salih Efe Ergür @ 2026-12-05 16:09 UTC (permalink / raw)
  To: tiwai; +Cc: Salih Efe Ergür, Jaroslav Kysela, linux-sound

The ASUS Zenbook S 16 UM5606WA (1043:1df3) uses an ALC294 codec, but
its existing fixup only handles speaker routing. The headset microphone
does not work with the default configuration. Retasking the microphone
pin alone exposes an input but produces only static.

Add a board-specific fixup that combines the existing headset microphone
initialization with full headset-mode handling. Chain the existing bass
speaker fixup to preserve speaker routing, and restrict the new fixup to
the UM5606WA subsystem ID.

Tested on an ASUS UM5606WA with Linux 7.4-rc5: headset recording and
automatic switching between headset and internal microphones work.

Fixes: a7df7f909cec ("ALSA: hda: improve bass speaker support for ASUS Zenbook UM5606WA")
Signed-off-by: Salih Efe Ergür <mail@salihefee.com.tr>
---
Built and boot-tested against Takashi Iwai's sound tree at
f5417a46bc07f961e5cf4be6d10c464ef4282b1f (Linux 7.4-rc5).
Headset microphone recording and automatic internal/headset microphone
switching were tested using KDE. All four CS35L56 amplifiers report
successful calibration, with no calibration-write errors found.

Headphone playback was also verified on this upstream build.
Suspend/resume (s2idle) checks passed with the headset left connected,
left disconnected, unplugged during sleep and plugged in during sleep.
Microphone capture, playback and automatic input/output switching worked
after waking without restarting audio services. Kernel logs confirm
three completed suspend/resume cycles, with no matching HDA codec or
CS35L56 amplifier errors found.

AI assistance: OpenAI Codex assisted with source review, the fixup
wrapper, rebasing, build/test tooling and preparation of this message.
The work was guided by the headset failure observed on this UM5606WA
and comparison with existing Realtek fixups. Hardware tests were
performed by the submitter.

 sound/hda/codecs/realtek/alc269.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index f874eb782295..d40578053070 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -3987,6 +3987,15 @@ static void alc2xx_fixup_headset_mic(struct hda_codec *codec,
 	}
 }
 
+/* Enable headset mode while preserving UM5606WA speaker routing. */
+static void alc294_fixup_um5606wa_headset_mode(struct hda_codec *codec,
+					       const struct hda_fixup *fix,
+					       int action)
+{
+	alc2xx_fixup_headset_mic(codec, fix, action);
+	alc_fixup_headset_mode_no_hp_mic(codec, fix, action);
+}
+
 static void alc245_fixup_hp_spectre_x360_eu0xxx(struct hda_codec *codec,
 					  const struct hda_fixup *fix, int action)
 {
@@ -4622,6 +4631,7 @@ enum {
 	ALC233_FIXUP_MEDION_MTL_SPK,
 	ALC233_FIXUP_STARLABS_STARFIGHTER,
 	ALC294_FIXUP_BASS_SPEAKER_15,
+	ALC294_FIXUP_ASUS_UM5606WA_HEADSET_MIC,
 	ALC283_FIXUP_DELL_HP_RESUME,
 	ALC294_FIXUP_ASUS_CS35L41_SPI_2,
 	ALC274_FIXUP_HP_AIO_BIND_DACS,
@@ -7393,6 +7403,12 @@ static const struct hda_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC269_FIXUP_LIMIT_INT_MIC_BOOST,
 	},
+	[ALC294_FIXUP_ASUS_UM5606WA_HEADSET_MIC] = {
+		.type = HDA_FIXUP_FUNC,
+		.v.func = alc294_fixup_um5606wa_headset_mode,
+		.chained = true,
+		.chain_id = ALC294_FIXUP_BASS_SPEAKER_15,
+	},
 	[ALC294_FIXUP_BASS_SPEAKER_15] = {
 		.type = HDA_FIXUP_FUNC,
 		.v.func = alc294_fixup_bass_speaker_15,
@@ -8369,7 +8385,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x1d42, "ASUS Zephyrus G14 2022", ALC289_FIXUP_ASUS_GA401),
 	SND_PCI_QUIRK(0x1043, 0x1d4e, "ASUS TM420", ALC256_FIXUP_ASUS_HPE),
 	SND_PCI_QUIRK(0x1043, 0x1da2, "ASUS UP6502ZA/ZD", ALC245_FIXUP_CS35L41_SPI_2),
-	SND_PCI_QUIRK(0x1043, 0x1df3, "ASUS UM5606WA", ALC294_FIXUP_BASS_SPEAKER_15),
+	SND_PCI_QUIRK(0x1043, 0x1df3, "ASUS UM5606WA", ALC294_FIXUP_ASUS_UM5606WA_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1264, "ASUS UM5606KA", ALC294_FIXUP_BASS_SPEAKER_15),
 	SND_PCI_QUIRK(0x1043, 0x1e02, "ASUS UX3402ZA", ALC245_FIXUP_CS35L41_SPI_2),
 	SND_PCI_QUIRK(0x1043, 0x1e03, "ASUS ExpertBook B3402FVA", ALC256_FIXUP_ASUS_HPE),

base-commit: f5417a46bc07f961e5cf4be6d10c464ef4282b1f
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-05 18:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 16:09 [PATCH] ALSA: hda/realtek: Fix headset microphone on ASUS UM5606WA Salih Efe Ergür
2026-12-05 16:24 ` sashiko-bot
2026-12-05 18:41 ` [PATCH v2] " Salih Efe Ergür

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox