Accepting request 952241 from multimedia:libs

OBS-URL: https://build.opensuse.org/request/show/952241
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wireplumber?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2022-02-09 19:38:38 +00:00 committed by Git OBS Bridge
commit b43676417b
9 changed files with 56 additions and 60 deletions

View File

@ -1,47 +0,0 @@
From 211f1e6b6cd4898121e4c2b821fae4dea6cc3317 Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
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

View File

@ -4,7 +4,7 @@
<param name="scm">git</param> <param name="scm">git</param>
<param name="url">https://gitlab.freedesktop.org/pipewire/wireplumber.git</param> <param name="url">https://gitlab.freedesktop.org/pipewire/wireplumber.git</param>
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
<param name="revision">0.4.7</param> <param name="revision">0.4.8</param>
<param name="versionformat">@PARENT_TAG@</param> <param name="versionformat">@PARENT_TAG@</param>
<!-- <!--
<param name="versionprefix">0.4.6+git</param> <param name="versionprefix">0.4.6+git</param>

View File

@ -1,4 +1,4 @@
<servicedata> <servicedata>
<service name="tar_scm"> <service name="tar_scm">
<param name="url">https://gitlab.freedesktop.org/pipewire/wireplumber.git</param> <param name="url">https://gitlab.freedesktop.org/pipewire/wireplumber.git</param>
<param name="changesrevision">afb177b5e0840d54dc41d02920702c3c9580ce02</param></service></servicedata> <param name="changesrevision">e14bb72dcc85e2130d0ea96768e5ae3b375a041e</param></service></servicedata>

View File

@ -12,7 +12,7 @@ def md5FromData(data):
contents = open('90-enable-all.lua', 'r', encoding='utf-8').read() contents = open('90-enable-all.lua', 'r', encoding='utf-8').read()
md5sum = md5FromData(contents.encode('utf-8')) md5sum = md5FromData(contents.encode('utf-8'))
expected_md5sum = '1317fb5df6ae842fda3ef845f195e084' expected_md5sum = '2c036caab5a4b2698a6ee32c36eac94d'
if md5sum != expected_md5sum: if md5sum != expected_md5sum:
print('The script has to be updated for new changes in 90-enable-all.lua') print('The script has to be updated for new changes in 90-enable-all.lua')
@ -25,7 +25,8 @@ content_sections = contents.split('\n\n')
sections = ['enable-metadata', sections = ['enable-metadata',
'default-access-policy', 'default-access-policy',
'load-devices', 'load-devices',
'track-user-choices', 'track-user-choices-devices',
'track-user-choices-streams',
'link-nodes-by-roles', 'link-nodes-by-roles',
'suspend-idle-nodes', 'suspend-idle-nodes',
'device-activation'] 'device-activation']

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4731fd072ee13bbdaf270b10af3639a8f8abfd8aa43d9062fa46783584edb23b
size 1806348

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4eefadee7b4c54efb5e92429d7bd0bd0647b652aab0b19c3bdf52b8b5c9b50c7
size 1919500

View File

@ -1,3 +1,47 @@
-------------------------------------------------------------------
Mon Feb 7 17:31:11 UTC 2022 - Antonio Larrosa <alarrosa@suse.com>
- 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
target nodes for specific streams, useful for applications
that misbehave when we restore those (see #169)
- policy-endpoint now assigns the "Default" role to any stream
that does not have a role, so that it can be linked to a
pre-configured endpoint
- The route-settings-api module was dropped in favor of dealing
with json natively in Lua, now that the API exists
- Drop patch which is already upstream:
* 0001-default-nodes-handle-nodes-without-Routes.patch
- Update split-config-file.py script
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 31 17:45:11 UTC 2022 - Callum Farmer <gmbr3@opensuse.org> Mon Jan 31 17:45:11 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -1,4 +1,4 @@
name: wireplumber name: wireplumber
version: 0.4.7 version: 0.4.8
mtime: 1642066064 mtime: 1644252730
commit: afb177b5e0840d54dc41d02920702c3c9580ce02 commit: e14bb72dcc85e2130d0ea96768e5ae3b375a041e

View File

@ -22,7 +22,7 @@
%define sover 0 %define sover 0
%define libwireplumber libwireplumber-%{apiver_str}-%{sover} %define libwireplumber libwireplumber-%{apiver_str}-%{sover}
Name: wireplumber Name: wireplumber
Version: 0.4.7 Version: 0.4.8
Release: 0 Release: 0
Summary: Session / policy manager implementation for PipeWire Summary: Session / policy manager implementation for PipeWire
License: MIT License: MIT
@ -30,7 +30,6 @@ Group: Development/Libraries/C and C++
URL: https://gitlab.freedesktop.org/pipewire/wireplumber URL: https://gitlab.freedesktop.org/pipewire/wireplumber
Source0: wireplumber-%{version}.tar.xz Source0: wireplumber-%{version}.tar.xz
Source1: split-config-file.py Source1: split-config-file.py
Patch0: 0001-default-nodes-handle-nodes-without-Routes.patch
Patch100: reduce-meson-required-version.patch Patch100: reduce-meson-required-version.patch
# docs # docs
@ -188,7 +187,6 @@ export XDG_RUNTIME_DIR=/tmp
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-mixer-api.so %{_libdir}/wireplumber-%{apiver}/libwireplumber-module-mixer-api.so
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-portal-permissionstore.so %{_libdir}/wireplumber-%{apiver}/libwireplumber-module-portal-permissionstore.so
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-reserve-device.so %{_libdir}/wireplumber-%{apiver}/libwireplumber-module-reserve-device.so
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-route-settings-api.so
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-audio-adapter.so %{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-audio-adapter.so
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-audio-endpoint.so %{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-audio-endpoint.so
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-node.so %{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-node.so