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

Commit 23580480 authored by Cheney Ni's avatar Cheney Ni Committed by Hansong Zhang
Browse files

Reland BluetoothAudio HAL: flip to be enabled by default

Bug: 126304229
Test: Switch BluetoothAudio HAL and A2DP offload manully
Change-Id: I936e6c9e9fa3e35508ec435dcff8fa54b3f4d883
Merged-In: I936e6c9e9fa3e35508ec435dcff8fa54b3f4d883
parent e7d8c660
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -552,8 +552,7 @@ namespace a2dp {
// 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;
+1 −2
Original line number Diff line number Diff line
@@ -26,8 +26,7 @@

#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 {
+1 −2
Original line number Diff line number Diff line
@@ -142,8 +142,7 @@ namespace hearing_aid {

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;