diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2015-01-22 00:25:16 -0800 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2015-01-22 00:35:27 -0800 |
commit | 51b10191033ca3a3819dcf46e1da2465b99497c2 (patch) | |
tree | 95adc18a2fa392b24e5a58d7a793ac69910c82fe /libusb/os/linux_usbfs.h | |
parent | a3d3313c5d7cdc22bb41b1e75a959e070f05c5b7 (diff) | |
download | libusb-51b10191033ca3a3819dcf46e1da2465b99497c2.tar.gz |
linux_usbfs: Update MAX_ISO_BUFFER_LENGTH
Newer kernels have raised the maximum length of individual ISO
packets and URBs. There's no easy way to detect the limit, so we
will define MAX_ISO_BUFFER_LENGTH as the largest known limit.
If a user runs this on an earlier kernel and submits an ISO transfer
that is too large, they will receive LIBUSB_ERROR_INVALID_PARAM.
The documentation has been updated to note this behavior, under
"Considerations for isochronous transfers".
Closes #23
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os/linux_usbfs.h')
-rw-r--r-- | libusb/os/linux_usbfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/linux_usbfs.h b/libusb/os/linux_usbfs.h index f2404ab..43fe11b 100644 --- a/libusb/os/linux_usbfs.h +++ b/libusb/os/linux_usbfs.h @@ -81,7 +81,7 @@ struct usbfs_iso_packet_desc { unsigned int status; }; -#define MAX_ISO_BUFFER_LENGTH 32768 +#define MAX_ISO_BUFFER_LENGTH 49152 * 128 #define MAX_BULK_BUFFER_LENGTH 16384 #define MAX_CTRL_BUFFER_LENGTH 4096 |