OSDN Git Service

Open SCO for held call.
authorMallikarjuna GB <gbmalli@codeaurora.org>
Sat, 30 May 2015 17:25:18 +0000 (22:55 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 10 Jun 2015 21:18:13 +0000 (21:18 +0000)
commitfafa2e20a8b56ab8320adebce2c6dc93d01801c5
tree83aaf06bf2755a1b8e351f2700c7aa6b29d77eb6
parent8885d6f4ea0aca5e97a5f405434d4494c5e41b85
Open SCO for held call.

Use case:
1. Connect to headset/carkit
2. Make an outgoing call from AG
3. Turn off BT on AG
4. Hold the call from AG
5. Turn on BT on AG (No SCO link is established here)
6. Unhold call from AG (still no SCO link is established)

Failure:
No SCO connection established when held call is there
during headset connection.

Root cause:
SCO is not initiated when SLC is done during held call.

Fix:
AG opens SCO connection when HF connected while in call and
the call was in held state.

Change-Id: I63d7655d26ddbf68cbf94c745df745cffa917b5e
bta/ag/bta_ag_cmd.c