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

Commit 591a2d44 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Remove A2DP Source/Sink startup calls during A2DP initialization am: 801d56dc am: c39f43a0

am: 523abbe5

Change-Id: I1bae821b4ca0c87a6a25f07ba8032abeb66c0bee
parents c30efcc2 523abbe5
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -822,9 +822,6 @@ bt_status_t BtifAvSource::Init(
  codec_priorities_ = codec_priorities;
  bta_av_co_init(codec_priorities_);

  if (!btif_a2dp_source_startup()) {
    return BT_STATUS_FAIL;  // Already running
  }
  btif_enable_service(BTA_A2DP_SOURCE_SERVICE_ID);
  enabled_ = true;
  return BT_STATUS_SUCCESS;
@@ -993,9 +990,6 @@ bt_status_t BtifAvSink::Init(btav_sink_callbacks_t* callbacks) {
                             kDefaultMaxConnectedAudioDevices);
  callbacks_ = callbacks;

  if (!btif_a2dp_sink_startup()) {
    return BT_STATUS_FAIL;  // Already running
  }
  btif_enable_service(BTA_A2DP_SINK_SERVICE_ID);
  enabled_ = true;
  return BT_STATUS_SUCCESS;