Repository navigation
ASoC: apple: aop_audio: capture the low-power microphone on T6041 - #1505
Merged
Merged
Conversation
The T6041 AOP firmware produces its low-power microphone (lpai) into a host ring. Allocate the ring on the audio node's DART stream, which the DT now names (the stream of the firmware's I/O buffer device, shared with admac-base-ns), and hand its IOVA and size to that device, adpx, through its property 300. The binding is made once per AOP lifetime: the AOP core keeps the ring as it does the T8140 source ring, whose setup-port binding becomes one case of a generic bound ring. lpai property 301 gives the stream format: rate, channels and the valid bytes of a sample. Each sample sits in a 4-byte container, most significant aligned, so the PCM is S32_LE with 24 significant bits. Property 302 gives the ring geometry (ring frames, frames per report); the ring size is their product. The firmware reports the producer through property-change reports (EPIC subtype 0x20, property 305): the last completed frame and the ring's byte cursor, checked against each other. The first report after a start only sets the position, so audio from before the start is not copied; a backwards step or an overrun rebases. Start and stop are property 202 runn and idle for an input. The PCM is the same capture PCM 1 as on T8112/T6000, created only where the audio node has the DART stream; T8132 keeps the array alone. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This was referenced Nov 11, 2026
Merged
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 T6041 low-power microphone (
lpai) as capture PCM 1 of the AOP audio card, next to the high-power array on PCM 0. The new PCM is not a UCM device.iommus = <&aop_dart 8>, the stream of the firmware's I/O buffer device, shared with admac-base-ns; binding updated), and handed to the I/O buffer deviceadpxthrough its property 300 (IOVA, size), once per AOP lifetime.source_ring()becomes the setup-port case of a newbound_ring()that takes the binding as a closure.lpaiproperty 301 is the stream format (rate, channels, valid bytes per sample; samples are 4-byte containers, most significant aligned: S32_LE with 24 significant bits) and 302 the ring geometry (ring frames, frames per report). The ring size is their product.runn/idlefor an input, read back through property 200.Tests (J616s, RAM-only Stage 2 DTB trial with the
iommusline + one-shot kernel with 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