summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bta/ag/bta_ag_sco.c7
-rwxr-xr-xinclude/bt_target.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/bta/ag/bta_ag_sco.c b/bta/ag/bta_ag_sco.c
index 0c811b4..b9daa77 100644
--- a/bta/ag/bta_ag_sco.c
+++ b/bta/ag/bta_ag_sco.c
@@ -552,6 +552,13 @@ static void bta_ag_create_sco(tBTA_AG_SCB *p_scb, BOOLEAN is_orig)
p_scb->inuse_codec = esco_codec;
#endif
+#if (I2SPCM_SLAVE_BRCM == TRUE )
+ /* Configure I2SPCM slave path */
+ UINT8 cmd_buf[4] = { 0, 0, 0, 1 };
+ BTM_VendorSpecificCommand(109, 4, (UINT8 *)&cmd_buf, 0);
+ BTM_WriteVoiceSettings (BTM_VOICE_SETTING_CVSD);
+#endif
+
#if (BTM_SCO_HCI_INCLUDED == TRUE )
/* initialize SCO setup, no voice setting for AG, data rate <==> sample rate */
BTM_ConfigScoPath(sco_route, bta_ag_sco_read_cback, NULL, TRUE);
diff --git a/include/bt_target.h b/include/bt_target.h
index 836868e..654d34b 100755
--- a/include/bt_target.h
+++ b/include/bt_target.h
@@ -54,6 +54,10 @@
//------------------Added from Bluedroid buildcfg.h---------------------
+#ifndef I2SPCM_SLAVE_BRCM
+#define I2SPCM_SLAVE_BRCM FALSE
+#endif
+
#ifndef UNV_INCLUDED
#define UNV_INCLUDED FALSE
#endif