ASUS Zenbook A14 (UX3407QA): speakers silent and clicking after pause — WSA884x amplifiers re-attach slowly from runtime suspend; pinning runtime PM fixes it (also: 3S supply on 1S defaults)
Summary
On the ASUS Zenbook A14 UX3407QA (Snapdragon X, x1p42100), the internal speakers often go silent after a pause, and every pause and resume makes a click.
Each WSA884x amplifier runtime-suspends 3 s after the speakers go idle. When the next stream opens, both amplifiers drop off the SoundWire bus (UNATTACHED) and take 5–10 s to re-attach. The stream waits about 10 s in SETUP and sometimes starts before both amplifiers are back. When that happens the stream runs with no sound and no error until the PCM is closed and reopened.
Keeping both amplifiers out of runtime suspend fixes it here: no dropouts, no clicks, and playback starts in about 0.1 s. That is the same idea as the Zenbook A16's 60-asus-zenbook-a16-soundwire.rules, but on this board pinning only the controller is not enough. The amplifiers themselves have to stay on.
Separately, both amplifiers report a 3S supply (VPHX_SYS_EN_STATUS = 0x03), which the wsa884x patches don't handle, so they run on the 1S defaults.
Related: #18383 (Surface Pro 11: same driver patches, a silent stream after a later re-attach).
Captured failure
A logger polled 6b10000.soundwire runtime PM, the speaker PCM state, and both amplifiers' SoundWire status and runtime PM every 100 ms.
Silent case (stock runtime PM):
13:13:52.465 ctrl=active pcm=closed amps=Alert Alert <- paused
13:13:56.079 ctrl=suspended pcm=closed amps=Alert Alert <- controller + amps runtime-suspend
13:14:11.425 ctrl=active pcm=OPEN amps=UNATTACHED UNATTACHED <- play
13:14:11.541 ctrl=active pcm=SETUP amps=UNATTACHED UNATTACHED
13:14:11.655 ctrl=active pcm=SETUP amps=UNATTACHED Attached
13:14:21.443 ctrl=active pcm=RUNNING amps=Attached UNATTACHED <- stream starts while 00:1 is still detached
13:14:21.563 ctrl=active pcm=RUNNING amps=Attached Attached <- no sound from here on
No kernel message at all during this sequence.
Amplifier registers (regmap debugfs), working vs silent:
| Register | Working (L / R) | Silent (L / R) |
|---|---|---|
PA_FSM_STA0 (0x3435) |
0x2f / 0x2f | 0x00 / 0x2a |
INTR_STATUS0 (0x3583) |
0x00 / 0x00 | 0x00 / 0x20 |
CURRENT_LIMIT (0x3091) |
0x54 / 0x54 | 0x24 / 0x24 |
VPHX_SYS_EN_STATUS (0x3501) |
0x03 / 0x03 | 0x03 / 0x03 |
PA_FSM_ERR_COND0/1 |
0x00 | 0x00 |
CURRENT_LIMIT = 0x24 is the init-table value (limit 0x9). 0x54 is what wsa884x_spkr_event() programs for the stream (limit 0x15, PBR). So after the late re-attach, the init sequence ran again but the stream's speaker setup was not reapplied, and the left PA never left idle.
(The SWR read FIFO underflow fifo status 0x40000020 messages in the attached log came from my own debugfs register reads, not from the failure.)
Pinning only the controller is not enough
With echo on > /sys/bus/platform/devices/6b10000.soundwire/power/control (A16-style), the controller stayed active, but the amplifiers still runtime-suspended and dropped off the bus at the next open:
13:19:01.835 ctrl=active pcm=closed amps=Attached Attached
13:19:45.792 ctrl=active pcm=OPEN amps=UNATTACHED UNATTACHED <- detached within 100 ms of the open
13:19:50.349 ctrl=active pcm=SETUP amps=Attached Attached
13:19:55.342 ctrl=active pcm=RUNNING amps=Attached Attached <- 10 s to start
The click a few seconds after pausing still happened, timed with the amplifiers' runtime suspend.
Pinning the amplifiers too fixes it
With power/control=on on the controller and on sdw:1:0:0217:0204:00:0 and :1, five pause/resume cycles of 10–15 s each:
13:26:04.791 pcm=closed amps=Attached Attached pm=active active
13:26:16.133 pcm=SETUP amps=Attached Attached pm=active active
13:26:16.248 pcm=RUNNING amps=Attached Attached pm=active active <- 0.1 s
13:27:30.921 pcm=closed ...
13:27:45.985 pcm=RUNNING amps=Attached Attached pm=active active
13:28:20.865 pcm=closed ...
13:28:29.754 pcm=RUNNING amps=Attached Attached pm=active active
...
No detach, no click, no kernel messages, and sound every time.
The udev rule I'm using locally:
ACTION=="add|bind", SUBSYSTEM=="platform", KERNEL=="6b10000.soundwire", \
ATTR{[dmi/id]board_name}=="UX3407QA", ATTR{power/control}="on"
ACTION=="add|bind", SUBSYSTEM=="soundwire", KERNEL=="sdw:1:0:0217:0204:00:*", \
ATTR{[dmi/id]board_name}=="UX3407QA", ATTR{power/control}="on"
Bus clashes
Before I found this, I also saw occasional qcom_swrm_irq_handler: SWR bus clsh detected on 6b10000.soundwire, followed by Parity error detected from both amplifiers. One boot (Nov 30) also had Test fail for port:2 and Reached MAX_RETRY on port read on 00:1. These showed up on both 7.3.6-2 and 7.3.6-6, about once every few hours, and the speakers were silent afterwards until PipeWire was restarted. I haven't yet confirmed whether they still happen with runtime PM pinned. I'll follow up here.
3S supply
VPHX_SYS_EN_STATUS reads 0x03 on both amplifiers at every boot, and stays 0x03 after re-attach:
wsa884x-codec sdw:1:0:0217:0204:00:1: unsupported VPHX supply configuration 0x3; retaining upstream defaults
Going by the wsa884x_supply_config enum in patch 2154, that is WSA884X_SUPPLY_3S. It matches the battery, which reads 13.25 V when full (3S). The amplifiers therefore run with the QRD 1S class-H, current-limit and UVLO settings. The speakers also sound fairly quiet with WSA_RX0/1 Digital Volume at 81 (-3 dB, the ceiling) and Speakers Volume 5/6. It would be good to have the downstream 3S settings for this board, but I haven't tried any values myself.
System
- ASUS Zenbook A14 UX3407QA (OLED), Snapdragon X
x1p42100, BIOS UX3407QA.308 - Omarchy 4.0.0.r8494.g97a2b2a-1
- linux-omarchy 7.3.6-6, linux-omarchy-dtbs 7.3-77
- pipewire 1:1.6.12-1, wireplumber 0.5.19-1, alsa-ucm-conf 1.2.16.1.r45.gd260eed-7, linux-firmware-qcom 20261019-1.1
The current boot uses an extra local DTB entry for camera (CAMSS) testing. It does not touch any audio node, and the problem also showed up on boots without it.
Full logs and register dumps (working and silent) are available if useful.
Filed by Claude Opus 5.5 via Claude Code.
GPT-6.2 Sol High in Codex, Opus 5.5 High, and Muse Wonder High in Pi reviewed the trace and kernel patches. One amp reattached after playback started, and the silent register values match codec initialization. The 3S reading was identical during audible and silent playback, so it needs a separate tuning check. We had no UX3407QA to test.
@niendicker, could you repeat the 10–15 second pause/play cycles on your current kernel and DTB, first with stock runtime PM and, if it still fails, with only the two amps set to on and 6b10000.soundwire set to auto? Please include uname -r, pacman -Q linux-omarchy-dtbs, whether the controller actually suspends, and whether either amp detaches or clicks. If the amps-only setting works, please check playback again after one normal system suspend and resume.
Thanks. I ran the tests you asked for, on the same kernel and DTB:
$ uname -r
7.3.6-6-omarchy
$ pacman -Q linux-omarchy-dtbs
linux-omarchy-dtbs 7.3-77
The same 100 ms logger was running for all of it (controller runtime PM, speaker PCM state, each amp's SoundWire status and runtime PM).
1. Stock runtime PM (controller and both amps auto)
Still fails. Pauses shorter than about 4 s never let the amps suspend, and those resumed instantly. The first pause long enough for them to suspend came back silent:
14:15:17.463 ctrl=active pcm=closed amps=Attached Attached pm=active active <- pause
14:15:21.205 ctrl=suspended pcm=closed amps=Attached Attached pm=suspended suspended <- controller suspends, amps suspend
14:15:37.764 ctrl=resuming pcm=OPEN amps=UNATTACHED UNATTACHED pm=active active <- play
14:15:37.880 ctrl=active pcm=SETUP amps=UNATTACHED UNATTACHED pm=active active
14:15:38.000 ctrl=active pcm=SETUP amps=UNATTACHED Attached pm=active active
14:15:47.783 ctrl=active pcm=RUNNING amps=Attached UNATTACHED pm=active active <- starts while 00:1 is detached -> silent
14:15:47.899 ctrl=active pcm=RUNNING amps=Attached Attached pm=active active
- The controller does suspend: yes, 4 s after the pause.
- Detach: both amps, on the open. 00:1 re-attached only after the stream was running.
- Clicks: none this time. Earlier in the day the same sequence did click.
- No kernel messages during the sequence.
2. Only the amps on, 6b10000.soundwire auto
Works. Six pause/play cycles with pauses of 8–20 s:
14:19:07.379 ctrl=active pcm=closed amps=Attached Attached pm=active active
14:19:15.756 ctrl=active pcm=OPEN amps=Attached Attached pm=active active
14:19:15.871 ctrl=active pcm=RUNNING amps=Attached Attached pm=active active <- ~0.1 s
14:19:42.177 ctrl=active pcm=closed ...
14:19:56.597 ctrl=active pcm=RUNNING amps=Attached Attached pm=active active
14:20:27.292 ctrl=active pcm=closed ...
14:20:40.888 ctrl=active pcm=RUNNING amps=Attached Attached pm=active active
14:21:08.642 ctrl=active pcm=closed ...
14:21:28.373 ctrl=active pcm=RUNNING amps=Attached Attached pm=active active
14:22:00.777 ctrl=active pcm=closed ...
14:22:08.568 ctrl=active pcm=RUNNING amps=Attached Attached pm=active active
- The controller does not suspend in this setup:
runtime_suspended_timedidn't change during the test. That's expected, since its children stay active, so in practice amps-only gives the same result as pinning all three. - Detach: none. Clicks: none. Sound every time. No kernel messages.
3. After a normal system suspend and resume (amps still on)
Works. systemctl suspend, PM: suspend entry (deep) at 14:23:10, resumed at 14:23:43. Both amps came back Attached with power/control still on, and playback at 14:25:46 started cleanly with sound. No kernel messages.
Filed by Claude Opus 5.5 via Claude Code.
GPT-6.2 Sol High in Codex and Opus 5.5 High reviewed the new trace. In the stock run, amp 00:1 attached during setup, dropped off around stream start, and came back in the next sample. Keeping both amps active restored sound in all six runs and after a deep suspend, but it also kept 6b10000.soundwire awake with its setting still at auto.
@niendicker, could you compare on-battery idle power_now with both amps on auto and then both on on, at the same brightness after about 50 seconds of idle in each mode? If you can, please also record energy_now before and after a five-minute deep suspend in each mode. That would quantify the power cost of a UX3407QA-specific workaround while the detach at stream start is investigated.
Here's the idle power result. The suspend measurement is still pending (see below).
Idle power_now, both amps auto vs on
On battery, same brightness (backlight 409 in every block), YouTube paused with the speaker PCM closed, idle lock and screensaver inhibited. In each block the amps were set, then left 50 s to settle, then power_now was sampled every 2 s for 40 s (20 samples). Order auto → on → auto, to catch drift.
| Mode | Runtime PM after 50 s | Mean | SD | Min–max |
|---|---|---|---|---|
auto |
ctrl suspended, amps suspended/suspended | 5.560 W | 0.024 | 5.503–5.594 |
on |
ctrl active, amps active/active | 6.033 W | 0.010 | 6.019–6.048 |
auto |
ctrl suspended, amps suspended/suspended | 5.490 W | 0.015 | 5.456–5.521 |
So keeping both amps on (which also keeps 6b10000.soundwire active) costs about +0.5 W at idle (6.03 vs 5.53 W, ~9%). That's well above the run-to-run spread, and much more than the <0.1 W reported for the Zenbook A16 rule.
uname -r: 7.3.6-6-omarchy, linux-omarchy-dtbs 7.3-77.
Deep suspend: not measured yet
I ran the five-minute deep suspend in auto mode (PM: suspend entry (deep) 14:58:49, PM: suspend exit 15:03:51). But energy_now didn't move: it read 70016000 µWh before and after, equal to energy_full, with capacity stuck at 100%. That was after roughly 25 minutes on battery at ~5 W. The fuel gauge is still pinned at full after the last full charge, so it can't resolve a five-minute suspend right now. (charge_now returns -ENODATA on this machine.)
I'll redo both modes once the gauge leaves 100%, with longer suspends (20–30 min each), and post the numbers here. Since power/control=on only affects runtime PM, I'd expect little or no difference in system suspend, but I haven't measured it yet.
Filed by Claude Opus 5.5 via Claude Code.
GPT-6.2 Sol High in Codex and Opus 5.5 High reviewed the power measurements and kernel changes. Keeping the amps and controller awake raised idle draw from 5.53 W to 6.03 W, so we recommend keeping the workaround local. The longer deep-sleep comparison you plan will help once the gauge drops below 100%.
When your usual channel has linux-omarchy 7.3.6-25 or newer, could you repeat a few 10–20 second pause/play cycles with the controller and both amps set to auto? That kernel changes how the shared SoundWire driver stops the link and handles interrupts during runtime suspend. Please include uname -r, whether the amps detach, and whether playback still delays or goes silent. Kernel change
Retested on 7.3.6-25-omarchy as asked: the problem is gone. My local udev rule was overridden for the test, so the controller and both amps were on stock auto runtime PM.
Each cycle: 15 s idle (the controller and both amps reach suspended), then a short clip played through the speaker sink. I polled until the speaker PCM reached RUNNING, then sampled the amps' status and runtime PM.
| Run | Cycles | Amps during idle | Time to RUNNING |
Audible | Kernel messages |
|---|---|---|---|---|---|
| Fresh boot | 6 | suspended, still Attached |
0.06–0.12 s | 6/6, no clicks | none |
After a 4.5 min deep suspend (PM: suspend entry (deep) 15:59:19, exit 16:03:54) |
6 | suspended, still Attached |
0.06–0.12 s | 6/6, no clicks | none |
On 7.3.6-6 the amps came back UNATTACHED after runtime suspend, took up to 10 s to start, and sometimes stayed silent. On -25 they stay Attached across runtime suspend and start immediately, and the controller still clock-stops between streams, so the +0.5 W idle cost of the workaround no longer applies.
I've removed the local power/control=on rule. That also makes the deep-suspend power comparison unnecessary, so I'm dropping it. From my side this can be closed once -25 reaches stable.
Filed by Claude Opus 5.5 via Claude Code.