From owner-freebsd-multimedia@FreeBSD.ORG Thu Jun 27 06:19:41 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C0AC2D4F for ; Thu, 27 Jun 2013 06:19:41 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 58E9F1BCF for ; Thu, 27 Jun 2013 06:19:40 +0000 (UTC) Received: from mail.bitfrost.no (mail.bitfrost.no [46.29.221.36]) by mta.bitpro.no (Postfix) with ESMTP id 55F2F7A269; Thu, 27 Jun 2013 08:19:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bitfrost.no Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: hanspetter) by mail.bitfrost.no (Postfix) with ESMTPSA id 71D8920D7F; Thu, 27 Jun 2013 08:19:38 +0200 (CEST) Message-ID: <51CBD9C0.5040107@bitfrost.no> Date: Thu, 27 Jun 2013 08:20:48 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S MIME-Version: 1.0 Subject: Re: New version of webcamd [3.10.0.6] References: <201306262216.r5QMGoIg029323@triton8.kn-bremen.de> <51CBD87F.8090103@bitfrost.no> In-Reply-To: <51CBD87F.8090103@bitfrost.no> Content-Type: multipart/mixed; boundary="------------010808030508030102010304" Cc: freebsd-multimedia@freebsd.org, Juergen Lock X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2013 06:19:41 -0000 This is a multi-part message in MIME format. --------------010808030508030102010304 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 06/27/13 08:15, Hans Petter Selasky wrote: > On 06/27/13 00:16, Juergen Lock wrote: >> DBG: : usb_urb_complete: urb completition failed=-27 >> DBG: : usb_urb_complete: bulk urb completed status=-27 >> length=0/131072 pack_num=0 errors=0 > > Hi, > > Probably I should increase the minimum buffer size: > > Could you try adding to the webcamd flags: > > "-m linux_usb.min_bufsize=262144" > > Or some larger value if it doesn't work? > > --HPS Can you try the attached patch? --HPS --------------010808030508030102010304 Content-Type: text/x-patch; name="webcamd-bufsize.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="webcamd-bufsize.diff" Index: kernel/linux_usb.c =================================================================== --- kernel/linux_usb.c (revision 2621) +++ kernel/linux_usb.c (working copy) @@ -952,8 +952,8 @@ if (bufsize < 4096) bufsize = 4096; } else { - if (bufsize < 65536) - bufsize = 65536; + if (bufsize < 131072) + bufsize = 131072; } /* one transfer and one frame */ @@ -1806,6 +1806,16 @@ libusb20_tr_setup_bulk(xfer, urb->transfer_buffer, urb->transfer_buffer_length, urb->timeout); libusb20_tr_submit(xfer); + + /* get other transfer */ + if (xfer == uhe->bsd_xfer[0]) + xfer = uhe->bsd_xfer[1]; + else + xfer = uhe->bsd_xfer[0]; + + /* start the other transfer, if not already started */ + if (xfer != NULL) + libusb20_tr_start(xfer); break; default: Index: patches/uvc_video.c.diff =================================================================== --- patches/uvc_video.c.diff (revision 2648) +++ patches/uvc_video.c.diff (working copy) @@ -47,7 +47,7 @@ - - /* roughly compute size for buffers */ - if (stream->dev->udev->speed == USB_SPEED_FULL) { -- size = 8192; +- size = 4096; - } else { - size = 131072; - } --------------010808030508030102010304--