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>
Sun, 14 May 2017 02:42:42 +0000 (19:42 -0700)
commit436fcd74adf45e242a0a40478200870086861a75
tree691a0a7939c418af8adab9732ac5b0e526754aba
parentb549bd72999284a8cba10bbb75466eca62bd5597
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
(cherry picked from commit d62e522131e8646830f846fdcb292870d7fb9d7b)
stack/a2dp/a2dp_sbc.cc