diff mbox

[10/14] usb-linux: Enlarge buffer for descriptors to 8192 bytes

Message ID 1306834530-12763-11-git-send-email-hdegoede@redhat.com
State New
Headers show

Commit Message

Hans de Goede May 31, 2011, 9:35 a.m. UTC
1024 bytes is way to small, one hd UVC webcam I have over here has so
many resolutions its descriptors take op close to 4k. Hopefully 8k will
be enough for all devices.
---
 usb-linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Gerd Hoffmann June 1, 2011, 12:44 p.m. UTC | #1
On 05/31/11 11:35, Hans de Goede wrote:
> 1024 bytes is way to small, one hd UVC webcam I have over here has so
> many resolutions its descriptors take op close to 4k. Hopefully 8k will
> be enough for all devices.

Patch applied.

thanks,
   Gerd
diff mbox

Patch

diff --git a/usb-linux.c b/usb-linux.c
index 3508cda..490c49f 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -117,7 +117,7 @@  typedef struct USBHostDevice {
     USBDevice dev;
     int       fd;
 
-    uint8_t   descr[1024];
+    uint8_t   descr[8192];
     int       descr_len;
     int       configuration;
     int       ninterfaces;