Repository navigation
ASoC: apple: macaudio: give the J604's tweeters their corner on a grant - #1922
davishann15-commits wants to merge 1 commit into
Conversation
The J604 (MacBook Pro 14-inch, M4) has the J614s's speakers: two woofers and a tweeter per side in the J616s frame. When speakerguardd v2 holds them and declares the crossover, the J614 and J616 configs give the tweeters their device tree playback corner back (tweeter_hpf_granted). The J604's does not, so its tweeters keep the 800 Hz policy floor under v2 as well, which removes the low-frequency thermal pilot from them. Set tweeter_hpf_granted for the J604, as for the J614s. Nothing changes for speakersafetyd, whose unlock never lifts the floor, or for a v2 owner that does not declare the crossover, and every withdrawal restores the floor. Assisted-by: LLM Signed-off-by: Davis Hann <davishann15@gmail.com>
|
Retested on Disclosure: an LLM (Claude) ran these tests on my Mac and drafted this. I did the listening and looking, reviewed it, and am responsible for it. Assisted-by: LLM |
|
Blockers: 1.
I checked the code: HW row: already covered on the J604. Add a regression line from that boot: 0 AVC, 0 failed units, 0 new kernel errors. Assisted-by: LLM (Claude:Opus 5.5) |
|
integration/aurora (110861f) still lacks tweeter_hpf_granted in macaudio_j604_cfg, while the J614s/J616s configs have it, so this line is still needed; the commit applies cleanly to 110861f. The J604 retest on 7c71d6d covers the behaviour. @davishann15-commits could you address the two points from the last review (the commit message, and the comment above macaudio_j604_cfg that still mentions only speakersafetyd) and add a regression line from that boot (0 AVC, 0 failed units, 0 new kernel errors)? Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal adversarial §1–§6 pre-PR checklist review at 98a58176074b8acce830647ed9f9f0b8bff4f5f9 (against live integration/aurora 70a00e583b03; still needed — macaudio_j604_cfg at sound/soc/apple/macaudio.c:4304-4316 still lacks .tweeter_hpf_granted = true).
Checklist Summary
- §1 No model gating: Pass — matches
macaudio_j614_cfg/macaudio_j616_cfgplatform descriptor pattern for the J604's 2W1T SN012776 layout. - §2 Production-ready, no hacks: Pass — default command line, 2-line change.
- §3 Safety: Pass —
macaudio_spk_take_hpfs()reads the tweeters' DT playback corner from the Mac's ADT/DT before fixup installs the 800 Hz policy floor; it only restores that corner whilespeakerguardd v2holds the speakers and explicitly declares the crossover (never forspeakersafetyd), and every withdrawal restores the 800 Hz floor along with the safe level. - §4 Clean-room & attribution: Blocked — see Blocker #1 below.
- §5 Evidence: Incomplete — see Blocker #2 below.
- §6 Naming & Live CI: Pass —
host-testsis green (1/1) at98a58176074b(will re-run once the commit is amended).
Blockers
- §4 Commit attribution (hard rule): Commit
98a58176074bcontains anAssisted-by: LLMtrailer in the git commit message. Perpre-pr-checklist.md§4, git commit messages must carry human author/committer and humanSigned-off-by:only (zero AI trailers in commits). Please amend the commit message to removeAssisted-by: LLM(keeping the disclosure in the PR description as-is). - §5 Regression counts owed: The J604 hardware tests (
2129f55102faandintegration/aurora7c71d6df65) verifySpeaker Protection Crossover = on,2 HzHPF while playing underspeakerguardd v2,800 Hzwhen idle, clean playback, and peak 36 °C. Please add the standard §5 regression counts from the J604 boot (SELinux denials or N/A if Arch, failed systemd units, new kernel errors), and note the exact updated head once amended.
Non-blocking Nit
sound/soc/apple/macaudio.c:4298-4303: the comment abovemacaudio_j604_cfgstill mentions onlyspeakersafetyd; updating it to mention thespeakerguardd v2grant path (likemacaudio_j614_cfg) would keep it accurate.
Assisted-by: LLM (Gemini 4 Neon)
Gives the J604's tweeters their device-tree playback corner back while speakerguardd v2 holds the speakers and declares the crossover, as the J614 and J616 configs already do (
tweeter_hpf_granted). It follows #1888, which bound the J604 speakers without it. Without it, the J604's tweeters stay at the 800 Hz floor thatmacaudio_fixup_controls()sets for SN012776 tweeters, even under v2. That removes the low-frequency thermal pilot from them, as the comment ontweeter_hpf_granteddescribes. This changes nothing for speakersafetyd: its unlock never lifts the floor.Testing. On a J604 (Mac16,1, os-fw 26.6.2, system-fw 27.0, aura 1.0.0b13), I tested this end state on linux 2129f55 (alarm-aurora#310's pin) with the equivalent of #1888 plus this line. The amps' values came from the Mac's own ADT; nothing was hardcoded. Userspace was speakerguardd-v2 1.0.0alpha.1-40 and aurora-speaker-upgrade 0.1-0.14, with this Mac's own tuning (AID30, route 1 from the installed macOS):
aurora-speaker-upgrade --check: PASSj604, AID30164e7a0d23003bab(derived, the same as the j614s); voicing within +0.010/-0.102 dB of the 25G83 Audio Unitsspeakerguardd v2 owns the speakers, thenprotection ready: every check holds, granted while a stream plays.Speaker Protection Crossover= on, andLeft/Right Tweeter HPF Corner Frequency=2 Hz, the corner the amps got from the ADT. Without this line they would read800 Hz.I haven't built this exact commit on today's
integration/aurora. The diff is the one line, applied on top of #1888'smacaudio_j604_cfg. I can rebuild and retest on the tip if you want.Assisted-by: LLM