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

Commit 71a4de20 authored by Ravi Kumar Alamanda's avatar Ravi Kumar Alamanda Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: Enable initial/trailing silence removal



For gapless audio playback, the DSP HW decoder needs to
remove the initial and trailing samples from the decoder
output according to meta data present in the stream. This
change is to enable the silence removal by sending the
meta data down to DSP.

Change-Id: I206b3e06f7b5012accf21a0256aa45cac92cbbf0
Signed-off-by: default avatarRavi Kumar Alamanda <ralama@codeaurora.org>
parent 61eeadff
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -164,17 +164,11 @@ static int msm_compr_send_buffer(struct msm_compr_audio *prtd)

	pr_debug("%s: bytes_received = %d copied_total = %d\n",
		__func__, prtd->bytes_received, prtd->copied_total);
	/*
	 * FIXME: Initial and trailing silence removal API call to DSP results
	 *	to a glitch during the stream transition for gapless playback.
	 *	Add this when the issue is fixed from DSP.
	 */
/*
	if (prtd->first_buffer)
		q6asm_send_meta_data(prtd->audio_client,
				prtd->gapless_state.initial_samples_drop,
				prtd->gapless_state.trailing_samples_drop);
*/

	buffer_length = prtd->codec_param.buffer.fragment_size;
	bytes_available = prtd->bytes_received - prtd->copied_total;
	if (bytes_available < prtd->codec_param.buffer.fragment_size)