bluetooth: Use transport state instead of profile states
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 14 Dec 2012 14:14:37 +0000 (15:14 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 19 Dec 2012 10:31:49 +0000 (12:31 +0200)
commitd2bd3aa4445ccc84a8d4a33ae46fc35a3c446f22
tree4bdb348985807c20ebc021e3bec912f1334e6625
parent468c67bb62fcc721818ad292fd85dd87aac320e5
bluetooth: Use transport state instead of profile states

The transport state also reflects the state of the audio interface. The
state redundancy can thus be minimized by always using the first one,
and avoiding the use of profile-specific states with the exception of
finding out the initial state of a transport.
src/modules/bluetooth/bluetooth-util.c
src/modules/bluetooth/module-bluetooth-device.c