Repository navigation
Conversation
Configure the S2 PCM/ULP route and Class-H transport, align codec and jack lifecycle, coordinate USBSS measurement and reset protection, and check SoundWire cache/resume failures. Add S2-specific conditional USBSS recovery. Retain the tested runtime changes from 782257f on current Armada main and reconcile patch provenance. Exclude fork CI and container signing changes. Based on rafalrojek's jack work in armada-os#663, ovid-io's transport analysis in armada-os#803, Diogo Trindade's d7896ca shared sequencing and Qualcomm Android references.
Disk image
Downloads as a zip holding |
|
Tested this on a real AYANEO Pocket S2 (image 20261029.664da8c, this PR's DTB, the five modules and the UCM applied on top of it). Results, by ear:
For comparison, the current image only changes headphone volume over roughly the first third of the slider. Our own attempt (#834: digital volume cap + UCM) only hid that, so I am closing it in favour of this PR. One note for reviewers: the RX digital volume stays at 84, so there is no software ceiling on the headphone output. That sounded fine to me, but it is worth keeping in mind for people who listen at high volume. |
|
thank you for testing, I'll compare with #876 and then I try to spend some time work on sleep/wake validation. |
|
Hey @mrdidit, I'm merging a few other fixes for headphones that should fix Portal, Thor, Odin 3 and possibly the S2, but it relies on your 0081c patch. I'm hoping you can PR that separately, then I'll merge that and the other fixes so we can test what else from this draft might be still be needed. |
Pocket S2 headphone audio can distort, cut out or remain silent depending on boot and resume state. This series updates the jack configuration, PCM/ULP playback path and supporting WCD939x recovery handling.
Changes
The S2 profile, device-tree settings and periodic recovery activation are device-specific. Supporting WCD939x, SoundWire, USBSS and common MBHC changes affect shared drivers. The 18 kernel patches remain ordered for review; fork CI and signing configuration are excluded.
Validation
The audio patch, device-tree and UCM files match test image
20261031.782257f, which built successfully and booted with verified kernel/module identities. Axiom Verge headphone audio is clean at maximum selected volume. Two follow-up checks, one reboot and one full shutdown/start with headphones connected after boot, also produced clean audio.Local checks passed: 14 SoundWire and 77 USBSS failure/lifecycle cases, affected ARM64 object and PM-configuration builds, and the ALSA UCM duplicate-section test. This PR is based on
b7b322a; its new full-image CI result is separate from the tested image.Still under test
A pop occurs before clean output; its timing has not been measured. Sleep/wake, extended repeatability, other affected devices and the periodic worker's power/USB impact need validation. Repeated USBSS check-3 restoration also occurs on Android and during clean playback; its connection to the earlier distortion is unresolved. Headset microphone support is outside this change. Keep as draft while these checks continue.
Credits: rafalrojek's S2 jack work in #663; ovid-io's PCM and transport analysis in #803; Diogo Trindade's shared headphone sequencing; Qualcomm Android sources and the existing ROCKNIX PCM support. Pinned references and adaptations are recorded in
packages/kernel/PATCHES.md.AI assistance: OpenAI Codex (6 Astra, including Ultra) for investigation, implementation and review.