From 5476da73b8f962d27e337614106d9177029d4caa Mon Sep 17 00:00:00 2001 From: vivek mehta <mvivek@codeaurora.org> Date: Fri, 19 Jun 2015 18:16:46 -0700 Subject: [PATCH] Revert "ASoC: compr: Disable soft-pause for compress playback" This reverts commit bf1995e4d78ff381c9461f830bc53f0657ef2554 Bug: 21581721 Signed-off-by: vivek mehta <mvivek@codeaurora.org> --- sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c index 7c3f8735831f..ee620fbaa4a5 100644 --- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c +++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c @@ -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", -- GitLab