Repository navigation
ASoC: apple: t8140-aop-audio: wait for the first lpai report on a completion - #2404
RyanTheTide wants to merge 1 commit into
Conversation
…pletion Before a leaf power request, the low-power microphone is run to raise the audio fabric, and its first report proves the fabric is up. The driver waited for that report by polling a flag every 5 ms, 100 times. The report is a firmware message the driver handles. Complete a completion from the report path on the first report after a run request, and wait on it for the same 500 ms. A raise that finds the report already in returns at once; one that gets the completion hands it on to a raise waiting beside it, and the next run request drops any left over. Fixes: 07084c3 ("ASoC: apple: t8140-aop-audio: raise the fabric before every leaf request") Signed-off-by: Ryan Murray <[email protected]>
|
Looks good; approve once the Neo audio rows below are on 42acd38. I checked the handoff. sound/soc/apple/aop_t8140.rs:1189 completes only on the first report, through
HW row: Neo J700, on a fleet kernel plus this head, default command line. Run speaker playback (through speakerguardd v2), internal mic capture and jack capture three times each from a cold start of each service, then three times again after Assisted-by: LLM (Claude:Opus 5.5) |
|
The fabric raise in |
…rst lpai report on a completion Folds #2404 into this PR unchanged. Signed-off-by: Ryan Murray <[email protected]>
|
Folded into #2350, which now carries this PR's commits unchanged (merge commit); review continues there. |
Problem
sound/soc/apple/aop_t8140.rs:867(07084c3): before a leaf power request, the driver runs the low-power microphone to raise the audio fabric. It then polls a flag every 5 ms, up to 100 times, until the first report shows the fabric is up. That report is a firmware message the driver already handles.Change
The report path signals a
Completionon the first report after a run request, and the raise waits on it with the same 500 ms timeout. If the report has already arrived, the raise returns at once. A raise that receives the completion hands it on to any raise waiting beside it, and the next run request drops any token left over. This is T8140 only, because the file is the T8140 backend.Testing
make sound/soc/apple/aop_audio.o(Rust, release config): builds, no warnings.Still to run
lpai: no report while raising the fabricand no PMGR leaf timeout. The audio must start no later than before.rtcwake -d rtc0 -m freeze -s 20).