This patch will enable HandsfreeGateway interface to work with PulseAudio. This is similar to what is done for Headset interface. Some details about patch 2 : In an error situation, endpoint_reply calls request->cb which frees endpoint->request and sets it to NULL. But endpoint_reply uses a local variable with a copy of the pointer and tries to free the request again. Also there is some minor fixes in the pulse audio part still required. I'll send the patch on the PA list. Frédéric Dalleau (7): Add missing call to headset_remove_state_cb Fix double free in error case in endpoint_reply Add state change callback to HandsfreeGateway Use state change callback from media interface Update g_strcmp0 to strcasecmp Add state change callback to audio interface Introduce new state GATEWAY_STATE_PLAY_IN_PROGRESS audio/device.c | 54 +++++++++++++++++++++++++++++++++++++++++++++ audio/gateway.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ audio/gateway.h | 8 ++++++ audio/media.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 187 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html