channelmix: improve debug, add passthrough state

This commit is contained in:
Wim Taymans 2021-02-26 21:12:11 +01:00
parent 80a543e043
commit 50437029a3

View file

@ -294,12 +294,13 @@ static int setup_convert(struct impl *this,
emit_params_changed(this); emit_params_changed(this);
spa_log_debug(this->log, NAME " %p: got channelmix features %08x:%08x flags:%08x",
this, this->cpu_flags, this->mix.cpu_flags,
this->mix.flags);
this->is_passthrough = SPA_FLAG_IS_SET(this->mix.flags, CHANNELMIX_FLAG_IDENTITY); this->is_passthrough = SPA_FLAG_IS_SET(this->mix.flags, CHANNELMIX_FLAG_IDENTITY);
spa_log_debug(this->log, NAME " %p: got channelmix features %08x:%08x flags:%08x passthrough:%d",
this, this->cpu_flags, this->mix.cpu_flags,
this->mix.flags, this->is_passthrough);
return 0; return 0;
} }