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

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

Merge "leaudio: Fix check of HaveAllActiveAsesCisEst" into tm-qpr-dev

parents 6f7f6134 5119db4d
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);