Skip to content

session: add the J873g (Mac mini, M6) fixture and AID48 playback row - #285

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
sithglan:feat/j873-aid48
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
sithglan:feat/j873-aid48

Conversation

@sithglan

Copy link
Copy Markdown
Contributor

What: Add the J873g (Mac mini, M6, T8152) session fixture (packaging/session/fixtures/j873.json), generated PipeWire/WirePlumber configs (sgv2-j873.conf, 60-sgv2-j873.conf), AID48 playback_rows entry in packaging/session/gate.json, and hardware integration record in docs/J873-INTEGRATION.md. Merge order: depends on aurora-silicon/aura#548 (or #115/#287) and aurora-silicon/linux#3434.

Tested: Mac mini (M6, J873g, T8152), firmware 27.2, with Aura 1.0.0b17-gc83bcb7f (aurora-silicon/aura#548), Linux 7.3.0-aurora-j873-speaker+ (aurora-silicon/linux#3434 18a0e3bcd3f7), and speakerguardd v2 5bd2d652 (plus this commit d34eebc5 whose derived wiring hash d1d62e8a0aaaef3d matches the live self-check byte-for-byte), using the Mac's own AID48 (26B123) bundle compiled with --voicing-pre:

  • Silent self-check (speakerguardd-selfcheck run --switch-interface): PASS (derived-nosense, wiring d1d62e8a0aaaef3d, params 23c445a123c3), Amp Gain Volume capped at 15, Speaker Volume locked at floor, no Speaker Sense PCM.
  • Full 420 s protected playback ladder (0.3 / 0.6 / 1.0 for 60 / 60 / 300 s, -8 dBFS RMS stereo pink noise) through sgv2#voicing-1ch -> sgv2#1ch (Atsp) -> hw:CARD=AppleJ873,DEV=1: 39,990 engine records (512-frame quantum), lost = 0, health_or = 0x0, open-loop coil model climbed from 50.00 C to 114.99 C max (tmg_max = 84.52 C, pmod_max = 3.402 W, gain = 0.00 dB) and cooled smoothly on stop; kill -9 on speakerguardd at 300.2 s immediately withdrew protection (Speaker Volume -> 0), supervisor offered saved thermal state (106.45 C -> 105.63 C) and re-granted in 0.488 s (0 starts refused), idle released cleanly to muted floor; Amp Fault Status = 0,0,0 throughout, 0 kernel audio/DART errors, 0 failed units.
  • Host checks at d34eebc5: packaging/session/gen.py --check, pytest -q packaging/session/ (306 passed, 1 skipped, 38 subtests passed), ./tools/check-clean.sh clean.

Risk: two-way door — adds the J873g offline fixture, generated configs, documentation, and AID48 playback row record; no existing board's behavior or policy changes.

Not yet: Formal macOS 26B123 voicing parity attestation in packaging/session/parity.json still requires running tools/diffrig/aidgate/attest-build.sh on a booted macOS 26B123 host (note: the J873g 26B123 AID48 voicing key 463b0cb03eb03b1c378da4bd4e82f036a7c50a4a6c1dafb1b07c071afb33b7b4 and law 5740f31784993ecbe6e1236cb26341430ca0c64e66fb596847ee5e0a9b28d3b0 match the passing 26A428 AID48 entry already in parity.json, +0.143 / -0.011 dB across 36 cells).

Details
  • packaging/session/fixtures/j873.json: public wiring.read_dtb() output from t8152-j873g.dtb (ASoC/arm64: enable the Mac mini M6 (J873g) speaker behind protection linux#3434) + AID48's single full-range Atsp lane structure (no tuning values).
  • packaging/pipewire/sgv2-j873.conf and packaging/wireplumber/60-sgv2-j873.conf: generated by packaging/session/gen.py (sgv2.wiring = d1d62e8a0aaaef3d).
  • packaging/session/gate.json: adds the AID48 playback_rows entry covering loud-step and thermal-ramp.
  • docs/J873-INTEGRATION.md: summarizes J873g speaker topology, prerequisites, fixture, and live ladder evidence.
Evidence
  • python3 -I packaging/session/gen.py --check: exit 0.
  • pytest -q packaging/session/: 306 passed, 1 skipped, 38 subtests passed.
  • ./tools/check-clean.sh: exit 0.
  • Live J873g 420 s ladder (engine-watch, 0.3 / 0.6 / 1.0 for 60 / 60 / 300 s, -8 dBFS RMS pink noise):
    • 39,990 records, lost = 0, health_or = 0x0, 512-frame quantum (94 calls/s, 48,128 frames/s).
    • ol_temp_c: 50.00 -> 114.99 C max (tmg_max = 84.52 C, pmod_max = 3.402 W, min_gain_db = 0.00 dB).
    • kill -9 at 300.2 s: Speaker protection withdrawn: owner gone, Speaker Volume -> 0, thermal: offering the state saved 0 s ago (106.45 -> 105.63 C), re-grant in 0.488 s (refused_delta = 0), Amp Fault Status = 0,0,0.
    • Idle release: Speaker protection withdrawn: released by the owner, Speaker Protection = 0, Speaker Volume = 0, 0 failed units.

Add the J873g (Mac mini, M6, T8152) session fixture derived from the
compiled t8152-j873g.dtb (aurora-silicon/linux#3434) and AID48's single
full-range Atsp lane structure (wiring hash d1d62e8a0aaaef3d), generate
packaging/pipewire/sgv2-j873.conf and packaging/wireplumber/60-sgv2-j873.conf,
record the 420 s AID48 protected playback ladder row in
packaging/session/gate.json, and document the hardware verification in
docs/J873-INTEGRATION.md.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
@sithglan
sithglan requested review from a team as code owners November 27, 2026 20:31
@sithglan

Copy link
Copy Markdown
Contributor Author

The macOS 26B123 (and 26B131) voicing parity attestation block noted in Not yet is now open in #286 (53/57 pass for both builds, including AID48 at full volume +0.143 / -0.011 dB and sliders 0.7 / 0.46 / 0.25, verified live via aurora-speaker-tuning voicing-check --attestations against the J873g 26B123 bundle).

@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at d34eebc5: not ready yet

Check Detail
CI at head ok 9 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at d34eebc5
Conflicts ok none
PR text ok Risk: two-way · — adds the J873g offline fixture, generated configs, documentation, and AID48 playback row record; no existing board's behavior or policy changes.

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at d34eebc5

Blockers: none in this repo (note: aurora-silicon/aura#548 is merged; aurora-silicon/linux#3434 is still open — coordinate landing order with linux#3434).

Checked: no Apple material, no AI attribution, no hardcoded safety limits (all limits read from the Mac's ADT/ESP bundle, generic box names only), no chip/board gates, human Signed-off-by, Clean-publish check and all 10/10 CI checks green, live J873g hardware verification row PASS (wiring hash d1d62e8a0aaaef3d match, silent self-check, 420 s protected playback ladder with 0 lost records and 0 amp faults, kill -9 withdrawal and thermal-state re-grant).

Evidence
  • Inspected docs/J873-INTEGRATION.md, packaging/session/fixtures/j873.json, packaging/session/gate.json, packaging/pipewire/sgv2-j873.conf, and packaging/wireplumber/60-sgv2-j873.conf.
  • Verified fixture contains only DT-derived wiring and generic Atsp topology without Apple tuning values; Clean-publish check, policy, selftest, Rust, Rig tools, Session side, and aurora-speaker-upgrade all PASS at d34eebc5.
  • Hardware row on J873g (T8152 Mac mini M6, firmware 27.2, AID48 26B123) verified silent self-check (derived-nosense, wiring d1d62e8a0aaaef3d), full 420 s 0.3/0.6/1.0 protected playback ladder (39,990 records, lost=0, health_or=0x0, Amp Fault Status = 0,0,0), and kill -9 immediate withdrawal + clean re-grant in 0.488 s.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at d34eebc5.

Blocker: none.

Checked:

  • Read the whole diff (fixture, both generated confs, gate.json, docs). Head is one commit on 5bd2d65. It has a DCO sign-off and no AI attribution.
  • At the head: python3 -I packaging/session/gen.py --check exit 0. pytest -q packaging/session/ tools/diffrig/aidgate/test_attest.py gave 314 passed, 1 skipped, 38 subtests. ./tools/check-clean.sh was clean.
  • Hand-edited each committed j873 conf (60-sgv2-j873.conf and sgv2-j873.conf DEV=1 -> 3), and --check flags both as stale. So the confs are exactly what gen.py derives from fixtures/j873.json (wiring d1d62e8a0aaaef3d, card AppleJ873, aop-dma, 1 amp, 0 sense, sgv2#1ch).
  • Compared the fixture with t8152-j873-audio.dtsi at linux#3434 head 18a0e3bc. Compatibles, model, dma-names cout/cin/spkr (no sense), codec nodes @4b/@38 and imon 2/vmon 0 all match. The fixture carries no tuning values.
  • gate.json at the head vs 5bd2d65: the only change is the new playback_rows.AID48. Every other key and AID row is byte-identical. The row has the same shape as AID12/AID37 (date/board/what/covers/evidence, both covers). units_at_parity and units_need_playback_rows are untouched. gen.playback_rows("AID48") now returns the row and AID42 stays unproven. AID48 is atsp, not lsid, so the row has no provisioning effect. It only marks AID48 proven for aurora-speaker-upgrade.
  • Merging before linux#3434 is safe. Nothing in this PR acts without a live J873 card. The self-check derives the wiring from the live DT, the supervisor takes its machine from the self-check bind and refuses any other card id, and install-dev.sh refuses without the card and its Speaker Protection control. Main's kernel keeps the J873 speaker disabled (macaudio_speakers_allowed is false until #3434).
  • git merge-tree against main bf15a88 and against #286 is clean. Main + #285 + #286 merged: gen --check 0, the same pytest result (314/1/38), check-clean clean, cargo parity_law 1 passed, sgv2-supervisor tests 115 + 4 passed.

Non-blocking:

  1. The row has no V/I sense (the Mac has none) and no mic capture. It proves the thermal model and the kill/regrant path, not acoustic level. AID12 (J473) is the precedent for a desktop with no mic.
  2. The open-loop coil model peaked at 114.99 C with gain 0.00 dB, so the limiter never engaged. The row shows headroom, not limiting.
  3. The row and fixture are pinned to linux#3434 at 18a0e3bc. If its DT changes, the live wiring hash changes and the self-check refuses (fail-safe), so refresh then.
  4. After #286 lands, the parity prerequisite text in docs/J873-INTEGRATION.md is stale.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@aurora-silicon/core @aurora-silicon/omarchy-mac @DjDeveloperr: merge notice. This has an independent adversarial review (no blocking findings, App approval at d34eebc5), CI 9/9 green and the J873g row at the head. Unless someone posts a blocking finding, it merges after 06:02Z. Inert until linux#3434 lands: the self-check derives wiring from the live DT, and main's kernel keeps the J873 speaker disabled. Revert: git revert -m1 <merge> (removes the J873 fixture/confs and the AID48 row).

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at d34eebc5

Blockers: none.

Checked: Read the whole diff (fixture, both generated confs, the gate.json row, the doc) and tried to make it grant playback where protection isn't proven. It doesn't. atsp was already in units_at_parity on main, and playback_rows gates only LSID provisioning (held_for_playback_rows, units_need_playback_rows = ["lsid"]) and aurora-speaker-upgrade's automatic move. So the AID48 row qualifies nothing by itself. The packaged path does not read the committed fixture or confs either: speakerguardd-selfcheck regenerates both from the live self-check record. The J873g is first admitted when linux#3434 lands, not by this PR. The fixture carries only DT facts and the lane structure. The fixture's aid is -, so an offline voicing_pre build of it refuses (speaker_identity). The row's numbers are our own measurements (model temperatures, power, counts), and the two hashes in the doc are bundle digests. No tuning values. The row has the same shape as AID12/AID37. Treating the J873 as not in voicing_pre (offline interim mode, runtime compiles the full chain) is the same convention as the J815. CI 10/10 green at the head. The hardware row is at the head in the body.

Evidence
  • Head d34eebc5 (one commit on 5bd2d65): python3 -I packaging/session/gen.py --check exit 0. pytest packaging/session tools/diffrig/aidgate 314 passed, 1 skipped, 38 subtests (test_timing.py skipped locally: it needs numpy). packaging/upgrade tests 81 passed, 1 skipped. tools/check-clean.sh exit 0.
  • main bf15a88 + #285 + #286 merged cleanly: gen --check 0, and cargo test -p aurora-speaker-tuning all green (94 unit tests plus every integration binary, including parity_law).
  • Live voicing_pre=true conf, generated with the AID48 identity set in memory: sgv2#voicing-1ch is its own filter-chain in front of alsa_output.platform-sound.RawSpeakers (protect stage, wiring d1d62e8a0aaaef3d), the same layout as every other board.

Non-blocking:

  1. With #278 closed, the J873g's low-frequency limit now comes only from the bundle's voicing stage. That stage sits in front of the protect stage, and Atsp is thermal only on this sense-less speaker. Whether a no-sense speaker needs its high-pass enforced in or checked by the protect stage (the #222/#278 policy question) is still open for the owner. It applies when linux#3434 enables the speaker, not to this PR.
  2. install-dev.sh j873 installs the committed interim conf, which loads /usr/share/asahi-audio/j873/graph.json. If asahi-audio has no j873 graph, the dev path plays with no voicing (so no high-pass). The packaged path is unaffected.
  3. The _playback_rows_doc text says a row is measured with V/I sense and the Mac's microphone. This row has neither, because the Mac has neither. Worth one line in the doc so the next sense-less desktop row isn't questioned.

@RyanTheTide
RyanTheTide merged commit 872c205 into aurora-silicon:main Nov 28, 2026
13 checks passed
RyanTheTide added a commit that referenced this pull request Nov 28, 2026
The microphone tests need every fixture to say whether its Mac has an
array. The J873g (Mac mini, M6) fixture came in with #285 after this
branch was cut, so it had no "mic" key and test_wiring failed once
main was merged in.

Its AOP audio node at linux#3434 (23235970) lists dma-names
"cout cin spkr" with no microphone stream, and read_mic_dtb() on that
compiled t8152-j873g.dtb returns None. So "mic" is null, as on the
other desktop Macs.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
joshuaswarren pushed a commit to joshuaswarren/speakerguardd that referenced this pull request Nov 28, 2026
…nding

After aurora-silicon#285 (J873g fixture and 420 s AID48 playback ladder) and aurora-silicon#286 (macOS 26B123/26B131 Audio Unit voicing parity attestation), J873g is no longer a model-less speaker awaiting a standalone high-pass fallback from linux#1862: it compiles its full AID48 Atsp protection model and pre-protection --voicing-pre chain (compiler-gaps: none, sgv2#voicing-1ch ahead of sgv2#1ch).

Update the J873g row in docs/CAPABILITIES.md (while keeping the general standalone high-pass admission item open for any future speaker without a compiled model/voicing chain) and update the now-landed 26B123/26B131 attestation bullet in docs/J873-INTEGRATION.md.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants