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