* [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* 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
2026-12-05 18:41 ` [PATCH v2] " Salih Efe Ergür
1 sibling, 0 replies; 3+ 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] 3+ messages in thread* [PATCH v2] 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
@ 2026-12-05 18:41 ` Salih Efe Ergür
1 sibling, 0 replies; 3+ messages in thread
From: Salih Efe Ergür @ 2026-12-05 18:41 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.
Configure pin 0x19 as a headset microphone and enable the existing full
headset-mode handling. Chain the existing bass speaker fixup to preserve
speaker routing, and restrict the new fixup to the UM5606WA subsystem ID.
Apply only the pin configuration before probing. Reusing
alc2xx_fixup_headset_mic() would also rewrite COEF 0x45 and restart jack
detection during initialization. Avoid those extra operations, which
can conflict with the cached state used by the full headset-mode helper
on runtime resume.
Signed-off-by: Salih Efe Ergür <mail@salihefee.com.tr>
---
Changes in v2:
- Apply the pin 0x19 configuration only during PRE_PROBE instead of
calling alc2xx_fixup_headset_mic(). Retain the full headset-mode helper
and existing bass-speaker chain. This avoids the additional INIT-time
COEF 0x45 write and jack-detection restart identified by Sashiko.
- Drop the Fixes tag: the cited bass-speaker commit did not establish
a headset-microphone regression.
v1: https://lore.kernel.org/linux-sound/20261205160945.89431-1-mail@salihefee.com.tr/
Review: https://lore.kernel.org/linux-sound/sashiko-outbox-251743@kernel.org/
Built and boot-tested on the ASUS UM5606WA against Takashi Iwai's sound
tree at f5417a46bc07f961e5cf4be6d10c464ef4282b1f (Linux 7.4-rc5).
The v2 kernel records headset speech. With power-saving disabled,
a 20-second baseline recording was continuous and had no sustained
constant-value sample intervals. The submitter also repeated headphone
playback, automatic microphone switching and system suspend/resume
(s2idle) checks on this upstream v2 build and reports that they passed.
Runtime-PM testing used power_save=2, verified actual codec suspend and
then started capture without replugging or changing input ports. Speech
recovered without replugging, but recording had a startup disturbance:
full-scale constant samples lasting about two seconds. This is not a
clean audio pass. The same test on the original upstream v1/mode2 build
also showed a startup disturbance, including about one second of
full-scale constant samples, in two recordings. The persistent failure
until replug predicted by the review was not observed. These results do
not establish the cause of the startup disturbance or equal severity
between revisions.
As a separate control, the internal microphone was tested on an
unmodified build of the same upstream 7.4-rc5 base and configuration
(apart from the local version suffix), with CHU II DSP USB playback.
Both runtime-resume recordings had about 0.19 seconds of full-scale
samples at the start and no later sustained constant-value intervals.
Baseline recordings had no sustained constant-value intervals. This
shorter internal-microphone transient does not explain the longer
headset interruption.
AI assistance: OpenAI Codex assisted with source review, the fixup
wrapper, rebasing, build/test tooling and preparation of this message.
Hardware tests and listening assessments were performed by the submitter.
sound/hda/codecs/realtek/alc269.c | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index f874eb782295..1efc67e09a2c 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -3987,6 +3987,22 @@ 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)
+{
+ static const struct hda_pintbl pincfgs[] = {
+ { 0x19, 0x03a1103c },
+ { }
+ };
+
+ if (action == HDA_FIXUP_ACT_PRE_PROBE)
+ snd_hda_apply_pincfgs(codec, pincfgs);
+
+ 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 +4638,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 +7410,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 +8392,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