mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
improve debug
This commit is contained in:
parent
093a427b11
commit
b3d94bf019
2 changed files with 10 additions and 3 deletions
|
|
@ -658,6 +658,9 @@ static void a2dp_on_timeout(struct spa_source *source)
|
||||||
prev_time = this->current_time;
|
prev_time = this->current_time;
|
||||||
now_time = this->current_time = this->next_time;
|
now_time = this->current_time = this->next_time;
|
||||||
|
|
||||||
|
spa_log_debug(this->log, NAME" %p: timeout %"PRIu64" %"PRIu64"", this,
|
||||||
|
now_time, now_time - prev_time);
|
||||||
|
|
||||||
if (SPA_LIKELY(this->position)) {
|
if (SPA_LIKELY(this->position)) {
|
||||||
duration = this->position->clock.duration;
|
duration = this->position->clock.duration;
|
||||||
rate = this->position->clock.rate.denom;
|
rate = this->position->clock.rate.denom;
|
||||||
|
|
@ -685,8 +688,6 @@ static void a2dp_on_timeout(struct spa_source *source)
|
||||||
this->clock->delay = (delay_nsec * this->clock->rate.denom) / SPA_NSEC_PER_SEC;
|
this->clock->delay = (delay_nsec * this->clock->rate.denom) / SPA_NSEC_PER_SEC;
|
||||||
}
|
}
|
||||||
|
|
||||||
spa_log_trace(this->log, NAME" %p: timeout %"PRIu64" %"PRIu64"", this,
|
|
||||||
now_time, now_time - prev_time);
|
|
||||||
|
|
||||||
spa_log_trace(this->log, NAME " %p: %d", this, io->status);
|
spa_log_trace(this->log, NAME " %p: %d", this, io->status);
|
||||||
io->status = SPA_STATUS_NEED_DATA;
|
io->status = SPA_STATUS_NEED_DATA;
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,7 @@ static void clean_transport(struct node_data *data)
|
||||||
|
|
||||||
static void mix_init(struct mix *mix, struct pw_impl_port *port, uint32_t mix_id)
|
static void mix_init(struct mix *mix, struct pw_impl_port *port, uint32_t mix_id)
|
||||||
{
|
{
|
||||||
|
pw_log_debug("port %p: mix init %d.%d", port, port->port_id, mix_id);
|
||||||
mix->port = port;
|
mix->port = port;
|
||||||
mix->mix_id = mix_id;
|
mix->mix_id = mix_id;
|
||||||
pw_impl_port_init_mix(port, &mix->mix);
|
pw_impl_port_init_mix(port, &mix->mix);
|
||||||
|
|
@ -214,8 +215,11 @@ static struct mix *find_mix(struct node_data *data,
|
||||||
|
|
||||||
spa_list_for_each(mix, &data->mix[direction], link) {
|
spa_list_for_each(mix, &data->mix[direction], link) {
|
||||||
if (mix->port->port_id == port_id &&
|
if (mix->port->port_id == port_id &&
|
||||||
mix->mix_id == mix_id)
|
mix->mix_id == mix_id) {
|
||||||
|
pw_log_debug("port %p: found mix %d:%d.%d", mix->port,
|
||||||
|
direction, port_id, mix_id);
|
||||||
return mix;
|
return mix;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
@ -962,6 +966,8 @@ static void do_node_init(struct node_data *data)
|
||||||
|
|
||||||
static void clear_mix(struct node_data *data, struct mix *mix)
|
static void clear_mix(struct node_data *data, struct mix *mix)
|
||||||
{
|
{
|
||||||
|
pw_log_debug("port %p: mix clear %d.%d", mix->port, mix->port->port_id, mix->mix_id);
|
||||||
|
|
||||||
deactivate_mix(data, mix);
|
deactivate_mix(data, mix);
|
||||||
|
|
||||||
spa_list_remove(&mix->link);
|
spa_list_remove(&mix->link);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue