]> code.delx.au - pulseaudio/commit
bluetooth: Set hfgw profile when HandsfreeGateway is playing
authorFrédéric Dalleau <frederic.dalleau@linux.intel.com>
Tue, 4 Oct 2011 07:37:25 +0000 (09:37 +0200)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 2 Nov 2011 18:59:00 +0000 (00:29 +0530)
commit79c836ec6aef05735bce53b91714cf60d0f7e32e
tree3341d42ea327e004b4e718e879ef322aee5541d7
parent2f24a6e62770b13f1e21445abc5187285921b865
bluetooth: Set hfgw profile when HandsfreeGateway is playing

Allow module-bluetooth-device to listens to HandsfreeGateway state
changes using DBUS signals. When an handsfree connects, module-bluetooth-device
is loaded and goes to playing state. When the handsfree disconnect audio,
the card profile is set to "off". If the headset connects audio again after
that, the card profile should switch to "hfgw" again to match state of audio
connection.
src/modules/bluetooth/bluetooth-util.c
src/modules/bluetooth/bluetooth-util.h
src/modules/bluetooth/module-bluetooth-device.c