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

Commit 820fc4e0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "leaudio: Fix for ase state on CIS disconnect" into tm-qpr-dev

parents c92032e4 4d7cd025
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -805,11 +805,13 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
    if (event->reason != HCI_ERR_CONN_CAUSE_LOCAL_HOST) {
      RemoveDataPathByCisHandle(leAudioDevice, event->cis_conn_hdl);
      // Make sure we won't stay in STREAMING state
      if (ases_pair.sink) {
      if (ases_pair.sink &&
          ases_pair.sink->state == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING) {
        ases_pair.sink->state =
            AseState::BTA_LE_AUDIO_ASE_STATE_CODEC_CONFIGURED;
      }
      if (ases_pair.source) {
      if (ases_pair.source && ases_pair.source->state ==
                                  AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING) {
        ases_pair.source->state =
            AseState::BTA_LE_AUDIO_ASE_STATE_CODEC_CONFIGURED;
      }