Skip to content

arm64: dts: apple: t8132-j773g: the headphone jack - #2236

Open
DjDeveloperr wants to merge 1 commit into
mainfrom
j773g/headphone-jack-20261119
Open

DjDeveloperr wants to merge 1 commit into
mainfrom
j773g/headphone-jack-20261119

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What: Describe the Mac mini M4 (J773g) headphone jack. It's a CS42L84 on the AOP's jack back-end, with its "cout" and "cin" streams on ADMAC channels 4 and 5, no PDM microphone, and a jack card of its own. The speaker stays without a card.

Tested: On 11-19, a J773g with this DT and a loader that hands the AOP over showed: the AOP ready, card 0: AppleJack, and one speaker-test loop finishing with rc 0 while nothing was plugged in. The DTB builds and checkpatch --strict is clean. The loader handoff has since merged as aurora-silicon/aura#418.

Risk: two-way · J773g only (one board DT).

Not yet: a J773g row at this head on the aura#418 handoff, covering jack detection with a plug, audible headphone playback, and capture from a headset mic that isn't silent.

Details

Summary

The Mac mini (M4, J773g) has no microphones, so its tree deleted the AOP audio node and the machine had no sound card. Like the M4 Pro Mac mini (J773s), its headphone jack is a CS42L84 (ADT /arm-io/i2c1/audio-codec-output) on the AOP's jack back-end.

This describes:

  • the jack's streams: "cout" and "cin" on base-ns ADMAC channels 4 and 5, from the ADT audio-codec-output and audio-codec-input stream dma-channels;
  • no "dma" channel, so the AOP audio component attaches no PDM microphone;
  • a jack card of its own.

The speaker (SN012776) stays without a card. The AOP needs the loader's handoff, which is aurora-silicon/aura#310 (stacked on aura#113).

Testing

Measured on the owner's Mac mini J773g, 2026-11-19, with this DT and an aura that hands the J773g AOP over (Stage 2 963eb02c):

  • apple_aop ... ===( AOP IS READY )===, and card 0: AppleJack [Mac mini J773g Jack] with the CS42L84 controls.
  • speaker-test -D plughw:AppleJack -c 2 -t sine ran one loop to completion (rc 0) with no kernel errors, so the DMA path AOP → ADMAC → CS42L84 runs.
  • Nothing was plugged into the jack (Headphone Jack = off), so the output was not heard. Jack detection with a plug and capture from a headset mic are not tested yet.

The DTB builds on integration/aurora 0abc2f3 (cpp | dtc). checkpatch --strict is clean.

The Mac mini has no microphones, so the AOP audio node was deleted; but
like the M4 Pro Mac mini (J773s) its headphone jack is a CS42L84 on the
AOP's jack back-end. Describe the jack's streams, "cout" and "cin" on
base-ns ADMAC channels 4 and 5 (ADT audio-codec-output and
audio-codec-input), with no "dma" channel so the AOP audio component
attaches no microphone, and a jack card of its own. The speaker stays
without a card.

Signed-off-by: Diljit Singh <hey@djdev.me>
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Tested on the owner's Mac mini J773g with the macOS 27.2 (26B123) firmware (boot dcp8, 11-20). The kernel was 010c3eb, whose J773g audio DT and code match this PR's head plus #2298 (jack + speaker cards). The AOP was handed over by aura#418, with the 27.2 __EDATA/ED0p support from 60f279c + b224fde in aop.ko.

  • The AOP comes up on 27.2 (Validated external data region at IOVA 0x10000008000, then ===( AOP IS READY )===), and both cards register: AppleJ773g and AppleJack. Before, sound/sound-jack returned -EPROBE_DEFER forever, because aura gave the AOP no firmware memory-region.
  • Jack: aplay of a -30 dBFS 440 Hz tone on AppleJack: PCM RUNNING, hw_ptr +72,624 frames in 1.5 s (48 kHz), rc 0, no xrun. The CS42L84 PLL lock bit (0x040e bit 4) was set only during playback, DAC_CTL1 unmuted (0x60 → 0x61), and admac1 IRQs went 0 → 32. Nothing was plugged in (TSRS plug 0x1288 = 0, Headphone Jack off), so DAPM kept the DAC block powered down and nothing could be heard.

🤖 Generated with Claude Code

@RyanTheTide

Copy link
Copy Markdown
Contributor

Looks good; approve once the jack-detect row below is in and the AOP handover (aura#418) is merged.

The DT is consistent with the tree. apple,j773-macaudio-jack is already matched (sound/soc/apple/macaudio.c:4445). &jack_codec comes from t8132-jxxx.dtsi:121 via t8132-desktop.dtsi, and admac1 is enabled there (:101). The &aop_audio override (arch/arm64/boot/dts/apple/t8132-j773g.dts:86-91) replaces the base dmas/dma-names (t8132.dtsi:1021-1022), so no "dma" (PDM) channel is left. That matches the J773s node (t6040-j773s.dts:438-443). Playback through AOP, ADMAC and CS42L84 is shown in the follow-up comment.

  1. PR body: the last line is "Generated with Claude Code". It should be Assisted-by: LLM (<Vendor>:<Model>).

HW row: J773g on the default command line. Plug and unplug headphones, then a headset: the Headphone Jack/Headset Mic controls follow each event, the cs42l84 IRQ count rises once per event and stays flat for 10 s idle, playback is heard, and a 5 s capture from the headset mic is non-silent. Pass also needs 0 failed units, 0 AVC and 0 new kernel errors. The IRQ and reset lines come from the shared t8132-jxxx.dtsi, so this row is what shows they are right for this board.

Assisted-by: LLM (Claude:Opus 5.5)

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026

@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: Changes requested at e89ad368f4cf.

DT checks pass and the jack-only DMA channels follow the existing jack path. Please remove generated/assisted attribution from the PR text under current policy. The tested 27.2 AOP handoff in aura#418 remains open. The unplugged PCM test verifies DMA progress, but DAPM kept the analog output off. Please attach a J773g row with jack detection, audible headphones playback and a non-silent headset microphone capture on the actual handoff stack.

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at e89ad368: not ready yet

Check Detail
CI at head ok 4 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at e89ad368
Conflicts ok none
PR text ok Risk: two-way · J773g only (one board DT).

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) and removed needs-template PR body lacks Tested or Risk (bot) labels Dec 2, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

The e89ad368f4cf merge tree on main 47bad176f093 is clean (3f27de7a6657). M4’s remaining row is one J773g boot with the merged Aura #418 AOP handoff, Headphone Jack off/on/off, audible AppleJack left/right playback, and non-silent capture from a CTIA headset mic.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants