From 57d471b6f45f2e4d3f4f289b9d0b75ac619e8a29 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 12 Jul 2019 09:58:56 +0200 Subject: [PATCH] remote-node: implement set_param and port_set_io Implement set_param, just call the node implementation Always call port_set_io on the mixer port. --- src/modules/module-client-node/remote-node.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/modules/module-client-node/remote-node.c b/src/modules/module-client-node/remote-node.c index a013e71ee..574c5429c 100644 --- a/src/modules/module-client-node/remote-node.c +++ b/src/modules/module-client-node/remote-node.c @@ -503,11 +503,11 @@ static int client_node_set_param(void *object, uint32_t id, uint32_t flags, const struct spa_pod *param) { - pw_log_warn("set param not implemented"); - return -ENOTSUP; + struct pw_proxy *proxy = object; + struct node_data *data = proxy->user_data; + return spa_node_set_param(data->node->node, id, flags, param); } - static int client_node_set_io(void *object, uint32_t id, @@ -885,12 +885,13 @@ client_node_port_set_io(void *object, mix->mix.io = ptr; if (ptr) activate_mix(data, mix); - } else { - if ((res = spa_node_port_set_io(mix->port->node->node, - direction, port_id, - id, - ptr, - size)) < 0) + } + if ((res = spa_node_port_set_io(mix->port->mix, + direction, mix_id, + id, ptr, size)) < 0) { + if (res == -ENOTSUP) + res = 0; + else goto error_exit; } return res;