From ebdaac160c58ac107f41a71b6c9db51a8326624e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Wed, 22 Jul 2020 14:48:34 +0200 Subject: [PATCH] bluez5: backend-ofono: Fix SCO nodes not created on oFono's CardAdded oFono's CardAdded signal from can occur after BlueZ's ServicesResolved signal. In this case the device is created without SCO nodes. This is fixed by not enforcing device creation on ServicesResolved signal. --- 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 6c53089c1..e0c5b98e4 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -773,7 +773,7 @@ static int device_update_props(struct spa_bt_device *device, } else if (strcmp(key, "ServicesResolved") == 0) { if (value) - spa_bt_device_check_profiles(device, true); + spa_bt_device_check_profiles(device, false); } } else if (strcmp(key, "UUIDs") == 0) {