AVRCP: Update play status after checking A2dp State and current player state
*in case RC connection happens during AV link is remote suspended while player
state is playing and we update playing in event playback status which causes remote
to go in bad state. Additional check is added to check what is A2dp state and
player state based on that we will send changed/interim in playback register
notification response.
**Starting a timer (2sec) after sending changed response and if remote doesn't
register for event within timer value, then set isPlayStatusTimeOut flag.
If remote requests for getplaystatus while flag is set then send player's
current play state else send cached playstate value sent in last changed
response. Resetting the flag when remote registers and during cleanup.
CRs-Fixed: 2313154,2311234
Change-Id: Idb7adab5525c1592064b921b8cd3b92a6bf7c51b
1 file changed