samsung-a6lte: configure headroom in wireplumber (MR 5021)

It seems that wireplumber is now installed by default, instead of pipewire-media-session. Thus we need to set api.alsa.headroom in wireplumber configuration too to get working audio.

This basically copies /usr/share/wireplumber/wireplumber.conf.d/alsa-vm.conf and relaxes the filters.
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Sergey Lisov 2024-04-09 23:50:26 +03:00 committed by Stefan Hansson
parent 082f26f72d
commit 5580908a14
No known key found for this signature in database
GPG key ID: 8A700086A9FE41FD
2 changed files with 23 additions and 1 deletions

View file

@ -2,7 +2,7 @@
pkgname=device-samsung-a6lte
pkgdesc="Samsung Galaxy A6 2018"
pkgver=0.5
pkgrel=7
pkgrel=8
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@ -35,6 +35,7 @@ source="
usr-share-alsa-ucm2-conf.d-Universal7870-I-Universal7870-I.conf
usr-share-alsa-ucm2-conf.d-Universal7870-I-VoiceCall.conf
usr-share-pipewire-media-session.d-alsa-monitor.conf
usr-share-wireplumber-wireplumber.conf.d-headroom.conf
"
subpackages="
$pkgname-kernel-downstream:kernel_downstream
@ -61,6 +62,7 @@ package() {
install -Dm644 usr-share-alsa-ucm2-conf.d-Universal7870-I-Universal7870-I.conf "$pkgdir"/usr/share/alsa/ucm2/conf.d/Universal7870-I/Universal7870-I.conf
install -Dm644 usr-share-alsa-ucm2-conf.d-Universal7870-I-VoiceCall.conf "$pkgdir"/usr/share/alsa/ucm2/conf.d/Universal7870-I/VoiceCall.conf
install -Dm644 usr-share-pipewire-media-session.d-alsa-monitor.conf "$pkgdir"/usr/share/pipewire/media-session.d/alsa-monitor.conf
install -Dm644 usr-share-wireplumber-wireplumber.conf.d-headroom.conf "$pkgdir"/usr/share/wireplumber/wireplumber.conf.d/headroom.conf
}
kernel_downstream() {
@ -111,4 +113,5 @@ abe1c4a2f59fe862cebef75c54b8806bd86ce06aeb15d8c0699ab1338c9d575cb72a4d5b099f9427
dc528deb556906adfb89b02b6faa04a8b21358706bb60e2fa51c8a3c909b680fcc02fa425b0cb5d6273595f27dfc9b640e1a8d455657fd6b47652af9e8ec295a usr-share-alsa-ucm2-conf.d-Universal7870-I-Universal7870-I.conf
3e74de3504f134a2726ee87740c5803bbd578352674d1d7de8b9460e57553100e9c4d322143ee83d3d584884c52eef47762bed41814ff1fca8cd9c4552f39b73 usr-share-alsa-ucm2-conf.d-Universal7870-I-VoiceCall.conf
5e87452f4cd70bbbcfb3e69bae73f2690ba328e7ccde55c47482e8fb1583d807de5bd3d328b1fe6a8733b4de78b2ed0c6ae8cdb60f6bf51ed4362c2174671b3e usr-share-pipewire-media-session.d-alsa-monitor.conf
be561f0573c73bdcf37fbd8e4659e92577a0818aafb75d73e7cbf1dd8980f29313170703074ee0cc9cc5b5a07cd7ac8ced07dfdc77b0b31a0cd34d66ae0473a4 usr-share-wireplumber-wireplumber.conf.d-headroom.conf
"

View file

@ -0,0 +1,19 @@
monitor.alsa.rules = [
# Generic PCI cards on any VM type
{
matches = [
{
node.name = "~alsa_input.*"
}
{
node.name = "~alsa_output.*"
}
]
actions = {
update-props = {
api.alsa.period-size = 1024
api.alsa.headroom = 2048
}
}
}
]