Skip to content

ASoC: apple: macaudio: add the J716 (16-inch M5 Pro), jack only - #2921

Open
ja-818 wants to merge 1 commit into
aurora-silicon:mainfrom
ja-818:macaudio-j716-jack-only
Open

ja-818 wants to merge 1 commit into
aurora-silicon:mainfrom
ja-818:macaudio-j716-jack-only

Conversation

@ja-818

@ja-818 ja-818 commented Nov 23, 2026

Copy link
Copy Markdown

Adds a J716 entry: the J714s's AOP-fed jack card with speakers disabled and no safe level (as the J873), so the driver refuses a speaker link on this board however its tree is written. No speaker protection has played on a J716s yet.
Seen on one J716s (27.2 stub, omarchy-m5 v272-17 kernel with this entry as a module): the card registers, the jack reports a plug, PipeWire shows Headphones and the headset mic. Jack playback not listened to yet. The J716s's card node follows once #2285 and #2277 land. Report: betizzel/omarchy-m5#28.

🤖 Generated with Claude Code

The J716s's AOP-fed card is the J714s's: the J716sAP 27.2 (26B123) ADT
describes the same CS42L84 jack codec, AOP audio service and six
SN012776 amps. No speaker protection has played on this board yet, so
its entry has speakers disabled and no safe level, as the J873's, and
macaudio_speakers_allowed() refuses a speaker link whatever the device
tree says. The jack frame is the J714s's.

Seen on one J716s (27.2 stub, omarchy-m5 v272-17 kernel with this entry
as a module and a jack-only card in its tree): the card registers, the
jack reports a plug and PipeWire shows Headphones and the headset
microphone. Playback through the jack was not listened to (no working
wired headphones at hand). The device tree card follows once the AOP
(aurora-silicon#2285) and jack codec (aurora-silicon#2277) descriptions for the J716s land.

Signed-off-by: Julian Arango <95070226+ja-818@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide

Copy link
Copy Markdown

Review at 3dc03fc.

Changes requested, for the commit trailer only; the code is speaker-safe.

  1. Speaker safety: enable_speakers = false and safe_vol = 0, as for the J873, so macaudio_speakers_allowed() refuses a speaker link whatever the DT says. The jack frame and DAI formats are the J714s's. Nothing here can drive the six SN012776.
  2. Trailers: the commit carries Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>, and the body ends with "Generated with Claude Code". This tree keeps commit trailers human-only, so please drop the Co-Authored-By and re-push. If you want to credit the tool, an Assisted-by: LLM (Claude:Opus 5.5) line belongs in the PR body.
  3. Nit: the table comment says gain 15, but the entry has no safe level. Use - as the J775c/J775d rows do, so nobody reads 15 as a granted level.
  4. Row: the J716s result is from a different kernel tree with this entry built as a module. Once arm64: dts: apple: t6050: describe the AOP on every MacBook Pro #2285 and arm64: dts: apple: t6050: describe the headphone jack codec on every board #2277 land, please add one row from this tree at its head: the card registers, the jack plugs, PipeWire shows Headphones plus the headset mic, and amixer shows no speaker controls. The jack playback itself can wait for a working headset.

@DjDeveloperr DjDeveloperr 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.

Formal §1–§6 pre-PR checklist review at 3dc03fc707b82196957bf697f997d2409ee827f4.

The code change itself is speaker-safe: verified against macaudio_speakers_allowed() (sound/soc/apple/macaudio.c:2375-2382), which requires both cfg->enable_speakers and cfg->safe_vol < 0. macaudio_j716_cfg sets .enable_speakers = false and .safe_vol = 0 (and omits .tweeter_hpf_granted), so any speaker link is refused regardless of DT contents and the six SN012776 amps stay un-driven until a qualified speakerguardd v2 profile exists. The fork diff is a 24-line C table addition (safe for a maintainer to approve fork CI runs).

Blockers

  1. §4 AI trailer in commit message (3dc03fc707b8):
    The commit carries Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>. Commits must carry human author/committer and human Signed-off-by: only (zero AI trailers in commit messages; keep AI disclosure in the PR body).
  2. §5 CI not run & missing exact-head integration/aurora hardware evidence:
    • Fork CI (Host tests) is action_required and has not run yet (diff is safe to approve).
    • The reported J716s run was on an out-of-tree kernel (omarchy-m5 v272-17) with this built as an out-of-tree module and lacks regression counts. Please post an integration/aurora J716s boot at the updated head (stacked with #2285/#2277 if needed) confirming: card registration, jack plug detection, PipeWire Headphones + headset mic visibility, no speaker controls exposed in amixer, and regression status (0 SELinux denials, 0 failed units, 0 new kernel errors).

Non-blocking notes

  • sound/soc/apple/macaudio.c:4483: the table comment lists gain 15 even though speakers are disabled with .safe_vol = 0; use - in the gain column (matching j775c/j775d) so 15 is not mistaken for a granted level.

Checklist summary

  • §1 No model gating: Pass (matches existing per-chassis of_device_id topology pattern in macaudio.c; dedicated entry is required by §3 so J716 cannot inherit J714's enabled speakers).
  • §2 Production-ready: Pass (default cmdline).
  • §3 Safety: Pass (.enable_speakers = false, .safe_vol = 0; macaudio_speakers_allowed() fails closed).
  • §4 Clean-room & attribution: Blocked on Co-Authored-By: AI trailer in commit 3dc03fc707b8.
  • §5 Evidence: Blocked on action_required CI and missing integration/aurora exact-head J716s hardware + regression row.
  • §6 Naming: Pass.

Assisted-by: LLM (Gemini 4 Neon)

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.

3 participants