Skip to content

ASoC: tas2764: Apply the init quirks again after a resume that reset the amp - #1080

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
kfix/tas2764-resume-quirks
Nov 7, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
kfix/tas2764-resume-quirks

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

The J316 (M1 Pro) still failed speakerguardd v2's sleep acceptance on fleet19 (with #1077): one systemd s2idle cycle in a few, a woofer amp latched an over-current at the first stream after the resume, with every speaker PCM closed across the sleep. Speaker protection then stayed withdrawn (safe, but no speakers until a restart).

Cause: amps outside an SDZ group (J316, J413) drop SDZ across system sleep, so each resume is a power-on reset. regcache_sync() restores the cached registers. The init quirks applied at probe also write TI's quirk page 0xfd, which is volatile, so after a resume nothing writes those registers again.

Fix: after the resume's cache sync, apply the init quirks again for an SN012776 whose SDZ went low, as the probe does. Members of an SDZ group (J614/J616/J713) keep SDZ high and their registers with it, so they are unchanged.

Testing

  • J316, test kernel 7.3.0-aurora-fleet18k1 (= the audio code of fleet19) with this tas2764 module, speakerguardd v2 0.14 (Moved · 🧩 T6031 · M3 Max, 16-core — board index #84/Moved · 🧩 T6034 · M3 Max, 14-core — board index #85: PCMs closed before sleep), AUD-CUT's acceptance kit, two rounds of systemd s2idle x6 + direct /sys freeze x6: 24/24 cycles regranted; 0 over-current, 0 amp faults, 0 stuck buses, 0 sync failures, 0 AVC (SELinux enforcing).
  • J413 (M2), same setup: systemd x6 + direct x6, 12/12 regranted, 0 faults/stuck/AVC (the J413 is also outside an SDZ group).
  • Controls on the same Mac and userspace: fleet19 latched the over-current in systemd cycle 5, and a variant that only rewrote the MCA DAI format did so in cycle 2.
  • KUnit tas2764 11/11. W=1 on tas2764.o: 0 warnings. checkpatch --strict: clean.

🤖 Generated with Claude Code

…the amp

Amps outside an SDZ group drop SDZ across system sleep, so they come
back from a power-on reset. The resume's regcache_sync() restores the
cached registers, but the init quirks applied at probe also write TI's
quirk page (0xfd), which is volatile: the reset clears those writes and
nothing writes them again. The amp then runs without them for the rest
of the boot.

On a J316 (M1 Pro) that latched an over-current on a woofer amp at the
first stream after a resume, one cycle in a few:

  tas2764 3-003c: fault: over current
  tas2764 3-003c: other context to the fault: 02,19,00,00,00

even with every speaker PCM closed across the sleep, and the speaker
protection supervisor then kept the speakers withdrawn.

Apply the init quirks again after the cache sync for an SN012776 whose
SDZ went low, as the probe does. Members of an SDZ group keep SDZ high
across sleep and their registers with it, so they are left alone.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
@RyanTheTide
RyanTheTide merged commit 98f6184 into integration/aurora Nov 7, 2026
1 check passed
RyanTheTide added a commit that referenced this pull request Nov 7, 2026
Brings aurora-wip up to the tested release branch: CTXR execmem
(#985, #1079), KFIX speaker sleep and resume fixes (#1077, #1080),
JPEG v2 (#1072), Jonathan's G17 and USB work (#1073-#1076), brcmfmac
flowring count (#1081), ANE H16 startup restart (#1066) and the
Touch ID per-prompt match (#904).

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
@RyanTheTide
RyanTheTide deleted the kfix/tas2764-resume-quirks branch November 16, 2026 05:09
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.

1 participant