OSDN Git Service

Allow AVDTP SetConfig from INIT state
authorPavlin Radoslavov <pavlin@google.com>
Tue, 25 Sep 2018 01:42:53 +0000 (18:42 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 10 Oct 2018 21:48:30 +0000 (21:48 +0000)
commit3be30ce2d3f2c9988ae193ae27f5fc35217e78cc
treef9f8ecbadb1909667a34b0161641259e25beba42
parent26aee6db57f2c92cfd0ea4642cea1390d2f2d9e3
Allow AVDTP SetConfig from INIT state

This addresses AVDTP codec reconfiguration issue on the A2DP Sink side.
Apparently, the A2DP Sink rejects AVDTP Reconfig - then, after the AVDTP Close
(normal), the Sink side doesn't accept AVDTP SetConfig anymore.
If the codecs are already known to the A2DP SRC, it doesn't need the
AVDTP Discover mechanism just for the purpose of the codec reconfiguration.
Hence, we can allow SetConfig from INIT state.

Bug: 115894702
Test: Manual with switching the AAC Sample Rate in the Develop Options
Change-Id: I3b1603dc6ef344eea50383df2eddf309dec80a28
bta/av/bta_av_ssm.cc