Skip to content

ucm2: ipad-pro2: match CS42L83 headphone jack control on I2C bus 2 - #556

Merged
henrikklee merged 3 commits into
OrchardLinux:mainfrom
grierj:t8011-ucm-jack-control
Dec 4, 2026
Merged

henrikklee merged 3 commits into
OrchardLinux:mainfrom
grierj:t8011-ucm-jack-control

Conversation

@grierj

@grierj grierj commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Update system/defaults/usr/share/alsa/ucm2/Orchard/ipad-pro2/HiFi.conf so the Headphones device's JackControl matches 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 Jack

Why

In t8011-pro2.dtsi, i2c0 through i2c3 are all enabled and jack_codec: audio-codec@48 (cirrus,cs42l83) sits on &i2c2, so the live ALSA control is cs42l83.2-0048-jack Jack (amixer -c 0 contents).

With the stale bus-1 name, PipeWire could not bind the jack control, treated Headphones as availability: unknown instead of available: no, and defaulted to Headphones (PlaybackPriority 200) over Built-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 cs42l42 probe hs_type initialization), this resolves #551 across all four A10X iPad Pro 2 boards.

Verification

  • Verified live on iPad Pro (10.5-inch, Wi-Fi) (J207) running Omarchy A with T8011 (A10X) / CS42L42: Fix headphone jack plug-in detection and spurious boot headset report linux#168:
    • Fresh probe / unplugged: SW_HEADPHONE_INSERT = 0, PipeWire marks Headphones available: no and routes directly to * Built-in Audio Built-in speakers.
    • Headphones plugged in: SW_HEADPHONE_INSERT = 1, PipeWire automatically switches to * Built-in Audio Headphones.
    • Headphones unplugged: SW_HEADPHONE_INSERT = 0, PipeWire automatically switches back to * Built-in Audio Built-in speakers.
  • Ran full Orchard test suite (bin/orchard python -m unittest discover -s tests): 510 tests OK (1 skipped).

Closes #551
Related: #550, OrchardLinux/linux#168

grierj and others added 3 commits December 4, 2026 11:43
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
@henrikklee
henrikklee merged commit 49fc96e into OrchardLinux:main Dec 4, 2026
11 checks passed
@henrikklee

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iPad Pro (10.5-inch, Wi-Fi) (j207): desktop defaults to Headphones output instead of Built-in speakers

2 participants