From: h.sandeep Date: Thu, 8 Jun 2017 22:28:32 +0000 (+0530) Subject: HFP_1_7: eSCO s4 setting Changes X-Git-Tag: accepted/tizen/unified/20170918.093952~2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-agent.git;a=commitdiff_plain;h=0fe19eef18b652dbb31f28af12d1ead4b4efd390 HFP_1_7: eSCO s4 setting Changes Change-Id: Ic2f1b0d5c8605e1c2b4276458d2320b0bb3a0428 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 2d7e7fc..c5e3e2d 100644 --- a/ag-agent/bluetooth-ag-agent.c +++ b/ag-agent/bluetooth-ag-agent.c @@ -4356,14 +4356,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; } @@ -4399,7 +4402,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 1a6dd35..e0d60cf --- a/ag-agent/bluetooth-ag-agent.h +++ b/ag-agent/bluetooth-ag-agent.h @@ -148,7 +148,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 */ @@ -244,6 +245,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 {