From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 24 06:45:59 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FDC21065670 for ; Wed, 24 Sep 2008 06:45:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swipnet.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id 7C3898FC17 for ; Wed, 24 Sep 2008 06:45:58 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=RiniYgZkosEA:10 a=itqP1_09wHUA:10 a=uUmtgKHQwvA07F2yBopI6A==:17 a=6I5d2MoRAAAA:8 a=FP58Ms26AAAA:8 a=htvQk_t2oNVnaDyH5-wA:9 a=bTgxZnCg9eX3Fn_P4QgA:7 a=0go1-coRhTuXUeoJsTJ4m31mY2MA:4 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [62.113.135.118] (account mc467741@c2i.net [62.113.135.118] verified) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 915582172; Wed, 24 Sep 2008 08:45:56 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, frtzkatz@yahoo.com Date: Wed, 24 Sep 2008 08:47:24 +0200 User-Agent: KMail/1.9.7 References: <949626.72396.qm@web63005.mail.re1.yahoo.com> In-Reply-To: <949626.72396.qm@web63005.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809240847.27194.hselasky@c2i.net> Cc: intron@intron.ac Subject: Re: Which Userland Interface for USB Video Class Driver? 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: Wed, 24 Sep 2008 06:45:59 -0000 On Tuesday 23 September 2008, Fritz Katz wrote: > On Monday, September 22, 2008 5:33 AM, Intron wrote: > > I would write/port a driver for USB video class for FreeBSD's > > new USB stack (usb2). OpenBSD and NetBSD both has had their > > own implementations for the device class as some people referred > > to recently. But which userland interface, bktr(4) or V4L2, should > > I use for the driver? > > We've only got two choices: > -- bktr is dead, > -- and V4L2 doesn't exist. > > bktr is a dead end. The Brooktree company no longer exists. > Conexant stopped making bktr chips years ago. > It only supports analog -- analog is a dead end too. > > Instead, look at Jason Harmening's work on cx88 support: > > http://lists.freebsd.org/pipermail/freebsd-multimedia/2008-September/009116 >.html > > ... that's the future. > > V4L2 has a well defined interface, and numerous applications > already support it. It's not tied to any particular hardware, > company, or chip so it's not going to die like bktr did. > > IMHO, V4L2 should be the future for BSDs as well. > > Implementing a V4L2-IOCTL interface would be a moderately difficult > but very rewarding project. Hi, Maybe you will find the following file useful: http://perforce.freebsd.org/fileLogView.cgi?FSPC=//depot/projects/usb/src/sys/sys/videodev.h Regarding porting, there is not much you need to do. Simply make sure that you handle the IOCTLs directly in the video driver. --HPS > > > I have noticed that Julian has done some work for V4L2: > > http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/user/julian/j >ulian%5fv4l/sys/dev/video/framework&HIDEDEL=NO > > > But I wonder how soon Julian's code can be committed into > > the main source tree. I wouldn't see the driver sleeps outside > > the main source tree. > > Looks like no activity in that tree since 2006/08/24 -- I don't see it > being committed anytime soon. > > I've started a project to bring V4L2 to BSDs here: > http://video4bsd.sourceforge.net/ > > Cheers, > -- Fritz Katz. > > > > > > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to > "freebsd-multimedia-unsubscribe@freebsd.org"