From a8bbf691545d2480d8c1e79fc3dd5a35c40e4e00 Mon Sep 17 00:00:00 2001 From: jonnyjonjon Date: Mon, 23 Nov 2026 20:49:18 -0500 Subject: [PATCH] soundwire: intel_ace2x: keep DACTQE at its reset value intel_shim_vs_init() takes every ACTMCTL timing field from the _DSD properties except bit 0 (DACTQE), which it always sets, and for which there is no _DSD property. On at least one board, setting DACTQE keeps the SoundWire amplifiers from working. On the HP OmniBook Ultra 14 (board 8EB4, Panther Lake, BIOS F.07), links 1 and 2 each carry two TI TAS2783 amplifiers. Linux programs ACTMCTL = 0x117D on those links (the firmware's _DSD values, plus DACTQE), and the amplifiers keep failing: "Program SCP Ack not received", parity errors and firmware download failures, tens of thousands of log lines per boot. Before Linux writes it, ACTMCTL reads 0x003A. This matches the defaults that sdw_master_read_intel_prop() assumes, and has DACTQE clear. Leaving DACTQE clear and setting every other field as the firmware specifies gives ACTMCTL = 0x117C, and all four amplifiers attach and play. Link 3 on the same machine (a single RT712) works with DACTQE set or clear. The driver's history suggests DACTQE may be a leftover. It was first set, without explanation, in commit 71bb8a1b059e ("soundwire: intel: Add Intel Master driver"), along with DOAIS = 1 and DODS = 1. That block was then copied in commit f40bb2446f1e ("soundwire: intel_ace2x: configure link PHY"). Commit b51342961a4e ("soundwire: intel_ace2x: fix AC timing setting for ACE2.x") switched to read-modify-write, because building from zero cleared DOAISE and broke the SDA waveform, but forcing DACTQE was kept. Commit 80962485f62c ("soundwire: intel_ace2x: cleanup DOAIS/DODS settings") called DOAIS = 1 a "copy-pasted value?" and moved it to the hardware default, and commit 3b0b441a297e ("soundwire: intel_ace2x: use DOAIS and DODS settings from firmware") then took DOAIS and DODS from firmware. DACTQE is now the only ACTMCTL bit the driver forces regardless of hardware default or firmware. The cAVS driver (intel.c) also sets DACTQE in CTMCTL. It is left unchanged, since the problem has only been seen on ACE2.x. DACTQE is not described in any public documentation, so I cannot say why setting it breaks these amplifiers, or whether another platform depends on it. Tested on HP OmniBook Ultra 14 (8EB4), BIOS F.07, together with "ASoC: SDCA: add a function type quirk for TAS2783 on HP OmniBook Ultra 14": all four TAS2783 amplifiers attach and play, and the RT712 on link 3 still works. This patch was developed with the help of Claude Code (Claude Opus 5.5). I reviewed the change and tested it on the hardware above. Link: https://github.com/thesofproject/linux/issues/5732 Signed-off-by: jonnyjonjon --- drivers/soundwire/intel_ace2x.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/soundwire/intel_ace2x.c b/drivers/soundwire/intel_ace2x.c index 642b33ab552606..191e28fca9c6dd 100644 --- a/drivers/soundwire/intel_ace2x.c +++ b/drivers/soundwire/intel_ace2x.c @@ -467,7 +467,6 @@ static void intel_shim_vs_init(struct sdw_intel *sdw) u16p_replace_bits(&act, doais, SDW_SHIM2_INTEL_VS_ACTMCTL_DOAIS); u16p_replace_bits(&act, dodse, SDW_SHIM2_INTEL_VS_ACTMCTL_DODSE); u16p_replace_bits(&act, dods, SDW_SHIM2_INTEL_VS_ACTMCTL_DODS); - act |= SDW_SHIM2_INTEL_VS_ACTMCTL_DACTQE; intel_writew(shim_vs, SDW_SHIM2_INTEL_VS_ACTMCTL, act); usleep_range(10, 15); }