Repository navigation
iPhone XR: all four microphones - #109
Merged
Merged
Conversation
As iOS records a video: mic bias 1-4, ADC1-4 powered with iOS's ADC2-4 setup, the four ADCs in ASP2 TX channels 0-3 (24-bit at clocks 0, 24, 48 and 72 of the 96-clock frame). A mono capture still takes the main microphone, ADC1 in slot 0. Assisted-by: LLM Signed-off-by: Henrik Klee <henrik@goat-code.com>
The card takes slots 0-3 of the codec's ASP2, one microphone each; a capture of fewer channels takes the first slots, so mono stays the main microphone. Assisted-by: LLM Signed-off-by: Henrik Klee <henrik@goat-code.com>
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.
All four of the iPhone XR's microphones record under Linux. The "Microphone" input (hw:0,2) now has up to four channels:
A mono capture still gives the main microphone, and stereo gives main plus rear.
How: set up as iOS records a video (codec registers read from iOS while filming). All four mic biases and ADCs are on, and ADC1-4 go into ASP2 TX channels 0-3 (24-bit, 96-clock frame). The SoC side is unchanged from linux#104.
Tested on the XR (RAM boot): scratching at each microphone's opening made its channel 15-30 dB louder than the others, which gives the mapping above. The silence floor is about -85 dBFS on every channel. Touch and the codec were also checked with linux#73's SPI change in this kernel.