From bccd33c4abea667021364287272944160dd7708b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 9 Dec 2022 10:51:00 +0100 Subject: [PATCH] Revert "audioadapter: only accept PortConfig for the adapter direction" This reverts commit 5bda4b6a5704268d5405d5cca2bdcf62e29c303b. The reason is that when you use a null-audio-sink as a source, the adapter will think it's a sink while wireplumber will try to use it as a source. There is no quick solution for this so revert this check for now. --- spa/plugins/audioconvert/audioadapter.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index a30aabea9..d7ab2fc3b 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -641,9 +641,6 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags, SPA_PARAM_PORT_CONFIG_format, SPA_POD_OPT_Pod(&format)) < 0) return -EINVAL; - if (dir != this->direction) - return -EINVAL; - if (format) { struct spa_audio_info info; @@ -682,6 +679,7 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags, } break; } + case SPA_PARAM_Props: if (this->target != this->follower) res = spa_node_set_param(this->target, id, flags, param);