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

Commit de9393e8 authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Gerrit Code Review
Browse files

Merge "Latency mode is set only if modes higher than LOW_LATENCY is supported" into main

parents f8c88d0b 9e4ff326
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -369,7 +369,8 @@ bool BluetoothAudioClientInterface::SetAllowedLatencyModes(
  }

  /* Low latency mode is used if modes other than FREE are present */
  bool allowed = !(latency_modes_.empty());
  bool allowed = (latency_modes_.size() > 1);
  LOG(INFO) << __func__ << ": Latency mode allowed: " << allowed;
  auto aidl_retval = provider_->setLowLatencyModeAllowed(allowed);
  if (!aidl_retval.isOk()) {
    LOG(WARNING) << __func__ << ": BluetoothAudioHal is not ready: "