From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTZ6b-0008Ok-MD for qemu-devel@nongnu.org; Mon, 06 Jun 2011 08:40:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTZ6Y-0005ai-NG for qemu-devel@nongnu.org; Mon, 06 Jun 2011 08:40:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTZ6Y-0005aM-7R for qemu-devel@nongnu.org; Mon, 06 Jun 2011 08:40:26 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p56CePdo032553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 6 Jun 2011 08:40:25 -0400 From: Gerd Hoffmann Date: Mon, 6 Jun 2011 14:39:17 +0200 Message-Id: <1307363962-27223-27-git-send-email-kraxel@redhat.com> In-Reply-To: <1307363962-27223-1-git-send-email-kraxel@redhat.com> References: <1307363962-27223-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 26/31] usb-linux: Enlarge buffer for descriptors to 8192 bytes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hans de Goede , Gerd Hoffmann From: Hans de Goede 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. Signed-off-by: Gerd Hoffmann --- usb-linux.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index be667f0..600ec2d 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -116,7 +116,7 @@ typedef struct USBHostDevice { USBDevice dev; int fd; - uint8_t descr[1024]; + uint8_t descr[8192]; int descr_len; int configuration; int ninterfaces; -- 1.7.1