From 7589be3605e69cfc00ad0ba9809f89a19af95da6 Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Wed, 6 May 2020 11:28:20 -0700 Subject: [PATCH] ASoC: codecs: rate limit error msg in hdmi codec During bootup, hdmi mixer control get functions are called multiple times and if there is no active hdmi/dp connection, multiple non-fatal errors messages are logged. These non-fatal errors messages are triaged as fatal, to avoid this scenario rate limit the error message. Change-Id: Ie31382d1758fe3907597adda1eb78aae596a24c4 Signed-off-by: Vignesh Kulothungan --- asoc/codecs/msm_hdmi_codec_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asoc/codecs/msm_hdmi_codec_rx.c b/asoc/codecs/msm_hdmi_codec_rx.c index 609dd45ea3..ce4faaea88 100644 --- a/asoc/codecs/msm_hdmi_codec_rx.c +++ b/asoc/codecs/msm_hdmi_codec_rx.c @@ -224,7 +224,7 @@ static int msm_ext_disp_audio_type_get(struct snd_kcontrol *kcontrol, if (!codec_data->ext_disp_ops.get_audio_edid_blk || !codec_data->ext_disp_ops.get_intf_id || rc) { - dev_err(component->dev, "%s: get_audio_edid_blk() or get_intf_id is NULL\n", + dev_err_ratelimited(component->dev, "%s: get_audio_edid_blk() or get_intf_id is NULL\n", __func__); rc = -EINVAL; goto cable_err;