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

Commit a32c0b54 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Reland BluetoothAudio HAL: flip to be enabled by default"

parents baaeb80c 23580480
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;