Resume A2DP only when there are no pending call states

During A2DP streaming and quick call start/end, HFP
waits for A2DP suspend ack to be received. During
this time, HFP caches the call indicators. Resuming
A2DP while sending call indicators may lead to sending
call indicators sending or SCO setup and sending A2DP
start at the same time. Resume A2DP only after
sending pending call states to stack.

CRs-Fixed: 2582198
Change-Id: Ic680d24f2a882f3f10b05f94e785c89607b7520d
1 file changed