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

Commit 32aa5c02 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update active context config when the ACL is disconnected" am:...

Merge "Update active context config when the ACL is disconnected" am: 2c0ce6f8 am: 51d4a3cf am: ac8e45e4

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2128052



Change-Id: Iaac32464af954972b0a499c93ae5dfa07b9f38df
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents d33b9e20 ac8e45e4
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -579,6 +579,7 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
    if ((group->GetState() == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE) &&
        (group->GetTargetState() == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE)) {
      LOG(INFO) << __func__ << " group: " << group->group_id_ << " is in IDLE";
      group->UpdateActiveContextsMap();
      return;
    }

@@ -609,10 +610,10 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
    /* mark ASEs as not used. */
    leAudioDevice->DeactivateAllAses();

    DLOG(INFO) << __func__ << " device: " << leAudioDevice->address_
               << " group connected: " << group->IsAnyDeviceConnected()
               << " all active ase disconnected: "
               << group->HaveAllActiveDevicesCisDisc();
    LOG_DEBUG(
        " device: %s, group connected: %d, all active ase disconnected:: %d",
        leAudioDevice->address_.ToString().c_str(),
        group->IsAnyDeviceConnected(), group->HaveAllActiveDevicesCisDisc());

    /* Group has changed. Lets update available contexts */
    group->UpdateActiveContextsMap();