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

Commit c6e5569d authored by Sunny Kapdi's avatar Sunny Kapdi Committed by android-build-merger
Browse files

A2DP Offload: Avoid Offload_start/stop from remote

am: bbd0c74c

Change-Id: If1641995dc0fbb5e442c5610f3470c2e542e1dbe
parents 7d1922ac bbd0c74c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -898,6 +898,7 @@ void bta_av_cleanup(tBTA_AV_SCB* p_scb, UNUSED_ATTR tBTA_AV_DATA* p_data) {
  /* if de-registering shut everything down */
  msg.hdr.layer_specific = p_scb->hndl;
  p_scb->started = false;
  p_scb->offload_started = false;
  p_scb->use_rtp_header_marker_bit = false;
  p_scb->cong = false;
  p_scb->role = role;
+0 −5
Original line number Diff line number Diff line
@@ -82,11 +82,6 @@ bool btif_a2dp_on_started(const RawAddress& peer_addr,
          }
          ack = true;
        }
      } else {
        // We were started remotely
        if (btif_av_is_a2dp_offload_enabled()) {
          btif_av_stream_start_offload();
        }
      }

      /* media task is autostarted upon a2dp audiopath connection */