mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
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:
parent
8873cbb57e
commit
142e1864ef
7 changed files with 16 additions and 33 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue