Hello, I'm trying to make pulseaudio work as HFP HF role, wich means using HandsfreeGateway interface. So I have made these changes to enable the HFPHS endpoint and managed to make an audio card appear on my setup with profile hfgw. v1 fixes issue about card disappearing when SCO is disconnected even if RFCOMM is still alive (see patch 2) V3 fixes a missing dbus_unregister_object_path that could potentially crash. Opinions welcome! There are also some patches on BlueZ side. Best regards, Fr?d?ric Fr?d?ric Dalleau (2): bluetooth: Fix Media Endpoint for HandsfreeGateway bluetooth: Do not unload module-bluetooth-device on ERR or HUP src/modules/bluetooth/bluetooth-util.c | 12 +++++++++--- src/modules/bluetooth/module-bluetooth-device.c | 3 +-- src/modules/bluetooth/module-bluetooth-discover.c | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-)