Revert "audioadapter: only accept PortConfig for the adapter direction"

This reverts commit 5bda4b6a57.

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.
This commit is contained in:
Wim Taymans 2022-12-09 10:51:00 +01:00
parent 45235172c8
commit bccd33c4ab

View file

@ -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);