OSDN Git Service

Initialize sco codecs supported with CVSD
authorSatish Kodishala <skodisha@codeaurora.org>
Thu, 27 Aug 2015 05:21:45 +0000 (10:51 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 3 Mar 2016 18:18:37 +0000 (18:18 +0000)
commit1d74efba18b3fda11920a7bab3206e18e8167a5e
treea3944d00058375edf430e987042495cbd05d7571
parent59a9df6a13870482d3f53486af1d1adc477be57e
Initialize sco codecs supported with CVSD

Usecase:
1. Connect headset/carkit supporting codec negotiation
   but does not send AT+BAC with available codecs.
2. Make a call and create SCO connection.
3. Transfer audio to AG from headset/carkit.
4. Transfer audio back to carkit.

Failure:
AG will not establish SCO connection with remote.

Rootcause:
We initialize codecs supported by remote as 0 and update
it with codecs received as part of AT+BAC. When AG sends
+BCS to start codec negotiation, it received AT+BCS=1 from
remote. Since 1 is not in the list of remote supported codecs
(0), AG will not create SCO connection in step#4.

Fix:
Initialize sco codecs supported by remote with mandatory
codec, CVSD.

Change-Id: Ibe0e1a7bd3e59e8618568d320acfbde88f3fc11e
bta/ag/bta_ag_act.c
bta/ag/bta_ag_cmd.c
bta/ag/bta_ag_main.c