From 33e4ce4dc8d4a6ee7d1e89d3b79a8e097ba7e907 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Mon, 13 Apr 2026 12:16:57 +0200 Subject: [PATCH] device-fairphone-fp5: Fix USB audio DACs The current pipewire rule was forcing every output sink to use the S32LE format, which caused problems with DACs that do not support this format. To ensure only the built-in sinks are matched, we manually specify the alsa card name in the pipewire rule matcher. Part-of: --- device/testing/device-fairphone-fp5/52-fairphone-fp5.conf | 3 ++- device/testing/device-fairphone-fp5/APKBUILD | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/device/testing/device-fairphone-fp5/52-fairphone-fp5.conf b/device/testing/device-fairphone-fp5/52-fairphone-fp5.conf index 1a95b5ce8..4e6098d0c 100644 --- a/device/testing/device-fairphone-fp5/52-fairphone-fp5.conf +++ b/device/testing/device-fairphone-fp5/52-fairphone-fp5.conf @@ -2,8 +2,9 @@ monitor.alsa.rules = [ { matches = [ { - # Matches all sinks + # Matches all sinks of the internal sound card node.name = "~alsa_output.*" + alsa.card_name = "Fairphone 5" } ] actions = { diff --git a/device/testing/device-fairphone-fp5/APKBUILD b/device/testing/device-fairphone-fp5/APKBUILD index b2b6c4c41..d121453f6 100644 --- a/device/testing/device-fairphone-fp5/APKBUILD +++ b/device/testing/device-fairphone-fp5/APKBUILD @@ -2,7 +2,7 @@ maintainer="Luca Weiss " pkgname=device-fairphone-fp5 pkgdesc="Fairphone 5" -pkgver=14 +pkgver=15 pkgrel=0 url="https://postmarketos.org" license="MIT" @@ -65,7 +65,7 @@ openrc() { } sha512sums=" -f6fb26e0e75b15cf727e8a20f34e4132cf357025fff1427cf63729776aedce6e647f9f81f1ec13d0a895e381c119980d8bca575e431d241d9affb4f0ee44f4b4 52-fairphone-fp5.conf +ec79b0dc8261e6e1a84f573f5814a3ded1d0f0d89ad804c171c6aeb96ec96544650e94717edfa8b2a29f729e926a3e58dedaf8f45a6016a35f6533b195d49414 52-fairphone-fp5.conf 2c16ba75e0077b2b1eaefa4c73b287475505a1aeb291ec29316d41cc094277320f9d2aaabfd91eb1dc0f488ab2d61a94faef16e7afe0f1e226779113761b9a37 81-libssc-fairphone-fp5.rules 5b7f9ecfb9aee656c19e04a417b8a8bc20bf8b1efb8abd0e6fffbf9ea8d9bbf10a62e3ee96ce7968da91c0c56f0c941bc89939715089cd21b95e86d27f30aff6 deviceinfo 6280b66b9d4843ef78d0029c31d267b0bf59ea669bc3f2c268edfddf4edb3cec62d40b97c8204c85d1350759ad56e1ac2a5ba8ddc691f73c35c7385350ef12ee modules-initfs