提交 1cfd52bc 编写于 作者: M Marc Boucher 提交者: Jaroslav Kysela

[ALSA] hda-intel - Add ratelimit to timeout messages

Signed-off-by: NMarc Boucher <marc@linuxant.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@perex.cz>
上级 d2595d86
...@@ -629,6 +629,7 @@ static int azx_single_send_cmd(struct hda_codec *codec, u32 val) ...@@ -629,6 +629,7 @@ static int azx_single_send_cmd(struct hda_codec *codec, u32 val)
} }
udelay(1); udelay(1);
} }
if (printk_ratelimit())
snd_printd(SFX "send_cmd timeout: IRS=0x%x, val=0x%x\n", snd_printd(SFX "send_cmd timeout: IRS=0x%x, val=0x%x\n",
azx_readw(chip, IRS), val); azx_readw(chip, IRS), val);
return -EIO; return -EIO;
...@@ -646,6 +647,7 @@ static unsigned int azx_single_get_response(struct hda_codec *codec) ...@@ -646,6 +647,7 @@ static unsigned int azx_single_get_response(struct hda_codec *codec)
return azx_readl(chip, IR); return azx_readl(chip, IR);
udelay(1); udelay(1);
} }
if (printk_ratelimit())
snd_printd(SFX "get_response timeout: IRS=0x%x\n", snd_printd(SFX "get_response timeout: IRS=0x%x\n",
azx_readw(chip, IRS)); azx_readw(chip, IRS));
return (unsigned int)-1; return (unsigned int)-1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册