From cde9ee60898e17635e13870b157250b76107181407ddfa8f316874852fe27b68 Mon Sep 17 00:00:00 2001 From: Antonio Larrosa Date: Mon, 7 Feb 2022 17:43:50 +0000 Subject: [PATCH 1/2] Accepting request 952225 from home:alarrosa:branches:multimedia:libs - Update to version 0.4.8: * Highlights: - Added bluetooth profile auto-switching support. Bluetooth headsets will now automatically switch to the HSP/HFP profile when making a call and go back to the A2DP profile after the call ends (#90) - Added an option (enabled by default) to auto-switch to echo-cancel virtual device nodes when the echo-cancel module is loaded in pipewire-pulse, if there is no other configured default node * Fixes: - Fixed a regression that prevented nodes from being selected as default when using the pro-audio profile (#163) - Fixed a regression that caused encoded audio streams to stall (#178) - Fixed restoring bluetooth device profiles * Library: - A new WpSpaJson API was added as a front-end to spa-json. This is also exposed to Lua, so that Lua scripts can natively parse and write data in the spa-json format * Misc: - wpctl can now list the configured default sources and sinks and has a new command that allows clearing those configured defaults, so that wireplumber goes back to choosing the default nodes based on node priorities - The restore-stream script now has its own configuration file in main.lua.d/40-stream-defaults.lua and has independent options for restoring properties and target nodes - The restore-stream script now supports rule-based configuration to disable restoring volume properties and/or OBS-URL: https://build.opensuse.org/request/show/952225 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/wireplumber?expand=0&rev=30 --- ...lt-nodes-handle-nodes-without-Routes.patch | 47 ------------------- _service | 2 +- _servicedata | 2 +- split-config-file.py | 5 +- wireplumber-0.4.7.obscpio | 3 -- wireplumber-0.4.8.obscpio | 3 ++ wireplumber.changes | 42 +++++++++++++++++ wireplumber.obsinfo | 6 +-- wireplumber.spec | 4 +- 9 files changed, 54 insertions(+), 60 deletions(-) delete mode 100644 0001-default-nodes-handle-nodes-without-Routes.patch delete mode 100644 wireplumber-0.4.7.obscpio create mode 100644 wireplumber-0.4.8.obscpio diff --git a/0001-default-nodes-handle-nodes-without-Routes.patch b/0001-default-nodes-handle-nodes-without-Routes.patch deleted file mode 100644 index 457c6e1..0000000 --- a/0001-default-nodes-handle-nodes-without-Routes.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 211f1e6b6cd4898121e4c2b821fae4dea6cc3317 Mon Sep 17 00:00:00 2001 -From: Wim Taymans -Date: Fri, 14 Jan 2022 16:28:48 +0100 -Subject: [PATCH] default-nodes: handle nodes without Routes - -When a node has not part of any EnumRoute, we must assume it is -available. - -Fixes selection of Pro Audio nodes as default nodes. ---- - modules/module-default-nodes.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/modules/module-default-nodes.c b/modules/module-default-nodes.c -index 32b2725b..15aadeaa 100644 ---- a/modules/module-default-nodes.c -+++ b/modules/module-default-nodes.c -@@ -108,6 +108,7 @@ node_has_available_routes (WpDefaultNodes * self, WpNode *node) - gint dev_id = dev_id_str ? atoi (dev_id_str) : -1; - gint cpd = cpd_str ? atoi (cpd_str) : -1; - g_autoptr (WpDevice) device = NULL; -+ gint found = 0; - - if (dev_id == -1 || cpd == -1) - return TRUE; -@@ -168,6 +169,7 @@ node_has_available_routes (WpDefaultNodes * self, WpNode *node) - for (; wp_iterator_next (it, &v); g_value_unset (&v)) { - gint32 *d = (gint32 *)g_value_get_pointer (&v); - if (d && *d == cpd) { -+ found++; - if (route_avail != SPA_PARAM_AVAILABILITY_no) - return TRUE; - } -@@ -175,6 +177,10 @@ node_has_available_routes (WpDefaultNodes * self, WpNode *node) - } - } - } -+ /* The node is part of a profile without routes so we assume it -+ * is available. This can happen for Pro Audio profiles */ -+ if (found == 0) -+ return TRUE; - - return FALSE; - } --- -GitLab - diff --git a/_service b/_service index 69e3b07..5767c29 100644 --- a/_service +++ b/_service @@ -4,7 +4,7 @@ git https://gitlab.freedesktop.org/pipewire/wireplumber.git enable - 0.4.7 + 0.4.8 @PARENT_TAG@