aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/hda_intel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index ed525c03c996..429ef3810b16 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -37,6 +37,7 @@
37#include <asm/io.h> 37#include <asm/io.h>
38#include <linux/delay.h> 38#include <linux/delay.h>
39#include <linux/interrupt.h> 39#include <linux/interrupt.h>
40#include <linux/kernel.h>
40#include <linux/module.h> 41#include <linux/module.h>
41#include <linux/moduleparam.h> 42#include <linux/moduleparam.h>
42#include <linux/init.h> 43#include <linux/init.h>
@@ -514,7 +515,9 @@ static unsigned int azx_get_response(struct hda_codec *codec)
514 515
515 while (chip->rirb.cmds) { 516 while (chip->rirb.cmds) {
516 if (! --timeout) { 517 if (! --timeout) {
517 snd_printk(KERN_ERR "azx_get_response timeout\n"); 518 if (printk_ratelimit())
519 snd_printk(KERN_ERR
520 "azx_get_response timeout\n");
518 chip->rirb.rp = azx_readb(chip, RIRBWP); 521 chip->rirb.rp = azx_readb(chip, RIRBWP);
519 chip->rirb.cmds = 0; 522 chip->rirb.cmds = 0;
520 return -1; 523 return -1;