From e4f7b2285b0ca324df81d558380b6e7ce629b4a8 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Thu, 6 Jan 2022 21:08:07 +0200 Subject: [PATCH] bluez5: bump device profile timeout Double device profile timeout to 6sec. In some cases, BlueZ can take more than the previous 3sec to connect all profiles. It's better to wait for a bit longer, so that devices have all profiles visible already when they first appear. This works around issues in Wireplumber profile selection logic. --- 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 20e46a191..2b7f20162 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -1159,7 +1159,7 @@ static int reconnect_device_profiles(struct spa_bt_device *device) } #define DEVICE_RECONNECT_TIMEOUT_SEC 2 -#define DEVICE_PROFILE_TIMEOUT_SEC 3 +#define DEVICE_PROFILE_TIMEOUT_SEC 6 static void device_timer_event(struct spa_source *source) {