From 66c7510658e0ec092ea85380f3331b2d077c7a67 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Wed, 21 Jan 2026 09:47:34 +0100 Subject: [PATCH] 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 Part-of: --- .../alsa-ucm-conf-ayaneo-pocket-s2/APKBUILD | 28 +++++++++++ .../ucm2-qcom-sm8650-aps-remove-capture.patch | 47 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 device/testing/alsa-ucm-conf-ayaneo-pocket-s2/APKBUILD create mode 100644 device/testing/alsa-ucm-conf-ayaneo-pocket-s2/ucm2-qcom-sm8650-aps-remove-capture.patch diff --git a/device/testing/alsa-ucm-conf-ayaneo-pocket-s2/APKBUILD b/device/testing/alsa-ucm-conf-ayaneo-pocket-s2/APKBUILD new file mode 100644 index 000000000..b7c1ab911 --- /dev/null +++ b/device/testing/alsa-ucm-conf-ayaneo-pocket-s2/APKBUILD @@ -0,0 +1,28 @@ +maintainer="Neil Armstrong " +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 +" diff --git a/device/testing/alsa-ucm-conf-ayaneo-pocket-s2/ucm2-qcom-sm8650-aps-remove-capture.patch b/device/testing/alsa-ucm-conf-ayaneo-pocket-s2/ucm2-qcom-sm8650-aps-remove-capture.patch new file mode 100644 index 000000000..a2f594ea1 --- /dev/null +++ b/device/testing/alsa-ucm-conf-ayaneo-pocket-s2/ucm2-qcom-sm8650-aps-remove-capture.patch @@ -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" +