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

Commit c37cb306 authored by Henri Chataing's avatar Henri Chataing
Browse files

le_audio: Extend the HAL validation to include Audio AIDL

The check LeAudioHalVerifier::SupportsLeAudio only accepts the HIDL 2.1 version
of the Audio HAL.

Test: BluetoothTest-bluetoothAdapter_enabledByDefault
Bug: 284532620
Change-Id: Ic4660e6fce3fc2920ecbace931b099916f20a19e
parent b8f35f3e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -18,7 +18,9 @@
#include "bta_le_audio_api.h"

bool LeAudioHalVerifier::SupportsLeAudio() {
  return bluetooth::audio::HalVersionManager::GetHalVersion() >=
  return bluetooth::audio::HalVersionManager::GetHalTransport() ==
             bluetooth::audio::BluetoothAudioHalTransport::AIDL ||
         bluetooth::audio::HalVersionManager::GetHalVersion() >=
             bluetooth::audio::BluetoothAudioHalVersion::VERSION_2_1;
}