OSDN Git Service

Use the effective peer MTU when preparing the codec configuration
authorPavlin Radoslavov <pavlin@google.com>
Tue, 22 May 2018 09:03:20 +0000 (02:03 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Tue, 22 May 2018 16:03:32 +0000 (16:03 +0000)
commitd57fcc86ed62f790e5fe1b0010b411016ea34f81
treeaed672b39f66f835cbb6ab092e87123dfe159160
parent37fdb267dba7caa2f3cd8516a9942f835f34992c
Use the effective peer MTU when preparing the codec configuration

Added new method A2dpCodecConfig::getEffectiveMtu() and use it
to obtain the effective MTU per peer per codec.
The effective peer MTU could be smaller than the one reported
by the peer (e.g., for interoperability reasons).

Bug: 77913350
Test: Manual
Change-Id: Idd5230681ac5856fd18dd33ac48723c6ea609e16
15 files changed:
btif/src/btif_a2dp_audio_interface.cc
stack/a2dp/a2dp_aac.cc
stack/a2dp/a2dp_aac_encoder.cc
stack/a2dp/a2dp_codec_config.cc
stack/a2dp/a2dp_sbc.cc
stack/a2dp/a2dp_sbc_encoder.cc
stack/a2dp/a2dp_vendor_aptx_encoder.cc
stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc
stack/a2dp/a2dp_vendor_ldac_encoder.cc
stack/include/a2dp_aac.h
stack/include/a2dp_codec_api.h
stack/include/a2dp_sbc.h
stack/include/a2dp_vendor_aptx.h
stack/include/a2dp_vendor_aptx_hd.h
stack/include/a2dp_vendor_ldac.h