ASoC: msm: qdsp6v2: Make separate ASM cal function

Remove set ASM cal function from ASM run functions.
Define separate function for compress and pcm driver
clients to call. Call function in compress driver after
setting gain since soft volume in ASM table must be
set after gain.

Change-Id: I26ad33c0ef5dbbf3a79848179d371a583e381cf8
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
Sudheer Papothi 2016-02-25 10:22:11 +05:30 committed by David Keitel
parent 194f41adfe
commit a48f38a287

View file

@ -980,6 +980,10 @@ static int msm_compr_configure_dsp(struct snd_compr_stream *cstream)
if (ret < 0) if (ret < 0)
pr_err("%s : Set Volume failed : %d", __func__, ret); pr_err("%s : Set Volume failed : %d", __func__, ret);
ret = q6asm_send_cal(ac);
if (ret < 0)
pr_debug("%s : Send cal failed : %d", __func__, ret);
ret = q6asm_set_softpause(ac, &softpause); ret = q6asm_set_softpause(ac, &softpause);
if (ret < 0) if (ret < 0)
pr_err("%s: Send SoftPause Param failed ret=%d\n", pr_err("%s: Send SoftPause Param failed ret=%d\n",