OSDN Git Service

A2DP: ACK A2dp success to HAL from AV started state.
authorSumit Bajpai <sbajpai@codeaurora.org>
Thu, 17 Nov 2016 06:58:16 +0000 (12:28 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 17 Nov 2016 07:09:21 +0000 (23:09 -0800)
commitaf705a32a30db7eac76305c803bd0def8236f8b5
tree0677a30eac51475cc47706763c548c79ed55e9ea
parentdf34e550757ee899ff86643d8a8584706230f077
A2DP: ACK A2dp success to HAL from AV started state.

In a corner case, when A2dp success was acked to HAL from
opened state, HAL used to call queued up suspend request even
before AV state can be moved to started. Since suspend was
received in opened state, it was acked back immediately and
UIPC socket close operations were triggered from HAL. However,
media task was preparing to read over UIPC socket. This race
condition caused socket-read operation to go on forever.

Change-Id: I8833d57f1a50b260cb35f0bf490aee83b074af68
btif/src/btif_av.c