android_kernel_samsung_msm8976/sound
Sander Eikelenboom 7b938dbb38 ALSA: usb-audio: Prevent printk ratelimiting from spamming kernel log while DEBUG not defined
commit b7a7723513dc89f83d6df13206df55d4dc26e825 upstream.

This (widely used) construction:

if(printk_ratelimit())
	dev_dbg()

Causes the ratelimiting to spam the kernel log with the "callbacks suppressed"
message below, even while the dev_dbg it is supposed to rate limit wouldn't
print anything because DEBUG is not defined for this device.

[  533.803964] retire_playback_urb: 852 callbacks suppressed
[  538.807930] retire_playback_urb: 852 callbacks suppressed
[  543.811897] retire_playback_urb: 852 callbacks suppressed
[  548.815745] retire_playback_urb: 852 callbacks suppressed
[  553.819826] retire_playback_urb: 852 callbacks suppressed

So use dev_dbg_ratelimited() instead of this construction.

Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-09 11:14:02 -07:00
..
aoa ALSA: snd-aoa: Add a layout entry for PowerBook6,5 2013-05-16 07:19:01 +02:00
arm ALSA: pxa2xx: Fix unlocked snd_pcm_stop() call 2013-07-25 14:07:25 -07:00
atmel
core ALSA: control: Make sure that id->index does not overflow 2014-06-26 15:12:43 -04:00
drivers
firewire
i2c
isa ALSA: msnd: Avoid duplicated driver name 2013-11-29 11:11:45 -08:00
mips
oss sound: Fix make allmodconfig on MIPS correctly 2013-05-13 15:54:19 +02:00
parisc
pci ALSA: hda - Add quirk for external mic on Lifebook U904 2014-06-26 15:12:42 -04:00
pcmcia
ppc
sh
soc ASoC: max98090: Fix reset at resume time 2014-06-26 15:12:40 -04:00
sparc
spi
synth
usb ALSA: usb-audio: Prevent printk ratelimiting from spamming kernel log while DEBUG not defined 2014-07-09 11:14:02 -07:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c