This set of patches adds a simple handler for the HSP profile to bluez and makes a new card for each connected device. This makes it possible to send audio to a Headset. The profile is implemented in a new native headset backend. The first 4 patches are mostly some very small cleanups and little bits to implement the last patch. The patch also switches the default backend from ofono to native. Wim Taymans (5): bluez5-device: use get_profile_direction bluez5-util: add dispose function bluez5-util: always DISCONNECT on free configure: fix headset check backend-native: add a new native headset backend configure.ac | 6 +- src/modules/bluetooth/backend-native.c | 474 +++++++++++++++++++++++++++ src/modules/bluetooth/bluez5-util.c | 6 +- src/modules/bluetooth/bluez5-util.h | 2 + src/modules/bluetooth/module-bluez5-device.c | 32 +- 5 files changed, 498 insertions(+), 22 deletions(-) create mode 100644 src/modules/bluetooth/backend-native.c -- 1.9.3