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

Commit 8e416ee6 authored by Cheney Ni's avatar Cheney Ni Committed by android-build-merger
Browse files

Merge "A2DP: Initialize the UIPC HAL only when those binderized HALs are not...

Merge "A2DP: Initialize the UIPC HAL only when those binderized HALs are not enabled" am: e6cc9f8d
am: cad2f5e2

Change-Id: I8d1674fb2ecbac4b06fc6c6ed95e7c26c72a58d4
parents d18208a9 cad2f5e2
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -357,9 +357,13 @@ static void btif_a2dp_source_startup_delayed() {
    LOG(FATAL) << __func__ << ": unable to enable real time scheduling";
  }
  if (!bluetooth::audio::a2dp::init(&btif_a2dp_source_thread)) {
    if (btif_av_is_a2dp_offload_enabled()) {
      LOG(WARNING) << __func__ << ": Using BluetoothA2dp HAL";
    } else {
      LOG(WARNING) << __func__ << ": Using legacy HAL";
      btif_a2dp_control_init();
    }
  }
  btif_a2dp_source_cb.SetState(BtifA2dpSource::kStateRunning);
}