Repository navigation
Conversation
Carry the final focused delta of #922 at 7b90611, excluding unrelated integration/aurora history. Ryan Murray authored the ownership, fault, DMA and guard changes; original source commits are retained in #922. Resolve the platform-config overlap by keeping the J813/J873 speaker DAI format and secondary-front-end routing beside the new grant-only tweeter HPF policy. Existing J813 microphone initialization is retained. Source-PR: #922 Source-head: 7b90611 Co-authored-by: Acelogic <[email protected]>
Contributor
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.
Bring the new speaker-protection ownership interface from #922 onto aurora-wip, preserving the J813 audio and microphone fixes already merged through #1000/#1048. Without this interface,
speakerguardd v2cannot own the speakers on the public wip kernel.This carries only #922's final 21-file delta at
7b90611651bc2b9bf9acd0200cb6bd76a8ee6682; it does not merge unrelatedintegration/aurorahistory. The platform-config conflict is resolved by retaining J813/J873's speaker DAI format and secondary-front-end routing alongside the new grant-only tweeter-HPF policy. J873 speaker enablement is unchanged. J813 retains the fallback tweeter HPF; this PR does not assert that its native voicing or LSM2 engine is qualified.Attribution: Ryan Murray authored the upstream ownership, lease expiry, amplifier-fault, DMA and fallback-filter changes in #922 and its constituent PRs. The integration commit preserves Ryan as author and identifies the source PR/head. Acelogic performed the wip integration, preserved the J813-specific fields, updated the admission comments, and is running the integration qualification. Thomas Glanzmann's original J813 audio work and the #1048 fixes remain in the base history.
Validation of kernel candidate
126a2d8fe4fa764b0d8cc367ec2d14750cc400d1:Direct ALSA fixed-control regression passed with input validation both off and on: 664 attempts per configuration, zero failures.
Full Image, all 201 modules and J813/J873 DTB build passed at
126a2d8fe4fa764b0d8cc367ec2d14750cc400d1(7.3.0-aurora-j813-sgv2). All 98,084 source entries were hash-audited before and after the build. The build emitted 23 static-mut-reference warnings in unchanged G18 GPU source, with no warnings in the integration files.Rebuilt RAM boot package passed all 1,514 runtime hashes and all 201 module hash/vermagic checks; init runs the existing GPU smoke then a shell, with no audio autoplay.
Host CI 42276883930 passed 189/189 at this candidate head.
The physical J813 RAM boot passed the existing GPU baseline. The minimal RAM environment also needed
i2c-pasemi-platformandgpio-shared-proxyloaded before the audio card registered; this was a supplier-module prerequisite, not a device-tree repair.Silent physical ownership E2E passed: the four speaker DVCs began at zero, were read-only to direct userspace writes, and the legacy unlock control was absent. A direct START without a grant returned
-EPERMand incremented the kernel refusal counter. Non-owner grants and 9/101 ms leases were refused. A valid 50 ms lease set all four DVCs to 201 and ran zero PCM; after 17 renewals stopped, the floor was observed at 52.0 ms and playback XRUNed. The expired owner received-ETIMEDOUT. A fresh owner started zero PCM, and closing that owner returned the floor in 1.68 ms and XRUNed playback. Final state: all four DVCs zero, all fault triplets zero, five PCMs closed, kernel taint zero.The no-grant check uses explicit START after zero prefill. ALSA's ordinary write path can return the already-copied frame count after a rejected auto-start, obscuring the original error with a later
-EIO; that initial test expectation was not counted as a pass. The corrected check verifies the actual trigger errno and refusal counter.Silent physical wiring check passed with the continuous-capture fix in speakerguardd #79: all nine phases (baseline plus eight V/I switches) matched the device-tree map with the original LIVE=16/QUIET=4 thresholds and 50 ms settling. The earlier per-step capture lifecycle failed because reopening sense capture during active playback could change its starting channel slot. This result qualifies capture armed before playback and kept open; it does not qualify arbitrary late capture/reopen or production graph ordering. No kernel change was made for this finding.
Four bounded PipeWire/WirePlumber phases passed using temporary RAM payloads (PipeWire 1.6.2, WirePlumber 0.5.13, udev 259): a zero-sample jack stream reached hardware RUNNING; HPAI capture delivered 192,000 finite frames across three nonempty lanes; an ungranted zero-sample speaker attempt increased the kernel refusal counter from 3 to 4; and stock sound rules plus real kernel events enabled discovery of both audio cards and their nodes. Each phase ended with five PCMs closed, unchanged controls and kernel taint zero. This does not qualify normal user routing, automatic protected-speaker linkage, the discovered mono fallback capture path, long-duration operation, or any J873 path.
Silent ownership archive SHA-256:
b6877818a17a5140672a679016d4ed894c28d9f9d2ad5dffecb3438be2858652; controller SHA-256:290ef51d830545cb7bf07e9abae262487cde006f4378d26a89e91d57f19f1c46. Observed floor times include userspace polling/readback overhead; they are not a worst-case scheduler bound.Silent wiring archive SHA-256:
386d07fd139c149a4ac02c277d010f35f048ea81c055b216d9c6e2b6b5069cb2; exact public self-check file SHA-256:803fd1ad40b4a1bec0fcfc4e667e2b842e06bfba9a45cbfe12ed262865ae7c25(now in speakerguardd commit5aa55ea795223e3a16113237fb093e9451344a7e). The final self-check also refuses a result if saved sense-switch restoration fails; its exact file was rerun on hardware. No DSP admission record was created.PipeWire evidence manifest SHA-256:
0a41c60a1b75c61f42b48033994cdaf2c62101573bb766b25a7c58e917ddf2ed. The first microphone run failed its exit-code-only verdict; a reproducedpw-catsample-limit exit-code defect was then checked using exact frame count and finite, nonempty lanes. The first default-session run lacked initialized udev records; the passing rerun used stock sound rules and actual kernel events. Both initial failures remain in the evidence.Draft / do not merge yet. The matching J813 userspace work and global LSM2 qualification gate remain unresolved. These silent kernel checks do not establish thermal/excursion protection or qualify audible use of the new engine. This integration deliberately preserves the existing kernel floor and userspace gate requirements.