Repository navigation
arm64: dts: apple: t8142-j704: Add the speakers - #3557
Merged
Merged
Conversation
The J704 (MacBook Pro 14", M5) has the speaker system of the 14-inch M5 Pro (J714s): six SN012776, two woofers and a tweeter per side, with the same addresses, names, V/I sense slots and playback order. The J704 ADT (/arm-io/i2c3/audio-speaker*) puts left woofer 1 at 0x38, left woofer 2 at 0x39, the left tweeter at 0x3a, right woofer 1 at 0x3b, right woofer 2 at 0x3c and the right tweeter at 0x3d; its speaker-config gives amp N playback slot N and V/I sense in slots 4N and 4N+2, in the order left woofer 1, right woofer 1, left woofer 2, right woofer 2, left tweeter, right tweeter. The amps sit on J813's i2c3 and share its shutdown line (AP pin 151) and fault interrupt (AP pin 150), and the ADT amp-tx-zd-config has J813's TX idle masks. Describe the six amps on top of t8142-j813-audio.dtsi (J813's tweeters at 0x39 and 0x3c are J704 woofers, so those nodes are replaced) and the speaker link in speaker-config order, and enable them in macaudio as on J815: the speakers are held at the floor until a protection owner takes them, safe level -20 dB. Tested on a J704: all six amps bind with no faults; speakerguardd v2 (aurora-speaker-upgrade, AID39 from the macOS 27.2 restore image) passes its silent switch test and derives the wiring from this tree; protected playback of left/right noise, a 120 Hz tone and a 6 kHz tone comes from the expected woofers and tweeters. Signed-off-by: termg <hello@termg.com>
There was a problem hiding this comment.
Verdict: MERGE at ad9d45b3
Blockers: none (await the 21 queued CI checks at ad9d45b3 before merging)
Checked:
arch/arm64/boot/dts/apple/t8142-j704-audio.dtsi: verified inheritance fromt8142-j813-audio.dtsi(0x38vmon=0/imon=2+ AP pin 150 fault IRQ,0x3bvmon=4/imon=6), removal of J813's0x39/0x3ctweeter nodes, addition of0x39Left Woofer 2 (vmon=8/imon=10),0x3cRight Woofer 2 (vmon=12/imon=14),0x3aLeft Tweeter (vmon=16/imon=18), and0x3dRight Tweeter (vmon=20/imon=22), sharedshutdown-gpios = <&pinctrl_ap 151 GPIO_ACTIVE_HIGH>,ti,bclk-ratio = <250>,apple,speaker-amps = <6>, anddai-link@1codec ordering matching J704 ADTspeaker-configand J714s layout.sound/soc/apple/macaudio.candsound/soc/apple/macaudio-admission-test.h: verifiedmacaudio_j704_cfgmatchesmacaudio_j714_cfg(.enable_speakers = true,AMP_SN012776,SPKR_2W1T,.safe_vol = -20,.spk_secondary_only = true), keeping speakers locked at the floor until a protection owner holds volume, with the KUnit admission test updated accordingly.- Exact-head J704 hardware verification (
ad9d45b3, byte-identical DTB): all 6 amps bind with fault status 0;speakerguardd v2silent switch test andselfcheck verifyPASS with derived wiring; protected L/R pink noise, 120 Hz, and 6 kHz tones play on the expected drivers with0amp faults afterwards;checkpatchclean,CHECK_DTBS0 new warnings; clean humanSigned-off-by.
Evidence
- Head:
ad9d45b3(MERGEABLEonmain,+99/-25across 3 files). - CI at review time: 21 checks
QUEUED.
Contributor
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
Contributor
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
RyanTheTide
pushed a commit
to aurora-silicon/alsa-ucm-conf-asahi
that referenced
this pull request
Dec 1, 2026
The J704 (MacBook Pro 14", M5) has the J714's speaker system: six SN012776 with the same names, the CS42L84 jack on device 0 and the speakers on device 1 (aurora-silicon/linux#3557). Use the J714/J815 layout (laptops/HiFi.conf) instead of the jack-only one. As there, the card offers no raw Speaker device while speakerguardd v2 owns the speakers: its voicing sink is the speaker output. Signed-off-by: termg <hello@termg.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: Speakers on the J704 (MacBook Pro 14", M5): its six SN012776 are the 14-inch M5 Pro's (J714s) speaker system, with the same addresses, names, V/I slots and playback order, on J813's i2c3 and pins. Describe them in ADT speaker-config order and enable them in macaudio as on J815 (held at the floor until a protection owner takes them, safe level -20 dB). Thanks to @DjDeveloperr for pointing out the shared chassis on #2587.
Tested: J704 (M5 MacBook Pro 14") at
ad9d45b3: all six amps bind with fault status 0; speakerguardd v2 passes its silent switch test and derives the wiring from this tree; protected playback of left/right noise, a 120 Hz tone and a 6 kHz tone comes from the expected side, woofers and tweeters. Other Macs: no runtime change (J704 DT and its macaudio entry only).Risk: two-way door · J704 only; the speakers play only once speakerguardd v2 (or a legacy daemon) owns them, and stay at the floor otherwise.
Not yet: loud-step and thermal-ramp playback rows; the UCM speaker verb (alsa-ucm-conf-asahi, next).
Details
From the J704 ADT (
/arm-io/i2c3/audio-speaker*):The order is the first amp's
speakerNphandles;speaker-configgives every amp level 15 and the slots above. Shutdown is AP pin 151 (function-reset), the fault interrupt AP pin 150, andamp-tx-zd-configrows 0 and 1 are J813's TX idle masks (0xfff0f0f0, 0xff0f0f0f). This is exactlyt6050-sn012776-speakers.dtsi's layout (J714s), on T8142's bus and pins.The tree reuses
t8142-j813-audio.dtsias J815 does. J813's tweeter nodes (0x39, 0x3c) are J704 woofers, so they are deleted and the four other amps added; the woofers at 0x38 and 0x3b keep J813's nodes with J714s names.macaudio_j704_cfgbecomes J815's (enable_speakers,safe_vol = -20); the admission KUnit case now expects the J704 speakers to be allowed.Evidence
7.3.0-t32+=mainf558935 + this change (the commit only rewraps one DT line; the DTB is byte-identical to the tested one), its ownt8142-j704.dtb, RAM-only boot.checkpatchclean,CHECK_DTBSno new warnings.aurora-speaker-upgrade0.1 (git 89b6e40e) with speakerguardd-v2 1.0.0~alpha.2: identity j704 / AID39, tuning from the macOS 26B123 restore image by ranges, compile pass (Spp3, 6 channels, 12 sense, 48 kHz, unit calibration in use), silent switch test pass,selfcheck verifypass with wiringcbba18ec53f0a442(derived), voicing within +0.034 / -0.102 dB of the macOS Audio Unit references; gatev2=1.sgv2.voicing.j704, volume 0.30): pink noise left then right, 120 Hz left/right, 6 kHz left/right, each heard where expected (owner).protection grantedon the stream; all sixAmp Fault Status0 afterwards.