From owner-freebsd-multimedia@FreeBSD.ORG Sun Dec 31 11:22:07 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8387D16A407 for ; Sun, 31 Dec 2006 11:22:07 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.tele2.se [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id C846C13C45A for ; Sun, 31 Dec 2006 11:22:06 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe09.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 201774640; Sun, 31 Dec 2006 12:22:05 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Sun, 31 Dec 2006 12:21:47 +0100 User-Agent: KMail/1.7 References: <20061230111525.A9195@xorpc.icir.org> In-Reply-To: <20061230111525.A9195@xorpc.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612311221.50111.hselasky@c2i.net> Cc: Luigi Rizzo , multimedia@freebsd.org Subject: Re: pwcbsd extensions for spca-supported cameras X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Dec 2006 11:22:07 -0000 On Saturday 30 December 2006 20:15, Luigi Rizzo wrote: > If someone (kernel programmers) is interested in having a look at > this code... > > It is not yet usable but i am moving forward quite fast, > hopefully with a bit of help we can manage to have a working driver > within a few days. > > I have been working recently to integrate more cameras into the > pwcbsd port, namely those supported by the spca (userland) > application/driver. > > I am doing rather good progress, but wouldn't mind a bit > of review/help if you are interested. Details are at > > http://info.iet.unipi.it/~luigi/FreeBSD/usb-cameras.html > > basically i can probe the camera and start the usb transfer, > all left to do now is link the code that detects the start of frame > into the usb isoc stream, and later to invoke the format converters > appropriately. > > let me know if you have any suggestions on how to proceed with this. > (the code is basically the pwcbsd and spcaview that we have in > the ports, with very limited modifications - the license is > obviously the same as the original, so this is going to remain > a port). > If you want more stable isochronous transfers, and especially High-speed ISOC transfers, you need to use my new USB API. Please see: http://www.turbocat.net/~hselasky/usb4bsd There are examples in "ugen.c" on how to do ISOC transfers, which is basically the same as in the old system. More examples on how to use ISOC transfers: http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/i4b/layer1/ihfc2/i4b_wibusb.h http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/i4b/layer1/ihfc2/i4b_hfcsusb.h I found this comment: /* !!!!!!!!!! IMPORTANT DO NOT SET THIS HIGHER THAN 8 !!!!!!!!!!!!!!! * !!!!!!!!!! OHCI IS BUGGY IF YOU DO SO !!!!!!!!!!!!!!!*/ #define ISO_FRAMES_PER_DESC 8 Please set ISO_FRAMES_PER_DESC to 50 and hardcode MAX_ISO_BUFS to 2. That will work on all USB host controllers. # # I recommend using the latest sources: # svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b # # The following commands will # install the driver on FreeBSD: # cd i4b/trunk/i4b/FreeBSD.usb make S=../src package make install --HPS