Repository navigation
ucm2: ipad-pro2: match CS42L83 headphone jack control on I2C bus 2 - #556
Merged
Merged
Conversation
On the A10X iPad Pro 2 boards (t8011-pro2.dtsi: J120, J121, J207, J208), i2c0 through i2c3 are all enabled and the CS42L83 headphone codec sits on i2c2, so ALSA exposes its jack control as "cs42l83.2-0048-jack Jack" rather than "cs42l83.1-0048-jack Jack". Because the UCM2 JackControl did not match the live control name, PipeWire saw the Headphones port as availability unknown instead of unavailable and defaulted to Headphones (priority 200) over the built-in speakers (priority 100) on boot even with no headphones plugged in, and ignored plug/unplug events. Point JackControl at "cs42l83.2-0048-jack Jack" so PipeWire tracks jack state across all four A10X iPad Pro 2 boards (paired with OrchardLinux/linux#168 for CS42L83 tip-sense detection). Assisted-by: LLM
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
Contributor
|
Merged, thank you @grierj! This works together with your linux#168, which is now in orchard's kernel (taken in #561). On the iPad Pro 2, the desktop now uses the speakers when nothing is plugged in and switches by itself when headphones go in or come out. On your branch, I only merged main and kept both changelog entries where they collided. Nothing was left out. |
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.
Summary
Update
system/defaults/usr/share/alsa/ucm2/Orchard/ipad-pro2/HiFi.confso theHeadphonesdevice'sJackControlmatches the actual ALSA jack control name on A10X iPad Pro 2 boards (J120,J121,J207,J208):cs42l83.1-0048-jack Jack→cs42l83.2-0048-jack JackWhy
In
t8011-pro2.dtsi,i2c0throughi2c3are all enabled andjack_codec: audio-codec@48(cirrus,cs42l83) sits on&i2c2, so the live ALSA control iscs42l83.2-0048-jack Jack(amixer -c 0 contents).With the stale bus-1 name, PipeWire could not bind the jack control, treated
Headphonesasavailability: unknowninstead ofavailable: no, and defaulted toHeadphones(PlaybackPriority 200) overBuilt-in speakers(PlaybackPriority 100) on boot even with nothing plugged in — and ignored headphone plug/unplug events.Paired with OrchardLinux/linux#168 (which fixes CS42L83 tip-sense polarity and
cs42l42probehs_typeinitialization), this resolves #551 across all four A10X iPad Pro 2 boards.Verification
J207) running Omarchy A with T8011 (A10X) / CS42L42: Fix headphone jack plug-in detection and spurious boot headset report linux#168:SW_HEADPHONE_INSERT = 0, PipeWire marksHeadphonesavailable: noand routes directly to* Built-in Audio Built-in speakers.SW_HEADPHONE_INSERT = 1, PipeWire automatically switches to* Built-in Audio Headphones.SW_HEADPHONE_INSERT = 0, PipeWire automatically switches back to* Built-in Audio Built-in speakers.bin/orchard python -m unittest discover -s tests): 510 tests OK (1 skipped).Closes #551
Related: #550, OrchardLinux/linux#168