OSDN Git Service

While AVDT opened or its AVRC_TIMER_EVT expired, it is no needed to start the 2nd...
authorCheney Ni <cheneyni@google.com>
Wed, 15 May 2019 06:09:49 +0000 (14:09 +0800)
committerCheney Ni <cheneyni@google.com>
Wed, 15 May 2019 14:18:17 +0000 (22:18 +0800)
commitba432366f9959b46e5b28198f2623ac4e32fb94a
tree6d19b1037402042096cbaca877e0a95f6cf8c6f1
parent7bd0d9e0c34eaa2d7ea2a444a882f15221eaf0bd
While AVDT opened or its AVRC_TIMER_EVT expired, it is no needed to start the 2nd AVDT stream

There were 2 cases to start the 2nd stream automatically by the stack:

* When the 2nd AVDT opened, the stack would check the 1st stream state
  to determinate the 2nd should be starting or not.
* While the AVRC timer which was fired after AVDT opened was expired,
  the stack would open the AVRC and start the 2nd stream if the 1st was
  started.

Both of them are unnecessary since all the stream must be controlled by
the upper layer. We currently support an active device only, and the
2nd stream will be tracked as remote triggered and suspended immediately.
To samplize the behavior, it is better to not start the 2nd stream
automatically by the stack.

Bug: 132146974
Test: manual
Change-Id: I75f39801e9779ee55fa574e30051e01966c61ea3
bta/av/bta_av_aact.cc
bta/av/bta_av_ssm.cc