OSDN Git Service

Don't ignore the A2DP Sink preferred SBC codec config
authorPavlin Radoslavov <pavlin@google.com>
Fri, 12 May 2017 10:02:08 +0000 (03:02 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Fri, 12 May 2017 17:06:45 +0000 (10:06 -0700)
commitd62e522131e8646830f846fdcb292870d7fb9d7b
treef16a2e674a89ab5a98130f288acdb1a22cce27d5
parent3b8391cd47dd0ea3e399f99a888f029de8c7d8c8
Don't ignore the A2DP Sink preferred SBC codec config

If the A2DP Sink device sends "Set Configuration" with its preferred
SBC configuration, try using that configuration when selecting
the codec parameters instead of the A2DP Sink SBC capability.

Test: A2DP streaming, PTS AVDTP Tests: TC_ACP_SRC_SIG_SMG_BV_18_C,
      TC_ACP_SRC_SIG_SMG_BV_20_C, TC_ACP_SRC_SIG_SMG_BV_22_C
      PTS A2DP Tests: A2DP/SRC/SET/BV-04-I, A2DP/SRC/SET/BV-06-I
Bug: 37723311
Bug: 35664023
Change-Id: I48e2aa664b899c1cda5df4d1f86f9cfa3a9a67f6
stack/a2dp/a2dp_sbc.cc