Skip to content

arm64: dts: apple: t6050: share the six-amp speaker block, give the K114s its speakers - #3451

Merged
RyanTheTide merged 1 commit into
mainfrom
feat/t6050-k114s-speakers
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
feat/t6050-k114s-speakers

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: The K114s (14-inch M5 Pro OLED MacBook Pro) gets its six speaker amps and the card's "Speaker" link, from the same description the J714s and K114c already use. The amp block moves into one shared t6050-sn012776-speakers.dtsi (it existed twice, in the J714s and K114c files), and apple,k114-macaudio takes the J714 config, as apple,k116-macaudio already does.

Tested: offline at 20e759f9. DTBs compared with dtc -s, phandle values aside: J714s unchanged; K114c only its card compatible (apple,j714-macaudio -> apple,k114-macaudio, same config); K114s gains exactly the K114c's amps, regulator and link; K116s, K116c and J714c byte-identical. macaudio KUnit 75/75 (arm64 qemu). K114s hardware row: pending (lane SGV2-K114S, silent first).

Risk: two-way · K114s (gains a speaker link), K114c (compatible only), J714s (DTB unchanged). The speakers stay at the kernel floor until a "Speaker Protection" owner grants them: an ungranted start is refused and the amps' volume limit is the floor (macaudio_sn012776_vlimit). speakerguardd v2 grants the K114 only once it qualifies its tuning (speakerguardd PR to follow).

Not yet: K114s silent row (card, six amps bound, sense PCM, v2 self-check) and regression rows (J714s is not in the lab: DTB-identical instead; K114c compatible-only).

Details

Source: the live K114s ADT (27.2) and the live K116s ADT, plus the 26B8125 K114c and K116c device trees, compared sorted with phandles aside, against the J714s block. All describe six SN012776 on i2c1 (0x38-0x3a) and i2c3 (0x3b-0x3d), speaker-config playback slot N / V sense 4N / I sense 4N+2, shutdown on AP pin 107 (function-reset of the first amp), fault interrupt pin 106, speaker ID on 136/137 and the same amp-tx-zd-config rows.

  • t6050-sn012776-speakers.dtsi: the regulator, both I2C buses' amps, ps_i2c3/i2c3 setup and &sound { dai-link@1 }. Included after a card labelled sound.
  • t6050-j714s.dts: its inline copy replaced by the include (DTB unchanged).
  • t6050-k114.dtsi (K114s + K114c chassis): includes it; the jack-only note goes.
  • t6050-k114c.dts: its amp copy and its J714-compatible override go (now in the chassis).
  • macaudio.c: K114 -> macaudio_j714_cfg; macaudio_k114_cfg removed (KUnit references updated).

K116s/K116c have no card described yet (no jack/AOP audio on those boards); the shared dtsi is ready for them once their audio block lands.

Revert: git revert this commit; the K114s returns to a jack-only card.

Evidence
dtc -I dtb -O dts -s base vs head (phandle numbers normalised):
  t6050-j714s.dtb  identical
  t6050-k114c.dtb  sound: compatible "apple,j714-macaudio" -> "apple,k114-macaudio"
  t6050-k114s.dtb  + regulator-sn012776-sdz, i2c@505014000 codec@38/39/3a, i2c@50501c000 codec@3b/3c/3d, sound dai-link@1
                   (these nodes == the K114c's base DTB's, phandles aside)
  t6050-k116s/k116c/j714c.dtb  byte-identical
