wireplumber: update to latest master
[AGL/meta-agl-devel.git] / meta-pipewire / recipes-multimedia / pipewire / pipewire / 0012-audioconvert-always-assume-that-output-ports-are-NOT.patch
1 From a95e87cd47de3585d9f4ef77b75c4a077bd95f78 Mon Sep 17 00:00:00 2001
2 From: George Kiagiadakis <george.kiagiadakis@collabora.com>
3 Date: Wed, 2 Oct 2019 21:40:34 +0300
4 Subject: [PATCH] audioconvert: always assume that output ports are NOT monitor
5  ports
6
7 Otherwise, when we setup audioconvert in merge+split mode,
8 it assumes that the splitter's ports are monitor ports and
9 belong to the merger.
10
11 Upstream-Status: Inappropriate [workaround]
12 ---
13  spa/plugins/audioconvert/audioconvert.c | 4 ++++
14  1 file changed, 4 insertions(+)
15
16 diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c
17 index 0859bf73..ac4dceef 100644
18 --- a/spa/plugins/audioconvert/audioconvert.c
19 +++ b/spa/plugins/audioconvert/audioconvert.c
20 @@ -109,8 +109,12 @@ struct impl {
21         unsigned int add_listener:1;
22  };
23  
24 +#if 0
25  #define IS_MONITOR_PORT(this,dir,port_id) (dir == SPA_DIRECTION_OUTPUT && port_id > 0 &&       \
26                 this->mode[SPA_DIRECTION_INPUT] == SPA_PARAM_PORT_CONFIG_MODE_dsp)
27 +#else
28 +#define IS_MONITOR_PORT(this,dir,port_id) (false)
29 +#endif
30  
31  static void emit_node_info(struct impl *this, bool full)
32  {
33 -- 
34 2.23.0
35