mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
alsa: cleanups
Use a periodic timer to catch underruns Small cleanups
This commit is contained in:
parent
97473c8e8b
commit
bd3b7e8ee4
8 changed files with 27 additions and 24 deletions
|
|
@ -521,7 +521,7 @@ impl_node_port_enum_params(struct spa_node *node,
|
|||
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);
|
||||
}
|
||||
|
|
@ -577,7 +577,7 @@ static int port_set_format(struct spa_node *node,
|
|||
port->format = info;
|
||||
port->have_format = true;
|
||||
|
||||
spa_log_info(this->log, NAME " %p: set format on port %d %d", this, port_id, res);
|
||||
spa_log_debug(this->log, NAME " %p: set format on port %d %d", this, port_id, res);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
@ -628,7 +628,7 @@ impl_node_port_use_buffers(struct spa_node *node,
|
|||
|
||||
spa_return_val_if_fail(port->have_format, -EIO);
|
||||
|
||||
spa_log_info(this->log, NAME " %p: use buffers %d on port %d", this, n_buffers, port_id);
|
||||
spa_log_debug(this->log, NAME " %p: use buffers %d on port %d", this, n_buffers, port_id);
|
||||
|
||||
clear_buffers(this, port);
|
||||
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ static int setup_convert(struct impl *this)
|
|||
src_fmt = inport->format.info.raw.format;
|
||||
dst_fmt = outport->format.info.raw.format;
|
||||
|
||||
spa_log_debug(this->log, NAME " %p: %s/%d@%d.%d->%s/%d@%d.%d", this,
|
||||
spa_log_info(this->log, NAME " %p: %s/%d@%d.%d->%s/%d@%d.%d", this,
|
||||
spa_type_map_get_type(this->map, src_fmt),
|
||||
inport->format.info.raw.channels,
|
||||
inport->format.info.raw.rate,
|
||||
|
|
|
|||
|
|
@ -497,7 +497,7 @@ impl_node_port_enum_params(struct spa_node *node,
|
|||
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);
|
||||
}
|
||||
|
|
@ -552,7 +552,7 @@ static int port_set_format(struct spa_node *node,
|
|||
port->format = info;
|
||||
port->have_format = true;
|
||||
|
||||
spa_log_info(this->log, NAME " %p: set format on port %d %d", this, port_id, res);
|
||||
spa_log_debug(this->log, NAME " %p: set format on port %d %d", this, port_id, res);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
@ -603,7 +603,7 @@ impl_node_port_use_buffers(struct spa_node *node,
|
|||
|
||||
spa_return_val_if_fail(port->have_format, -EIO);
|
||||
|
||||
spa_log_info(this->log, NAME " %p: use buffers %d on port %d", this, n_buffers, port_id);
|
||||
spa_log_debug(this->log, NAME " %p: use buffers %d on port %d", this, n_buffers, port_id);
|
||||
|
||||
clear_buffers(this, port);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue