[pulseaudio-discuss] [RFC 11/24] bluetooth: Add new profile type PROFILE_HFP_AG

jprvita at gmail.com jprvita at gmail.com
Tue Mar 26 22:16:50 PDT 2013


From: João Paulo Rechi Vita <jprvita at openbossa.org>

---
 src/modules/bluetooth/bluetooth-util.c | 6 ++++++
 src/modules/bluetooth/bluetooth-util.h | 1 +
 2 files changed, 7 insertions(+)

diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c
index 2a4b694..59d0854 100644
--- a/src/modules/bluetooth/bluetooth-util.c
+++ b/src/modules/bluetooth/bluetooth-util.c
@@ -184,6 +184,8 @@ const char *pa_bt_profile_to_string(enum profile profile) {
             return "hsp";
         case PROFILE_HFGW:
             return "hfgw";
+        case PROFILE_HFP_AG:
+            return "hfp_ag";
         case PROFILE_OFF:
             pa_assert_not_reached();
     }
@@ -232,6 +234,10 @@ static void profile_to_remote_uuid(enum profile p, const char *res[2]) {
             res[0] = HSP_AG_UUID;
             res[1] = HFP_AG_UUID;
             return;
+        case PROFILE_HFP_AG:
+            res[0] = HFP_AG_UUID;
+            res[1] = NULL;
+            return;
         case PROFILE_OFF:
             break;
     }
diff --git a/src/modules/bluetooth/bluetooth-util.h b/src/modules/bluetooth/bluetooth-util.h
index 6423f88..28f63c8 100644
--- a/src/modules/bluetooth/bluetooth-util.h
+++ b/src/modules/bluetooth/bluetooth-util.h
@@ -62,6 +62,7 @@ enum profile {
     PROFILE_A2DP_SOURCE,
     PROFILE_HSP,
     PROFILE_HFGW,
+    PROFILE_HFP_AG,
     PROFILE_OFF
 };
 
-- 
1.7.11.7



More information about the pulseaudio-discuss mailing list