mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-06 01:40:26 -05:00
bluez5: iso-io: add debug option for forcing same data in all streams
When debugging desync issues, it's useful to force same data be sent on all ISO streams. Add option for that.
This commit is contained in:
parent
d0309b4e1e
commit
0003d7a2d0
4 changed files with 39 additions and 0 deletions
|
|
@ -159,6 +159,7 @@ struct impl {
|
|||
|
||||
unsigned int is_duplex:1;
|
||||
unsigned int is_internal:1;
|
||||
unsigned int iso_debug_mono:1;
|
||||
|
||||
struct spa_source source;
|
||||
int timerfd;
|
||||
|
|
@ -1566,6 +1567,8 @@ static int transport_start(struct impl *this)
|
|||
this->codec->description);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
this->transport->iso_io->debug_mono = this->iso_debug_mono;
|
||||
} else {
|
||||
this->own_codec_data = false;
|
||||
this->codec_data = this->transport->iso_io->codec_data;
|
||||
|
|
@ -2625,6 +2628,9 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
if (info && (str = spa_dict_lookup(info, "api.bluez5.internal")) != NULL)
|
||||
this->is_internal = spa_atob(str);
|
||||
|
||||
if (info && (str = spa_dict_lookup(info, "bluez5.debug.iso-mono")) != NULL)
|
||||
this->iso_debug_mono = spa_atob(str);
|
||||
|
||||
if (info && (str = spa_dict_lookup(info, SPA_KEY_API_BLUEZ5_TRANSPORT)))
|
||||
sscanf(str, "pointer:%p", &this->transport);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue