Repository navigation
ASoC: apple: macaudio: add the K114 (14-inch M5 Pro), jack only - #3104
Conversation
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>
77240a6 to
9d3eeaa
Compare
|
K114s (Mac17,13, T6050) at
This covers the boot, |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict at 9d3eeaa5: MERGE. Non-author review; no blockers.
Checked:
macaudio_k114_cfgis the J714 entry with the speakers removed: the samefe_dai_names,dai_fmt,spk_dai_fmtandspk_secondary_only, plus.enable_speakers = falseand.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_checkis 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.
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 theapple,k114-macaudiobinding 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
AppleK114registers, 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, anddt_binding_checkpasses (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-macaudiobinding 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
macaudio_k114_cfgis the J716s entry of ASoC: apple: macaudio: add the J716 (16-inch M5 Pro), jack only #2921 (Julian Arango) for this chassis: the J714s jack frame,.enable_speakers = false,.safe_vol = 0, underapple,k114-macaudio. The table comment's gain column is-, as its reviewers asked.macaudio_k114_cfgis also added tomacaudio_level_no_table, the case that checks no board carries an SN012776 gain.k116line ofmacaudio_snd_device_id[], so whichever lands second needs a one-line rebase. ASoC: apple: macaudio: add the J716 (16-inch M5 Pro), jack only #2921 does not addapple,j716-macaudiotoapple,macaudio.yaml; its device tree node will need it.Evidence
Run on one K114s on 2026-11-24, kernel 7.3.0-17.v272-18-k114s-r3f, firmware
asahi,os-fw-version27.2,asahi,system-fw-version27.3 beta. The kernel carries an earlier cut of this entry (speakers disabled as here; it setsafe_vol-20) and a device tree with the same jack card, not the files in this PR./proc/asound/cards0 [AppleK114HPAI]: aop_audio,1 [AppleK114]: macaudio - MacBook Pro K114/proc/device-tree/soundapple,k114-macaudio,apple,macaudio; one link,Headphone Jackcs42l84 0-004b: Cirrus Logic CS42L84, Revision: 36;input: MacBook Pro K114 Headphone Jackamixer -c 1Headphone JackandHeadset Mic Jack(both off: nothing plugged in), jack ADC/DAC controls, andSpeaker Switch/Speaker Playback Mux, which the driver registers on every model and which route nothing here. No speaker volume or protection controltimeout 4 pw-recordof the default source, quiet room: 2 ch, 48 kHz, RMS -55.3 dBFS, peak -38.0 dBFSsystemctl --failed0 (system and user); no SELinux on this image; the kernelerrlines are the baseline's (GPUEPROBE_DEFERat 0.36 s, cpufreq boost, a PMP "refused auxiliary buffer request" every 15 minutes), none in soundsound/soc/apple/macaudio.owith 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 --strictmake dt_binding_check(the YAML parses); the KUnit cases