Repository navigation
ASoC: apple: macaudio: no PCM for the J616s route-only front-ends - #591
Conversation
The J616s speaker card has no headphone codec (the jack is a card of its own), and the jack card has no second output. Their CPU DAIs j616-pcm-0 and j616-jack-pcm-1 exist only so the fixed Speaker and Headphone mux routes resolve; the AOP component has no stream for them. The cards still create PCM devices for them, hw:AppleJ616,0 and hw:AppleJack,1. When the PipeWire pro-audio profile probes every PCM of the speaker card at session start, opening hw:AppleJ616,0 finds no back-end and logs at boot Primary: ASoC: no backend DAIs enabled for Primary, possibly missing ALSA mixer-based routing or UCM profile even though UCM routes the speakers through Secondary as it should. Mark those front-ends in the machine data and leave their links unbound. The DAI widgets still exist, since a component creates them for all its DAIs, so the mux routes and controls do not change and UCM sets "Speaker Playback Mux" to Secondary as before. The AOP component uses the link number as the PCM device number, so the speakers stay hw:AppleJ616,1 and the speaker sense hw:AppleJ616,2, which UCM, asahi-audio and the speaker protection daemons open by number. Back-end internal PCMs move above the front-ends. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
|
J616s boot test, one-shot 7.3.0-aurora-fleet9h (fleet9 695d974 + this PR + #614 + the gamma debug commit, src e2ce1e6e).
Pass from the J616s side. Full dmesg: 🤖 Generated with Claude Code |
|
Audio review: the change is confined to the J616s. 🤖 Generated with Claude Code |
Every J616s boot logs this once the user session starts:
The UCM profile is there and correct (alsa-ucm-conf-asahi
macaudio/MacBook Pro J616.conf, HiFi setsSpeaker Playback Muxto Secondary). The line comes fromhw:AppleJ616,0. On the speaker card the Primary front-end (j616-pcm-0) is only there so the fixed mux routes resolve. The AOP component has no stream for it and the card has no headphone codec, since the jack is its own card. The jack card has the same kind of placeholder inj616-jack-pcm-1. When the PipeWire pro-audio profile probes every PCM of the card, opening pcm0 finds no back-end and soc-pcm prints the line above. No setting can make that PCM work.This leaves those two front-end links unbound (
link->ignore), using a newroute_only_fesmask in the machine data. The DAI widgets stay, because a component creates widgets for all its DAIs, so the mux controls and routes don't change and UCM works as before. The AOP component now setsuse_dai_pcm_id, so the PCM device number stays the link number: speakers stayhw:AppleJ616,1and speaker sensehw:AppleJ616,2, which UCM, asahi-audio, speakersafetyd and speakerguardd open by number. Back-end internal PCMs move to 16 and up.Nothing here touches speaker protection, volume limits or the speaker admission path.
Needs audio review before merge.
Testing so far
7.3.0-aurora-fleet9g). The sound files are identical between that base and aurora-wip./proc/asound/AppleJ616haspcm1pandpcm2cand nopcm0p,/proc/asound/AppleJackhaspcm0p/pcm0cand nopcm1p,journalctl -b -k | grep 'backend DAIs'is empty after login, speakerguardd and speakersafetyd attach to the same devices, and the HiFi profile and the j616 speaker filter come up in WirePlumber. Muted, no playback.🤖 Generated with Claude Code