summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatish Babu Patakokila <sbpata@codeaurora.org>2016-06-17 20:59:05 +0530
committerKyle Yan <kyan@codeaurora.org>2016-06-21 15:14:58 -0700
commitf9be69b92474adf7cd33d0dc2fc71bc49c153eb9 (patch)
tree200a8e8f21e32869e43903c1aba0d5c0d02a3a39
parent99cc257e08b666fde7ac5a9820f42c5c403772a2 (diff)
ASoC: msm: qdsp6v2: Compress passthrugh fixes
Sending PP params and calibration params for compress passthrough path is resulting in timeout which is delaying the start of playback. Sending the PP params only when it is legacy pcm playback. Change-Id: I7fe2840b7a72bddde887340a6e913cb120d1bc61 CRs-Fixed: 1030688 Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
-rwxr-xr-xsound/soc/msm/qdsp6v2/msm-compress-q6-v2.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
index b6131748e844..76fee74a5c6b 100755
--- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
+++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
@@ -994,19 +994,24 @@ 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_send_cal(ac);
- if (ret < 0)
- pr_debug("%s : Send cal failed : %d", __func__, ret);
+ if (prtd->compr_passthr != LEGACY_PCM) {
+ pr_debug("%s : Don't send cal and PP params for compress path",
+ __func__);
+ } else {
+ ret = q6asm_send_cal(ac);
+ if (ret < 0)
+ pr_debug("%s : Send cal 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",
- __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",
+ __func__, ret);
+ }
ret = q6asm_set_io_mode(ac, (COMPRESSED_STREAM_IO | ASYNC_IO_MODE));
if (ret < 0) {
pr_err("%s: Set IO mode failed\n", __func__);