Repository navigation
ASoC: apple: enable J716c (16-inch M5 Max) AOP audio, v2-only speakers, jack and mic array - #3085
Conversation
…-inch M5 Max)
Add a v2-only speaker ownership capability (spk_v2_only) to macaudio and
wire the J716 (16-inch M5 Pro/Max) compatible ("apple,j716-macaudio") to it:
- Expose only "Speaker Protection" (v2 lease) and "Speaker Sample Rate";
omit the legacy "Speaker Volume Unlock" and "Speaker Protection Interface"
controls. Bind directly in MACAUDIO_SPK_IFACE_LEASE at hardware mute (0)
with each amp's gain fixed at its boot-loader limit in
macaudio_fixup_controls(), refuse PCM start without an active lease,
reject legacy unlock/interface transitions with -EOPNOTSUPP, and never
revert to unlock mode after owner loss.
- Reset per-bind speaker protection state and control arrays on card
removal and rebind so ASoC component rebind does not reuse stale counts
or skip the cold-bind mute floor.
- Do not require a dummy safe_vol on v2-only digital-gain amps whose
ungranted floor is hardware mute (0), and require per-amp
apple,amp-dcblocker-config (>= 2 bytes) from the boot loader alongside
apple,speaker-config before admitting speakers (leaving the headphone jack
available if speaker admission fails).
- Derive the tweeter safe high-pass corner from the codec's advertised
"HPF Corner Frequency" enum items (highest "<N> Hz" corner) instead of
hardcoding a frequency literal.
- Extend the apple-speaker KUnit suites to cover v2-only admission,
DC-blocker admission checks, permanent lease-only ownership, component
rebind mute floor, and codec-derived safe HPF selection.
Signed-off-by: Erik Bourget <[email protected]>
…operties When a board DT leaves PMP calibration and identity properties (apple,board-id, apple,dram-vendor-id) to the boot loader and references that PMP from PMC via apple,pmp, booting under an older loader causes apple_pmp to fail probe permanently with -EINVAL. Deferring PMC on that supplier would keep PMC and its CLPC child (cpufreq) from probing at all. Check that an apple,pmp supplier carries apple,board-id and apple,dram-vendor-id before linking and deferring on it. When they are absent, log once, skip the PMP supplier link and omit PMP agent 0 from static_agents so PMC and CLPC keep running as before. Signed-off-by: Erik Bourget <[email protected]>
Enable pmp0, pmp0_report, pmp0_dart, pmp0_mbox, their power domains, and the PMC static voters on J716c. Leave apple,board-id, apple,dram-vendor-id, apple,pmc, apple,pmc-pmgr, and apple,tunable-* to the boot loader so every unit runs on its own ADT values rather than compiled-in tunables. The AOP audio firmware requires the PMP to bring up its LEAP power domains so the audio controller reaches systemReady. Signed-off-by: Erik Bourget <[email protected]>
…mic array Enable i2c1, i2c2, i2c3, the audio GPIOs on pinctrl_ap, the AOP, admac-base-ns, admac-ec-proxy, aop_audio, six SN012776 speaker amplifiers (shared SDZ regulator on AP pin 107 with apple,sdz-group-fail-closed, shared fault IRQ on AP pin 106, ti,bclk-ratio 250, V/I sense slots 0/2 through 20/22), the CS42L84 headphone jack codec, and the apple,j716-macaudio sound card with speaker-id GPIOs on AP pins 136 and 137. Signed-off-by: Erik Bourget <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH at 31a8aca83305
0 code, safety, or policy blockers found. Ready to approve and merge once the merge-order prerequisites and the §5 shared-code regression row are in place.
Blockers:
- Merge order:
aurora-silicon/linux#3084(multi-ampt8152_aop_audioSenseRing, currently open with requested changes) andaurora-silicon/aura#506(T6050pmp0ADT handoff, currently open) are unmerged prerequisites. Land#3084first so 12-ch V/I sense capture on J716c cannot rotate mid-frame on stream restart. - §5 shared-code regression row: This PR modifies shared
sound/soc/apple/macaudio.canddrivers/pmdomain/apple/pmc.c. Per merge policy §1(2), please add an exact-head (31a8aca83305) regression row on a second Mac usingmacaudio+apple-pmc(e.g. J713 / J616s / J714s) showing0 SELinux denials, 0 failed units, 0 new kernel errors(and record0 failed unitson the J716c row).
Checked:
- v2-only speaker ownership & fail-closed invariants (
sound/soc/apple/macaudio.c,apple,macaudio.yaml):spk_v2_only(apple,j716-macaudio) drops"Speaker Volume Unlock"and"Speaker Protection Interface"(MACAUDIO_NUM_LEGACY_SPEAKER_CONTROLS = 2), keeping"Speaker Sample Rate","Speaker Protection","Speaker Protection Crossover", and"Speaker ID".- Cold bind enters
MACAUDIO_SPK_IFACE_LEASEdirectly, enforces mute (0) and tweeter safe HPF (800 Hz) viamacaudio_spk_floor()inmacaudio_late_probe(), limits each SN012776'sAmp Gain Volumefrom ADTapple,speaker-config, and fixes all amp gains viamacaudio_spk_fix_amp_gains()inmacaudio_fixup_controls()beforesnd_card_register(), failing probe cleanly on any write failure. - Userspace writes to speaker volumes and amp gains return
-EPERMwhile leased; speaker playback triggers (macaudio_fe_refuses,macaudio_be_trigger) refuse starts without an active lease;macaudio_spk_leave_lease()is a no-op,macaudio_spk_unlock()never armsspk_unowned_work, and legacy unlock/interface writes return-EOPNOTSUPP. - Admission (
macaudio_speakers_allowed,macaudio_sn012776_levels_present) permitssafe_vol == 0only on non-fixed-ceiling digital mute-floor amps (AMP_TAS5770/AMP_SN012776) and requires boot-loaderapple,amp-dcblocker-config(>= 2bytes) onspk_v2_onlyboards while keeping the headphone jack usable if speaker admission fails. macaudio_hpf_safe_item()andmacaudio_set_fixed_hpf()derive the tweeter safe corner from the codec's advertised"<N> Hz"enum items (resolving to index 6 /"800 Hz"ontas2764and failing closed with-ENOENTotherwise).macaudio_card_remove()andmacaudio_late_probe()reset per-bind state and control array counts so ASoC component unbind/rebind preserves the cold-bind mute floor without array overflow.- KUnit coverage (
macaudio-*-test.h,macaudio-kunit.dtso) exercises v2-only admission, DC-blocker checks, permanent lease mode, rebind floor reset, and codec-derived HPF selection.
- PMC fallback (
drivers/pmdomain/apple/pmc.c):- Guards the
apple,pmpsupplier link onof_device_is_available(pmp_node)plusapple,board-idandapple,dram-vendor-id(matchingdrivers/soc/apple/pmp.rsrequired properties), skipping the link and clearing PMP static voterBIT(0)when absent soapple-pmcandapple-clpckeep running under older boot loaders. - Verified PMP is agent
0across allapple-pmcSoCs (t8132,t8140,t8142,t6040/t6041,t8152,t6050); boards with populated PMP properties keep unchanged behavior.
- Guards the
- J716c DTS & cross-repo alignment (
arch/arm64/boot/dts/apple/t6050-j716c.dts):pinctrl_apgpio-reserved-ranges = <0 80>, <81 25>, <108 26>, <135 1>, <140 81>opens exactly pins80, 106, 107, 134, 136, 137, 138, 139while keeping pin 112 (SError) reserved.pmp0leaves per-unit calibration/IDs to the boot loader (aura#506).- Six SN012776 amps (
i2c10x38..0x3a,i2c30x3b..0x3d, shared SDZ AP 107 withapple,sdz-group-fail-closed, fault IRQ AP 106,ti,bclk-ratio = <250>, V/I slots0/2..20/22, TDM idle masks0xfff0f0f0/0xff0f0f0f), CS42L84 jack (i2c2@4b, reset AP 139, IRQ AP 134),speaker-id-gpios(AP 136/137), andaop_audioDMAs matcht6050-j714s.dts,linux#3084, andspeakerguardd#259(packaging/session/fixtures/j716.json, wiring hashcbba18ec53f0a442).
- Commits, CI, and policy:
- All 4 commits have human author/committer (
Erik Bourget) with validSigned-off-by:; zero AI attribution; no banned names; default cmdline; no hardcoded safety limits;mergeable: MERGEABLE. - All 5 CI checks green at exact head
31a8aca833050357290695dccb3b2ba88e681ee6.
- All 4 commits have human author/committer (
Evidence
- Head SHA:
31a8aca833050357290695dccb3b2ba88e681ee6(state: OPEN,isDraft: false,mergeable: MERGEABLE,mergeStateStatus: BLOCKED) - CI at head:
dt-checks(success),host-tests(success),kunit(success),readiness / readiness(success),pr-text / pr-text(success) - Prerequisite status at review time:
aurora-silicon/linux#3084:OPEN,CHANGES_REQUESTEDatedf11ddd623bf71e8d044148025eab45b949ef8caurora-silicon/aura#506:OPENat2eb142fe92ad46f74e33439409de8cc4256e0315aurora-silicon/speakerguardd#259:OPENatef275fa8b21a99eca2e0e4f278988f522fb51387(wiring hashcbba18ec53f0a442matchest6050-j716c.dts)
Branch head Updated the PR body to drop internal trial-build identifiers and align
|
Completed the shared-code regression row at exact head
Updated the PR body's |
satchlj
left a comment
There was a problem hiding this comment.
Gemini 4 Neon on @satchlj's behalf
Verdict at 31a8aca83305
Approve — clean J716c AOP audio enablement and v2-only speaker protection path, with green CI and exact-head J716c + J713 hardware rows posted.
Blockers
None for code review.
Merge-order note: Both merge-order prerequisites listed in the PR body (aurora-silicon/linux#3084 and aurora-silicon/aura#506) are still OPEN; keep the documented merge order when landing.
Checked
- Full static audit of all 10 changed files (
+784/-84):sound/soc/apple/macaudio.c:spk_v2_onlyadmission (macaudio_speakers_allowed()): requires digital-gain amps (AMP_TAS5770/AMP_SN012776),!spk_fixed_ceiling, and per-amp ADTapple,amp-dcblocker-config(>= 2 u8 elements) inmacaudio_sn012776_levels_present(), failing closed (speakers disabled, jack retained) if missing.- Control exposure & safety floor: drops legacy
"Speaker Volume Unlock"and"Speaker Protection Interface"controls viaMACAUDIO_NUM_LEGACY_SPEAKER_CONTROLS(moving"Speaker Protection"ahead of them inmacaudio_controls[]), returns-EOPNOTSUPPinmacaudio_slk_put(), starts directly inMACAUDIO_SPK_IFACE_LEASEwith full-scale SW gain + hardware mute floor (macaudio_spk_floor()), and fixes ADT-derived operating amp gains inmacaudio_fixup_controls()before exposing the card. macaudio_hpf_safe_item()+macaudio_set_fixed_hpf(): cleanly derives the highest<N> Hzcorner frequency from the codec's advertised enum items instead of hard-coding a frequency string.- Per-bind reset in
macaudio_late_probe()andmacaudio_card_remove(): cleanly resetsspk_*state, counters (spk_nr_vols,spk_nr_amp_gains,spk_nr_hpfs), and kcontrol pointers across ASoC component rebinds.
- DT / bindings / PMP / KUnit tests:
t6050-j716caudio/AOP/amp nodes,macaudiobinding update, and KUnit coverage audit cleanly.
- CI at
31a8aca83305: all checks SUCCESS (dt-checks,host-tests,kunit,readiness,pr-text). - Posted hardware evidence at exact head
31a8aca83305: J716c (16-inch M5 Max) live playback/sense/mic/jack row and J713 (M4 Air) shared-code regression row both recorded in the PR thread. - Untested scope: no local kernel build or boot performed on our hardware (review based on full diff audit, CI results, and posted hardware rows).
Evidence
- Changed files (10):
+784/-84. - Checked prerequisite PR states at review time:
aurora-silicon/linux#3084(OPEN),aurora-silicon/aura#506(OPEN). - CI:
dt-checks,host-tests,kunit,readiness,pr-textall green at31a8aca83305.
Updated the PR body (
|
|
This branch conflicts with |
Signed-off-by: Erik Bourget <[email protected]>
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict at fa6ca3bf: audio part OK; please split out the pmc.c change before merge.
Rows: they carry over to this head. The PR's own diff against main is unchanged from 31a8aca8 (the J716c target row and J713 regression row) apart from conflict context: main's J704 and K114 entries in the same table and comment.
Checked (audio, OK)
spk_v2_onlyadmits only the "Speaker Protection" lease. The card binds muted at the hardware floor, legacy unlock is never exposed, and losing the owner never reverts.has_safe_flooralso accepts v2-only digital-gain amps, whose ungranted floor is hardware mute.- It fails closed without the boot loader's
apple,amp-dcblocker-config. - The tweeter high-pass "safe" item now comes from the codec's own enum (highest advertised
N Hz) instead of a hard-coded "800 Hz". That follows the safety-values-from-the-machine rule. On today's codecs, whose enums top out at 800 Hz, nothing changes. A codec that offers a higher corner would get it, which is more protective. That's worth one line in the commit message because it applies to every speaker Mac. KUnit covers the selection.
Fix first
- The
drivers/pmdomain/apple/pmc.cchange isn't audio. When the PMP node lacks the boot loader'sapple,board-id/apple,dram-vendor-id, it probes PMC without the PMP and drops the PMP static voter. That's shared power code for any board with a PMP node, a fallback for older loaders, and the J716c/J713 audio rows don't exercise it. Please move it to its own PR (one feature per PR), with a row on a board booted with and without those properties. Then this PR can merge on its audio rows.
…oader properties" This reverts commit 830c90c. Signed-off-by: Erik Bourget <[email protected]>
This reverts commit a0f72aa. Signed-off-by: Erik Bourget <[email protected]> # Conflicts: # arch/arm64/boot/dts/apple/t6050-j716c.dts
|
Split both the
|
|
Merge-train status at |
|
Status of the merge-train checklist at
|
|
Follow-up on the
PipeWire also logged |
There was a problem hiding this comment.
Verdict: FINISH, then merge at 952e45d7
Blockers:
- Branch is
CONFLICTING(DIRTY) withmain; forward-mergemain(no force push) and re-run the cancelledpr-textandreadinesschecks to green on the merged head.
Checked:
- Prior split-out blocker resolved cleanly at
952e45d7:d5f37421and952e45d7revert thepmc.cand J716c PMP DT changes so this PR focuses strictly on J716c AOP audio and v2-only speaker ownership (spk_v2_only,"apple,j716-macaudio"). - Exact-head J716c hardware row PASS (PipeWire stall explained as userspace follower delay, 0 kernel/
speakerguarddfaults); no Apple material, tool attribution, or private serials.
Evidence
- Head:
952e45d7f622(base: main,mergeable: CONFLICTING,+714/-74across 9 files).
Signed-off-by: Erik Bourget <[email protected]>
Signed-off-by: Erik Bourget <[email protected]>
…tion Signed-off-by: Erik Bourget <[email protected]>
|
Forward-merged Conflict resolution & selftest update:
Offline checks at
Updated the PR body to update the head SHA to Live hardware at
|
There was a problem hiding this comment.
Verdict: MERGE at 823c2aa after hosted checks
Checked the forward-merge control ordering and dynamic HPF fixture. The v2-only control prefix retains sleep accounting and omits the two legacy ownership controls. The unordered fixture checks the highest advertised Hz item, restoration on grant, and denied ordinary writes on the fixed path. Both merge-order prerequisites landed. The reported target and peer receipts cover the relevant runtime hunks. Require current hosted CI and readiness before merging, including disposition of the unrelated DCP host-suite failure.
|
code-owner ping @DjDeveloperr: closeout merge at |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
|
Merged. Thanks @erikwb: J716c AOP audio is in, with speakers only through the v2 lease. Loud/sustained playback and jack insertion stay with speakerguardd#259. |
What: Add v2-only speaker ownership (
spk_v2_only,"apple,j716-macaudio") tomacaudio, and enable AOP audio, six SN012776 speaker amplifiers, CS42L84 headphone jack, and the internal mic array on J716c (16-inch M5 Max).Tested: Offline checks at
823c2aa35eb6(origin/mainb48f89158d7cforward-merged at324ca3a7ddee+macaudio-fixed-controls.pyupdate at823c2aa35eb6; all runtime audio/DT hunks unchanged vsc14d2f103d25; full details, hashes, and earlier952e45d7f622/fa6ca3bf0e0b/31a8aca83305runs in Evidence):823c2aa35eb6(and324ca3a7ddee):tools/testing/selftests/alsa/macaudio-fixed-controls.pyPASS (validation=0andvalidation=1,678attempts each,0failures), arm64 QEMU KUnit (sound/soc/apple/macaudio.kunitconfig)82/82passed,tools/asahi/run-host-tests.py764/765passed (unrelatedapple-dcp94/96pre-existing failures only); at324ca3a7ddee(identical audio/DT tree):dt_binding_check(sound/apple,macaudio.yaml) 0 warnings,CHECK_DTBS=y apple/t6050-j716c.dtb0 warnings on added audio/I2C/AOP/ADMAC/sound nodes,LLVM=1 ARCH=arm64 W=1 sound/soc/apple/0errors /0warnings, andgit diff --checkclean.c14d2f103d25: batched3545ebecb76f(6/9blob-identical,2/9PR hunks present,1comment-only merge inmacaudio-admission-test.h— runtime hunks verified, default cmdline):AppleJ716HPAI+AppleJ716(50controls, legacy unlock/interface absent, all 6 volumes at0floor), quiet 5 s-36 dBFSprotected playback viaspeakerguardd-v2granted0 -> 201and returned cleanly to0mute (0,0,0faults; counted923/923V/I records belong to952e45d7f622), 2 s 3-ch mic capture clean,0kernel audio errors, 6-item smoke pass (aurora-peripherals.servicewarm-reboot baseline failure also on default/control).c14d2f103d25: batched76649338a1bc(8/9blob-identical,t6050-j716c.dtshunks-present, default cmdline +panic=10):AppleJ713HPAI,AppleJack,AppleJ713enumerated,speakerguardd-v2protected tone rc0,0audio errors, 8-item smoke pass (0failed units,0AppArmor denials).c14d2f103d25: batched Group A (main+ 9 PRs, parity-identical per PR againstmain, undocked): boot smoke (0AVC denials, baselinespeakerguardd-v2-switchtest.servicefailure also onmain), 3x DPMS, 2x deep S2R pass (unisolated ISP capture failed after 1st deep resume on Group A vs passed after 1st deep resume on baselinemain, tracked under#3329; no speaker playback run).Risk: one-way door (DT binding compatible
"apple,j716-macaudio"and J716c v2-only speaker enablement) · J716c (T6050) plus sharedmacaudioacross Apple Silicon Macs.Not yet: Loud or sustained speaker playback on J716c (only quiet 5 s plays ran at
c14d2f103d25and952e45d7f622); physical jack insertion detection on J716c (jack controls readoffwith nothing plugged in); speaker or jack playback on J713 (protected tone viasgv2.voicingran atc14d2f103d25, not full speaker/jack hardware characterization) or J313 (and untested on M1/M2/M3/M4 Pro/Max speaker playback); companion PRaurora-silicon/speakerguardd#259(open) for J716c fixture packaging (on the 2026-11-28 J716c boot, the PR'sspeakerguardd-selfcheckrunpassedwiring cbba18ec53f0a442, whileverifyvoicingrefused against the older installed rendering library and nomic-3chplugin or/var/lib/speakerguardd/mic.binblob is installed on the Mac yet).Revert: Revert the PR commits (or
git revert -m 1on the merge commit after landing). Kernel driver, DT, binding, and KUnit changes only; no persistent ESP, Stage 2, or on-disk state is modified, so rebooting or rebinding returns J716c to jack-only without speaker support.Details
Audio/DTS feature commits plus forward merges from
main(b48f89158d7c) and two reverts splitting the PMP/pmc.cchanges out into a separate power PR so the net diff againstmain(10 files changed, 764 insertions(+), 88 deletions(-)) touches only audio/speakers/jack/mic array files and the ALSA fixed-controls selftest:d64ac3782ae9(ASoC: apple: macaudio: add v2-only speaker ownership and the J716 (16-inch M5 Max)):spk_v2_onlycapability and"apple,j716-macaudio"binding/match: drops the two legacy speaker controls (Speaker Volume UnlockandSpeaker Protection Interface,MACAUDIO_NUM_LEGACY_SPEAKER_CONTROLS = 2) while retainingSpeaker Protection(v2 lease),Speaker Protection Sleeps(merged frommain),Speaker Sample Rate, and the dynamically addedSpeaker Protection CrossoverandSpeaker Variant IDcontrols; binds directly inMACAUDIO_SPK_IFACE_LEASEat hardware mute (0), fixes each amp's gain at its boot-loader limit inmacaudio_fixup_controls(), refuses PCM start without an active lease, rejects legacy unlock/interface transitions with-EOPNOTSUPP, and never reverts to unlock mode after owner loss.macaudio_card_remove()/macaudio_late_probe()) so component rebind preserves the cold-bind mute floor.apple,amp-dcblocker-config(>= 2bytes) alongsideapple,speaker-configbefore admitting speakers (leaving the headphone jack usable if speaker admission fails).HPF Corner Frequencyenum items viamacaudio_hpf_safe_item()instead of hardcoding a literal (applies to all speaker Macs; unchanged at800 Hzon current codecs).apple-speaker-*KUnit suites (78speaker subtests plus4apple-mca-capture-syncsubtests underCONFIG_OF_OVERLAY=y).31a8aca83305(arm64: dts: apple: t6050-j716c: enable AOP audio, speakers, jack and mic array):i2c1/i2c2/i2c3, AOP (aop,aop_mbox,aop_setup_mbox,aop_dart),admac-base-ns/admac-ec-proxy,aop_audio, six SN012776 amps (apple,sdz-group-fail-closed,ti,bclk-ratio = <250>, V/I sense slots0/2..20/22, disjoint active TDM idle-zero masks0xfff0f0f0/0xff0f0f0f), CS42L84 jack codec (i2c2@4b), and"apple,j716-macaudio"withspeaker-id-gpios.272977113bc0,fa6ca3bf0e0b,c14d2f103d25, &324ca3a7ddee(Merge branch 'main' into feat/j716c-speakers):main(ee36fbdcd1c8, thenb48f89158d7c, includingaurora-silicon/linux#3084,#2587,#3479,#3480,#3484,#3557, and20e759f912ac).c14d2f103d25, keepsspk_legacy_selected = falseon non-spk_v2_onlycard binds, ordersSpeaker Protection Sleeps(MACAUDIO_NUM_COMMON_CONTROLS = 3,MACAUDIO_NUM_SPEAKER_CONTROLS = 5) ahead of the two trailing legacy controls (MACAUDIO_NUM_LEGACY_SPEAKER_CONTROLS = 2) withBUILD_BUG_ONverification sospk_v2_onlyretainsSpeaker Protection Sleepswhile dropping the legacy controls, drops the removedmacaudio_k114_cfg, and updatesmacaudio_iface_v2_only_never_leaves_leaseinmacaudio-iface-test.hformacaudio_slk_lock()returning-EPERMwithoutspk_legacy_selected.324ca3a7ddee, mergesorigin/main(b48f89158d7c), keeping bothmain's positive J704 assertion/comment (#3557) and#3085's J716 v2-only assertions insound/soc/apple/macaudio-admission-test.h, with all runtime audio and DT code unchanged vsc14d2f103d25(onlymacaudio_j704_cfgfromorigin/maininmacaudio.c).823c2aa35eb6(selftests: alsa: update macaudio-fixed-controls for dynamic HPF selection):tools/testing/selftests/alsa/macaudio-fixed-controls.pyto extractmacaudio_hpf_safe_item()(withsimple_strtoul) andmacaudio_set_fixed_hpf()instead of the removedmacaudio_enum_item(), and adds dynamic unordered highest-Hz (1600 Hz) coverage tohpf_scenario()alongside all existing fixed-control, sense, route, and DT corner assertions.d5f374213e9f(Revert "pmdomain: apple: pmc: probe without PMP when supplier lacks loader properties") &952e45d7f622(Revert "arm64: dts: apple: t6050-j716c: enable the PMP"):830c90c8f223(drivers/pmdomain/apple/pmc.c) anda0f72aa06305(arch/arm64/boot/dts/apple/t6050-j716c.dtspmp0/ps_pmp/ps_pms*/apple,static-voters/apple,pmp) without rewriting branch history so both move together into a separate power PR anddrivers/pmdomain/apple/pmc.cplus J716c PMC/PMP DT nodes matchmain.Companion PRs:
aurora-silicon/linux#3084(t8152_aop_audioSenseRingfix): merged (cec55b3701d5)aurora-silicon/aura#506(T6050pmp0ADT handoff): merged (58dc33f4b283)aurora-silicon/alsa-ucm-conf-asahi#30(J716 UCM profiles): mergedaurora-silicon/speakerguardd#259(J716c fixture +AID41playback row): openEvidence
823c2aa35eb6(forward merge324ca3a7ddeeoforigin/mainb48f89158d7contoc14d2f103d25, plus823c2aa35eb6updatingtools/testing/selftests/alsa/macaudio-fixed-controls.py; runtime audio/DT hunks unchanged vsc14d2f103d25, where live hardware ran).823c2aa35eb6(and324ca3a7ddee):python3 tools/testing/selftests/alsa/macaudio-fixed-controls.py: PASS (validation=0 attempts=678 failures=0,validation=1 attempts=678 failures=0, exercisingmacaudio_hpf_safe_item(),macaudio_set_fixed_hpf(),macaudio_spk_take_hpfs(),macaudio_spk_set_hpf(),macaudio_set_speaker(), andmacaudio_protect_sense())../tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=sound/soc/apple/macaudio.kunitconfig):82passed,0skipped,0failed (apple-mca-capture-sync4/4 PASS,apple-speaker-admission2/2 PASS,apple-speaker-protection34/34 PASS,apple-speaker-hpf12/12 PASS,apple-speaker-pm-volumes3/3 PASS,apple-speaker-volume-unlock11/11 PASS,apple-speaker-interface10/10 PASS,apple-speaker-amp-level6/6 PASS).python3 -I tools/asahi/run-host-tests.py:764/765passed (apple/aop-als,apple/aop-las,apple/aop-motion,aop-service-tests,hardware-defaults-tests, etc. all pass; onlyapple-dcpexited 1 on 2 unrelated pre-existing tests:same-handle-srcu-index,mux-release-stages).make ARCH=arm64 LLVM=1 dt_binding_check DT_SCHEMA_FILES=sound/apple,macaudio.yaml(324ca3a7ddee, binding unchanged at823c2aa35eb6): PASS (0 warnings).make ARCH=arm64 LLVM=1 CHECK_DTBS=y apple/t6050-j716c.dtb(324ca3a7ddee, DT unchanged at823c2aa35eb6): 0 warnings on added audio/I2C/AOP/ADMAC/sound nodes (only pre-existingopp-table-gpu-afr,opp-table-gpu-cs,pcie@1c50000000,pcie@1c60000000warnings).make ARCH=arm64 LLVM=1 W=1 sound/soc/apple/(defconfig+asahi.config,RUST=n,324ca3a7ddee,sound/soc/apple/unchanged at823c2aa35eb6): PASS (0 errors, 0 warnings).git diff --check origin/main..HEADclean;git merge-tree --write-tree origin/main HEADclean (2c617703c9d5at324ca3a7ddee;823c2aa35eb6touches onlytools/testing/selftests/alsa/macaudio-fixed-controls.py)../scripts/checkpatch.pl --strict --git origin/main..HEAD: 0 errors, 0 warnings, 0 checks on the revert commits (./scripts/checkpatch.pl --strict --file tools/testing/selftests/alsa/macaudio-fixed-controls.py0 errors, 1 pre-existing line-5 filename warning; atc14d2f103d25, 6 pre-existing warnings ond64ac3782ae9: 3 line-length >100 in test headers,simple_strtoul, DT binding patch-split notice, 1 unwrapped commit description line).c14d2f103d25(2026-11-28; all PR runtime audio/DT hunks unchanged at823c2aa35eb6):3545ebecb76f(origin/mainb897ccb4e71c+ 18 PRs,CONFIG_ARM_APPLE_SOC_CPUFREQ=m, AC power, default command line):Image.gzSHA-256d56efde4c7232208bd29d5c4e5890319e0050595dd4f4b1c3844df6656a08312,t6050-j716c.dtbSHA-256d2f0db7a5026ae9cc4e1cff61dca38b4d1b363d47e5bad696ef65c7d715517e0, modules SHA-2569d5782bcf02ea60a225278c9319431f902b495f6beb485d79d127c0fb2fccc92, one-shotaura-tryStage 2 SHA-256b7d99286395ddd7dadccc6d9593f4bd55391d9e787af97c18b45f58688d9885d(default Stage 221edee972e1ff1718c6f41c32b91ee151afdc58cbb69f16f2f6a4d8d4c722170, default kernelbf2582ab357573db64031f39e7bc9d617eb574c6b221364ff417810bbddf4c87, default DTBffe7604c98ad23849b2aff19eb161bec712f8b367a9bc87339fabb6d7dc1276cunchanged).c14d2f103d25is an ancestor of3545ebecb76f;6/9changed files are blob-identical,2/9have all PR hunks present (t6050-j716c.dts,macaudio.c), and1(sound/soc/apple/macaudio-admission-test.h) had a comment-only conflict withmainb897ccb4e71c(keeping both J704 and J716 v2-only wording); all runtime audio/DT hunks were verified and matchc14d2f103d25(and823c2aa35eb6).AppleJ716HPAI(aop_audio) andAppleJ716(macaudio) enumerated;amixer -c AppleJ716 controlslists50elements includingSpeaker Protection(0..100,0at idle),Speaker Protection Sleeps(read-only,4),Speaker Sample Rate, andSpeaker Variant ID; legacySpeaker Volume UnlockandSpeaker Protection Interfaceabsent (Cannot find the given element). All 6 speaker volumes0at idle (floor); all 6Amp Fault Status0,0,0.speakerguardd-v2active,protection ready): verifies quiet protected playback and return to mute — 5 s 440 Hz-36 dBFStone at0.30stream volume tosgv2.voicing.j716;Speaker Protection0 -> 1and all 6 speaker volumes0 -> 201during play and returned cleanly to0mute after ~10 s idle (protection granted,0 frames over capacity, no release/fault/refusal, amp faults0,0,0; first play's lease sample was missed by the sampling script though kernel/journal lines were clean; second play captured the lease values; the counted923/923V/I sense records belong to the earlier952e45d7f622solo trial run below). Kernel logged onlySpeaker protection granted/withdrawn: released by the ownerpairs.arecord, 2 s, 3 channels, 48 kHz float onAppleJ716HPAI):96,000frames/ch (88,730non-zero ch 0/2,88,728ch 1;-98.0 / -98.5 / -98.9 dBFS, quiet room).0kernel errors frommacaudio,t8152_aop_audio, MCA, or ADMAC.eDP-13456x2234@120enabled,4input devices,wlan0gateway ping0%loss, BorealisApple M5 Max (G17C B1)+vkcube --c 180OK,0failed user units,0LSM denials,0Oops/BUG/fault;1failed system unit (aurora-peripherals.service: vendor firmware handoff failed on every warm reboot of the session including control and restored default, though not on the initial long-uptime boot);40err+lines (apple-dcpunable to match serviceandsystemd-gpt-auto-generator/dev/root), all present on the55-line default boot.76649338a1bc(J713 default kernel source8dbfa2895b93+ PRs; default cmdline +panic=10):e8e9fd2813dd6347176d0e4a55a70d1c694bdab75817c3ab83c441c203140491, one-shot Stage 2 SHA-256f7d4e2f7ebbfb423bd71f233f1aef7af0a39091b288a749d25f9250eb80adbfa, DTBceacf1d413c651396f4c1dfd9fa27b15c710dd849e46c2753fcff0a23a6681c6. Parity:c14d2f103d25is an ancestor;8/9files blob-identical (7/8runtime),t6050-j716c.dtshunks-present.macaudio:/proc/asound/cardslistsAppleJ713HPAI(aop_audio),AppleJack(macaudio), andAppleJ713(macaudio);aplay -llists card 1 (MacBook Air J713 Jack) and card 2 (MacBook Air J713);speakerguardd-v2active, 1 s 440 Hz-26 dBprotected-sink tone (sgv2.voicing) rc0,0audio errors.eDP-12560x1664@60enabled, MTP keyboard/trackpad enumerated,wlan0gateway ping0%loss, BorealisApple M4 (G16G B0)glmark25,099,0failed units,0AppArmor denials;4err+lines: 3 baseline (AFK[ep:20],unsupported DFB layout 2560x1664,apple_sepnotice) plus 1brcmfmac ... ring 4: r_ptr 0 outside depth 0line (also observed on the default kernel boot in Part 2).main+#3085,#3290,#3329,#3333,#3495,#3506,#3546,#3289,#3320, undocked on battery, all PR changed files parity-identical againstmain), kernel SHA-256888c041944da96032a9252504c4d5543b906fd98717234eca5e091150af85798, one-shot Stage 2 SHA-256949dc089ed390b7535dd5ef2a6e99975c3026658e58dbd9d17e9b20d2bbb7d71:eDP-1enabled, keyboard/trackpad registered,wlan0gateway ping OK, audio cards/sinks enumerated without speaker playback, BorealisApple M1 (G13G B1)compute/render OK),0AVC denials,1failed unit (speakerguardd-v2-switchtest.service, also present on baselinemainee36fbdcd1c8SHA-256f750b04aebd30c439edbd3b995c17b3fd9ad805a4561dadc7ecbf78040c89289), 3x DPMS off/on pass, 2x deep S2R (rtcwake -d rtc1 -m mem -s 30) pass (0Oops/BUG/WARN). Post-S2R ISP capture failed after the 1st deep resume on Group A (apple-ispfirmware boot-19, DART translation fault) vs passed after the 1st deep resume on baselinemain(unisolated, tracked under#3329).952e45d7f622:./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig=... 'apple-*'):104passed,0skipped,0failed (apple-admac-position5/5 PASS,apple-admac-realign3/3 PASS,apple-pmc17/17 PASS,apple-mca-capture-sync4/4 PASS,apple-speaker-admission2/2 PASS,apple-speaker-protection34/34 PASS,apple-speaker-hpf12/12 PASS,apple-speaker-pm-volumes3/3 PASS,apple-speaker-volume-unlock9/9 PASS,apple-speaker-interface9/9 PASS,apple-speaker-amp-level6/6 PASS).make ARCH=arm64 LLVM=1 dt_binding_check DT_SCHEMA_FILES=sound/apple,macaudio.yaml: PASS (0 warnings);make ARCH=arm64 LLVM=1 CHECK_DTBS=y apple/t6050-j716c.dtb: 0 warnings on added audio/I2C/AOP/ADMAC nodes;./scripts/checkpatch.pl --strict --git fa6ca3bf0e0b..HEAD: 0 errors, 0 warnings, 0 checks.952e45d7f622(one-shot trial boot of the PR head alone, Linux 7.3.0, default command line, default Stage 2, AC 100%,pmp@284e00000disabled):0panics/Oops/BUG/WARNING/SErrors; only the pre-existingaurora-peripheralsandsystemd-networkd-wait-onlineunits failed. Live DT/proc/device-tree/soc@200000000/pmp@284e00000/status=disabled, no PMP platform device.snd_soc_t8152_aop_audioauto-loaded;aplay -l/arecord -llistAppleJ716(playback0,1; capture0,2Speaker Sense) andAppleJ716HPAI(Microphone Array);amixer -c AppleJ716 controls:49elements;cget iface=MIXER,name="Speaker Protection"=0..100, value0at idle;cgetofSpeaker Volume UnlockandSpeaker Protection Interface:Cannot find the given element. Idle: all sixSpeaker Volumecontrols0, all sixAmp Fault Status0,0,0.speakerguarddv2 (installedspeakerguardd-v2 1.0.0alpha.2-5; J716 PipeWire/WirePlumber files matchaurora-silicon/speakerguardd#2593b4decf0c351): gatej716c (spp3) is gated for v2 and the kernel has the v2 interface on AppleJ716; compiled AID41 (blob bfbbd9fc8008, 6 channels, 12 sense, 48 kHz, unit calibration in use); silent switch test passed (wiring cbba18ec53f0a442, params bfbbd9fc8008); supervisorV/I sense initialized: 12 switches enabled and read back,protection ready: every check holds.pw-play --target sgv2.voicing.j716, 440 Hz stereo sine,-36 dBFSRMS,-33 dBFSpeak, 5 s, slider0.30, restored to0.15after):protection granted,949records,health_or = 0x0,lost = 0,sense_delay = 1664; during playSpeaker Protection=1and all six speaker volumes201; faults0,0,0on all six amps; released after idle back to0floor.923records,923/923with non-zero V and I on all 12 sense channels,health_or = 0x0,lost = 0,sense_delay = 1664, gain0 dB, faults0,0,0on all six amps. At+7.35 safter grant (2.2 s afterpw-playexited, while draining silence),pipewireloggedspa.alsa hw:CARD=AppleJ716,DEV=2c: follower delay:4344 target:1024 thr:512 resample:0, resyncandaudioconvert ... out of buffers on port 0 2(running at normal scheduling priority due toRTKit ... ServiceUnknown), causing an 80 ms heartbeat gap (heartbeat_fresh: false);speakerguarddreleased and re-granted after+300 ms, while the kernel refused 2 speaker starts in between and logged zero errors.dmesgacross both runs: onlySpeaker protection granted/withdrawn: released by the ownerlines;0timeouts, failures or xruns frommacaudio,t8152_aop_audio, MCA or ADMAC.arecord -D hw:AppleJ716HPAI,0, 3 channels, 48 kHz float, 2 s):96,000frames/ch,88,738non-zero/ch, RMS-94.3 / -94.0 / -94.7 dBFS(quiet room; discarded).952e45d7f622(c3da8eed6f72andf59b93fb961f, overmain9af21b007425, Linux 7.3.0, default command line, default Stage 2, AC 100%,pmp0disabled):0panics/Oops/BUG/SErrors/DART faults/GPU faults/WARNING/LSM denials; BorealisApple M5 Max (G17C B1),/dev/accel/accel0,eDP-13456x2234@120;AppleJ716HPAI+AppleJ716enumerated,Headphone JackandHeadset Mic Jackoff(unplugged),Speaker Variant ID(0), v2Speaker Protectionpresent, legacy controls absent; 2 s 3-channel48 kHzmic capture (96,000frames/ch,88,738non-zero/ch) clean.952e45d7f622(batched candidateb3dbf237542bovermain9e38a276dcb4, Linux 7.3.0, default cmdline, default Stage 2):AppleJ713HPAI(capture),AppleJack(playback/capture) andAppleJ713(playback, Speaker Sense capture) enumerated;snd-soc-macaudiobound withSpeaker protection interface: Speaker Protection (lease); Speaker Volume Unlock refused;0macaudio/mca/admac/snd_socerrors; no playback ran.fa6ca3bf0e0band31a8aca83305, dated 2026-11-24 to 2026-11-27):fa6ca3bf0e0bin candidate3e4078f656d5, PMP enabled): clean desktop boot,dEQP-VK.ssbo.*7,940/7,940Pass,AppleJ716/AppleJ716HPAIup, 3-ch mic capture clean,0new failed units,0LSM denials.fa6ca3bf0e0bin90de523e9ed9):snd_soc_macaudiobound cleanly,0failed units,0AppArmor denials; deep sleeprtcwake -d /dev/rtc1 -m mem -s 15reset with PMU panic counter1(also reproduced onmainfcb124279183).31a8aca83305, candidatea60c110f35e0, +#30845f1321879f34, Stage 21.0.0b17-gae94218e):speakerguardd-v2.serviceactive (AppleJ716: v2 interface only,wiring cbba18ec53f0a442,params bfbbd9fc8008),gpubench-vk18/18ok,dEQP-VK.api.smoke.*6/6Pass,0new kernel errors,0AVC lines.#308531a8aca83305+#308426f1ac62bcbd+aura#5062eb142fe):PMP running (status 0x1),speakerguardd-selfcheck verify4/4 PASS (5 silent pilot starts, no xrun), 6/6 L/R 200 Hz alignment bursts (shift == 0,health_or = 0x0,0,0,0faults on all 6 amps) across 13 s idle and mid-burstkill -9(Speaker protection withdrawn: owner gone-> re-granted with1 speaker starts refused before).#3084c3feb10d6265+ samemacaudio/DTS commits +aura#506): full 420 sAID410.3/0.6/1.0ladder (39,762rows,lost = 0,health_or = 0x0,0,0,0faults across all 6 amps), 3-chAppleJ716HPAImic capture[-39.2, -35.9, -36.5] dBFS,kill -9re-grant in1.254 s.31a8aca83305, one-shot GRUB trial):0failed units,0AppArmor denials,0new kernel errors/warnings,snd-soc-macaudio,apple-pmc, andapple_soc_cpufreqbound cleanly.