OSDN Git Service

Handle unknown codecs sent by HF
authorSatish Kodishala <skodisha@codeaurora.org>
Thu, 25 Jun 2015 07:48:35 +0000 (13:18 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 25 Mar 2016 20:07:06 +0000 (13:07 -0700)
commitf95c12a8e7c3f264b03a51644368ca4232cc3cc4
treee459951a2e4594353aeffb9e191a9bdbacce0587
parent8ac46ef1e4910c1db12b0243dca140c3075d3238
Handle unknown codecs sent by HF

Use case:
1. Connect to headset supporting CVSD, mSBC and other codecs.
2. Verify if headset sending AT+BAC with supported codecs.
3. Check if SCO is established with mSBC codec.

Failure:
SCO is established with CVSD codec.

Root cause:
When parsing AT+BAC command, if unknown codec is received,
we are falling back to CVSD although mSBC is supported in HF.

Fix:
AT+BAC parsing function modified to return correct codecs
supported by HF when it encounters unknown codecs in arguments
of AT+BAC.

Bug: 27852645
Change-Id: I9ac7675c9d863e7362f85e3b7b8d9a42462bd5e9
bta/ag/bta_ag_cmd.c