summaryrefslogtreecommitdiff
path: root/sound/usb/endpoint.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-08-30 09:04:04 +0300
committerTakashi Iwai <tiwai@suse.de>2021-08-30 09:04:04 +0300
commitf7b82b12626e10a2f5332b699cc79819ac8decc7 (patch)
treee530e0ebd7c60c9f466fdc00e809c024e63c664a /sound/usb/endpoint.c
parentea41a498cc646349d64eda7e8a4e23ae999bc259 (diff)
parent4801bee7d5a36c199b734a28cde5259183aff822 (diff)
downloadlinux-f7b82b12626e10a2f5332b699cc79819ac8decc7.tar.xz
Merge branch 'for-linus' into for-next
Diffstat (limited to 'sound/usb/endpoint.c')
-rw-r--r--sound/usb/endpoint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
index 79a8c569c62b..533919a28856 100644
--- a/sound/usb/endpoint.c
+++ b/sound/usb/endpoint.c
@@ -1132,6 +1132,10 @@ static int data_ep_set_params(struct snd_usb_endpoint *ep)
INIT_LIST_HEAD(&u->ready_list);
}
+ /* total buffer bytes of all URBs plus the next queue;
+ * referred in pcm.c
+ */
+ ep->nominal_queue_size = maxsize * urb_packs * (ep->nurbs + 1);
return 0;
out_of_memory: