]> code.delx.au - pulseaudio/commit
bluetooth: Disable profile auto-switch policy for headsets
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Mon, 26 Nov 2012 17:32:08 +0000 (18:32 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 29 Nov 2012 03:37:45 +0000 (05:37 +0200)
commit71bd458bd1f9c92e2d929b8741346112109b17e0
tree1cc5211e925741bb469f4ab1d67b5c2712bb2e23
parent40329acc1a28145643e49207e9d65cd05bbda2c8
bluetooth: Disable profile auto-switch policy for headsets

Given that headsets have just one single port exposing whether the
audio is streaming (playing) or not, it's not possible that
module-bluetooth-policy would distinguish A2DP/HSP cases, and thus
the automatic selection of the card profile is not deterministic.

For this reason, disable the policy entirely for headsets and focus
only on HFGW and A2DP source profiles.
src/modules/bluetooth/module-bluetooth-policy.c