OSDN Git Service

hfp: change initial codec from MSBC_T1 to CVSD
authorMartin Brabham <optedoblivion@google.com>
Fri, 13 Oct 2017 22:47:24 +0000 (15:47 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 16 Oct 2017 17:38:14 +0000 (17:38 +0000)
4.11.2 Audio Connection Setup by HF For all HF initiated audio connection
establishments for which both sides support the Codec Negotiation feature,
the HF shall trigger the AG to establish a Codec Connection. This is
necessary because only the AG knows about the codec selection and settings
of the network.

In the event we do not support codec negotiation we should make our initial
codec CVSD

Bug: 66324788
Change-Id: Ib68129ea1399c54224109e3ca7ba12784973d68f

bta/hf_client/bta_hf_client_sco.cc

index dc8eb81..82fb398 100644 (file)
@@ -233,7 +233,7 @@ static void bta_hf_client_sco_create(tBTA_HF_CLIENT_CB* client_cb,
     return;
   }
 
-  enh_esco_params_t params = esco_parameters_for_codec(ESCO_CODEC_MSBC_T1);
+  enh_esco_params_t params = esco_parameters_for_codec(ESCO_CODEC_CVSD);
 
   /* if initiating set current scb and peer bd addr */
   if (is_orig) {