Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46b02d0a authored by Ramjee Singh's avatar Ramjee Singh Committed by Ashish Jain
Browse files

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: default avatarRamjee Singh <ramjee@codeaurora.org>
parent 8e30be93
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -702,6 +702,16 @@ static int msm_compr_configure_dsp(struct snd_compr_stream *cstream)
		return ret;
	}

	/*
	 * 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",