alsa-ucm-conf-ayaneo-pocket-s2: add the alsa-ucm-conf for the Ayaneo Pocket S2

The Ayaneo Pocket S2 is a Snapdragon 8 Gen 3 based gaming device,
it has a 2k 60fps LCD panel, internal UFS, complete keypad connected
via a PCIe USB Controller, SDCard slot, WiFi and Bluetooth.

Add the ALSA UCM configuration designed to work on mainline based
kernels.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7803>
This commit is contained in:
Neil Armstrong 2026-01-21 09:47:34 +01:00 committed by The Friendly Merge Bot
parent 12dfd7b452
commit 66c7510658
No known key found for this signature in database
2 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1,28 @@
maintainer="Neil Armstrong <neil.armstrong@linaro.org>"
pkgname=alsa-ucm-conf-ayaneo-pocket-s2
pkgver=1.2.6_git20260121
pkgrel=0
pkgdesc="ALSA UCM configuration for Ayaneo Pocket S2"
url="https://github.com/sunflower2333/alsa-ucm-conf"
arch="aarch64"
license="BSD-3-Clause"
provides="alsa-ucm-conf"
provider_priority=1
_commit="2dbd6af885107dd4693e621772157a9e99f4c04a"
source="
$pkgname-$_commit.tar.gz::https://github.com/sunflower2333/alsa-ucm-conf/archive/$_commit.tar.gz
ucm2-qcom-sm8650-aps-remove-capture.patch
"
builddir="$srcdir/alsa-ucm-conf-$_commit"
options="!check"
package() {
# install audio config files
mkdir -p "$pkgdir"/usr/share/alsa/ucm2
cp -r "$srcdir/alsa-ucm-conf-$_commit"/ucm2 "$pkgdir"/usr/share/alsa/
}
sha512sums="
cf45ed130d1148761b2b7646cb4e073e724598ec33d3ee75b47598aaa17800ad3f7cf38dc5ff76a825e64efdddd9a3b7631f571a0eb326e6c650d9d6220571d0 alsa-ucm-conf-ayaneo-pocket-s2-2dbd6af885107dd4693e621772157a9e99f4c04a.tar.gz
d240ac698f3f8b46e2ca5b624a9527ae600f3844db20d973a463eb6b1f42a3961398097591aa6327c26fd391a151d9ca0b58ebfd571730d24d0022a876d695a2 ucm2-qcom-sm8650-aps-remove-capture.patch
"

View file

@ -0,0 +1,47 @@
diff --git a/ucm2/Qualcomm/sm8650/APS2/HiFi.conf b/ucm2/Qualcomm/sm8650/APS2/HiFi.conf
index 5927698..aa932f8 100644
--- a/ucm2/Qualcomm/sm8650/APS2/HiFi.conf
+++ b/ucm2/Qualcomm/sm8650/APS2/HiFi.conf
@@ -54,42 +54,6 @@ SectionDevice."Headphones" {
}
}
-SectionDevice."Headset" {
- Comment "Headset microphone"
-
- ConflictingDevice [
- "Mic"
- ]
-
- Include.wcdmice.File "/codecs/wcd939x/HeadphoneMicEnableSeq.conf"
- Include.wcdmicd.File "/codecs/wcd939x/HeadphoneMicDisableSeq.conf"
- Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/SoundwireMic1EnableSeq.conf"
- Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf"
-
- Value {
- CaptureChannels 1
- CapturePriority 200
- CapturePCM "hw:${CardId},2"
- CaptureMixerElem "ADC2"
- JackControl "Headset Jack"
- }
-}
-
-SectionDevice."Mic" {
- Comment "Bottom Microphone"
-
- Include.txmhpe.File "/codecs/qcom-lpass/tx-macro/SoundwireMic8EnableSeq.conf"
- Include.txmhpd.File "/codecs/qcom-lpass/tx-macro/SoundwireMicDisableSeq.conf"
-
- Value {
- CaptureChannels 1
- CapturePriority 100
- CapturePCM "hw:${CardId},3"
- CaptureMixerElem "SMIC8"
- }
-}
-
-
SectionDevice."HDMI0" {
Comment "DisplayPort 0 playback"