Repository navigation
Bound V/I onset energy before gain writes - #12
Closed
RyanTheTide wants to merge 4 commits into
Closed
RyanTheTide wants to merge 4 commits into
RyanTheTide wants to merge 4 commits into
Conversation
RyanTheTide
marked this pull request as ready for review
October 25, 2026 21:49
This was referenced Oct 25, 2026
RyanTheTide
added a commit
that referenced
this pull request
Oct 26, 2026
The FF reserve is additional protection. Retain PR #12\x27s existing V/I reserve on the legacy path and take the larger ceiling. Extend the regression so a warm FF state and a warm V/I state each tighten the output independently; the earlier FF-only implementation fails the latter check.
Contributor
Author
|
SHIP for the onset-bound delta at |
Contributor
Author
|
Superseded by #27: this PR's head is already contained in the 0.1.13 release candidate branch (fu-speakerguardd-rc), so it lands with that PR. Closing to keep one release PR (fewer, bigger PRs). |
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 gain increase after silence or mute could let full-scale input heat a V/I model past its limit before the next measurement arrived.
Reserve the whole possible energy dose before each gain write, using maximum amplifier voltage, minimum impedance, unobserved time, the old lease and queue, and a possible renewed lease. The kernel lease counts playing time, so the dose must fit even when idle gaps intervene. Bound both thermal nodes and the safe-level tail. Unified also checks its feed-forward model. The projections use copies and leave measured accounting alone. Unsupported ALSA reductions fail before writing instead of clamping to less attenuation.
This ceiling can attenuate quiet audio beyond the governor's 7 dB handoff threshold. That threshold still applies to the governor request, with its existing handoff, latch and re-arm rules. An unqualified profile whose worst-case fallback cannot fit its working limit stays locked. All profile files, fingerprints and service activation stay unchanged.
The tests retain the six reviewed programs and add delayed and intermittent onsets, old-gain queue retention through mute, and a quiet-to-full-scale sweep at every V/I profile's maximum voltage. The sweep verifies pre-onset leases on 25 profiles and refusal on 9 unqualified profiles whose fallback tails do not fit.
Validation on the L2-1 base
5c1485f15218640a3fefa5652b624279dc8595d2and this head:No hardware, playback, deployment or new profile qualification. This is ready for independent review.