Bluetooth: Audio: Remove bidirectional audio streams

Audio streams as defined by the BAP spec does not
support bidirectional audio streams. This commit
updates the API and implementation to match that.

The use a bidirectional CIS with 2 audio stream will
be added in a future commit.

This removes the _IN_ and _OUT_ and _INOUT_ QOS
values, as well as the direction of the codec QOS
struct.

To keep direction for internal use, the direction
has been added to the endpoint struct.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-02-02 19:52:01 +01:00 committed by Anas Nashif
commit b880637231
12 changed files with 107 additions and 192 deletions

View file

@ -771,6 +771,7 @@ static void broadcast_sink_ep_init(struct bt_audio_ep *ep)
ep->iso.qos = &ep->iso_qos;
ep->iso.qos->rx = &ep->iso_rx;
ep->iso.qos->tx = &ep->iso_tx;
ep->dir = BT_AUDIO_SINK;
}
static struct bt_audio_ep *broadcast_sink_new_ep(uint8_t index)
@ -823,9 +824,8 @@ static int bt_audio_broadcast_sink_setup_stream(uint8_t index,
*/
stream->iso->qos->rx = &sink_chan_io_qos;
stream->iso->qos->tx = NULL;
codec_qos.dir = BT_CODEC_QOS_IN;
stream->qos = &codec_qos;
err = bt_audio_codec_qos_to_iso_qos(stream->iso->qos, &codec_qos);
err = bt_audio_codec_qos_to_iso_qos(stream, &codec_qos);
if (err) {
BT_ERR("Unable to convert codec QoS to ISO QoS");
return err;