[pulseaudio-discuss] [RFC v3 12/16] bluetooth: Register HSP/HFP endpoints in BlueZ 5 Media API

Mikel Astiz mikel.astiz.oss at gmail.com
Fri Apr 19 05:44:17 PDT 2013


From: Mikel Astiz <mikel.astiz at bmw-carit.de>

Register the HSP/HFP endpoints in BlueZ 5 Media API for the sake of
completeness, despite the fact that there's currently no known user of
such an endpoint.
---
 src/modules/bluetooth/bluetooth-util.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c
index 2d958d5..1eaa249 100644
--- a/src/modules/bluetooth/bluetooth-util.c
+++ b/src/modules/bluetooth/bluetooth-util.c
@@ -911,11 +911,6 @@ static void register_endpoint(pa_bluetooth_discovery *y, const char *path, const
 static void register_adapter_endpoints(pa_bluetooth_discovery *y, const char *path) {
     register_endpoint(y, path, A2DP_SOURCE_ENDPOINT, A2DP_SOURCE_UUID);
     register_endpoint(y, path, A2DP_SINK_ENDPOINT, A2DP_SINK_UUID);
-
-    /* For BlueZ 5, only A2DP is registered in the Media API */
-    if (y->version >= BLUEZ_VERSION_5)
-        return;
-
     register_endpoint(y, path, HFP_AG_ENDPOINT, HFP_AG_UUID);
     register_endpoint(y, path, HFP_HS_ENDPOINT, HFP_HS_UUID);
 }
-- 
1.8.1.4



More information about the pulseaudio-discuss mailing list