Merge branch 'fix/hfp_pcm_codec' into 'master'

fix(bt/bluedroid): Fix default codec type on PCM datapath for hfp_hf

See merge request espressif/esp-idf!32878
This commit is contained in:
Wang Meng Yang 2024-08-28 14:03:06 +08:00
commit 17f422cc33

View File

@ -413,7 +413,11 @@ static void bta_hf_client_api_enable(tBTA_HF_CLIENT_DATA *p_data)
/* check if mSBC support enabled */
if (bta_hf_client_version >= HFP_HF_VERSION_1_6) {
#if (BTM_WBS_INCLUDED == TRUE)
bta_hf_client_cb.msbc_enabled = TRUE;
#else
bta_hf_client_cb.msbc_enabled = FALSE;
#endif
} else{
bta_hf_client_cb.msbc_enabled = FALSE;
}