Skip to content

ASoC: apple: macaudio: add the K114 (14-inch M5 Pro), jack only - #3104

Merged
DjDeveloperr merged 2 commits into
aurora-silicon:mainfrom
chrisohearn:feat/k114-macaudio-jack
Nov 26, 2026
Merged

DjDeveloperr merged 2 commits into
aurora-silicon:mainfrom
chrisohearn:feat/k114-macaudio-jack

Conversation

@chrisohearn

@chrisohearn chrisohearn commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What: Adds the 14-inch MacBook Pro M5 Pro (K114s, Mac17,13) to macaudio, jack only, the way #2921 does for the J716s: speakers disabled with no safe level, so macaudio_speakers_allowed() refuses a speaker link whatever a device tree says. Adds the apple,k114-macaudio binding string and a KUnit case for the refusal.
Tested: on a K114s (Mac17,13) at this head: one boot of a kernel built from it, card AppleK114 registers, the CS42L84 probes and registers its jack input, the mixer has no speaker volume or protection control, no new kernel errors; a built-in KUnit build (QEMU) passes the admission and no-amp-table cases, and dt_binding_check passes (hardware row in the comments). Before it, the same with an earlier cut of this entry; microphones (they come from the AOP driver and #2285, not from this entry): the default source records.
Risk: two-way door for the driver entry (a revert undoes it); the apple,k114-macaudio binding string is one-way once released. Macs: K114s only; the K114c is not touched.
Not yet: a headphone or headset plugged in (plug detection, playback, headset mic).

Details
Evidence

Run on one K114s on 2026-11-24, kernel 7.3.0-17.v272-18-k114s-r3f, firmware asahi,os-fw-version 27.2, asahi,system-fw-version 27.3 beta. The kernel carries an earlier cut of this entry (speakers disabled as here; it set safe_vol -20) and a device tree with the same jack card, not the files in this PR.

Check Result
/proc/asound/cards 0 [AppleK114HPAI]: aop_audio, 1 [AppleK114]: macaudio - MacBook Pro K114
/proc/device-tree/sound apple,k114-macaudio, apple,macaudio; one link, Headphone Jack
dmesg cs42l84 0-004b: Cirrus Logic CS42L84, Revision: 36; input: MacBook Pro K114 Headphone Jack
amixer -c 1 Headphone Jack and Headset Mic Jack (both off: nothing plugged in), jack ADC/DAC controls, and Speaker Switch / Speaker Playback Mux, which the driver registers on every model and which route nothing here. No speaker volume or protection control
Speakers Nothing was played. The booted device tree has no amplifier node, no "Speaker" link and no speaker DMA channel, and a script that only reads the system state found no path to the loudspeakers (exit 0)
Microphones (context) timeout 4 pw-record of the default source, quiet room: 2 ch, 48 kHz, RMS -55.3 dBFS, peak -38.0 dBFS
Regression systemctl --failed 0 (system and user); no SELinux on this image; the kernel err lines are the baseline's (GPU EPROBE_DEFER at 0.36 s, cpufreq boost, a PMP "refused auxiliary buffer request" every 15 minutes), none in sound
Build sound/soc/apple/macaudio.o with this kernel's .config, clang 23.1.3, W=1: no warnings, also with the KUnit cases built in (CONFIG_KUNIT=y, -UMODULE)
checkpatch.pl --strict commit 1: 0 errors, 0 warnings. Commit 2: 0 errors, 0 warnings
Not run make dt_binding_check (the YAML parses); the KUnit cases

The 14-inch MacBook Pro with the PROLED display (K114s, Mac17,13) gets
its own machine-driver compatible, as the K116 does, for the driver
entry and the device tree card that follow.

Signed-off-by: Chris O'Hearn <137103567+chrisohearn@users.noreply.github.com>
The K114s's Apple device tree describes the sound hardware of the K116s
and the J714s node for node: a CS42L84 jack codec on the AOP's "cout"
stream and six SN012776 amplifiers on its "spkr" stream, in the same
frames. Add an entry with the J714s's jack configuration.

No speaker protection data exists for this chassis: no speakersafetyd
profile and no qualified speakerguardd tuning. The entry therefore has
the speakers disabled and no safe level, as the J873 and J775 have, so
macaudio_speakers_allowed() refuses a "Speaker" link however the device
tree is written. The amplifier type and layout are the J714s's and are
not used while the speakers are disabled; admitting them needs
protection data for this chassis first. The admission KUnit case asserts
the refusal, and the amp-level case that checks no board carries an
SN012776 gain lists the entry.

Seen on one K114s (firmware 27.2) with an earlier cut of this entry
(speakers disabled as here; it set safe_vol -20): the
card registers, the CS42L84 probes and registers its jack input, and the
mixer has the jack controls and no speaker volume or protection control.
Nothing was played; no headphones were plugged in.

Signed-off-by: Chris O'Hearn <137103567+chrisohearn@users.noreply.github.com>
@chrisohearn
chrisohearn force-pushed the feat/k114-macaudio-jack branch from 77240a6 to 9d3eeaa Compare November 25, 2026 01:03
@chrisohearn

Copy link
Copy Markdown
Contributor Author

K114s (Mac17,13, T6050) at 9d3eeaa5d8dd: PASS, one boot of a kernel built from this head.

  • Build: this head plus the local K114s carries (71 commits; this PR replaces the earlier local macaudio cut, and two Wi-Fi patches were already in the branch), with this Mac's config, macaudio as a module. Booted once from the Backup slot by a one-shot; the device tree is the configured one, which has the same apple,k114-macaudio jack card. OS firmware 27.2, system firmware 27.3 beta.
  • Driver: card AppleK114 registered, cs42l84 0-004b: Cirrus Logic CS42L84, Revision: 36, input: MacBook Pro K114 Headphone Jack, both jack controls present, and no speaker volume, gain or protection control. Nothing was played on the speakers.
  • Regression counts on the same boot: no new kernel error lines against the previous kernel (r3f), 0 Oops/WARNING lines. One failed unit: plymouth-start.service segfaulted in ply_boot_splash_hide (the splash script plugin), the same crash also seen on an earlier boot of the previous kernel here, so unrelated to this change. Panel (120 Hz), GPU, camera, light sensor, SEP and audio services present.
  • Offline: a separate built-in KUnit build, run in QEMU, passed 62 cases, including the K114 speaker-admission case and the no-amp-table case. dt_binding_check for apple,macaudio.yaml passed.
  • Not checked: a headphone or headset plugged in (plug detection, playback, headset mic), and a second K114s.

This covers the boot, dt_binding_check and KUnit items under "Not yet". The wired jack checks stay untested and are listed as not tested, so the PR leaves draft.

@chrisohearn
chrisohearn marked this pull request as ready for review November 26, 2026 01:36
@chrisohearn
chrisohearn requested review from a team as code owners November 26, 2026 01:36
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T01:46:59.522709Z 9d3eeaa Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added area:audio Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at 9d3eeaa5: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head ok comment at 9d3eeaa5
Conflicts ok none
PR text ok Risk: two-way · for the driver entry (a revert undoes it); the apple,k114-macaudio binding string is once released. Macs: K114s only; the K114c is not touched.

Areas: area:audio

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

@RyanTheTide RyanTheTide 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 at 9d3eeaa5: MERGE. Non-author review; no blockers.

Checked:

  • macaudio_k114_cfg is the J714 entry with the speakers removed: the same fe_dai_names, dai_fmt, spk_dai_fmt and spk_secondary_only, plus .enable_speakers = false and .safe_vol = 0. With both set, macaudio_speakers_allowed() refuses a speaker link whatever the DT says. Speaker protection is untouched, and no level is guessed for a chassis that has no protection data.
  • The KUnit admission case asserts the refusal, and the entry is added to the no-amp-table list. The binding string is added in sorted order and dt_binding_check is reported green. CI is green.
  • The match goes through the board's compatible string, as for every other macaudio card, so no new gate is added.

Non-blocking: the headset plug row is still owed (plug detection, playback, headset mic), as the PR lists.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Nov 26, 2026
@DjDeveloperr
DjDeveloperr merged commit bdf931c into aurora-silicon:main Nov 26, 2026
5 of 6 checks passed
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) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants