Repository navigation
ASoC: apple: bring speaker protection admission to integration/aurora - #551
Merged
RyanTheTide merged 2 commits intoOct 28, 2026
Merged
Conversation
Do not let the legacy unsafe parameter admit an unsupported backend, skip safe-volume setup failures or expose fixed protection controls. Generic apple,macaudio and SSM3515 backends remain disabled. Require a supported amplifier, speaker layout and negative safe volume before adding a Speaker link. Keep the parameter accepted for compatibility, without unsafe overrides. Add a hardware-free KUnit regression covering generic fallback, unsupported and missing-protection configurations with parameter 2 and other values, plus the supported TAS and software-gain paths. Signed-off-by: Ryan Murray <[email protected]>
INACTIVE hides a control but does not reject direct ALSA element writes. Set each fixed speaker enum during control fixup, deactivate it, and remove WRITE access from every element before publishing the card. Cover ASI1 selection, HPF corner, OCE handling and the dormant DAC gain setup independently of the deprecated unsafe parameter. Add a no-device host regression composing the actual speaker setup and ALSA matcher, enum setter, activation and element-write functions with in-memory registers. Require EPERM for direct writes to fixed controls, while unrelated jack controls remain writable. Cover both input-validation settings, mono and stereo prefixes, all elements and parameter values. Signed-off-by: Ryan Murray <[email protected]>
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.
This brings the speaker protection admission change into integration/aurora. It went into aurora-wip as #510 but never reached the tested head, so a machine built from integration/aurora alone would lose it.
The two commits are cherry-picks of f0f840c and 0f830f8 with no changes.
What they do
Testing
🤖 Generated with Claude Code