Minor handle refine for setLowLatencyModeAllowed am: 42b85abe9c am: 75f44615ea

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2837536

Change-Id: I75e765f2e3b520f821fb91016b8baee52992088d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Alice Kuo
2023-11-20 10:44:00 +00:00
committed by Automerger Merge Worker

View File

@@ -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