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>
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user