aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/hda_intel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index be5cbbcb6ec3..0003021bf176 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -629,8 +629,9 @@ static int azx_single_send_cmd(struct hda_codec *codec, u32 val)
629 } 629 }
630 udelay(1); 630 udelay(1);
631 } 631 }
632 snd_printd(SFX "send_cmd timeout: IRS=0x%x, val=0x%x\n", 632 if (printk_ratelimit())
633 azx_readw(chip, IRS), val); 633 snd_printd(SFX "send_cmd timeout: IRS=0x%x, val=0x%x\n",
634 azx_readw(chip, IRS), val);
634 return -EIO; 635 return -EIO;
635} 636}
636 637
@@ -646,8 +647,9 @@ static unsigned int azx_single_get_response(struct hda_codec *codec)
646 return azx_readl(chip, IR); 647 return azx_readl(chip, IR);
647 udelay(1); 648 udelay(1);
648 } 649 }
649 snd_printd(SFX "get_response timeout: IRS=0x%x\n", 650 if (printk_ratelimit())
650 azx_readw(chip, IRS)); 651 snd_printd(SFX "get_response timeout: IRS=0x%x\n",
652 azx_readw(chip, IRS));
651 return (unsigned int)-1; 653 return (unsigned int)-1;
652} 654}
653 655