components/bt: Disable Wide Bond Speech when SCO data path is PCM

This commit is contained in:
baohongde 2019-09-02 20:50:09 +08:00
parent cd5dc4d05f
commit ad70ab8957
4 changed files with 19 additions and 1 deletions

View File

@ -98,6 +98,14 @@ choice BT_HFP_AUDIO_DATA_PATH
bool "HCI"
endchoice
config BT_HFP_WBS_ENABLE
bool "Wide Band Speech"
depends on BT_HFP_AUDIO_DATA_PATH_HCI
default y
help
This enables Wide Band Speech. Should disable it when SCO data path is PCM.
Otherwise there will be no data transmited via GPIOs.
config BT_SSP_ENABLED
bool "Secure Simple Pairing"
depends on BT_CLASSIC_ENABLED

View File

@ -232,7 +232,11 @@ const tBTA_HF_CLIENT_ST_TBL bta_hf_client_st_tbl[] = {
bta_hf_client_st_closing
};
#if BTM_WBS_INCLUDED
const char *bta_hf_client_version = "1.6";
#else
const char *bta_hf_client_version = "1.5";
#endif
/* HF Client control block */
#if BTA_DYNAMIC_MEMORY == FALSE

View File

@ -176,6 +176,12 @@
#define UC_BT_HFP_AUDIO_DATA_PATH_HCI FALSE
#endif
//Wide Band Speech
#ifdef CONFIG_BT_HFP_WBS_ENABLE
#define UC_BT_HFP_WBS_ENABLE CONFIG_BT_HFP_WBS_ENABLE
#else
#define UC_BT_HFP_WBS_ENABLE FALSE
#endif
/**********************************************************
* Memory reference

View File

@ -592,7 +592,7 @@
/* Includes WBS if TRUE */
#ifndef BTM_WBS_INCLUDED
#define BTM_WBS_INCLUDED FALSE /* TRUE includes WBS code */
#define BTM_WBS_INCLUDED UC_BT_HFP_WBS_ENABLE /* TRUE includes WBS code */
#endif
/* This is used to work around a controller bug that doesn't like Disconnect