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

Commit 9e4ff326 authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Latency mode is set only if modes higher than LOW_LATENCY is supported

Test: Manual | Connect LE audio buds supporting DSA
Test: mmm packages/modules/Bluetooth
Bug: 314696536
Bug: 309665975
Change-Id: If66b12106feb7c0e9b0530aaa998206b80d12ad8
parent fb92adb2
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: "