From 22a543058e0302ee9ff28588200930c58b612993 Mon Sep 17 00:00:00 2001 From: "h.sandeep" Date: Fri, 9 Jun 2017 03:58:32 +0530 Subject: [PATCH] HFP_1_7: eSCO s4 setting Changes Change-Id: I33c2fcef94b23ed79b333cd613b1610e038e77df Signed-off-by: h.sandeep Signed-off-by: DoHyun Pyun --- ag-agent/bluetooth-ag-agent.c | 9 ++++++--- ag-agent/bluetooth-ag-agent.h | 5 ++++- 2 files changed, 10 insertions(+), 4 deletions(-) mode change 100644 => 100755 ag-agent/bluetooth-ag-agent.h 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 { -- 2.7.4