bluez5: pass per-device settings to codec handler, make 'bluez5.sbc-xq-support' a per-device setting

This commit is contained in:
Huang-Huang Bao 2021-03-14 17:53:31 +08:00 committed by Wim Taymans
parent af8272fe08
commit 374180e211
7 changed files with 71 additions and 27 deletions

View file

@ -707,7 +707,8 @@ static int do_start(struct impl *this)
this->codec_data = this->codec->init(this->codec, 0,
this->transport->configuration,
this->transport->configuration_len,
&port->current_format, NULL,
&port->current_format,
this->transport->device->settings,
this->transport->write_mtu);
if (this->codec_data == NULL)
return -EIO;