From 7e84375adbf7136e210811015f41c22590e293cc Mon Sep 17 00:00:00 2001 From: Xiaojun Sang Date: Wed, 23 May 2018 17:14:31 +0800 Subject: [PATCH] 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 --- techpack/audio/asoc/msm-pcm-q6-v2.c | 5 ++++- techpack/audio/dsp/q6afe.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/techpack/audio/asoc/msm-pcm-q6-v2.c b/techpack/audio/asoc/msm-pcm-q6-v2.c index 389fa04c52dd..a3be67fd24e5 100644 --- a/techpack/audio/asoc/msm-pcm-q6-v2.c +++ b/techpack/audio/asoc/msm-pcm-q6-v2.c @@ -753,7 +753,10 @@ static int msm_pcm_open(struct snd_pcm_substream *substream) 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)) diff --git a/techpack/audio/dsp/q6afe.c b/techpack/audio/dsp/q6afe.c index 3f70f44f09e5..43ae6ea60368 100644 --- a/techpack/audio/dsp/q6afe.c +++ b/techpack/audio/dsp/q6afe.c @@ -1619,7 +1619,7 @@ static struct cal_block_data *afe_find_cal(int cal_index, int port_id) goto exit; } } - pr_err("%s: no matching cal_block found\n", __func__); + pr_debug("%s: no matching cal_block found\n", __func__); cal_block = NULL; exit: