Repository navigation
ASoC: apple: aop_audio: capture the low-power microphone on T8112 and T6000 - #1493
Merged
Merged
Conversation
… T6000 The PDM AOP audio firmware runs a low-power microphone stream (lpai) next to the high-power array. Expose it as capture PCM 1 of the AOP audio card, so developers can record it; PCM 0 stays the array, which is what UCM and the microphone rules use. On this firmware the samples come inline in the audio service's own reports, EPIC report subtype 0xee. A report carries the absolute, exclusive producer byte count and an audio packet whose header gives its kind (1 = live samples) and total length; the samples follow the 36-byte header. The driver checks every length, copies whole frames into the ALSA buffer and follows the absolute byte count across reports: stale spans are dropped and a gap starts a new position. The stream format is read from lpai property 302 (sample-format selector, rate, channels per frame, bytes per channel) instead of being compiled in; a firmware without it keeps the card as before, with the array only. Prepare requests runn through property 202 with the device's sequence and a 24 MHz timestamp, close requests idle, and both are checked through property 200. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
RyanTheTide
marked this pull request as ready for review
November 11, 2026 01:01
This was referenced Nov 20, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expose the low-power microphone (
lpai) of the T8112 and T6000 AOP audio firmware as capture PCM 1 of the AOP audio card. PCM 0 stays the high-power array, so UCM and the microphone rules are unchanged; the new PCM is not a UCM device.lpaiproperty 302 (selector, rate, channels, bytes per channel). Without it the card keeps the array only.runnthrough property 202 (devicelpai, sequence, 24 MHz timestamp, input parameter), close requestsidle; both are read back through property 200.Tests (one-shot test kernel = fleet58 + this change, LP and HQ recorded together for 10 s, before and after three s2idle cycles on the apple-pmu-rtc wakealarm; capture only):
🤖 Generated with Claude Code