From 22fe0b293aa0146e1431000413071d9a621404f0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 24 Jun 2021 12:11:38 +0200 Subject: [PATCH] audioconvert: add some more debug --- spa/plugins/audioconvert/audioconvert.c | 4 ++++ spa/plugins/audioconvert/merger.c | 5 ++++- spa/plugins/audioconvert/splitter.c | 6 +++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 558dad2a3..04b1762fe 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -584,6 +584,8 @@ static void fmt_input_port_info(void *data, if (this->fmt_removing[direction]) info = NULL; + spa_log_debug(this->log, "%p: %d.%d info", this, direction, port); + if (direction == SPA_DIRECTION_INPUT || IS_MONITOR_PORT(this, direction, port)) spa_node_emit_port_info(&this->hooks, direction, port, info); @@ -604,6 +606,8 @@ static void fmt_output_port_info(void *data, if (this->fmt_removing[direction]) info = NULL; + spa_log_debug(this->log, "%p: %d.%d info", this, direction, port); + if (direction == SPA_DIRECTION_OUTPUT) spa_node_emit_port_info(&this->hooks, direction, port, info); } diff --git a/spa/plugins/audioconvert/merger.c b/spa/plugins/audioconvert/merger.c index 7515fcf37..588e56604 100644 --- a/spa/plugins/audioconvert/merger.c +++ b/spa/plugins/audioconvert/merger.c @@ -935,7 +935,7 @@ static int port_set_latency(void *object, enum spa_direction other = SPA_DIRECTION_REVERSE(direction); uint32_t i; - spa_log_debug(this->log, NAME " %p: set latency", this); + spa_log_debug(this->log, NAME " %p: set latency direction:%d", this, direction); if (latency == NULL) { this->latency[other] = SPA_LATENCY_INFO(other); @@ -1071,6 +1071,9 @@ impl_node_port_set_param(void *object, spa_return_val_if_fail(this != NULL, -EINVAL); + spa_log_debug(this->log, "%p: set param port %d.%d %u", + this, direction, port_id, id); + spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL); switch (id) { diff --git a/spa/plugins/audioconvert/splitter.c b/spa/plugins/audioconvert/splitter.c index bb9c2e7c8..b511d2466 100644 --- a/spa/plugins/audioconvert/splitter.c +++ b/spa/plugins/audioconvert/splitter.c @@ -694,7 +694,7 @@ static int port_set_latency(void *object, enum spa_direction other = SPA_DIRECTION_REVERSE(direction); uint32_t i; - spa_log_debug(this->log, NAME " %p: set latency", this); + spa_log_debug(this->log, NAME " %p: set latency direction:%d", this, direction); if (latency == NULL) { this->latency[other] = SPA_LATENCY_INFO(other); @@ -813,6 +813,10 @@ impl_node_port_set_param(void *object, struct impl *this = object; spa_return_val_if_fail(this != NULL, -EINVAL); + + spa_log_debug(this->log, "%p: set param port %d.%d %u", + this, direction, port_id, id); + spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL); switch (id) {