From: Randy Dunlap Rate-limit the azx_get_response timeout message. A continuous 2 per second is too much. Signed-off-by: Randy Dunlap Cc: Jaroslav Kysela Cc: Takashi Iwai Signed-off-by: Andrew Morton --- sound/pci/hda/hda_intel.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -puN sound/pci/hda/hda_intel.c~sound-hda-rate-limit-timeout-message sound/pci/hda/hda_intel.c --- devel/sound/pci/hda/hda_intel.c~sound-hda-rate-limit-timeout-message 2005-10-31 20:38:59.000000000 -0800 +++ devel-akpm/sound/pci/hda/hda_intel.c 2005-10-31 20:38:59.000000000 -0800 @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -514,7 +515,9 @@ static unsigned int azx_get_response(str while (chip->rirb.cmds) { 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.cmds = 0; return -1; _