aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/endpoint.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-08-30 08:04:04 +0200
committerTakashi Iwai <tiwai@suse.de>2021-08-30 08:04:04 +0200
commitf7b82b12626e10a2f5332b699cc79819ac8decc7 (patch)
treee530e0ebd7c60c9f466fdc00e809c024e63c664a /sound/usb/endpoint.c
parentALSA: hda/cs8409: Initialize Codec only in init fixup. (diff)
parentALSA: usb-audio: Add lowlatency module option (diff)
downloadlinux-dev-f7b82b12626e10a2f5332b699cc79819ac8decc7.tar.xz
linux-dev-f7b82b12626e10a2f5332b699cc79819ac8decc7.zip
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: