diff --git a/src/modules/module-audio-dsp/floatmix.c b/src/modules/module-audio-dsp/floatmix.c index ef1999fe2..9148b10c9 100644 --- a/src/modules/module-audio-dsp/floatmix.c +++ b/src/modules/module-audio-dsp/floatmix.c @@ -258,7 +258,7 @@ static int impl_node_add_port(struct spa_node *node, enum spa_direction directio this->last_port = port_id + 1; port->valid = true; - spa_log_info(this->log, NAME " %p: add port %d %d", this, port_id, this->last_port); + spa_log_debug(this->log, NAME " %p: add port %d %d", this, port_id, this->last_port); emit_port_info(this, port, true); return 0; @@ -295,7 +295,7 @@ impl_node_remove_port(struct spa_node *node, enum spa_direction direction, uint3 this->last_port = i + 1; } - spa_log_info(this->log, NAME " %p: remove port %d %d", this, port_id, this->last_port); + spa_log_debug(this->log, NAME " %p: remove port %d %d", this, port_id, this->last_port); spa_node_emit_port_info(&this->hooks, direction, port_id, NULL); @@ -450,7 +450,7 @@ impl_node_port_enum_params(struct spa_node *node, int seq, static int clear_buffers(struct impl *this, struct port *port) { if (port->n_buffers > 0) { - spa_log_info(this->log, NAME " %p: clear buffers %p", this, port); + spa_log_debug(this->log, NAME " %p: clear buffers %p", this, port); port->n_buffers = 0; spa_list_init(&port->queue); } @@ -530,7 +530,7 @@ static int port_set_format(struct spa_node *node, if (!port->have_format) { this->n_formats++; port->have_format = true; - spa_log_info(this->log, NAME " %p: set format on port %d:%d", + spa_log_debug(this->log, NAME " %p: set format on port %d:%d", this, direction, port_id); } } @@ -588,7 +588,7 @@ impl_node_port_use_buffers(struct spa_node *node, port = GET_PORT(this, direction, port_id); - spa_log_info(this->log, NAME " %p: use buffers %d on port %d:%d", + spa_log_debug(this->log, NAME " %p: use buffers %d on port %d:%d", this, n_buffers, direction, port_id); spa_return_val_if_fail(port->have_format, -EIO); diff --git a/src/pipewire/node.c b/src/pipewire/node.c index b0a41055d..263748fbe 100644 --- a/src/pipewire/node.c +++ b/src/pipewire/node.c @@ -489,9 +489,10 @@ static int recalc_quantum(struct pw_node *driver) if (n->quantum_size > 0 && n->quantum_size < quantum) quantum = n->quantum_size; } - if (driver->rt.position) { - driver->rt.position->size = SPA_MAX(quantum, MIN_QUANTUM); - pw_log_info("node %p: driver quantum %d", driver, driver->rt.position->size); + quantum = SPA_MAX(quantum, MIN_QUANTUM); + if (driver->rt.position && quantum != driver->rt.position->size) { + driver->rt.position->size = quantum; + pw_log_info("node %p: driver quantum %d", driver, quantum); } return 0; }