usb: fix get_max_packet_size is called before endpoints are allocated

retrive the requirements like others rather than callback

Change-Id: I20efce76a418ebd7aa6943f02e53b3f7a8fd2797
This commit is contained in:
mojyack 2026-01-07 13:31:49 +09:00
parent 8873cbb57e
commit 142e1864ef
7 changed files with 16 additions and 33 deletions

View file

@ -299,9 +299,9 @@ static int as_playback_freq_idx; /* audio playback streaming frequency index (in
static struct usb_class_driver_ep_allocation ep_allocs[2] = {
/* output isochronous endpoint */
{.type = USB_ENDPOINT_XFER_ISOC, .dir = DIR_OUT, .optional = false},
{.type = USB_ENDPOINT_XFER_ISOC, .dir = DIR_OUT, .optional = false, .mps = -1},
/* input feedback isochronous endpoint */
{.type = USB_ENDPOINT_XFER_ISOC, .dir = DIR_IN, .optional = false},
{.type = USB_ENDPOINT_XFER_ISOC, .dir = DIR_IN, .optional = false, .mps = -1},
};
#define EP_ISO_OUT (ep_allocs[0].ep)