diff --git a/fix-bsc1219411.patch b/fix-bsc1219411.patch new file mode 100644 index 0000000..a849085 --- /dev/null +++ b/fix-bsc1219411.patch @@ -0,0 +1,28 @@ +From: Antonio Larrosa +Subject: Fix bsc#1219411 + +wireplumber enables the bluetooth support in pipewire by default but this +clashes with the bluetooth support in pulseaudio if audio is disabled in +pipewire so this patch disables bluetooth support unless the +90-enable-all.lua file is installed and we now move that file into the +wireplumber-audio package. + +Index: wireplumber-0.4.17/src/config/bluetooth.lua.d/50-bluez-config.lua +=================================================================== +--- wireplumber-0.4.17.orig/src/config/bluetooth.lua.d/50-bluez-config.lua ++++ wireplumber-0.4.17/src/config/bluetooth.lua.d/50-bluez-config.lua +@@ -1,4 +1,4 @@ +-bluez_monitor.enabled = true ++bluez_monitor.enabled = false + + bluez_monitor.properties = { + -- Enabled roles (default: [ a2dp_sink a2dp_source bap_sink bap_source hfp_hf hfp_ag ]) +Index: wireplumber-0.4.17/src/config/bluetooth.lua.d/90-enable-all.lua +=================================================================== +--- wireplumber-0.4.17.orig/src/config/bluetooth.lua.d/90-enable-all.lua ++++ wireplumber-0.4.17/src/config/bluetooth.lua.d/90-enable-all.lua +@@ -1,2 +1,4 @@ ++bluez_monitor.enabled = true ++ + bluez_monitor.enable() + bluez_midi_monitor.enable() diff --git a/wireplumber.changes b/wireplumber.changes index 3035d76..c42a444 100644 --- a/wireplumber.changes +++ b/wireplumber.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Feb 5 06:46:58 UTC 2024 - Antonio Larrosa + +- Add patch to only enable bluetooth when audio support is enabled + by installing wireplumber-audio (bsc#1219411): + * fix-bsc1219411.patch + ------------------------------------------------------------------- Tue Dec 5 19:28:42 UTC 2023 - Alexei Sorokin diff --git a/wireplumber.spec b/wireplumber.spec index d3714f2..e2dfe37 100644 --- a/wireplumber.spec +++ b/wireplumber.spec @@ -30,6 +30,8 @@ Group: Development/Libraries/C and C++ URL: https://gitlab.freedesktop.org/pipewire/wireplumber Source0: wireplumber-%{version}.tar.xz Source1: split-config-file.py +# FIX-PATCH-SUSE fix-bsc1219411.patch alarrosa@suse.com -- Enable bluetooth only when audio support is enabled +Patch0: fix-bsc1219411.patch # docs BuildRequires: doxygen BuildRequires: graphviz @@ -232,11 +234,13 @@ fi %{_userunitdir}/wireplumber@.service %{_datadir}/wireplumber %exclude %{_datadir}/wireplumber/main.lua.d/90-2-1-enable-alsa.lua +%exclude %{_datadir}/wireplumber/bluetooth.lua.d/90-enable-all.lua %files lang -f %{name}.lang %files audio %{_datadir}/wireplumber/main.lua.d/90-2-1-enable-alsa.lua +%{_datadir}/wireplumber/bluetooth.lua.d/90-enable-all.lua %files devel %{_includedir}/wireplumber-%{apiver}