ASoC: msm: remove unnecessary error log in audio kernel
PP event queue is not used by capture path. Initialize PP
event queue for playback path only to remove unnecessary log.
Change log level from error to debug when no matching afe
cal block is found.
Change-Id: Ibc323449f2fdc74cccd350ae30ac76d937898ffa
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
diff --git a/asoc/msm-pcm-q6-v2.c b/asoc/msm-pcm-q6-v2.c
index 8ae85b7..f40769b 100644
--- a/asoc/msm-pcm-q6-v2.c
+++ b/asoc/msm-pcm-q6-v2.c
@@ -704,7 +704,10 @@
prtd->set_channel_map = false;
prtd->reset_event = false;
runtime->private_data = prtd;
- msm_adsp_init_mixer_ctl_pp_event_queue(soc_prtd);
+
+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
+ msm_adsp_init_mixer_ctl_pp_event_queue(soc_prtd);
+
/* Vote to update the Rx thread priority to RT Thread for playback */
if ((substream->stream == SNDRV_PCM_STREAM_PLAYBACK) &&
(pdata->perf_mode == LOW_LATENCY_PCM_MODE))