From d0b3c00d29f4262c6735f116b4fc4dd96a1a94c3 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 21 Jan 2025 16:40:08 +0200 Subject: [PATCH] bluez: enable delay reporting for a2dp-source This allows our a2dp-source (sink endpoint) to report delay to the remote source endpoint. Setting the "Delay" property is already implemented, but by failing to configure DelayReporting, bluez rejects the property change. --- spa/plugins/bluez5/bluez5-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index fbb9f935f..d470447e2 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -5017,7 +5017,7 @@ static void append_media_object(DBusMessageIter *iter, const char *endpoint, append_basic_variant_dict_entry(&dict, "Codec", DBUS_TYPE_BYTE, "y", &codec_id); append_basic_array_variant_dict_entry(&dict, "Capabilities", "ay", "y", DBUS_TYPE_BYTE, caps, caps_size); - if (spa_bt_profile_from_uuid(uuid) & SPA_BT_PROFILE_A2DP_SOURCE) { + if (spa_bt_profile_from_uuid(uuid) & (SPA_BT_PROFILE_A2DP_SINK | SPA_BT_PROFILE_A2DP_SOURCE)) { dbus_bool_t delay_reporting = TRUE; append_basic_variant_dict_entry(&dict, "DelayReporting", DBUS_TYPE_BOOLEAN, "b", &delay_reporting);