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

Commit 792bc3a9 authored by Grzegorz Kolodziejczyk's avatar Grzegorz Kolodziejczyk Committed by Gerrit Code Review
Browse files

Merge "le_audio: Deactivate ASEs while whole set is being lost"

parents 82cf06b4 f2110bd1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -617,6 +617,9 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
      return;
    }

    /* mark ASEs as not used. */
    leAudioDevice->DeactivateAllAses();

    /* If group is in Idle there is nothing to do here */
    if ((group->GetState() == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE) &&
        (group->GetTargetState() == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE)) {
@@ -625,9 +628,6 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
      return;
    }

    /* mark ASEs as not used. */
    leAudioDevice->DeactivateAllAses();

    LOG_DEBUG(
        " device: %s, group connected: %d, all active ase disconnected:: %d",
        leAudioDevice->address_.ToString().c_str(),