kunit.py run --arch=arm64 (macaudio suites): Ran 75 tests: passed: 75
checkpatch: 0 errors (new-file MAINTAINERS note; one table comment kept in the k116 line's style)

…114s its speakers

The J714s, K114s, K114c, K116s and K116c ADTs describe the same six
SN012776 speaker amps (i2c1 0x38-0x3a, i2c3 0x3b-0x3d), the same
speaker-config slots (playback N, voltage sense 4N, current sense 4N+2),
shutdown pin 107, fault interrupt 106, speaker-ID pins 136/137 and the
same amp-tx-zd-config rows (live K114s and K116s ADTs, 26B8125 K114c and
K116c device trees; phandles aside).

The J714s and the K114c each carried their own copy of the amps, and the
K114c a copy of the J714s's "Speaker" link under the J714 compatible. The
K114s, which includes the same chassis file as the K114c, had neither:
its card was the jack only.

Move the amps and the "Speaker" link into t6050-sn012776-speakers.dtsi,
included after the card by the J714s and by the 14-inch chassis file, and
give the K114 compatible the J714 config (as the K116 already has). The
K114c override goes. The speakers stay at the kernel's floor until a
"Speaker Protection" owner grants them (speakerguardd v2), as on every
v2 machine.

DTBs (dtc -s, phandle values aside): J714s unchanged; K114c only its
card compatible (apple,j714-macaudio -> apple,k114-macaudio, the same
config); K114s gains exactly the K114c's amps, regulator and link;
K116s, K116c and J714c byte-identical. macaudio KUnit 75/75 (arm64 qemu).

Revert: git revert this commit (the K114s returns to a jack-only card).

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@aurora-silicon/core @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers review request (code owners). This is half of the K114 speaker work: #3451 (kernel: K114s speaker link) + aurora-silicon/speakerguardd#292 (v2: six-lane LSID static release). Both stay drafts until the K114s silent row is posted. The speakers stay muted until v2 grants them and each speaker has playback rows. An adversarial review from a different lane is requested separately.

@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: FINISH, then merge, at 20e759f912. The DT and kernel change are right; the K114s silent row is what's left.

Blockers: none in the code. Before merge: the K114s silent row at this head (card up, six amps bound, sense PCM present, ungranted speaker start refused, volumes at the floor, v2 self-check), then out of draft.

Checked:

  • DTBs: built all 11 T6050 DTBs at main and at this head and compared them as sorted DTS. J714c, J714s, J716c, J716s, J775c, J775d, J873s, K116s and K116c are unchanged. K114c changes only its card compatible (apple,j714-macaudio -> apple,k114-macaudio, both the J714 config). K114s gains the six SN012776, the SDZ regulator and the Speaker link, and its amp nodes and regulator are identical to the K114c's.
  • ADT (live K114s): SDZ/reset function-reset GPIO 0x6b (107), amps at I2C 0x38-0x3a / 0x3b-0x3d, matching the DT (fault interrupt pin 106).
  • Kernel safety: without a "Speaker Protection" lease from a CAP_SYS_ADMIN owner, SN012776 gain is 0 and no speaker start is admitted; a lapsed lease closes the gate from a hard hrtimer; the tweeters keep the 800 Hz safe corner unless the owner declares its crossover. So this PR alone can't make the K114s speakers play: that takes speakerguardd v2 granting the K114 (speakerguardd#292, reviewed separately), plus per-speaker playback rows.
  • Dropping macaudio_k114_cfg and its KUnit expectations is consistent with K114 now taking the J714 config, as the K116 already does.

No attribution.

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 20e759f912ac and verified on Apple M5 Max (J775c, G17C B1):

  • Extracted t6050-sn012776-speakers.dtsi cleanly eliminates the duplicated six-amp speaker blocks across t6050-j714s, t6050-j775c, and t6050-j716c, and wires t6050-k114s (apple,k114-macaudio -> macaudio_j714_cfg).
  • scripts/checkpatch.pl --strict: 0 errors (only the expected new-file MAINTAINERS notice and 126-col table comment matching surrounding lines in macaudio.c).
  • Built t6050-j714s.dtb, t6050-j775c.dtb, t6050-j716c.dtb, and t6050-k114s.dtb with W=1: zero new warnings.
  • dtc -I dtb -O dts -s comparison against 20e759f912ac~1 on t6050-j714s.dtb, t6050-j775c.dtb, and t6050-j716c.dtb: zero diff (identical compiled device trees).
  • Compiled sound/soc/apple/macaudio.o cleanly (ARCH=arm64).

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 28, 2026 02:45
@RyanTheTide
RyanTheTide requested a review from a team as a code owner November 28, 2026 02:45
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Out of draft: speaker audio is allowed again on the lab Macs, and the K114s silent row plus the protected speaker ramp run on the next combined K114s boot (the DTB carries these nodes). Hold the merge until that row is posted here. Offline proof is unchanged: J714s DTB byte-identical, K116s/K116c/J714c unchanged, macaudio KUnit 75/75.

@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 02:45
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s silent row (no playback), 11-28 14:35 one-shot, now also Ryan's default (7.3.0-k114sstack bridge kernel + this PR's snd-soc-macaudio in updates/):

  • DT and amps: the DTB is the bridge DTB + arm64: dts: apple: t6050: K boards: let the loader write the external display routes #3368/arm64: dts: apple: t6050: K boards: describe DisplayPort audio #3456 + this PR's commit only (regulator-sn012776-sdz, codec@38..3d, dai-link@1). All six SN012776 amps are bound to tas2764 (0-0038/39/3a, 2-003b/3c/3d).
  • Card: MacBook Pro K114 (macaudio) with Primary, Secondary and Speaker Sense PCMs. There are five controls per amp (Speaker Volume, Amp Gain, VSENSE/ISENSE switches, Amp Fault Status) for all six amps, plus Speaker Protection Interface (Speaker Volume Unlock / Speaker Protection).
  • Kernel floor: the speaker front ends have no back end until v2 routes them (ASoC "no backend DAIs" at open), speaker_starts_refused = 0. speakerguardd v2's aurora-speaker-upgrade --check on this boot: identity pass (k114s, AID49), IPSW 26B8125 acquire pass, compile pass, hardware silent switch test pass (the kernel interlock), selfcheck kernel and hardware verify pass.
  • Not shown: I did not exercise a refused trigger directly, because v2 refuses the K114s at the voicing stage (see speakerguardd#292: AID49 is not yet at parity at full volume), so the speakers stay at the kernel floor. That's the safe state this PR is meant to allow.
  • Other boards: J714s DTB byte-identical, K116s/K116c/J714c unchanged, macaudio KUnit 75/75 (offline, at 20e759f).

@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 20e759f912ac.

Blockers: none. The K114s silent row I asked for is in.

Checked (the K114s silent row, 14:35 one-shot, now the default):

  • The DTB is the bridge DTB + #3368/#3456 + only this commit. All six SN012776 amps bind to tas2764 (0-0038/39/3a, 2-003b/3c/3d).
  • Card MacBook Pro K114 with Primary, Secondary and Speaker Sense PCMs. The per-amp controls are present for all six amps, plus the Speaker Protection Interface.
  • Kernel floor: the speaker front ends have no back end until v2 routes them ("no backend DAIs" at open), so no speaker stream can start at all, which is stronger than a refused start. speaker_starts_refused is 0 because nothing tried.
  • speakerguardd v2 on that boot: identity (k114s, AID49), IPSW acquire, compile, the hardware silent-switch test (the kernel interlock) and selfcheck all pass. v2 then refuses the K114s at the voicing-parity stage (speakerguardd#292's parity block: AID49 is louder than macOS on the woofer lanes), so the speakers stay at the floor.
  • Offline: J714s DTB byte-identical; K116s/K116c/J714c unchanged; macaudio KUnit 75/75. My earlier DT/ADT checks stand (the amp nodes equal the K114c's; SDZ 107, IRQ 106, I2C 0x38-0x3d).

No attribution.

@RyanTheTide
RyanTheTide merged commit 55184f0 into main Nov 28, 2026
6 of 9 checks passed
@RyanTheTide
RyanTheTide deleted the feat/t6050-k114s-speakers branch November 28, 2026 04:56
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged as 55184f0 (normal merge: required checks green, human + KREVIEW approval, K114s row above). Revert: git revert -m 1 55184f00. Safe alone: with this DT the K114s speakers stay at the kernel floor until speakerguardd v2 qualifies the board.

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