Handle properly AVDTP SetConfig from the A2DP Sink device
If the remote device is proactive and sends AVDTP SetConfig after re-connection before the local device gets the chance to do it, the internal codec setup state might be inconsistent. * Fix the internal logic when the local device is Acceptor inside file bta_av_co.cc, and simplify some of the code. * Fix the handling of p_scb->sep_info_idx inside bta_av_save_caps() when receiving capabilities from the remote device. * Add new A2dpCodecConfig::setPeerCodecCapabilities() method that is implemented by each codec. Bug: 77525584 Test: Manual - initiate connection by Momentum 2.0 Wireless Headset. Connect/disconnect/reconnect multiple headsets. Change-Id: I456df7c8a2fa0758c0908a4628c4dfae3259dbdb
Showing
- system/bta/av/bta_av_aact.cc 15 additions, 9 deletionssystem/bta/av/bta_av_aact.cc
- system/btif/co/bta_av_co.cc 218 additions, 150 deletionssystem/btif/co/bta_av_co.cc
- system/stack/a2dp/a2dp_aac.cc 71 additions, 1 deletionsystem/stack/a2dp/a2dp_aac.cc
- system/stack/a2dp/a2dp_codec_config.cc 22 additions, 0 deletionssystem/stack/a2dp/a2dp_codec_config.cc
- system/stack/a2dp/a2dp_sbc.cc 76 additions, 4 deletionssystem/stack/a2dp/a2dp_sbc.cc
- system/stack/a2dp/a2dp_vendor_aptx.cc 93 additions, 27 deletionssystem/stack/a2dp/a2dp_vendor_aptx.cc
- system/stack/a2dp/a2dp_vendor_aptx_hd.cc 99 additions, 34 deletionssystem/stack/a2dp/a2dp_vendor_aptx_hd.cc
- system/stack/a2dp/a2dp_vendor_ldac.cc 117 additions, 33 deletionssystem/stack/a2dp/a2dp_vendor_ldac.cc
- system/stack/include/a2dp_aac.h 2 additions, 0 deletionssystem/stack/include/a2dp_aac.h
- system/stack/include/a2dp_codec_api.h 16 additions, 0 deletionssystem/stack/include/a2dp_codec_api.h
- system/stack/include/a2dp_sbc.h 2 additions, 0 deletionssystem/stack/include/a2dp_sbc.h
- system/stack/include/a2dp_vendor_aptx.h 2 additions, 0 deletionssystem/stack/include/a2dp_vendor_aptx.h
- system/stack/include/a2dp_vendor_aptx_hd.h 2 additions, 0 deletionssystem/stack/include/a2dp_vendor_aptx_hd.h
- system/stack/include/a2dp_vendor_ldac.h 2 additions, 0 deletionssystem/stack/include/a2dp_vendor_ldac.h
Loading
Please register or sign in to comment