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 <vigneshk@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
04a841333a
commit
7589be3605
@@ -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;
|
||||
|
Reference in New Issue
Block a user