From 97e752caaf47749a75108aa9ea2db907d2344177 Mon Sep 17 00:00:00 2001 From: shtirlic Date: Sat, 17 Jun 2023 14:58:50 +0700 Subject: [PATCH] soc-qcom-sdm845: fix pops/clicks sound via alsa buffer tuning (MR 4186) Update some alsa buffer params to solve sound quality issues I got working values experimentally after trying different buffer sizes and limits and watching to pw-top to ensure there are no errors during playback from diffrent apps and sinks. Contributes to #1534 --- device/community/soc-qcom-sdm845/51-qcom-sdm845.lua | 4 ++++ device/community/soc-qcom-sdm845/APKBUILD | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/device/community/soc-qcom-sdm845/51-qcom-sdm845.lua b/device/community/soc-qcom-sdm845/51-qcom-sdm845.lua index 021b76ce5..bf24e2060 100644 --- a/device/community/soc-qcom-sdm845/51-qcom-sdm845.lua +++ b/device/community/soc-qcom-sdm845/51-qcom-sdm845.lua @@ -11,6 +11,10 @@ table.insert(alsa_monitor.rules, }, apply_properties = { ["audio.format"] = "S16LE", + ["audio.rate"] = 48000, + ["api.alsa.period-size"] = 4096, + ["api.alsa.period-num"] = 6, + ["api.alsa.headroom"] = 512, }, } ) diff --git a/device/community/soc-qcom-sdm845/APKBUILD b/device/community/soc-qcom-sdm845/APKBUILD index 98f09e2d1..42e552300 100644 --- a/device/community/soc-qcom-sdm845/APKBUILD +++ b/device/community/soc-qcom-sdm845/APKBUILD @@ -2,8 +2,8 @@ # Co-Maintainer: Joel Selvaraj pkgname=soc-qcom-sdm845 pkgdesc="Common package for Qualcomm SDM845 devices" -pkgver=15 -pkgrel=2 +pkgver=16 +pkgrel=0 url="https://postmarketos.org" license="BSD-3-Clause" arch="aarch64" @@ -123,7 +123,7 @@ wireplumber() { } sha512sums=" -58b3f88767fd810ca4b379ef87945231d334a635f83e3981c0c71053915397b0543ac7d9f73f98fe4479ef1df6d2e1b82a9835b0a1a5be0e117d255fe2116d1c 51-qcom-sdm845.lua +a2eed80c1aa6bc2225aacd95888dbda7f13171008bf6433e1152be7b5148d03cad7bc1de081c64a3131e9fac12f75984f22be92e0f6162d524ce4c2db3bb82ba 51-qcom-sdm845.lua 4f2c22a3a3fc7d380e200ad977578107d81f0e7ade7918e03bdb15b60a564e8db5f47e13cce22f636d38fd3722696bb46076b8872dae0ca2d8a3838522a1f025 90-feedbackd-pmi8998.rules 9d455b56558d453d501a1ad869ffa79f9952ed43485a9847d506db6a78bfcd9f9c9d855660ee1d368eb74f4429385ec166addc30d802261c75562e785fe84c52 UPower.conf e55545b0b319bb0cb7e8c6ca961828f7e8c389f97b45492e0c432b9bbd5d3158359828e852ceac68cbead4f850c19e06ac565dac2dcae11d40486ba641e3e7ec alsa-ucm-conf-9ed12836b269764c4a853411d38ccb6abb70b383.tar.gz