soc-qcom-msm8916: force S16LE format for PipeWire

This applies this fix by default, so that PipeWire sound can work out of the box:
https://wiki.postmarketos.org/wiki/Qualcomm_Snapdragon_410/412_(MSM8916)#PipeWire

This was tested on samsung-j5x with all remote processors.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6978>
This commit is contained in:
BetaRays 2025-08-28 19:03:51 +02:00 committed by The Friendly Merge Bot
parent 895506a5c0
commit 0dbd50bd80
No known key found for this signature in database
2 changed files with 23 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# Co-Maintainer: Nikita Travkin <nikita@trvn.ru>
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
"

View file

@ -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
}
}
}
]