Skip to content

arm64: dts: apple: t8142-j704: Add the speakers - #3557

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
term-guy:j704-speakers
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
term-guy:j704-speakers

Conversation

@term-guy

Copy link
Copy Markdown
Contributor

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*):

Slot Amp Name V / I sense
0 0x38 Left Woofer 1 0 / 2
1 0x3b Right Woofer 1 4 / 6
2 0x39 Left Woofer 2 8 / 10
3 0x3c Right Woofer 2 12 / 14
4 0x3a Left Tweeter 16 / 18
5 0x3d Right Tweeter 20 / 22

The order is the first amp's speakerN phandles; speaker-config gives every amp level 15 and the slots above. Shutdown is AP pin 151 (function-reset), the fault interrupt AP pin 150, and amp-tx-zd-config rows 0 and 1 are J813's TX idle masks (0xfff0f0f0, 0xff0f0f0f). This is exactly t6050-sn012776-speakers.dtsi's layout (J714s), on T8142's bus and pins.

The tree reuses t8142-j813-audio.dtsi as 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_cfg becomes J815's (enable_speakers, safe_vol = -20); the admission KUnit case now expects the J704 speakers to be allowed.

Evidence
  • Kernel 7.3.0-t32+ = main f558935 + this change (the commit only rewraps one DT line; the DTB is byte-identical to the tested one), its own t8142-j704.dtb, RAM-only boot. checkpatch clean, CHECK_DTBS no new warnings.
  • aurora-speaker-upgrade 0.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 verify pass with wiring cbba18ec53f0a442 (derived), voicing within +0.034 / -0.102 dB of the macOS Audio Unit references; gate v2=1.
  • Protected playback through the v2 graph (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 granted on the stream; all six Amp Fault Status 0 afterwards.

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>
@term-guy
term-guy requested review from a team as code owners November 28, 2026 18:02

@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 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 from t8142-j813-audio.dtsi (0x38 vmon=0/imon=2 + AP pin 150 fault IRQ, 0x3b vmon=4/imon=6), removal of J813's 0x39/0x3c tweeter nodes, addition of 0x39 Left Woofer 2 (vmon=8/imon=10), 0x3c Right Woofer 2 (vmon=12/imon=14), 0x3a Left Tweeter (vmon=16/imon=18), and 0x3d Right Tweeter (vmon=20/imon=22), shared shutdown-gpios = <&pinctrl_ap 151 GPIO_ACTIVE_HIGH>, ti,bclk-ratio = <250>, apple,speaker-amps = <6>, and dai-link@1 codec ordering matching J704 ADT speaker-config and J714s layout.
  • sound/soc/apple/macaudio.c and sound/soc/apple/macaudio-admission-test.h: verified macaudio_j704_cfg matches macaudio_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 v2 silent switch test and selfcheck verify PASS with derived wiring; protected L/R pink noise, 120 Hz, and 6 kHz tones play on the expected drivers with 0 amp faults afterwards; checkpatch clean, CHECK_DTBS 0 new warnings; clean human Signed-off-by.
Evidence
  • Head: ad9d45b3 (MERGEABLE on main, +99/-25 across 3 files).
  • CI at review time: 21 checks QUEUED.

@RyanTheTide

Copy link
Copy Markdown
Contributor

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at ad9d45b3. App approved (NEON-PR-REVIEW2). Merges 1 h from now under the 6-point rule once hosted CI is green, unless you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging under the 6-point rule (Ryan 09:29, permanent), at ad9d45b3. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: J704-exact-head-protected-playback;board-only. (5) There's no blocking review. (6) Dj was pinged here 153 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit b897ccb into aurora-silicon:main Nov 28, 2026
6 checks passed
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>
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