bluez5: set BAP QoS RTN correctly

Set QoS RTN according to values supported by server values.
This commit is contained in:
Pauli Virtanen 2023-11-14 22:08:23 +02:00
parent 142b660e7b
commit 43af0645b7
2 changed files with 7 additions and 0 deletions

View file

@ -674,6 +674,8 @@ static int codec_get_qos(const struct media_codec *codec,
if (endpoint_qos->latency >= 0x0005 && endpoint_qos->latency <= 0x0FA0)
/* Values outside the range are RFU */
qos->latency = endpoint_qos->latency;
if (endpoint_qos->retransmission)
qos->retransmission = endpoint_qos->retransmission;
if (endpoint_qos->delay_min)
qos->delay = SPA_MAX(qos->delay, endpoint_qos->delay_min);
if (endpoint_qos->delay_max)