From 2ce6784865b18eda56c8dd836eefca807c5a74f0 Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Tue, 25 Sep 2018 16:40:29 -0700 Subject: [PATCH] asoc: update log level to avoid execessive logging Excessive logging causes throttling during bootup. Update log level from error to debug in get functions to avoid excessive logging. CRs-Fixed: 2321589 Change-Id: If2a23144adf76cdd9bb2d9048a967b63186d7f6e Signed-off-by: Vignesh Kulothungan --- asoc/msm-compress-q6-v2.c | 2 +- asoc/msm-dai-q6-hdmi-v2.c | 2 +- asoc/msm-dai-q6-v2.c | 2 +- asoc/msm-pcm-loopback-v2.c | 4 ++-- asoc/msm-pcm-q6-noirq.c | 2 +- asoc/msm-pcm-q6-v2.c | 4 ++-- asoc/msm-pcm-routing-v2.c | 10 +++++----- asoc/msm-qti-pp-config.c | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/asoc/msm-compress-q6-v2.c b/asoc/msm-compress-q6-v2.c index 6fb61da19536..e429a5420bb6 100644 --- a/asoc/msm-compress-q6-v2.c +++ b/asoc/msm-compress-q6-v2.c @@ -3284,7 +3284,7 @@ static int msm_compr_audio_effects_config_get(struct snd_kcontrol *kcontrol, cstream = pdata->cstream[fe_id]; audio_effects = pdata->audio_effects[fe_id]; if (!cstream || !audio_effects) { - pr_err("%s: stream or effects inactive\n", __func__); + pr_debug("%s: stream or effects inactive\n", __func__); return -EINVAL; } prtd = cstream->runtime->private_data; diff --git a/asoc/msm-dai-q6-hdmi-v2.c b/asoc/msm-dai-q6-hdmi-v2.c index bcf21b5d9b7b..4291077fcbb9 100644 --- a/asoc/msm-dai-q6-hdmi-v2.c +++ b/asoc/msm-dai-q6-hdmi-v2.c @@ -180,7 +180,7 @@ static int msm_dai_q6_ext_disp_drift_get(struct snd_kcontrol *kcontrol, struct msm_dai_q6_hdmi_dai_data *dai_data = dev_get_drvdata(dai->dev); if (!test_bit(STATUS_PORT_STARTED, dai_data->status_mask)) { - pr_err("%s: afe port not started. status_mask = %ld\n", + pr_debug("%s: afe port not started. status_mask = %ld\n", __func__, *dai_data->status_mask); goto done; } diff --git a/asoc/msm-dai-q6-v2.c b/asoc/msm-dai-q6-v2.c index 742457c1ef34..fc9e4f5263df 100644 --- a/asoc/msm-dai-q6-v2.c +++ b/asoc/msm-dai-q6-v2.c @@ -3077,7 +3077,7 @@ static int msm_dai_q6_slim_rx_drift_get(struct snd_kcontrol *kcontrol, struct msm_dai_q6_dai_data *dai_data = dev_get_drvdata(dai->dev); if (!test_bit(STATUS_PORT_STARTED, dai_data->status_mask)) { - pr_err("%s: afe port not started. dai_data->status_mask = %ld\n", + pr_debug("%s: afe port not started. dai_data->status_mask = %ld\n", __func__, *dai_data->status_mask); goto done; } diff --git a/asoc/msm-pcm-loopback-v2.c b/asoc/msm-pcm-loopback-v2.c index 1c26d1966b24..32c727aca14a 100644 --- a/asoc/msm-pcm-loopback-v2.c +++ b/asoc/msm-pcm-loopback-v2.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -517,7 +517,7 @@ static int msm_pcm_volume_ctl_get(struct snd_kcontrol *kcontrol, pr_debug("%s\n", __func__); if ((!substream) || (!substream->runtime)) { - pr_err("%s substream or runtime not found\n", __func__); + pr_debug("%s substream or runtime not found\n", __func__); rc = -ENODEV; goto exit; } diff --git a/asoc/msm-pcm-q6-noirq.c b/asoc/msm-pcm-q6-noirq.c index c89efb9773bd..be34903d929d 100644 --- a/asoc/msm-pcm-q6-noirq.c +++ b/asoc/msm-pcm-q6-noirq.c @@ -670,7 +670,7 @@ static int msm_pcm_volume_ctl_get(struct snd_kcontrol *kcontrol, return -ENODEV; } if (!substream->runtime) { - pr_err("%s substream runtime not found\n", __func__); + pr_debug("%s substream runtime not found\n", __func__); return 0; } prtd = substream->runtime->private_data; diff --git a/asoc/msm-pcm-q6-v2.c b/asoc/msm-pcm-q6-v2.c index f40769b4b8d9..0b312fe36e91 100644 --- a/asoc/msm-pcm-q6-v2.c +++ b/asoc/msm-pcm-q6-v2.c @@ -1301,7 +1301,7 @@ static int msm_pcm_volume_ctl_get(struct snd_kcontrol *kcontrol, return -ENODEV; } if (!substream->runtime) { - pr_err("%s substream runtime not found\n", __func__); + pr_debug("%s substream runtime not found\n", __func__); return 0; } prtd = substream->runtime->private_data; @@ -1388,7 +1388,7 @@ static int msm_pcm_compress_ctl_get(struct snd_kcontrol *kcontrol, return -EINVAL; } if (!substream->runtime) { - pr_err("%s substream runtime not found\n", __func__); + pr_debug("%s substream runtime not found\n", __func__); return 0; } prtd = substream->runtime->private_data; diff --git a/asoc/msm-pcm-routing-v2.c b/asoc/msm-pcm-routing-v2.c index 9e445946bbf0..1d1a26709fc1 100644 --- a/asoc/msm-pcm-routing-v2.c +++ b/asoc/msm-pcm-routing-v2.c @@ -17017,7 +17017,7 @@ static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol, ret = voc_get_sound_focus(&soundFocusData); if (ret) { - pr_err("%s: Error getting Sound Focus Params, err=%d\n", + pr_debug("%s: Error getting Sound Focus Params, err=%d\n", __func__, ret); ret = -EINVAL; @@ -17049,7 +17049,7 @@ static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol, ret = voc_get_source_tracking(&sourceTrackingData); if (ret) { - pr_err("%s: Error getting Source Tracking Params, err=%d\n", + pr_debug("%s: Error getting Source Tracking Params, err=%d\n", __func__, ret); ret = -EINVAL; @@ -17105,7 +17105,7 @@ static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type, break; } if (i >= MSM_FRONTEND_DAI_MM_SIZE) { - pr_err("%s: Invalid FE, exiting\n", __func__); + pr_debug("%s: Invalid FE, exiting\n", __func__); ret = -EINVAL; goto done; @@ -17221,7 +17221,7 @@ static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol, ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX, &copp_idx); if (ret) { - pr_err("%s: Could not get copp idx for port_id=%d\n", + pr_debug("%s: Could not get copp idx for port_id=%d\n", __func__, port_id); ret = -EINVAL; @@ -17264,7 +17264,7 @@ static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol, ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX, &copp_idx); if (ret) { - pr_err("%s: Could not get copp idx for port_id=%d\n", + pr_debug("%s: Could not get copp idx for port_id=%d\n", __func__, port_id); ret = -EINVAL; diff --git a/asoc/msm-qti-pp-config.c b/asoc/msm-qti-pp-config.c index 7d64da66edbf..0923d0a6357d 100644 --- a/asoc/msm-qti-pp-config.c +++ b/asoc/msm-qti-pp-config.c @@ -1259,7 +1259,7 @@ int msm_adsp_stream_callback_get(struct snd_kcontrol *kcontrol, kctl_prtd = (struct dsp_stream_callback_prtd *) kcontrol->private_data; if (kctl_prtd == NULL) { - pr_err("%s: ASM Stream PP event queue is not initialized.\n", + pr_debug("%s: ASM Stream PP event queue is not initialized.\n", __func__); ret = -EINVAL; goto done;