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

Commit 3389de74 authored by Alice Kuo's avatar Alice Kuo
Browse files

Align the logic with a2dp & le audio offload property concept

The property to control a2dp offload is
persist.bluetooth.a2dp_offload.disabled

Change the le audio property from enabled to disabled, it would make
some logic simpler as audio policy config selection.

Bug: 197296692
Test: make build
Change-Id: I128009b9cc91d413ebf50cd25675c7d0d2cbe7d2
parent a3f2fceb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -49,8 +49,8 @@ struct codec_manager_impl {
      const std::vector<AudioSetConfiguration>& adsp_capabilities) {
    offload_enable_ = osi_property_get_bool(
                          "ro.bluetooth.leaudio_offload.supported", false) &&
                      osi_property_get_bool(
                          "persist.bluetooth.leaudio_offload.enabled", true);
                      !osi_property_get_bool(
                          "persist.bluetooth.leaudio_offload.disabled", true);
    if (offload_enable_ == false) {
      LOG_INFO("offload disabled");
      return;