linux-cachyos icon indicating copy to clipboard operation
linux-cachyos copied to clipboard

[BUG] ASUS ROG Flow Z13 GZ302EA: ALC294 internal mic routing broken; ACP/PDM forced path unusable

Open dionisboss opened this issue 5 months ago • 8 comments

Pre-flight checklist

  • [x] I have searched existing issues and this is not a duplicate.
  • [x] I have read the Contributing Guidelines.
  • [x] I have verified the issue is reproducible with the latest available CachyOS kernel.
  • [x] I have tried to reproduce the issue on Arch Linux's linux kernel.

Upstream / vanilla kernel check

I have not tested with a vanilla/upstream kernel

Kernel variant

linux-cachyos (EEVDF, Clang)

System information (cachyos-bugreport.sh)

cachyos-bugreport.sh hangs on my system. Manual information below.

Linux ai 7.0.11-1-cachyos #1 SMP PREEMPT_DYNAMIC Fri, 05 Jun 2026 09:37:35 +0000 x86_64 GNU/Linux

ROG Flow Z13 GZ302EA_GZ302EA
GZ302EA
ASUSTeK COMPUTER INC.
1.0

Manual system information (if cachyos-bugreport.sh is unavailable)

ACP device:

c4:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] Audio Coprocessor [1022:15e2] (rev 70)
        Subsystem: ASUSTeK Computer Inc. Device [1043:1fb3]
        Kernel driver in use: snd_acp_pci
        Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63, snd_sof_amd_acp70

ALSA cards:

0 [Generic        ]: HDA-Intel - HD-Audio Generic
                     HD-Audio Generic at 0xa0448000 irq 156
1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                     HD-Audio Generic at 0xa0440000 irq 158

Capture devices:

