Repository navigation
ASoC: tas2764: Apply the init quirks again after a resume that reset the amp - #1080
Merged
Merged
Conversation
…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
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
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.
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
🤖 Generated with Claude Code