Repository navigation
speaker tuning: collect the BuzzKill matrix only on request until speakerguardd reads it - #168
Conversation
…akerguardd reads it Since #119 the Python collector adds a `buzzkill_quadrature` record (and buzzkill-quadrature.bin) to every bundle whose AudioDSP holds the matrix, which is every macOS build seen so far. speakerguardd v2 parses a schema-2 manifest with deny_unknown_fields and no release reads the record yet (speakerguardd#138 adds the reader), so every release up to 1.0.0alpha.1-42 refuses such a bundle: "not a schema-2 manifest: unknown field `buzzkill_quadrature`". aurora-speaker-upgrade --collection then refuses the switch, and a Mac whose kernel has only the v2 interface, given the bundle with install-linux.sh, keeps its speakers at the kernel's floor. Seen on a J713 (AID37) and an M4 Mac mini (J773g, AID36). The native installer does not collect the matrix, so its bundles are not affected. Collect the matrix only when asked (collect/collect-linux --buzzkill-matrix, AudioTuningFWCollection(buzzkill=True)), as the native installer does, until a speakerguardd release reads it; then flip COLLECT_BUZZKILL. A bundle that already carries it is still verified and read. install-linux.sh installs such a bundle without the matrix by default (without_buzzkill: the bundle exactly as collected without it) and says so; --keep-buzzkill-matrix keeps it. Signed-off-by: Diljit Singh <hey@djdev.me>
|
End to end on an M4 Mac mini (J773g), 2026-11-19. Fresh collections made on the Mac's own macOS (26B123 tunings, AID36):
Each was run on Linux through
18a6a571… is byte for byte the blob of the bundle this Mac's v2 has played protected audio on since this morning. The same Mac also reproduced the field case through route 0. Its ESP bundle, installed this morning with #168's 🤖 Generated with Claude Code |
|
The "Conformance matrix" failure in run 44559038093 isn't a test result. The step stopped with
I've re-run the failed job (attempt 2). 🤖 Generated with Claude Code |
|
Independent review (pre-merge): head Verdict: ready to merge.
🤖 Generated with Claude Code |
Since #119 (merged 2026-11-13) the Python collector writes a
buzzkill_quadraturerecord andbuzzkill-quadrature.bininto every bundle whose AudioDSP has the matrix, which is every macOS build seen so far. speakerguardd v2 parses a schema-2 manifest withdeny_unknown_fields, and no release reads that record yet (speakerguardd#138, still a draft, adds the reader). So every speakerguardd-v2 release up to 1.0.0alpha.1-42 refuses such a bundle:What users see:
aurora-speaker-upgrade --collectionrefuses the switch. The legacy protection keeps the speakers.install-linux.shstopsspeakerguardd-provision, and the speakers stay at the kernel's floor (silent).It has been seen on a J713 (AID37, reported on speakerguardd#138) and on an M4 Mac mini (J773g, AID36). Macs with short lsm2 presets have to take this route for the lsm2 fill, so they can't get v2 at all today. The native installer (Alpha 20 to 22) doesn't collect the matrix, so the bundles it installs are not affected.
#138 planned this merge order: speakerguardd#136, then speakerguardd#138, then this repo's #119. This PR restores that order on the collector side and keeps the data path:
asahi_firmware/audio_tuning.py: the matrix is collected only on request, throughAudioTuningFWCollection(buzzkill=True)(defaultCOLLECT_BUZZKILL = False). That matches the native installer.update()still verifies and reads a bundle that already carries the matrix.without_buzzkill()returns exactly the bundle the collector writes without the matrix.tools/speaker-tuning:collectandcollect-linuxtake--buzzkill-matrixfor rigs.installinstalls a bundle that carries the matrix without it, and says so.--keep-buzzkill-matrixkeeps it.COLLECT_BUZZKILL.speakerguardd gets a companion PR so that collections already made since 11-13 are accepted by
aurora-speaker-upgrade. That PR touches no file the voicing law hashes.Tests, all synthetic:
python3 -m unittest discover -s testspasses, 193 tests (189 before). The new tests cover:without_buzzkill(collected with)equals the bundle collected without the matrix;installdrops the matrix by default, then reports "identical" on a second run;install --keep-buzzkill-matrixkeeps it.🤖 Generated with Claude Code