**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC294 Analog [ALC294 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Relevant loaded modules:

snd_acp70
snd_acp_pdm
snd_acp_i2s
snd_acp_pcm
snd_sof_amd_acp70
snd_pci_ps
snd_acp_pci
snd_amd_acpi_mach
snd_acp_legacy_common
snd_soc_acpi_amd_match
snd_hda_intel
snd_hda_codec_alc269
snd_hda_codec_realtek_lib

Bug description

The internal microphone array on ASUS ROG Flow Z13 2025 GZ302EA does not appear as an ACP70/DMIC/PDM capture device.

The laptop has a built-in 3-microphone array according to ASUS specifications, but Linux only exposes the HDA/Realtek fallback path: ALC294 Analog.

The AMD ACP70 device is detected:

  • PCI ID: 1022:15e2 rev 70
  • Subsystem: 1043:1fb3
  • Kernel driver in use: snd_acp_pci

ACP/PDM-related modules are loaded, including snd_acp70 and snd_acp_pdm, but no ACP/DMIC/PDM ALSA capture card is created.

Only this capture device is available:

card 1: Generic_1 [HD-Audio Generic], device 0: ALC294 Analog [ALC294 Analog]

This looks like missing ACP70/DMIC machine driver support or a missing quirk/match for ASUS GZ302EA / 1043:1fb3.

Steps to reproduce

  1. Boot ASUS ROG Flow Z13 2025 GZ302EA on linux-cachyos 7.0.11.
  2. Run: lspci -nnk -s c4:00.5
  3. Run: cat /proc/asound/cards
  4. Run: arecord -l
  5. Observe that ACP70 is detected, but only the HDA/Realtek ALC294 Analog capture device is exposed.

Expected behavior

The internal 3-microphone array should be exposed as an ACP70/DMIC/PDM ALSA capture device, so PipeWire can use the real digital microphone array.

Actual behavior

No ACP70/DMIC/PDM capture card is created.

Only the HDA/Realtek fallback capture device is available:

card 1: Generic_1 [HD-Audio Generic], device 0: ALC294 Analog [ALC294 Analog]

Logs / stack traces


Additional system information

No response

dionisboss avatar Jun 15 '26 14:06 dionisboss

Realtek ALC294 1043:1fb3: combo jack headphone works, headset/aux mic does not. Standard model presets headset-mode/headset-mic/asus-zenbook did not expose working mic. Manual pin overrides 0x18/0x19/0x1a/0x1b tested; 0x19 creates analog-input-mic but captures only noise.

dionisboss avatar Jun 16 '26 19:06 dionisboss

Update 2026-06-19: narrowed scope

Initial suspicion was missing ACP70/PDM machine-driver support. That path was tested.

Forcing ACP/PDM via ACPI _WOV -> 1 creates acp-pdm-mach and dmic-codec, but capture is unusable: samples rail at -32768. So a simple ACP/PDM enable quirk is not sufficient.

Current actionable problem for CachyOS/community:

  • Machine: ASUS ROG Flow Z13 GZ302EA, SSID 1043:1fb3, Realtek ALC294.
  • Upstream maps 1043:1fb3 to ALC287_FIXUP_CS35L41_I2C_2, not ALC294_FIXUP_ASUS_ALLY.
  • HDA internal mic pins exist:
    • 0x12: FL has voice, FR is railed/noisy.
    • 0x13: both channels are clean, voice confirmed, but lower level.
  • ALSA Capture Source exposes 0 = Internal Mic and 1 = Internal Mic 1, but PipeWire/WirePlumber resets capture back to 0.

Help wanted:

  • determine the proper upstreamable fix: Realtek HDA quirk, ALSA UCM, WirePlumber profile/rule, or deeper ACP/SOF/offload support;
  • avoid shipping a simple ACP/PDM _WOV/machine-driver quirk unless the railed ACP capture path is also solved.

dionisboss avatar Jun 18 '26 22:06 dionisboss

does it happen on newer kernel / arch linux kernel 7.2?

simiscoool-afk avatar Sep 01 '26 19:09 simiscoool-afk

does it happen on newer kernel / arch linux kernel 7.2?

Yes the bug is still present on linux-cachyos 7.2.0-1. Current boot evidence:

  • No matching ASoC machine driver found
  • arecord -l exposes only ALC294 Analog; no ACP/PDM capture card
  • Capture Source remains Internal Mic (0x12)
  • The clean_internal_mic PipeWire workaround is still active Stock Arch 7.2.3.arch1-2 was not boot-tested, but its Realtek driver is byte-identical here and still maps 1043:1fb3 to the speaker-only ALC287_FIXUP_CS35L41_I2C_2. Therefore Arch 7.2 is expected to have the same microphone bug

dionisboss avatar Sep 05 '26 12:09 dionisboss

Found the root cause and have a working fix, validated on my GZ302EA (same unit family as this report).

Root cause

  • The mic array is wired to the ALC294, not to ACP70/DMIC. Forcing the ACP/PDM path (_WOV=1) is confirmed broken here too (samples rail at −32768) — that path is a dead end on this firmware.
  • Both internal mic pins are exposed: 0x12 (0x90a60140) and 0x13 (0x90a60130). 0x12 is defective (right channel railed, left channel noisy); 0x13 is clean on both channels at lower level.
  • The upstream quirk for 1043:1fb3 only initializes the CS35L41 I2C amps (speakers). The input mux defaults to 0x12, so out of the box the "internal mic" records the defective pin — this is the hum/noise everyone hears.
  • Userspace can't hold the mux on 0x13: PipeWire/WirePlumber route re-applies and suspend/resume reset it to the driver default.

Fix

Disable 0x12 via pincfg, chained onto the existing CS35L41 init so speakers are unaffected. 0x13 becomes the sole "Internal Mic" (mux control disappears entirely, so nothing can ever select the broken pin again).

Kernel patch (7.x layout, sound/hda/codecs/realtek/alc269.c — for 6.x the same change applies in sound/pci/hda/patch_realtek.c; checkpatch-clean): https://gist.github.com/aic0d3r/9ae2f83560c55cf3d78c1fe985cba4df

Workaround without rebuilding the kernel (tested, what I'm running)

# /lib/firmware/alc294-gz302
[codec]
0x10ec0294 0x10431fb3 0

[pincfg]
0x12 0x40000000

# /etc/modprobe.d/alc294-gz302-mic.conf
options snd-hda-intel patch=alc294-gz302,alc294-gz302

Rebuild initramfs (mkinitcpio -P), reboot. Single clean "Internal Mic", stable across boot and suspend/resume.

Two gotchas documented in the gist: runtime hda-verb overrides do not work (the bus driver caches pin configs at codec registration — boot-time application is required), and the mic gain mapping changes after the fix, so don't crank the slider.

Also worth a look: dmesg shows repeated ALC294: Invalid fixup type 2016568172 during probe with the current quirk on this SSID.

The gist also has an optional PipeWire chain (cooler-pad tone notches → gain staging → DeepFilterNet/RNNoise) for anyone who wants call-grade denoising on top.

aic0d3r avatar Oct 09 '26 20:10 aic0d3r

With the workaround, the internal microphone works. The headset mic via the combo input doesn't.

platform acp_asoc_acp70.0: warning: No matching ASoC machine driver found

patrakov avatar Oct 15 '26 12:10 patrakov

The ACP warning is a red herring. With this override, both microphones work, switched automatically at hardware level.

$ cat /lib/firmware/alc294-gz302 
[codec]
0x10ec0294 0x10431fb3 0

[pincfg]
0x12 0x40000000
0x19 0x03a19020

patrakov avatar Oct 15 '26 13:10 patrakov

Confirming on another GZ302EA (SSID 1043:1fb3), CachyOS kernel 7.2.9: the pincfg override works. I included @patrakov's 0x19 line too. The headset jack is detected (the analog-input-mic port shows "not available" when unplugged), but I haven't tested an actual headset yet.

# /lib/firmware/alc294-gz302
[codec]
0x10ec0294 0x10431fb3 0

[pincfg]
0x12 0x40000000
0x19 0x03a19020
# /etc/modprobe.d/alc294-gz302-mic.conf
options snd-hda-intel patch=alc294-gz302,alc294-gz302

After reboot:

  • dmesg shows Applying patch firmware 'alc294-gz302'.
  • /sys/class/sound/hwC1D0/user_pin_configs lists both pins.
  • The Capture Source control is gone.
  • L and R are now identical. Before the fix, R on 0x12 was railed in about 62% of samples.

More on the gain gotcha. It hit me right after the fix as crackling and distortion. The source's Base Volume is −60 dB, so PipeWire's default of about 68% maps to roughly +40…50 dB of hardware gain (Capture +30 dB plus Internal Mic Boost). In a quiet room it clipped about 19% of samples. Here is the mapping I measured:

PipeWire volume Capture Internal Mic Boost Clipping (quiet room)
68% +30 dB +10…20 dB ~19%
40% +30 dB 0 —
30% +28.5 dB 0 0
20% +18 dB 0 0
10% 0 dB 0 0

About 20% works well for me. Above 40%, Internal Mic Boost starts adding gain, so I'd stay at or below 30%. WirePlumber persists the setting:

pactl set-source-volume @DEFAULT_SOURCE@ 20%

On my setup I didn't need to rebuild the initramfs: snd_hda_intel loads from rootfs, and the patch applied on the first reboot without mkinitcpio -P.

dionisboss avatar Oct 18 '26 07:10 dionisboss