bluetooth: set better priorities for profiles
authorTanu Kaskinen <tanuk@iki.fi>
Sun, 15 Oct 2017 10:29:42 +0000 (13:29 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 19 Oct 2017 20:03:02 +0000 (23:03 +0300)
commit85daab2725c8964d5e3d07089c4056435022d12e
tree2c94d32353c9366ecaf55fcae39c111ee5e42803
parent51bae8d547d778d15b78d6e6608d9146a5aaca46
bluetooth: set better priorities for profiles

Since HSP had higher priority than A2DP, the default profile when
connecting a new headset was HSP. To me it makes more sense to default
to high-quality output. We already have some automatic policies to
switch to HSP when it's needed.

I also made the A2DP source and HSP/HFP gateway profiles have lower
priority than the A2DP sink and HSP headset profiles. The A2DP source
and HSP/HFP gateway profiles should only be activated if the remote
device initiates audio streaming, so it makes sense to have lower
priority for those profiles.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=103058
src/modules/bluetooth/module-bluez5-device.c