Skip to content

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

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

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
Contributor

What: 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.
Tested: no runtime change on main yet: no J716s card node until #2285 and #2277 land. Earlier, on omarchy-m5's v272-17 kernel with this entry as a module: the card registers, the jack reports a plug, PipeWire shows Headphones and the headset mic (betizzel/omarchy-m5#28).
Risk: two-way door · J716s only (a new compatible)
Not yet: headphone playback on the jack (no working headset yet); the J716s card node (after #2285 and #2277).

@RyanTheTide

Copy link
Copy Markdown
Contributor

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
Contributor

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.

@github-actions github-actions Bot added area:audio Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (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

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

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 3dc03fc707b8

Blockers:

  1. Commit 3dc03fc7 carries a Co-Authored-By: trailer naming an AI tool. Fix: git commit --amend -s, remove the trailer, force-push.
  2. Missing row: one J716 at this head with headphone playback on the jack (jack only, no speaker playback). I've approved the waiting CI run.

Checked: thank you. No Apple material; jack only, so the speakers stay off.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 25, 2026 01:32

Superseded by the review at 3dc03fc

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merge readiness at d48abdc4: not ready yet

Check Detail
CI at head ok no CI for this change (the hardware row is the gate)
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok not needed: no runtime change
Conflicts no merge conflicts with main: merge it in (no force push)
PR text ok Risk: two-way · J716s only (a new compatible)

Areas: area:audio

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

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 <julianarango1818@gmail.com>
@ja-818
ja-818 force-pushed the macaudio-j716-jack-only branch from 3dc03fc to d48abdc Compare November 25, 2026 06:03
@ja-818
ja-818 requested review from a team as code owners November 25, 2026 06:03
@ja-818
ja-818 requested review from LiamRay11 and maralcbr November 25, 2026 06:03
@ja-818

ja-818 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. v2 is pushed, rebased on main: no Co-Authored-By, and the j716 row's gain column reads -, as for j775c/j775d.

The row from this tree waits for two things: the J716s's AOP (#2285) and jack codec (#2277) descriptions, still open, without which main has no J716s card to play through; and a working wired headset to test with. Once both are there I'll post headphone playback on the jack, PipeWire Headphones and headset mic, and no speaker controls in amixer.

@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 25, 2026
@DjDeveloperr
DjDeveloperr dismissed their stale review November 26, 2026 00:55

The trailer is gone at d48abdc. Thanks.

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Thanks, the trailer is gone at d48abdc4, so I've cleared my change request. The jack row can wait for the J716s device tree, since nothing uses this entry yet.

One overlap: #3085 adds the same apple,j716-macaudio compatible and its own macaudio_j716_cfg (v2-lease-only speakers, rows on the J716c and J713). Whichever lands second conflicts, and changing #3085 now would cost its J716c rows. Its entry gives the J716s the same jack. On the J716s its speakers stay refused, because speakerguardd has no J716s fixture to grant a lease.

So please hold this one until #3085 lands. After that this PR has nothing left to add and can close, and your jack-playback row can go on #2277/#2285 with the J716s card.

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed changes-requested A reviewer requested changes (bot) labels Nov 26, 2026
@rolotrealanis98

Copy link
Copy Markdown
Contributor

Tested on J716s (16-inch M5 Pro, 27.3 beta stub) at d48abdc: the J716s daily kernel with this entry in place of its own
J716 entry, on a DT that still links the six SN012776 in a Speaker link.

  • the card refuses the speaker link as intended ("driver can't assure safety on this model, disabling speakers") and
    registers AppleJ716 with the jack: CS42L84 rev 36, Headphone Jack / Headset Mic switches 0 with nothing plugged,
    UCM lists Headphones and Headset; no speaker controls, the amps stay idle
  • small thing: the speaker front end (Secondary, device 1) is still registered with no backend, so the boot logs
    "Secondary: ASoC: no backend DAIs enabled"; harmless, but a jack-only card might skip that PCM
  • 0 SError, 0 failed units, no other new kernel errors
    ASoC: apple: enable J716c (16-inch M5 Max) AOP audio, v2-only speakers, jack and mic array #3085 also adds "apple,j716-macaudio", with v2-only speakers enabled for the J716c. The J716s and J716c would share
    that compatible, so whichever lands second needs a per-board split (or a board check) so each gets its own speaker
    policy. Happy to test either way on the J716s.
    Not tested: headphone playback, headset capture.

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

The current diff adds apple,j716-macaudio as a driver match, but the compatible is absent from the macaudio binding at this head. It also collides with #3085, which uses the same match for a different speaker policy. Keep this held and coordinate the jack-only path with #3085 and the DT owners. If a separate match still needs to land, describe it in the binding and verify the resolved J716s path preserves speaker refusal while the headphone jack works. No speaker playback is needed for this jack-only row.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merge-train review at d48abdc4: Verdict: rebase, then merge after a J716s jack row. The content is right: jack-only, speakers off with no safe level, so macaudio_speakers_allowed() refuses a speaker link whatever the DT says. The conflict comes from linux#3484 (merged), which reworked macaudio_j714_cfg and the speaker-control count on main. Please rebase onto main and base the J716s entry on whatever main now uses for the J714s jack frame (reuse it if a jack-only variant exists, rather than adding another copy). Then add one J716s row at the new head (jack plug/unplug, quiet playback through headphones, speakers absent from the card). No other finding.

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 29, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Closing as a duplicate of #3085 (merged as 21600453), which adds the same apple,j716-macaudio support for the J716 family. Thanks @ja-818 for the early J716s jack work. The jack row belongs with #2277/#2285. If something from this PR is missing on main, please open a new PR against main and we will review it quickly.

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

Labels

area:audio Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) merge-conflict Conflicts with the base branch (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.

4 participants