Repository navigation
soundwire: intel_ace2x: keep DACTQE at its reset value - #6056
Open
jonnyjonjon wants to merge 1 commit into
Open
jonnyjonjon wants to merge 1 commit into
jonnyjonjon wants to merge 1 commit into
Conversation
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>
jonnyjonjon
requested review from
jack-cy-yu,
oder-chiou and
shumingfan
as code owners
November 24, 2026 04:38
Collaborator
|
Can one of the admins verify this patch?
|
Collaborator
|
test this please |
bardliao
reviewed
Nov 24, 2026
| 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; |
Collaborator
There was a problem hiding this comment.
You do this unconditionally, it will impact all Intel ACE+ platforms.
bardliao
requested changes
Nov 24, 2026
bardliao
left a comment
Collaborator
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 atits reset value (clear) and taking every other field from _DSD as before makes
all four amplifiers attach and play.
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.