ALSA: usb-audio: Apply rate limit to warning messages in URB complete callback
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 May 2018 18:07:18 +0000 (20:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:33 +0000 (07:50 +0200)
commit25436aa5c184b93e364c9c97d754f71725be1179
tree034ca776fbf6b4f7ee66afbf3d0564dc4a81dbf4
parentd239ee35ddb2a967d1b6003eef180cb544c95249
ALSA: usb-audio: Apply rate limit to warning messages in URB complete callback

[ Upstream commit 377a879d9832f4ba69bd6a1fc996bb4181b1e504 ]

retire_capture_urb() may print warning messages when the given URB
doesn't align, and this may flood the system log easily.
Put the rate limit to the message for avoiding it.

Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1093485
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/pcm.c