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

Commit 70f1cd67 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Merge "Send ACK for A2DP_CTRL_CMD_SUSPEND even if audio was no streaming" into pi-dev

am: d7726a8a

Change-Id: I2462a922e3161c7228c70dcb9381857273e11196
parents bca2932e d7726a8a
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -786,8 +786,6 @@ static void btif_a2dp_source_audio_tx_stop_event(void) {


  if (btif_av_is_a2dp_offload_enabled()) return;
  if (btif_av_is_a2dp_offload_enabled()) return;


  const bool send_ack = btif_a2dp_source_is_streaming();

  uint8_t p_buf[AUDIO_STREAM_OUTPUT_BUFFER_SZ * 2];
  uint8_t p_buf[AUDIO_STREAM_OUTPUT_BUFFER_SZ * 2];
  uint16_t event;
  uint16_t event;


@@ -814,7 +812,7 @@ static void btif_a2dp_source_audio_tx_stop_event(void) {
   * to get the ACK for any pending command in such cases.
   * to get the ACK for any pending command in such cases.
   */
   */


  if (send_ack) btif_a2dp_command_ack(A2DP_CTRL_ACK_SUCCESS);
  btif_a2dp_command_ack(A2DP_CTRL_ACK_SUCCESS);


  /* audio engine stopped, reset tx suspended flag */
  /* audio engine stopped, reset tx suspended flag */
  btif_a2dp_source_cb.tx_flush = false;
  btif_a2dp_source_cb.tx_flush = false;