mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
ALSA: usb-audio: Apply rate limit to warning messages in URB complete callback
[ Upstream commit 377a879d98
]
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>
This commit is contained in:
parent
d239ee35dd
commit
25436aa5c1
1 changed files with 1 additions and 1 deletions
|
@ -1311,7 +1311,7 @@ static void retire_capture_urb(struct snd_usb_substream *subs,
|
|||
if (bytes % (runtime->sample_bits >> 3) != 0) {
|
||||
int oldbytes = bytes;
|
||||
bytes = frames * stride;
|
||||
dev_warn(&subs->dev->dev,
|
||||
dev_warn_ratelimited(&subs->dev->dev,
|
||||
"Corrected urb data len. %d->%d\n",
|
||||
oldbytes, bytes);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue