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

Commit 75f44615 authored by Alice Kuo's avatar Alice Kuo Committed by Automerger Merge Worker
Browse files

Minor handle refine for setLowLatencyModeAllowed am: 42b85abe

parents c1b86e30 42b85abe
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -439,6 +439,9 @@ void BluetoothAudioSession::ReportControlStatus(bool start_resp,
}

void BluetoothAudioSession::ReportLowLatencyModeAllowedChanged(bool allowed) {
  if (session_type_ != SessionType::A2DP_HARDWARE_OFFLOAD_ENCODING_DATAPATH) {
    return;
  }
  std::lock_guard<std::recursive_mutex> guard(mutex_);
  low_latency_allowed_ = allowed;
  // TODO(b/294498919): Remove this after there is API to update latency mode