* [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
0 siblings, 1 reply; 2+ 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] 2+ messages in thread
* Re: [PATCH] ALSA: hda/realtek: Fix headset microphone on ASUS UM5606WA
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
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-12-05 16:24 UTC (permalink / raw)
To: Salih Efe Ergür; +Cc: linux-sound
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] ALSA: hda/realtek: COEF 0x45 clobbered on init/runtime resume
on UM5606WA
- [Low] ALSA: hda/realtek: inaccurate Fixes tag citing bass speaker
commit
--
commit b88eaaba6dd8749eb30f3b295c901aa2770ea479
Author: Salih Efe Ergür <mail@salihefee.com.tr>
> ALSA: hda/realtek: Fix headset microphone on ASUS UM5606WA
>
> 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>
[Severity: Low]
Should the Fixes tag be dropped? Commit a7df7f909cec ("ALSA: hda: improve
bass speaker support for ASUS Zenbook UM5606WA") only added speaker DAC
routing for 1043:1df3 and did not introduce a headset mic regression.
If stable backporting is desired, Cc: stable@vger.kernel.org can be used
instead.
> diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
> index f874eb7822954..d405780530709 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)
> {
[Severity: High]
Does calling both alc2xx_fixup_headset_mic() and
alc_fixup_headset_mode_no_hp_mic() clobber coef 0x45 on runtime PM resume?
On runtime PM resume (alc269_resume() -> alc_init()) with a headset
connected, spec->current_headset_mode already holds the active mode when
HDA_FIXUP_ACT_INIT runs. alc2xx_fixup_headset_mic() unconditionally
overwrites coef 0x45 to 0x5289 and calls alc_combo_jack_hp_jd_restart().
alc_fixup_headset_mode() only resets spec->current_headset_mode on S3/S4
resume, not on runtime PM resume or cold boot. alc_update_headset_mode()
then returns early without rewriting coef 0x45, leaving the headset broken
until the jack is replugged or the capture mux changes.
Also, because power_state.event remains PM_EVENT_ON during runtime resume,
the unsolicited event from alc_combo_jack_hp_jd_restart() is not filtered
by hda_codec_unsol_event() and can invoke alc_update_headset_mode() on
bus->unsol_work concurrently with alc_init().
Applying only the pin 0x19 pincfg override ({ 0x19, 0x03a1103c }) at
HDA_FIXUP_ACT_PRE_PROBE alongside alc_fixup_headset_mode_no_hp_mic()
avoids this conflict.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205160945.89431-1-mail@salihefee.com.tr?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-05 16:24 UTC | newest]
Thread overview: 2+ 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
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.