Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-08-03 14:03:49 +0200
committerTakashi Iwai <tiwai@suse.de>2018-08-03 14:03:55 +0200
commit9781c0961ca2bc4cdeb10ff1b9ea194bdd61a4a8 (patch)
treeae62a66074e9a375d11c91df2c9f44510c7a5b05
parent57c6620605962cc8b8d3516672427d17d72536c0 (diff)
ALSA: usb-audio: Apply rate limit to warning messages in URB
complete callback (bsc#1051510). suse-commit: f9baffb29c6218b422eaa0416efa58ec370c85b3
-rw-r--r--sound/usb/pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index 3bf207e7488b..ca26f1dfa52f 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -1299,7 +1299,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);
}