a2dp-codecs: add settings to codec init function

To make it possible to add extra config options in init.
Also add a method to update settings in a codec.
This commit is contained in:
Wim Taymans 2021-01-07 17:39:39 +01:00
parent deb3fa1d9b
commit 5bb7a0f573
7 changed files with 18 additions and 12 deletions

View file

@ -666,7 +666,7 @@ 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,
&port->current_format, NULL,
this->transport->write_mtu);
if (this->codec_data == NULL)
return -EIO;