diff --git a/device/community/soc-qcom-msm8916/APKBUILD b/device/community/soc-qcom-msm8916/APKBUILD index 441324a58..38093c956 100644 --- a/device/community/soc-qcom-msm8916/APKBUILD +++ b/device/community/soc-qcom-msm8916/APKBUILD @@ -2,7 +2,7 @@ # Co-Maintainer: Nikita Travkin pkgname=soc-qcom-msm8916 pkgdesc="Common package for Qualcomm MSM8916 devices" -pkgver=23 +pkgver=24 pkgrel=0 url="https://postmarketos.org" license="BSD-3-Clause" @@ -24,10 +24,12 @@ source="$pkgname-$_ucm_commit.tar.gz::https://github.com/msm8916-mainline/alsa-u q6voiced.conf 77-modem-samsung-msm8916.rules adreno-a306-quirks.sh + wireplumber-msm8916-s16le.conf " package() { mkdir -p "$pkgdir" + install -Dm644 "$srcdir"/wireplumber-msm8916-s16le.conf "$pkgdir"/usr/share/wireplumber/wireplumber.conf.d/msm8916-s16le.conf } # Upstream keeps making breaking changes to UCM in patch releases. @@ -103,4 +105,5 @@ eee73ae7895fb6772b35a190956d17642d08af47a0fa5dfd022052c5b30c99cf9649215aef161ddc 3a4a9322839d4b3ef9d79668a37840a9f444954759ae3c512e694051d2f9a2573db42ad6c4c1a5c75eeb861232a27ba1a8cef9b503decd54ead25a96e3dd6f98 q6voiced.conf bcebc36ec62140f4620d462be2b95858adae380e5d74f6b9c9b956fb76a6541f39749f4dcec6ac3c39b868dbfed6fac7a34ba357510532a3df2d39f7ea818d55 77-modem-samsung-msm8916.rules de35a32f697247e4a8419647b9c9fece9bc7f41c0e2377d01659ad0dc1ba21b08d3227193053d7cd1ec5006370db574472516f0d0061fb9d2d9509f27f6212d3 adreno-a306-quirks.sh +56c348696a36111c35999bf52871c7dd7829d482ae006893b99c36cc54c8ef6d7b184bb526b8361ae9b93dc4e195c6efe643fc94e77d9f4c078ae9368812c98f wireplumber-msm8916-s16le.conf " diff --git a/device/community/soc-qcom-msm8916/wireplumber-msm8916-s16le.conf b/device/community/soc-qcom-msm8916/wireplumber-msm8916-s16le.conf new file mode 100644 index 000000000..46c7e3c9c --- /dev/null +++ b/device/community/soc-qcom-msm8916/wireplumber-msm8916-s16le.conf @@ -0,0 +1,19 @@ +# This ensures PipeWire will open the MSM8916 sound card in S16_LE format. +# Other formats such as S24_LE can otherwise be preferred, which can give +# absent or weak and distorted audio. +# For more information, see https://wiki.postmarketos.org/wiki/Qualcomm_Snapdragon_410/412_(MSM8916)#PipeWire +# and https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/alsa.html#rules +monitor.alsa.rules = [ + { + matches = [ + { + node.name = "~alsa_output.platform-7702000.*" + } + ] + actions = { + update-props = { + audio.format = S16LE + } + } + } +]