Repository navigation
mic: carry split/join regions of per-microphone boxes (14-inch MacBook Pro designs) - #281
Conversation
…e boxes Some microphone graphs fan the channels out with a split box, give each microphone its own gain box and gather them again with a join before the suppressor. Compile such a region as one sub-graph stage with the nested graph compiler, which already flattens split/join routing, gains and filter boxes. A region with a nested split, a second join or an input from outside refuses. This lets the 14-inch MacBook Pro designs compile. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
The new region validates cross-boundary audio wires, but drops graph parameters and links and gives nested() an empty parent parameter map. An outer graph default or parameter-box link targeting a gain inside the split/join region originally contributes to the top-level static overrides. In the flattened path it can be discarded while the stage is marked Exact. Please carry the resolved overrides into the region or refuse parameter/property links that cannot be preserved. Add a synthetic split/join test in which an outer default drives a trim and verify its rendered gain. The saved-state trim test covers a separate path. The target 14-inch microphone row remains open.
…region The region compiled from the split to the join dropped the graph's parameters and links and gave the nested compiler no parent values, so an outer graph default or parameter link driving a box inside the region was lost while the stage was reported exact. Keep the parameter declarations and the links into region boxes, pass the resolved graph values, and refuse a parameter link that crosses the region boundary or any property link into it. Test that an outer default driving both trims renders their gain. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Addressed the requested change at a540ef9:
|
There was a problem hiding this comment.
The new head carries resolved graph parameters and links into the split/join region and refuses crossing parameter links and unsupported property links. The new synthetic fixture drives both trims from an outer default with saved gain at zero and checks that the rendered output doubles. That covers the original loss of static overrides. Code approved by source inspection. Hold for hosted checks and the exact 14-inch microphone row.
|
Hardware row at a540ef9: K114s (14-inch M5 Pro OLED, Linux 7.3.0-k114sstack, read-only, nothing installed, recorded or played). sgv2 is not provisioned there, so there is no installer bundle; the row compiles its own design from the pinned 26B8125 tuning copied to /var/tmp. The board comes from its device tree (apple,k114s). aarch64 builds:
The microphone PCM matches: |
|
Code-owner review requested: @aurora-silicon/core @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers. Microphone compiler only (speaker sources, engine and blob format untouched). The different-lane App approval and the K114s hardware row are at a540ef9, and CI is green. If no code-owner review arrives, this may be merged under the 6-point rule no earlier than one hour after this ping. Revert: a plain |
|
Merging under the 6-point rule (COMMON-RULES 01:54, permanent 11-28 09:29), all six checked at a540ef9:
Checked locally: main merged with this head passes all 19 aurora-speaker-tuning test binaries, and the 14-inch, K114s, Neo, J615 and 16-inch designs compile. Rationale: compiler-only; designs without split/join regions are byte-identical. Revert: |
What: The 14-inch MacBook Pro microphone graphs fan the channels out with a
splitbox, apply a per-microphone gain box to each, and gather them again with ajoinbefore the suppressor. The compiler refused those graphs ("off the single path"). It now compiles such a region as one sub-graph stage, using the nested-graph compiler that already flattens split/join routing, gains and filter boxes (from the nested graph used by the 13-inch Air design).setstatement the shared graph parser does not know yet (a parser change for that would touch the speaker path's hash, so it is a separate change);Tested:
At 131c889: aurora-speaker-tuning mic tests pass, including a new synthetic test: +6.02 dB trims on both microphones between a split and a join double the output.
parity_lawpasses;cargo fmt --check,cargo clippy --workspace --all-targets -D warningsandtools/check-clean.share clean.Offline parity, ours versus macOS's own graph engine on the same stimuli (hosted black-box on a lab Mac):
Lag 0, level within 0.02 dB on broadband input.
Graphs without a split are unchanged: on the saved J616s and J413 captures, the output is bit-identical to merged main (max relative error 0.0).
Risk: two-way · compiles graphs that used to refuse; other graphs are byte-for-byte unchanged. A plain revert undoes it.
Not yet: