Repository navigation
ASoC: apple: macaudio: bind the J614s speakers for speakerguardd v2 - #1665
Conversation
The J614s has the J616s's six SN012776 amps, slots and frame. The boot loader copies each amp's ADT speaker-config row (level 15, V/I slots 0/2 through 20/22, which match the device tree). Its speakers were kept off, with no link bound, waiting for a protection profile. Bind them as on the J616s: enable the speaker card and its six amps in the J614s tree and the speakers in macaudio_j614_cfg, with the J616s's tweeter corner grant. Playback still waits for a protection lease (macaudio_spk_admitted()), which speakerguardd v2 takes only once it has compiled and self-checked this Mac's own tuning. The legacy protection has no J614 profile, so without v2 the amps stay at the floor. The J604 (MacBook Pro 14" M4) shared the J614s's configuration. It keeps its speakers off with a configuration of its own. Signed-off-by: Petr Škuta <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Additional testing on another J614s (14-inch M4 Pro), running NixOS. I applied the changes from Tuning was collected from this Mac's macOS 26A434: AID34, speaker ID 3, with per-unit calibration. The existing voicing gate passed; the compiler's On the final local build:
An earlier userspace build also passed idle suspend/resume, PipeWire restart, and helper/supervisor freeze tests with zero-sample playback. Freezing the helper caused withdrawal and all six amps to mute, observed at about 515 ms. Freezing the supervisor caused kernel lease expiry and mute, observed within 35 ms. Both recovered after resuming the process. These checks predate the final V/I initialization fix and need repeating on that build. Userspace findings, separate from this kernel PR:
Those fixes are still local and uncommitted. Headphone switching, suspend during playback, sustained thermal/load testing and full-volume playback remain untested. No J604 hardware testing. |
RyanTheTide
left a comment
There was a problem hiding this comment.
The speaker link binds but playback still waits for the protection lease, and the J604 keeps its speakers off. Small follow-up: the comment above the "apple,j614-macaudio" match entry still says the speakers are off until bring-up. Thanks for the second J614s result as well.
8deaa1c
into
aurora-silicon:integration/aurora
The J614c (MacBook Pro 14-inch, M4 Max) kept its speaker card and six SN012776 amps disabled, as the J614s did before aurora-silicon#1665 brought its speakers up. The J614c has the same 14-inch chassis and speakers: macOS on a J614c reports acoustic-id 34 (0x22), the J614s value, and a six-record speaker-thiele-small. Drop the disabled overrides so the J614c binds the J614 card (apple,j614-macaudio, macaudio_j614_cfg) over the shared J614c/J616c amp description. Protection is unchanged: playback still waits for a speakerguardd v2 lease, and without it the amps stay at the floor. Tested on a J614c with kernel-aurora 7.3.0-40 (9125b31) plus this change: the Stage 2 trial committed, AppleJ614 binds with all six amps and both protection interfaces, aurora-speaker-upgrade --check passes with this Mac's AID34 tuning, and the speakers play under speakerguardd v2. Signed-off-by: mouthmantra <[email protected]>
Binds the MacBook Pro 14" M4 Pro (j614s) speakers so that speakerguardd v2 can protect them, following the speaker team's request to use speakerguardd v2. Tracking issue: #1591.
Change
t6040-j614s.dts): the speaker card and its six SN012776 amps are no longer disabled. They use the shared j614/j616 description.macaudio_j614_cfg:enable_speakers = trueand the j616s'stweeter_hpf_granted. The rest was already identical tomacaudio_j616_cfg.macaudio_j614_cfg. It gets its ownmacaudio_j604_cfgwith the speakers still off, so its behaviour does not change. It is added to the amp-level KUnit list.Playback still waits for a protection lease (
macaudio_spk_admitted()). The legacy protection has no J614 profile, so without speakerguardd v2 the amps stay at the floor.Why the shared description is right for j614s
This was checked against the j614s ADT:
0x38/0x39/0x3ai2c@4290140000x38/0x39/0x3a0x3b/0x3c/0x3di2c@42901c0000x3b/0x3c/0x3d0x37/0x36/0x34,0x35apple,speaker-configrows give level 15 and I/V slots 0/2, 4/6, 8/10, 12/14, 16/18 and 20/22, the same as the DT'sti,imon/vmon-slot-no.Testing
j614s, os-fw 26.6.2, kernel built from this commit plus #1585/#1588/#1654 on
f9f14be0f. The DTB was deployed through an aura-try trial and committed.MacBook Pro J614appears with all six amps' controls.Speaker Protection InterfacereadsSpeaker Volume Unlockand no protection runs, so the speakers stay silent.aurora-speaker-upgrade --check: PASS. Identityj614s, AID34; tuning from this Mac's macOS 26B131 (route 1); compile; silent switch test; self-check (kernel: both interfaces; wiring164e7a0d23003bab, derived; voicing within +0.139/-0.102 dB of macOS 25G83 Audio Units).aurora-speaker-upgrade(switch): done.speakerguardd v2 owns the speakers, and the supervisor reportsprotection ready: every check holds, granted while a stream plays.Needs, outside this repo:
MacBook Pro J614.conffor UCM, the same as J616's (alsa-ucm-conf-asahi PR to follow).Speaker Playback Muxdefault (Primary) blocks PipeWire's start on a first boot with v2. This is reported on j614s (MacBook Pro 14" M4 Pro): internal speakers need a J614 protection profile #1591.Not tested: suspend/resume with speaker playback, the headphone/speaker switch, J604 (only the configuration split, no behaviour change intended).
The commit was cherry-picked onto
921956593. The amp-level test list was merged with upstream's newmacaudio_j714_cfg. Not rebuilt on that base.🤖 Generated with Claude Code