From: h.sandeep Date: Thu, 8 Jun 2017 22:28:32 +0000 (+0530) Subject: HFP_1_7: eSCO s4 setting Changes X-Git-Tag: submit/tizen_4.0/20170918.010727^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F150286%2F2;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-agent.git HFP_1_7: eSCO s4 setting Changes Change-Id: I33c2fcef94b23ed79b333cd613b1610e038e77df Signed-off-by: h.sandeep Signed-off-by: DoHyun Pyun --- diff --git a/ag-agent/bluetooth-ag-agent.c b/ag-agent/bluetooth-ag-agent.c index ec5c14e..c1d9595 100644 --- a/ag-agent/bluetooth-ag-agent.c +++ b/ag-agent/bluetooth-ag-agent.c @@ -4373,14 +4373,17 @@ static uint32_t __bt_ag_agent_get_ag_features(void) wbs_en = TRUE; #if defined(TIZEN_FEATURE_BT_HFP_AG) - hfp_ver = HFP_VERSION_1_6; + hfp_ver = HFP_VERSION_1_7; #else hfp_ver = HFP_VERSION_1_5; #endif hsp_ver = HSP_VERSION_1_2; - if (hfp_ver == HFP_VERSION_1_6) + if (hfp_ver > HFP_VERSION_1_5) ag_features |= BT_AG_FEATURE_CODEC_NEGOTIATION; + if (hfp_ver == HFP_VERSION_1_7) + ag_features |= BT_AG_FEATURE_ESCO_S4_T2_SUPPORT; + return ag_features; } @@ -4416,7 +4419,7 @@ int main(void) ag.sdp_features = (uint16_t) ag_features & 0x1F; - if (hfp_ver == HFP_VERSION_1_6 && wbs_en == TRUE) + if (hfp_ver >= HFP_VERSION_1_6 && wbs_en == TRUE) ag.sdp_features |= BT_AG_FEATURE_SDP_WIDEBAND_SPEECH; memset(&sa, 0, sizeof(sa)); diff --git a/ag-agent/bluetooth-ag-agent.h b/ag-agent/bluetooth-ag-agent.h old mode 100644 new mode 100755 index 9a8b377..3198660 --- a/ag-agent/bluetooth-ag-agent.h +++ b/ag-agent/bluetooth-ag-agent.h @@ -150,7 +150,8 @@ enum hfp_version { HFP_VERSION_1_5 = 0x0105, HFP_VERSION_1_6 = 0x0106, - HFP_VERSION_LATEST = HFP_VERSION_1_6, + HFP_VERSION_1_7 = 0x0107, + HFP_VERSION_LATEST = HFP_VERSION_1_7, }; /* BD Address */ @@ -246,6 +247,8 @@ typedef enum { BT_AG_FEATURE_ENHANCED_CALL_CONTROL = 0x0080, BT_AG_FEATURE_EXTENDED_ERROR_RESULT_CODES = 0x0100, BT_AG_FEATURE_CODEC_NEGOTIATION = 0x0200, + BT_AG_FEATURE_HF_INDICATORS = 0x0400, + BT_AG_FEATURE_ESCO_S4_T2_SUPPORT = 0x0800, } bt_ag_agent_feature_t; typedef enum {