Bug:
126304229
Test: Switch BluetoothAudio HAL and A2DP offload manully
Change-Id: I26dc39fd5d483590f7cc9ae9bd5972f90719f93a
// Checking if new bluetooth_audio is supported
bool is_hal_2_0_supported() {
if (!is_configured) {
- btaudio_a2dp_supported =
- osi_property_get_bool(BLUETOOTH_AUDIO_PROP_ENABLED, false);
+ btaudio_a2dp_supported = !osi_property_get_bool(BLUETOOTH_AUDIO_HAL_PROP_DISABLED, false);
is_configured = true;
}
return btaudio_a2dp_supported;
#include "common/message_loop_thread.h"
-#define BLUETOOTH_AUDIO_PROP_ENABLED \
- "persist.bluetooth.bluetooth_audio_hal.enabled"
+#define BLUETOOTH_AUDIO_HAL_PROP_DISABLED "persist.bluetooth.bluetooth_audio_hal.disabled"
namespace bluetooth {
namespace audio {
bool is_hal_2_0_supported() {
if (!is_configured) {
- btaudio_hearing_aid_supported =
- osi_property_get_bool(BLUETOOTH_AUDIO_PROP_ENABLED, false);
+ btaudio_hearing_aid_supported = !osi_property_get_bool(BLUETOOTH_AUDIO_HAL_PROP_DISABLED, false);
is_configured = true;
}
return btaudio_hearing_aid_supported;