commit | 37afeff2b6c9364fbb8a5ffa770dcfb95fe6405a | [log] [tgz] |
---|---|---|
author | Alice Kuo <aliceypkuo@google.com> | Mon Nov 20 10:44:00 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Nov 20 10:44:00 2023 +0000 |
tree | 70c00f03ae3532eeb3571e4dd2399d74a846a259 | |
parent | 640adc8a9dfa8973a8bf18cb3fbf47c64a6dfb1f [diff] | |
parent | 75f44615ea78fb72f30317937943cb65668f9b9b [diff] |
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>
diff --git a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp index e5cf53c..c283148 100644 --- a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp +++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp
@@ -439,6 +439,9 @@ } 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