Bluez5 uses different profile names as bluez4, so we need to check for a2dp_sink and headset_head_unit too for bluez5 support.
e32a462 bluetooth: Add support for automatic switch between hsp and a2dp profiles also for bluez5
src/modules/bluetooth/module-bluetooth-policy.c | 60 +++++++++++++----------
1 file changed, 33 insertions(+), 27 deletions(-)
Upstream: cgit.freedesktop.org