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.
This commit is contained in:
Pauli Virtanen 2022-01-06 21:08:07 +02:00 committed by Wim Taymans
parent b92a378a29
commit e4f7b2285b

View file

@ -1159,7 +1159,7 @@ static int reconnect_device_profiles(struct spa_bt_device *device)
} }
#define DEVICE_RECONNECT_TIMEOUT_SEC 2 #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) static void device_timer_event(struct spa_source *source)
{ {