Bluetooth: Audio: Fix setting correct QoS based on direction

The unicast client would set the QoS reversed, as the
client should configure it TX parameters for SINK
and RX parameters for source, where it did it the other
way around.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-02-18 11:00:48 +01:00 committed by Anas Nashif
commit f41c1cd8a9
4 changed files with 28 additions and 19 deletions

View file

@ -825,7 +825,7 @@ static int bt_audio_broadcast_sink_setup_stream(uint8_t index,
stream->iso->qos->rx = &sink_chan_io_qos;
stream->iso->qos->tx = NULL;
stream->qos = &codec_qos;
err = bt_audio_codec_qos_to_iso_qos(stream, &codec_qos);
err = bt_audio_codec_qos_to_iso_qos(stream->iso->qos->rx, &codec_qos);
if (err) {
BT_ERR("Unable to convert codec QoS to ISO QoS");
return err;