Skip to content

linux-aurora v272-26 candidate: speaker V/I sense from a driver-owned ring (backport aurora-silicon/linux #3084) - #35

Merged
TripleU613 merged 2 commits into
mainfrom
linux-aurora-v272-26-sense-ring
Nov 28, 2026
Merged

TripleU613 merged 2 commits into
mainfrom
linux-aurora-v272-26-sense-ring

Conversation

@betizzel

Copy link
Copy Markdown
Owner

What

Kernel v272-26 candidate: patches 0014-0017 backport aurora-silicon/linux #3084 (Erik Bourget, merged on upstream main after our 7f00dc6bc52c pin), four commits unchanged. With them our sound/soc/apple/t8152_aop_audio.rs is byte-identical to upstream main's.

Why

After the v272-24 update, audio from a video sounded dull on our J714s and the right side dropped out. The amps were healthy: no faults, same gains, same feed on both sides. The problem was the speaker protection's feedback: the 12 V/I sense words of the six amplifiers come back with no frame marker, and every time PipeWire restarted the sense capture under a running serializer the ADMAC resumed at an arbitrary word offset. speakerguardd v2 then modelled each speaker from another amplifier's voltage and current (and, at odd shifts, swapped V and I) until the next restart. Its boot-time switch test can't see this, because the rotation happens later.

#3084 serves the sense from a driver-owned ring that is armed only on a stopped, verified-pw0 serializer, so frame offset 0 is always slot 0.

Tested on our J714s (M5 Pro 14")

Tone test: 4 kHz at -22 dBFS on one side, reading the sense from the protect stage's input and finding which V/I pair carries the tweeter (shift 0 is right). Restarts were forced by stalling PipeWire for 150 ms.

Kernel Steady shifts seen Amp faults
v272-24 2, 3, 4, 6, 10 (kept until the next restart) 0
v272-26 0 in every steady stretch, two runs, six forced restarts 0
  • After 2 of the 6 forced restarts on v272-26 the shift was off for under a second (4, then 2) and returned to 0 with no further restart. Not a blocker; to report on #3084, whose PR lists live protected playback under speakerguardd v2 as not yet run.
  • First boot: speakerguardd v2 recompiled its parameters and its silent switch test passed on 7.3.0-17.v272-26-ARCH; protection is granted, and the owner hears both sides normally.
  • Built natively on the J714s (makepkg, clang 23.1.5, Rust 1.98.1); recipe checksums verified; the combined patch equals patches/j714s-27.2/linux/*.patch.

Not done

  • Not published to the [omarchy-m5] repo.
  • Not tested on a J716s (same realign_sense/ring path).
  • The same pkgrel line follows TripleU's unpublished v272-25 candidate (0013, camera indicator), so this one includes it.

…from a driver-owned ring (aurora-silicon/linux #3084)

- Backports Erik Bourget's #3084 (merged on main after our 7f00dc6 pin), four commits unchanged;
  t8152_aop_audio.rs is then byte-identical to upstream main's.
- Fixes the J714s's 12 V/I sense words rotating across the six amplifiers whenever PipeWire
  restarted the sense capture (shifts of 2 to 10 seen on v272-24), which had speakerguardd v2
  protecting each speaker on another's voltage and current.
- On our J714s on v272-26: shift 0 in every steady stretch over six forced restarts; after 2 of 6
  the shift was off for under a second and recovered by itself. Amp faults 0. Not published.
… amplifier's own V/I sense

- Plays a faint 2.5 kHz tone (-34 dBFS, asks first) and finds which sense word carries it against
  the self-check's map; forced restarts, fresh starts and the right side. Exit 0/1/2.
- Channel map, card and sink come from speakerguardd's own files, so it runs on any v2 machine.
- Fresh-install checklist row; what-works notes the first-boot speaker delay and the sense fix.
@betizzel

Copy link
Copy Markdown
Owner Author

Added scripts/speaker-sense-test.sh, which checks that speakerguardd v2 reads each amplifier's own V/I sense. It takes about 45 s, plays a faint 2.5 kHz tone and asks first. It reads the channel map, card and sink from speakerguardd's own files, so it should run unchanged on a J716s.

@ja-818, if your J716s runs speakerguardd v2, could you run it once on your current kernel and once on this one, and paste both outputs here? Pause other audio first. Before this kernel, a J714s showed non-zero shifts after any PipeWire restart. The J716s uses the same driver path (t8152_aop_audio, 12 sense words), so I'd expect the same, but nobody has checked.

The J714s result is also posted on the upstream PR: aurora-silicon/linux#3084 (comment)

@TripleU613

Copy link
Copy Markdown
Collaborator

Checked against upstream: 0014-0017 are the four commits of aurora-silicon/linux #3084 (edf11ddd623b, b7028feb2f7a, cf330a1c264c, 5f1321879f34), and the fifth commit there is only a merge of main. The PR doesn't touch speakerguardd. The script only reads its files and asks before it plays the tone. It merges cleanly.

Since v272-26 also carries 0013 (the camera indicator), it replaces our unpublished v272-25 candidate. Plan: merge after the owner's review, build on ush, and run the camera indicator check and your sense test on our J714s in the same boot. If both pass, publish v272-26 to the [omarchy-m5] repo. The short shifts after 2 of the 6 forced restarts are worth reporting on #3084.

🤖 Generated with Claude Code

TripleU613 added a commit that referenced this pull request Nov 28, 2026
@TripleU613
TripleU613 merged commit 414d11b into main Nov 28, 2026
@TripleU613
TripleU613 deleted the linux-aurora-v272-26-sense-ring branch November 28, 2026 23:48
andyholst pushed a commit to andyholst/omarchy-m5 that referenced this pull request Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants