Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee6162a8 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

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
Merged-In: I456df7c8a2fa0758c0908a4628c4dfae3259dbdb
(cherry picked from commit d5a053208998dc21e2d6c9e69451c31aa62298c6)
parent 1b2b9501
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment