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

Commit bf1995e4 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: compr: Disable soft-pause for compress playback



Soft-pause (i.e pause ack after a timeout) adversely affects
audio/video sync during pause/resume use cases leading to some
frame drops. Disable this feature for compress playback.

Change-Id: I3ce444dadf1e4b94c1e8d6f017a1c639b082285f
Signed-off-by: default avatarHaynes Mathew George <hgeorge@codeaurora.org>
CRs-Fixed: 636328
parent 11e8434e
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -614,12 +614,6 @@ static int msm_compr_configure_dsp(struct snd_compr_stream *cstream)
	int dir = IN, ret = 0;
	struct audio_client *ac = prtd->audio_client;
	uint32_t stream_index;
	struct asm_softpause_params softpause = {
		.enable = SOFT_PAUSE_ENABLE,
		.period = SOFT_PAUSE_PERIOD,
		.step = SOFT_PAUSE_STEP,
		.rampingcurve = SOFT_PAUSE_CURVE_LINEAR,
	};
	struct asm_softvolume_params softvol = {
		.period = SOFT_VOLUME_PERIOD,
		.step = SOFT_VOLUME_STEP,
@@ -657,11 +651,6 @@ static int msm_compr_configure_dsp(struct snd_compr_stream *cstream)
	if (ret < 0)
		pr_err("%s : Set Volume failed : %d", __func__, ret);

	ret = q6asm_set_softpause(ac, &softpause);
	if (ret < 0)
		pr_err("%s: Send SoftPause Param failed ret=%d\n",
			__func__, ret);

	ret = q6asm_set_softvolume(ac, &softvol);
	if (ret < 0)
		pr_err("%s: Send SoftVolume Param failed ret=%d\n",