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

Commit b5f62880 authored by Hongtao Peng's avatar Hongtao Peng
Browse files

SoC: msm: Compatible with loopback case without asm cal data



In the prepare stage of loopback driver, no asm cal data will report info
instead of fatal error, make sure the sequence contiune.

Change-Id: Ib7c1e0efd26838eb6b40d3cce9174dda189c8028
Signed-off-by: default avatarHongtao Peng <hongtaop@codeaurora.org>
parent 58f399da
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -527,9 +527,8 @@ static int msm_pcm_prepare(struct snd_pcm_substream *substream)
			return -EINVAL;
		}

		ret = q6asm_send_cal(pcm->audio_client);
		if (ret < 0)
			pr_err("%s : Send audio cal failed : %d", __func__, ret);
		if (q6asm_send_cal(pcm->audio_client) < 0)
			pr_info("%s : Send audio cal failed\n", __func__);

		msm_pcm_routing_reg_phy_stream(soc_pcm_tx->dai_link->id,
			pcm->audio_client->perf_mode,