From: Marc Boucher Date: Tue, 22 Jan 2008 14:29:26 +0000 (+0100) Subject: [ALSA] hda-intel - Add ratelimit to timeout messages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1cfd52bc1ad516dbdc23839d40013dea4c19c70a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [ALSA] hda-intel - Add ratelimit to timeout messages Signed-off-by: Marc Boucher Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index be5cbbcb6ec..0003021bf17 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) } udelay(1); } - snd_printd(SFX "send_cmd timeout: IRS=0x%x, val=0x%x\n", - azx_readw(chip, IRS), val); + if (printk_ratelimit()) + snd_printd(SFX "send_cmd timeout: IRS=0x%x, val=0x%x\n", + azx_readw(chip, IRS), val); return -EIO; } @@ -646,8 +647,9 @@ static unsigned int azx_single_get_response(struct hda_codec *codec) return azx_readl(chip, IR); udelay(1); } - snd_printd(SFX "get_response timeout: IRS=0x%x\n", - azx_readw(chip, IRS)); + if (printk_ratelimit()) + snd_printd(SFX "get_response timeout: IRS=0x%x\n", + azx_readw(chip, IRS)); return (unsigned int)-1; }