linux_usbfs: Update MAX_ISO_BUFFER_LENGTH
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 22 Jan 2015 08:25:16 +0000 (00:25 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 22 Jan 2015 08:35:27 +0000 (00:35 -0800)
commit51b10191033ca3a3819dcf46e1da2465b99497c2
tree95adc18a2fa392b24e5a58d7a793ac69910c82fe
parenta3d3313c5d7cdc22bb41b1e75a959e070f05c5b7
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>
libusb/io.c
libusb/os/linux_usbfs.c
libusb/os/linux_usbfs.h
libusb/version_nano.h