Repository navigation
iPhone XR: sound in the desktop - #116
Merged
Merged
Conversation
On the iPhone XR the speaker protection DSP often does not boot on the first start (state 08), at boot as on a reload; a reset and another start of the codec bring it up, so retry the whole start up to three times. The codec sends 24-bit samples, but the A12's MCA receives only their top 16 bits correctly so far: 24 and 32-bit captures came out as garbage. Offer 16-bit capture only, which records cleanly. Assisted-by: LLM Signed-off-by: Henrik Klee <henrik@goat-code.com>
The MCA front end offers 16, 24 and 32-bit samples, the amplifiers take 16 and 24 bits and the codec records 16: PipeWire opened the speakers at 32 bits and the amplifier refused them (-EINVAL). Merge the back ends' formats into the front ends'. 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.
Makes the XR's speakers and microphone work in the desktop (PipeWire), not only on bare ALSA:
Tested on the XR with Omarchy A. After boot, PipeWire lists Built-in Audio Speakers and Internal Microphone. A desktop recording gives real data, with silence at -77 dBFS, and no more ASoC errors. On a module reload the first CLP start failed with state 08 and the retry brought it up.