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 <vigneshk@codeaurora.org>
diff --git a/asoc/msm-compress-q6-v2.c b/asoc/msm-compress-q6-v2.c
index 6fb61da..e429a54 100644
--- a/asoc/msm-compress-q6-v2.c
+++ b/asoc/msm-compress-q6-v2.c
@@ -3284,7 +3284,7 @@
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 bcf21b5..4291077 100644
--- a/asoc/msm-dai-q6-hdmi-v2.c
+++ b/asoc/msm-dai-q6-hdmi-v2.c
@@ -180,7 +180,7 @@
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 742457c..fc9e4f5 100644
--- a/asoc/msm-dai-q6-v2.c
+++ b/asoc/msm-dai-q6-v2.c
@@ -3077,7 +3077,7 @@
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 1c26d19..32c727a 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 @@
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 c89efb9..be34903 100644
--- a/asoc/msm-pcm-q6-noirq.c
+++ b/asoc/msm-pcm-q6-noirq.c
@@ -670,7 +670,7 @@
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 f40769b..0b312fe 100644
--- a/asoc/msm-pcm-q6-v2.c
+++ b/asoc/msm-pcm-q6-v2.c
@@ -1301,7 +1301,7 @@
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 @@
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 9e44594..1d1a267 100644
--- a/asoc/msm-pcm-routing-v2.c
+++ b/asoc/msm-pcm-routing-v2.c
@@ -17017,7 +17017,7 @@
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 @@
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 @@
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 @@
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 @@
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 7d64da6..0923d0a 100644
--- a/asoc/msm-qti-pp-config.c
+++ b/asoc/msm-qti-pp-config.c
@@ -1259,7 +1259,7 @@
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;