diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-08-30 09:04:04 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-08-30 09:04:04 +0300 |
commit | f7b82b12626e10a2f5332b699cc79819ac8decc7 (patch) | |
tree | e530e0ebd7c60c9f466fdc00e809c024e63c664a /sound/usb/endpoint.c | |
parent | ea41a498cc646349d64eda7e8a4e23ae999bc259 (diff) | |
parent | 4801bee7d5a36c199b734a28cde5259183aff822 (diff) | |
download | linux-f7b82b12626e10a2f5332b699cc79819ac8decc7.tar.xz |
Merge branch 'for-linus' into for-next
Diffstat (limited to 'sound/usb/endpoint.c')
-rw-r--r-- | sound/usb/endpoint.c | 4 |
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: |