OSDN Git Service

Don't trigger AVDTP Suspend in response to AVDTP Suspend+Start from remote
authorPavlin Radoslavov <pavlin@google.com>
Fri, 29 Jun 2018 03:10:36 +0000 (20:10 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Mon, 2 Jul 2018 09:52:42 +0000 (02:52 -0700)
commitbb8496ae763c3a3a2edb2f7eec13fe41f6090cdf
treefe50a53e3a08eb0f8ba47fe61981654a66416397
parent525e7031abe6a55446fcfe0a643d691b39da0926
Don't trigger AVDTP Suspend in response to AVDTP Suspend+Start from remote

If the remote device sent us AVDTP Suspend, and then AVDTP Start, don't
trigger AVDTP Suspend from the local device in response to the AVDTP Start.

Also:
 * Add a call btif_av_stream_start_offload() inside btif_a2dp_on_started()
   if we were started remotely.
 * Fix the order of calling btif_a2dp_on_started() and triggering
   an internal BTIF_AV_SUSPEND_STREAM_REQ_EVT event. Otherwise,
   BTA Suspend might be called before btif_av_stream_start_offload()

Bug: 110015851
Bug: 110186160
Test: Manual
Change-Id: I908d19f8caf5130b96a64153ff39bd4b52879713
Merged-In: I908d19f8caf5130b96a64153ff39bd4b52879713
(cherry picked from commit 7e425cef6df8fc45b1aa54fb5d39d3afeb7bb369)
btif/src/btif_a2dp.cc
btif/src/btif_av.cc