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

Commit 89674680 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "leaudio: Fix invalid handling Enable state" into tm-qpr-dev am: 3deea347

parents c2a84a7c 3deea347
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -2103,17 +2103,16 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
      return;
    }

    switch (ase->state) {
      case AseState::BTA_LE_AUDIO_ASE_STATE_QOS_CONFIGURED:
        ase->state = AseState::BTA_LE_AUDIO_ASE_STATE_ENABLING;

        if (group->GetState() == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING) {
          /* We are here because of the reconnection of the single device. */
      ase->state = AseState::BTA_LE_AUDIO_ASE_STATE_ENABLING;
          CisCreateForDevice(leAudioDevice);
          return;
        }

    switch (ase->state) {
      case AseState::BTA_LE_AUDIO_ASE_STATE_QOS_CONFIGURED:
        ase->state = AseState::BTA_LE_AUDIO_ASE_STATE_ENABLING;

        if (leAudioDevice->IsReadyToCreateStream())
          ProcessGroupEnable(group, leAudioDevice);