From b5f628803d2a3546132718a70f79894b967a5a62 Mon Sep 17 00:00:00 2001 From: Hongtao Peng Date: Wed, 23 Jun 2021 10:29:31 +0800 Subject: [PATCH] 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: Hongtao Peng --- asoc/msm-pcm-loopback-v2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/asoc/msm-pcm-loopback-v2.c b/asoc/msm-pcm-loopback-v2.c index f6ef32c58f5d..6cf48b9c3bc1 100755 --- a/asoc/msm-pcm-loopback-v2.c +++ b/asoc/msm-pcm-loopback-v2.c @@ -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,