OSDN Git Service

Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()
authorPavlin Radoslavov <pavlin@google.com>
Fri, 24 Feb 2017 18:35:30 +0000 (10:35 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 29 Mar 2017 18:21:37 +0000 (11:21 -0700)
commit2073c3eb61f69864e645c50005f11c4e8b5e2588
treee0fca82274f488e08b39b0130e01f0dc3a13932f
parente4f2b615678ccb1fe7e13da4f166c9a45fd16136
Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()

This API can be used to enable the optional codecs, or disable them
and use only the mandatory SBC.
Internally, it is implemented by raising the SBC priority to
highest (so SBC will be used/selected), or reducing the SBC priority
to its default value (lowest).

Test: A2DP streaming and enabling/disabling/selecting optional codecs
Bug: 35873828
Change-Id: Ia1311d790441b7b5471c9fda7aeee8aa3306b16e
btif/co/bta_av_co.cc
stack/a2dp/a2dp_codec_config.cc