Commit 362775e2 authored by Randy Dunlap's avatar Randy Dunlap Committed by Jaroslav Kysela

[ALSA] sound/hda: rate-limit timeout message

Modules: HDA Intel driver

Rate-limit the azx_get_response timeout message.  A continuous 2 per second
is too much.
Signed-off-by: default avatarRandy Dunlap <randy_d_dunlap@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d031166f
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <asm/io.h> #include <asm/io.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -514,7 +515,9 @@ static unsigned int azx_get_response(struct hda_codec *codec) ...@@ -514,7 +515,9 @@ static unsigned int azx_get_response(struct hda_codec *codec)
while (chip->rirb.cmds) { while (chip->rirb.cmds) {
if (! --timeout) { if (! --timeout) {
snd_printk(KERN_ERR "azx_get_response timeout\n"); if (printk_ratelimit())
snd_printk(KERN_ERR
"azx_get_response timeout\n");
chip->rirb.rp = azx_readb(chip, RIRBWP); chip->rirb.rp = azx_readb(chip, RIRBWP);
chip->rirb.cmds = 0; chip->rirb.cmds = 0;
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment