OSDN Git Service

Fix for Compilation Issue
authorSatheesh Kumar Pallemoni <palsat@codeaurora.org>
Mon, 20 Jun 2016 11:26:04 +0000 (16:56 +0530)
committerLinux Build Service Account <lnxbuild@localhost>
Wed, 24 Aug 2016 14:09:41 +0000 (08:09 -0600)
We build our system/bt code by setting BLUETOOTH_QTI_SW macro always to TRUE.
But Customer wants to build by setting BLUETOOTH_QTI_SW macro to FALSE,
Which leads to compilation Issue.When SCO open was initiated by AG
and failed for mSBC,then Fallback to CVSD settings which has not done in
else condition.
So, we should add falling back to CVSD in else condition.

CRs-Fixed: 1031600
Change-Id: I7ed33cc20374dd899b21e3fa12abe622ddc84eff

bta/ag/bta_ag_sco.c

index 7359e1b..5aafbc2 100644 (file)
@@ -284,6 +284,10 @@ static void bta_ag_sco_disc_cback(UINT16 sco_idx)
                      bta_ag_cb.sco.p_curr_scb->codec_msbc_settings = BTA_AG_SCO_MSBC_SETTINGS_T1;
                 }
                 else
+                {
+                    APPL_TRACE_DEBUG("Fallback to CVSD settings");
+                    bta_ag_cb.sco.p_curr_scb->codec_fallback = TRUE;
+                }
 #else
                 {
                     APPL_TRACE_DEBUG("Fallback to CVSD settings");