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

Commit 07261639 authored by Grzegorz Kołodziejczyk's avatar Grzegorz Kołodziejczyk
Browse files

le_audio: Configure bi-directional CISes only for active ASEs

Patch adds check of ASE being active while setting up bi-directional
CIS.

Bug: 230436818
Test: atest bluetooth_le_audio_client_test
Sponsor: @jpawlowski
Change-Id: I281aab83dca1e2004ef50f318dabb0462cce96ee
parent b0b2a690
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -366,12 +366,12 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
      do {
        auto ases_pair = leAudioDevice->GetAsesByCisId(ase->cis_id);

        if (ases_pair.sink) {
        if (ases_pair.sink && ases_pair.sink->active) {
          ases_pair.sink->cis_conn_hdl = conn_handles[i];
          ases_pair.sink->data_path_state =
              AudioStreamDataPathState::CIS_ASSIGNED;
        }
        if (ases_pair.source) {
        if (ases_pair.source && ases_pair.source->active) {
          ases_pair.source->cis_conn_hdl = conn_handles[i];
          ases_pair.source->data_path_state =
              AudioStreamDataPathState::CIS_ASSIGNED;