aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-11-07 14:55:15 -0500
committerTakashi Iwai <tiwai@suse.de>2013-11-07 15:22:23 -0500
commit3b70a67da0bebca02a130eff8084eee457a2b836 (patch)
tree17df7a5144185ec0264cbce219b44ea47870e986 /sound/pci/hda
parentca2b029515b4a81bbedcffc69a5d9574bb5ba475 (diff)
ALSA: hda_intel: ratelimit "spurious response" message
dmesg here has a 100+ consecutive lines of: [ 1464.219446] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500 [ 1464.219451] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500 [ 1464.219454] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500 ... Ratelimit the message to reduce the dmesg log noise. Coalesce the format while at it. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/hda_intel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 17f4aa8cddd5..7a09404579a7 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -914,12 +914,12 @@ static void azx_update_rirb(struct azx *chip)
914 chip->rirb.res[addr] = res; 914 chip->rirb.res[addr] = res;
915 smp_wmb(); 915 smp_wmb();
916 chip->rirb.cmds[addr]--; 916 chip->rirb.cmds[addr]--;
917 } else 917 } else if (printk_ratelimit()) {
918 snd_printk(KERN_ERR SFX "%s: spurious response %#x:%#x, " 918 snd_printk(KERN_ERR SFX "%s: spurious response %#x:%#x, last cmd=%#08x\n",
919 "last cmd=%#08x\n",
920 pci_name(chip->pci), 919 pci_name(chip->pci),
921 res, res_ex, 920 res, res_ex,
922 chip->last_cmd[addr]); 921 chip->last_cmd[addr]);
922 }
923 } 923 }
924} 924}
925 925