Skip to content

soundwire: intel_ace2x: keep DACTQE at its reset value - #6056

Open
jonnyjonjon wants to merge 1 commit into
thesofproject:topic/sof-devfrom
jonnyjonjon:soundwire-intel-ace2x-keep-dactqe
Open

jonnyjonjon wants to merge 1 commit into
thesofproject:topic/sof-devfrom
jonnyjonjon:soundwire-intel-ace2x-keep-dactqe

Conversation

@jonnyjonjon

@jonnyjonjon jonnyjonjon commented Nov 24, 2026 •

Copy link
Copy Markdown

On the HP OmniBook Ultra 14 (board 8EB4, Panther Lake), the four TI TAS2783
amplifiers on SoundWire links 1 and 2 fail continuously ("Program SCP Ack not
received", parity errors, firmware download failures) because
intel_shim_vs_init() always sets ACTMCTL bit 0 (DACTQE). Leaving DACTQE at
its reset value (clear) and taking every other field from _DSD as before makes
all four amplifiers attach and play.

Source ACTMCTL on links 1/2 Result
Before init 0x003A —
Current driver 0x117D amplifiers fail
This patch 0x117C amplifiers work

The RT712 on link 3 works either way. The commit message traces how DACTQE came
to be forced; it is now the only ACTMCTL bit the driver sets regardless of
hardware default or firmware. The cAVS driver (intel.c) is not changed.

Question for Intel: is DACTQE required on any ACE2.x platform? It is not
publicly documented, so I can't tell. If some platform needs it, I'm happy to
rework this as a per-platform setting or a quirk instead. CI results on other
ACE2.x hardware would be especially useful here.

Relation to #5904: the second commit there forces DOAIS = 1 and
DOAISE2 = 1 on this board's links 1 and 2, overriding the firmware's values
(DOAIS = 3, DOAISE2 = 0). That made the amplifiers work, and it is what led me
to look at the rest of ACTMCTL. With DACTQE clear, the firmware's own values
work unchanged (ACTMCTL = 0x117C: DOAIS = 3, DOAISE2 = 0), so no override of
firmware data is needed; the problem appears to be the bit the driver forces,
not the values the firmware provides. Together with #6057, this replaces both
commits in #5904.

Testing: HP OmniBook Ultra 14 (8EB4), BIOS F.07, on topic/sof-dev at
3d8869b (7.4-rc), together with #6057 (SDCA function type quirk, needed
on this board for the SmartAmp functions and the speaker endpoint to be
created).

Related: #5732, #5904, #6057

This change and its description were developed with the help of Claude Code;
I reviewed and tested it on the hardware above.

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 71bb8a1 ("soundwire: intel:
Add Intel Master driver"), along with DOAIS = 1 and DODS = 1. That
block was then copied in commit f40bb24 ("soundwire: intel_ace2x:
configure link PHY"). Commit b513429 ("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 8096248 ("soundwire:
intel_ace2x: cleanup DOAIS/DODS settings") called DOAIS = 1 a
"copy-pasted value?" and moved it to the hardware default, and
commit 3b0b441 ("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: thesofproject#5732
Signed-off-by: jonnyjonjon <jonnyjonjon42@gmail.com>
@sofci

sofci commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

reply test this please to run this test once

@bardliao

Copy link
Copy Markdown
Collaborator

test this please

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;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do this unconditionally, it will impact all Intel ACE+ platforms.

@bardliao bardliao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DACTQE is not a leftover. It enables the AC timing qualifier on the SoundWire data buffer, and the timing fields such as DOAIS/DOAISE and DODS/DODSE only take effect when DACTQE is set. The reasonable fix is to provide suitable timing values in the BIOS (_DSD) for this board, rather than clearing DACTQE in the driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants