bluez5: fix device connection issue if profile(UUIDs) info is delayed

Keep all types of devices, only emit device info if device has audio profiles.
Heuristically add profiles based on bluez actions so device can still be connected
even without initial UUIDs info from signal InterfaceAdded for org.bluez.Device1.

Fixes #1330
This commit is contained in:
Huang-Huang Bao 2021-06-20 23:00:37 +08:00 committed by Wim Taymans
parent b44fdf5ebb
commit 3433f40cd9
5 changed files with 33 additions and 6 deletions

View file

@ -364,6 +364,7 @@ static DBusHandlerResult ofono_audio_card_found(struct impl *backend, char *path
spa_log_error(backend->log, NAME": Device doesnt exist for %s", path);
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
spa_bt_device_add_profile(d, profile);
t = _transport_create(backend, path, d, profile, codec, (struct spa_callbacks *)&ofono_transport_impl);