]> code.delx.au - pulseaudio/commit
bluetooth: Merge all ports into "bluetooth-input" and "bluetooth-output"
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Mon, 18 Feb 2013 08:10:35 +0000 (09:10 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 18 Feb 2013 16:39:12 +0000 (18:39 +0200)
commit17b3cb954b179392e80b0a46d8f2ba4693aec386
treef8487407dd9f21f89f855c64b965b31e172301fe
parentd7764167090582a6968d104e7ec8f1161967d86b
bluetooth: Merge all ports into "bluetooth-input" and "bluetooth-output"

The card profile availability flag already provides all the necessary
information and therefore all Bluetooth ports can be merged, leaving
the two generic ones only: "bluetooth-input" and "bluetooth-output". The
availability of these port now represents whether the device is
streaming audio, with the following mapping:
- PA_AVAILABLE_UNKNOWN: some profile connected but not streaming
- PA_AVAILABLE_NO: no profiles connected
- PA_AVAILABLE_YES: some profile streaming (regardless of which)

Each port's flag represents the profiles with the corresponding I/O
capabilities (pa_direction_t).
src/modules/bluetooth/module-bluetooth-device.c