Skip to content
Snippets Groups Projects
Commit 5476da73 authored by vivek mehta's avatar vivek mehta Committed by Vineeta Srivastava
Browse files

Revert "ASoC: compr: Disable soft-pause for compress playback"


This reverts commit bf1995e4

Bug: 21581721
Signed-off-by: default avatarvivek mehta <mvivek@codeaurora.org>
parent 60554bcd
No related branches found
No related tags found
No related merge requests found
......@@ -633,6 +633,12 @@ 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,
......@@ -675,6 +681,11 @@ 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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment