summaryrefslogtreecommitdiff
path: root/system/audio_hal_interface/a2dp_encoding.cc
diff options
context:
space:
mode:
authorAlice Kuo <aliceypkuo@google.com>2022-02-22 11:14:35 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-02-22 11:14:35 +0000
commitdaa7c0ef033c2cb11a96996fa150feb79157bf8b (patch)
tree92c3494aa22a212c99920851700f1028a596962f /system/audio_hal_interface/a2dp_encoding.cc
parentd9452788bbb66732751a6d3f12e706ee170e307e (diff)
parentca2105dbf9fdc1f3de8563e3e269f5ae97f1e96d (diff)
Merge "Remove HIDL 2.2 client integration"
Diffstat (limited to 'system/audio_hal_interface/a2dp_encoding.cc')
-rw-r--r--system/audio_hal_interface/a2dp_encoding.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/system/audio_hal_interface/a2dp_encoding.cc b/system/audio_hal_interface/a2dp_encoding.cc
index b2cead3320..d0028e1ef9 100644
--- a/system/audio_hal_interface/a2dp_encoding.cc
+++ b/system/audio_hal_interface/a2dp_encoding.cc
@@ -140,11 +140,9 @@ void set_remote_delay(uint16_t delay_report) {
// Set low latency buffer mode allowed or disallowed
void set_audio_low_latency_mode_allowed(bool allowed) {
if (HalVersionManager::GetHalTransport() ==
- BluetoothAudioHalTransport::HIDL) {
- hidl::a2dp::set_low_latency_mode_allowed(allowed);
- return;
+ BluetoothAudioHalTransport::AIDL) {
+ aidl::a2dp::set_low_latency_mode_allowed(allowed);
}
- aidl::a2dp::set_low_latency_mode_allowed(allowed);
}
} // namespace a2dp