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

Commit 8af7119f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "leaudio: Fix check of HaveAllActiveAsesCisEst"

parents be0a421d a8128c8b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2179,6 +2179,11 @@ bool LeAudioDevice::IsReadyToSuspendStream(void) {
}

bool LeAudioDevice::HaveAllActiveAsesCisEst(void) {
  if (ases_.empty()) {
    LOG_WARN("No ases for device %s", address_.ToString().c_str());
    return false;
  }

  auto iter = std::find_if(ases_.begin(), ases_.end(), [](const auto& ase) {
    return ase.active &&
           (ase.data_path_state != AudioStreamDataPathState::CIS_ESTABLISHED);