OSDN Git Service

Override remote suspend flag on local play state changes
authorAnubhav Gupta <anubhavg@codeaurora.org>
Sat, 27 Jul 2013 09:16:29 +0000 (14:46 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 7 Jul 2015 06:30:00 +0000 (23:30 -0700)
commit9c5d0727dd4cd09e44c032506c28ab4120ad3b88
treea2893c955619ccb88e66b30b8f99a4d3400a6522
parent42f37840a891eddfee0943fbdf84c2e4f0d765c5
Override remote suspend flag on local play state changes

- Remote device may initiate AVDTP Suspend within 3s of AVRCP pause,
  which sets remote suspend flag. Later on resumption of local playback
  A2DP packets can not be processed further as Remote suspend flag
  remains set. current change overrides remote suspend flag if local
  suspend is triggered later.
- This change covers the usecase where play is pressed from DUT UI
  before local suspend triggers in such scenarios current change takes
  care of resetitng remote suspend flag on AVRCP play state change event.
- Moreover this change will drop A2DP packets when the setparameter
  is called with A2dpSuspended=true and resumes when the mentioned parameter
  is reset.

This change along with corresponding app change helps mitigating
issues reported due to A2Dp, HFP synchronizations and local and remote
device initiated AVDTP suspend handling.

Bug: 22028876
Change-Id:  I3bb334373414170254744d9233cbd2e66219bfa0
audio_a2dp_hw/audio_a2dp_hw.c
audio_a2dp_hw/audio_a2dp_hw.h
btif/include/btif_av.h
btif/src/btif_av.c
btif/src/btif_hf.c
btif/src/btif_media_task.c
btif/src/btif_rc.c