mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
bluez5: Init BAP LC3 coder/decoder depending on direction
For LE Audio, sink and source have their own media transport endpoint. Media sink or source only needs the coder or decoder respectively.
This commit is contained in:
parent
28b4fbecfb
commit
d4b639419a
3 changed files with 28 additions and 12 deletions
|
|
@ -619,6 +619,7 @@ static int transport_start(struct impl *this)
|
|||
{
|
||||
int res, val;
|
||||
struct port *port = &this->port;
|
||||
uint32_t flags;
|
||||
|
||||
if (this->transport_acquired)
|
||||
return 0;
|
||||
|
|
@ -630,8 +631,13 @@ static int transport_start(struct impl *this)
|
|||
|
||||
this->transport_acquired = true;
|
||||
|
||||
if (this->codec->bap)
|
||||
flags = 0;
|
||||
else
|
||||
flags = this->is_duplex ? 0 : MEDIA_CODEC_FLAG_SINK;
|
||||
|
||||
this->codec_data = this->codec->init(this->codec,
|
||||
this->is_duplex ? 0 : MEDIA_CODEC_FLAG_SINK,
|
||||
flags,
|
||||
this->transport->configuration,
|
||||
this->transport->configuration_len,
|
||||
&port->current_format,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue