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 2 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. This patch replaces the previously posted native backend patches and incorporates the suggestions I received. Wim Taymans (3): bluez5-device: use get_profile_direction bluez5-util: add dispose function backend-native: add a new native headset backend configure.ac | 6 +- src/modules/bluetooth/backend-native.c | 443 +++++++++++++++++++++++++++ src/modules/bluetooth/bluez5-util.c | 2 + src/modules/bluetooth/bluez5-util.h | 2 + src/modules/bluetooth/module-bluez5-device.c | 32 +- 5 files changed, 465 insertions(+), 20 deletions(-) create mode 100644 src/modules/bluetooth/backend-native.c -- 1.9.3