commit | 80389ef4ccd6cc24166b7ca65463e107916ead3a | [log] [tgz] |
---|---|---|
author | Alice Kuo <aliceypkuo@google.com> | Mon Nov 20 10:13:17 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Nov 20 10:13:17 2023 +0000 |
tree | e2d9b09aefa436f0bc78d9cafad5a356c31dd1b1 | |
parent | 0a52a92084bc86599125f6082ba4bdb479bc2b50 [diff] | |
parent | 42b85abe9c5e2608a79dfc9d8ebd37ab47317ccd [diff] |
Minor handle refine for setLowLatencyModeAllowed am: 42b85abe9c Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2837536 Change-Id: Id615f5a6c41f242f5ce6965f6187e15ff0c754ab 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