ASoC: msm: set the master gain to 0 on DSP while configuring
- Mute media volume and play any music clip then reboot
the phone. Play music again noise comes. This noise
is introduced in DSP/LPASS.
- DSP suggestion is to mute master volume gain while
configuring ASM session to avoid such noise at
begining of asm playback.
Change-Id: I2aa2846d6e3e9a85c459534e9108e6fe7aebb962
Signed-off-by: Ramjee Singh <ramjee@codeaurora.org>
CRs-Fixed: 643053
diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
index fce1940..223a8e8 100644
--- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
+++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
@@ -597,6 +597,16 @@
prtd->session_id,
SNDRV_PCM_STREAM_PLAYBACK);
+ /*
+ * Setting the master volume gain to 0 while
+ * configuring ASM session. This is to address
+ * DSP pop noise issue where. This change is
+ * there from begining may be DSP limitation
+ */
+ ret = msm_compr_set_volume(cstream, 0, 0);
+ if (ret < 0)
+ pr_err("%s : Set Volume failed : %d", __func__, ret);
+
ret = q6asm_set_softvolume(ac, &softvol);
if (ret < 0)
pr_err("%s: Send SoftVolume Param failed ret=%d\n",