bluetooth: Expose card profile availability
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Mon, 18 Feb 2013 08:10:33 +0000 (09:10 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 18 Feb 2013 15:48:43 +0000 (17:48 +0200)
commit966a827d779461af4ea94edc77bfbcb3e34501c3
treeaaabb6e1d51248afef06e7c742f6c3feec84c715
parentcfa79a84fcc0d7ace7f8602f62c658341a082106
bluetooth: Expose card profile availability

Use the transport's state to not only update the ports availability, but
also to update the card profile availability flag. The interpretation is
as follows:
- PA_AVAILABLE_UNKNOWN: BT profile is connected but no audio streaming
- PA_AVAILABLE_NO: BT profile disconnected
- PA_AVAILABLE_YES: BT profile connected and audio streaming
src/modules/bluetooth/module-bluetooth-device.c