mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: set BAP QoS RTN correctly
Set QoS RTN according to values supported by server values.
This commit is contained in:
parent
142b660e7b
commit
43af0645b7
2 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -971,6 +971,11 @@ static DBusHandlerResult endpoint_select_properties(DBusConnection *conn, DBusMe
|
|||
goto error_invalid;
|
||||
}
|
||||
|
||||
spa_log_debug(monitor->log, "select qos: interval:%d framing:%d phy:%d sdu:%d "
|
||||
"rtn:%d latency:%d delay:%d target_latency:%d",
|
||||
qos.interval, qos.framing, qos.phy, qos.sdu, qos.retransmission,
|
||||
qos.latency, (int)qos.delay, qos.target_latency);
|
||||
|
||||
dbus_message_iter_open_container(&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry);
|
||||
dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &entry_key);
|
||||
dbus_message_iter_open_container(&entry, DBUS_TYPE_VARIANT, "a{sv}", &variant);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue