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

Commit e41b060e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "SpatialAudio: Do not report error if audio HAL is not ready at...

Merge "SpatialAudio: Do not report error if audio HAL is not ready at setLowLatencyAllowed() because we save the value and send it to startSession" am: 0735660f am: af267ac7 am: 61878daa

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2027503

Change-Id: I46766a2d68ff47f51a15af768932f6ded9b348e5
parents 94924dd1 61878daa
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -241,9 +241,10 @@ bool BluetoothAudioClientInterface::SetLowLatencyModeAllowed(bool allowed) {

  auto aidl_retval = provider_->setLowLatencyModeAllowed(allowed);
  if (!aidl_retval.isOk()) {
    LOG(ERROR) << __func__ << ": BluetoothAudioHal failure: "
               << aidl_retval.getDescription();
    return false;
    LOG(WARNING) << __func__ << ": BluetoothAudioHal is not ready: "
               << aidl_retval.getDescription()
               << ". is_low_latency_allowed_ is saved "
               <<"and it will be sent to BluetoothAudioHal at StartSession.";
  }
  return true;
}