diff mbox series

[meta-oe,1/2] gnome-bluetooth: Use PipeWire for Bluetooth audio

Message ID 20261206010403.1254310-2-khem.raj@oss.qualcomm.com
State New
Headers show
Series Use PipeWire for Bluetooth audio | expand

Commit Message

Khem Raj Dec. 6, 2026, 1:04 a.m. UTC
oe-core no longer has a pulseaudio recipe, so the pulseaudio
PACKAGECONFIG pulled in PulseAudio Bluetooth modules that cannot be
built. Replace it with a pipewire PACKAGECONFIG, enabled when both the
bluetooth and pipewire distro features are set, which adds PipeWire's
Bluetooth audio plugin (pipewire-spa-plugins-bluez5). PipeWire only
builds that plugin with the bluetooth distro feature.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../gnome-bluetooth/gnome-bluetooth_47.2.bb          | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/meta-gnome/recipes-gnome/gnome-bluetooth/gnome-bluetooth_47.2.bb b/meta-gnome/recipes-gnome/gnome-bluetooth/gnome-bluetooth_47.2.bb
index fc68e37df8..984c65f562 100644
--- a/meta-gnome/recipes-gnome/gnome-bluetooth/gnome-bluetooth_47.2.bb
+++ b/meta-gnome/recipes-gnome/gnome-bluetooth/gnome-bluetooth_47.2.bb
@@ -27,16 +27,8 @@  REQUIRED_DISTRO_FEATURES = "opengl"
 
 SRC_URI[archive.sha256sum] = "41f20e6d6176b72590af63552b232d83f2fffdd77ecfaa5eaf32c5a4a86fad64"
 
-BT_PULSE_PACKS = " \
-    pulseaudio-lib-bluez5-util \
-    pulseaudio-module-bluetooth-discover \
-    pulseaudio-module-bluetooth-policy \
-    pulseaudio-module-bluez5-device \
-    pulseaudio-module-bluez5-discover \
-"
-
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio', d)}"
-PACKAGECONFIG[pulseaudio] = ",,,${BT_PULSE_PACKS}"
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth pipewire', 'pipewire', '', d)}"
+PACKAGECONFIG[pipewire] = ",,,pipewire-spa-plugins-bluez5"
 
 FILES:${PN} += "${datadir}/gnome-bluetooth-3.0"