Accepting request 1036207 from home:alarrosa:branches:multimedia:libs

- Add more patches from upstream to perform setup in more cases:
  * 0001-audioadapter-perform-setup-again-after-a-PortConfig.patch
  * 0002-audioconvert-redo-setup-when-format-changes.patch
- Renumber patch 0001-acp-do-probing-in-44100Hz-again.patch to
  * 0003-acp-do-probing-in-44100Hz-again.patch

OBS-URL: https://build.opensuse.org/request/show/1036207
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pipewire?expand=0&rev=85
This commit is contained in:
Antonio Larrosa 2022-11-16 11:40:21 +00:00 committed by Git OBS Bridge
parent d335319c05
commit 441db573a6
5 changed files with 75 additions and 2 deletions

View File

@ -0,0 +1,34 @@
From bf3516ba0496b644b3944b114253f23964178897 Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
Date: Tue, 15 Nov 2022 15:40:47 +0100
Subject: [PATCH] audioadapter: perform setup again after a PortConfig
After the ports are reconfigured, we need to perform the setup again so
that buffers and processing can happen with the right settings.
This fixes an issue when autoswitching between A2DP and HFP with
bluetooth headsets when there is also a stereo capture device available.
The input stream of the browser is quickly reconfigured between stereo
and mono with only a Pause command in between, clearing the setup state
is enough to redo the setup when going back to Playing.
Fixes #2764
---
spa/plugins/audioconvert/audioconvert.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c
index 6c7144d38..7fe62228f 100644
--- a/spa/plugins/audioconvert/audioconvert.c
+++ b/spa/plugins/audioconvert/audioconvert.c
@@ -979,6 +979,7 @@ static int reconfigure_mode(struct impl *this, enum spa_param_port_config_mode m
}
this->monitor = monitor;
+ this->setup = false;
dir->control = control;
dir->have_profile = true;
dir->mode = mode;
--
GitLab

View File

@ -0,0 +1,24 @@
From 086ad336ad1e29c6260251e287de8994397a7dc7 Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
Date: Tue, 15 Nov 2022 16:29:46 +0100
Subject: [PATCH] audioconvert: redo setup when format changes
---
spa/plugins/audioconvert/audioconvert.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c
index 7fe62228f..ba2ea4178 100644
--- a/spa/plugins/audioconvert/audioconvert.c
+++ b/spa/plugins/audioconvert/audioconvert.c
@@ -1989,6 +1989,7 @@ static int port_set_format(void *object,
}
this->dir[direction].format = info;
this->dir[direction].have_format = true;
+ this->setup = false;
}
port->format = info;
port->have_format = true;
--
GitLab

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Nov 16 11:32:06 UTC 2022 - Antonio Larrosa <alarrosa@suse.com>
- Add more patches from upstream to perform setup in more cases:
* 0001-audioadapter-perform-setup-again-after-a-PortConfig.patch
* 0002-audioconvert-redo-setup-when-format-changes.patch
- Renumber patch 0001-acp-do-probing-in-44100Hz-again.patch to
* 0003-acp-do-probing-in-44100Hz-again.patch
-------------------------------------------------------------------
Wed Nov 16 11:16:01 UTC 2022 - Antonio Larrosa <alarrosa@suse.com>

View File

@ -66,8 +66,12 @@ Source99: baselibs.conf
Patch0: reduce-meson-dependency.patch
# PATCH-FIX-UPSTREAM 0001-pulse-server-also-advance-read-pointer-in-underrun.patch
Patch1: 0001-pulse-server-also-advance-read-pointer-in-underrun.patch
# PATCH-FIX-UPSTREAM 0001-acp-do-probing-in-44100Hz-again.patch
Patch2: 0001-acp-do-probing-in-44100Hz-again.patch
# PATCH-FIX-UPSTREAM 0001-audioadapter-perform-setup-again-after-a-PortConfig.patch
Patch2: 0001-audioadapter-perform-setup-again-after-a-PortConfig.patch
# PATCH-FIX-UPSTREAM 0002-audioconvert-redo-setup-when-format-changes.patch
Patch3: 0002-audioconvert-redo-setup-when-format-changes.patch
# PATCH-FIX-UPSTREAM 0003-acp-do-probing-in-44100Hz-again.patch
Patch4: 0003-acp-do-probing-in-44100Hz-again.patch
BuildRequires: docutils
BuildRequires: doxygen
BuildRequires: fdupes
@ -342,6 +346,8 @@ This package provides a PulseAudio implementation based on PipeWire
%endif
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%if %{pkg_vcmp gcc < 8}