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

Commit e851c9ae authored by Satish Babu Patakokila's avatar Satish Babu Patakokila Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: qdsp6v2: Compress passthrough 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: default avatarSatish Babu Patakokila <sbpata@codeaurora.org>
parent d7e9d6e1
Loading
Loading
Loading
Loading
+16 −11
Original line number Diff line number Diff line
@@ -1014,6 +1014,10 @@ static int msm_compr_configure_dsp(struct snd_compr_stream *cstream)
	if (ret < 0)
		pr_err("%s : Set Volume 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);
@@ -1022,11 +1026,12 @@ static int msm_compr_configure_dsp(struct snd_compr_stream *cstream)
		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__);