Repository navigation
ASoC: apple: mca: restore the clusters' registers after a sleep that cuts the power - #2224
Merged
DjDeveloperr merged 1 commit intoNov 19, 2026
Conversation
…cuts the power hw_params, startup and prepare are the only places a stream's cluster, serdes, port and DMA adapter setup is written, and an open stream (speakersafetyd keeps the sense capture open) keeps it across a sleep. A deep sleep takes those registers. Each cluster's are saved after ASoC suspended the streams and written back before anything resumes them: configuration first, then the port routing, the enables last. A back end restores only its port words. Assisted-by: Claude Opus 5.5 Signed-off-by: Nick <nekreshen@yandex.ru>
DjDeveloperr
merged commit Nov 19, 2026
4aa412b
into
aurora-silicon:integration/aurora
1 check passed
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.
A sleep that cuts the MCA's power loses the clusters' registers.
hw_params,startupandprepareare the only places a stream's setup is written: cluster, serdes, port and DMA adapter. An open stream keeps that setup across a sleep; speakersafetyd keeps the sense capture open all the time.Change:
Overlaps #1314 (niteria, T8132 deep sleep). It adds a
suspend_lateto the same driver that refuses a firmware sleep while a cluster is in use. With speakersafetyd running, that refusal blocks every deep sleep on the M5 Airs; this change keeps the open streams working instead. Happy to rebase onto #1314 or to fold the two together, whichever the maintainers prefer.Tested on J815 (MacBook Air 15" M5) in every deep-sleep build since 2026-11-16, with audio and speakersafetyd/speakerguardd running:
Playback after a wake was not measured separately.
checkpatch --strictclean.W=1onintegration/aurora0abc2f3.Part of the J815 bring-up; board results are summarised in discussion #135.
🤖 Generated with Claude Code