Finally, only allocate the number of frames for isoc transfers which we
authormglocker <mglocker@openbsd.org>
Sat, 10 Sep 2022 08:13:16 +0000 (08:13 +0000)
committermglocker <mglocker@openbsd.org>
Sat, 10 Sep 2022 08:13:16 +0000 (08:13 +0000)
commitf6fab45d8293b2d8052ea1356b4b9fa4f042aa51
tree6639bc6ca833f9be6bb3c25aa7d41abd03007e50
parente24b7a3731813c136f61fae52e3fbfff8572ef5c
Finally, only allocate the number of frames for isoc transfers which we
really need.  The static allocation workaround in the code
(DWC2_MAXISOCPACKETS) was required because the NetBSD allocx USB method
has a second argument to pass nframes already there, which we don't
have.

Regression tested with video play, audio play, audio record.

ok mpi@
sys/dev/usb/dwc2/dwc2.c
sys/dev/usb/dwc2/dwc2var.h