OSDN Git Service

Handle multi party call states
authorMallikarjuna GB <gbmalli@codeaurora.org>
Fri, 22 May 2015 06:26:48 +0000 (11:56 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 10 Jun 2015 21:15:49 +0000 (21:15 +0000)
commit616e7417c9520db24adf20b7c0aaf967ce6e106d
tree4c6bf6c4bdf98715f3dcf75d0875b67920b04a3a
parent06c0eca504910115020b86676fae60bb171b7a47
Handle multi party call states

UseCase:
1. Set up Bluetooth connection between phone and remote device.
2. Disconnect BT link by turning off remote device.
3. Start Mo call from phone.
4. Receive MT call from far end.
5. Turn on remote device.
6. BT connection gets established successfully, but audio
doesn't get transferred to headset.

Failure:
Call audio not routed to BT HS. SCO not established.

Root cause:
When a HS connects while in an active call and 2nd call
(incoming/outgoing/alerting) setup ongoing, incorrect post SLC
call setup updates might cause HS to get confused as phone had
already updated correct call states in CIND response during SLC.
This may cause HS to behave abnormally like delayed response to
BCS as seen with jabra wave +.

Fix:
Avoid sending incorrect call updates post SLC since we already
have sent correct updates during SLC as reponse to CIND.

Change-Id: I53e57baf7cca782af6f374a043667971c66a956d
bta/ag/bta_ag_cmd.c
bta/include/bta_ag_api.h
btif/src/btif_hf.c