From 78aae9cfdce984914e9a358083c706113f2acb0e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 17 May 2021 15:32:26 +0200 Subject: [PATCH] Revert "adapter: set prefix for all monitor ports to "monitor"" This reverts commit 38a40949ecc538d0abd8097e5d423e1682d94735. This is not quite right, virtual devices now have monitor ports instead of capture ports. --- src/modules/module-adapter/adapter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/module-adapter/adapter.c b/src/modules/module-adapter/adapter.c index a337165a5..26d91fa2b 100644 --- a/src/modules/module-adapter/adapter.c +++ b/src/modules/module-adapter/adapter.c @@ -115,16 +115,16 @@ static void node_port_init(void *data, struct pw_impl_port *port) if (is_duplex) prefix = direction == PW_DIRECTION_INPUT ? - "playback" : is_monitor ? "monitor" : "capture"; + "playback" : "capture"; else if (is_virtual) prefix = direction == PW_DIRECTION_INPUT ? - "input" : is_monitor ? "monitor" : "capture"; + "input" : "capture"; else if (is_device) prefix = direction == PW_DIRECTION_INPUT ? "playback" : is_monitor ? "monitor" : "capture"; else prefix = direction == PW_DIRECTION_INPUT ? - "input" : is_monitor ? "monitor" : "capture" ; + "input" : "output"; if ((str = pw_properties_get(old, PW_KEY_AUDIO_CHANNEL)) == NULL || strcmp(str, "UNK") == 0) {