From owner-freebsd-hardware@FreeBSD.ORG Tue Apr 13 08:51:20 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0396016A4CF for ; Tue, 13 Apr 2004 08:51:20 -0700 (PDT) Received: from cruzio.com (dsl3-63-249-85-132.cruzio.com [63.249.85.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C56443D67 for ; Tue, 13 Apr 2004 08:51:19 -0700 (PDT) (envelope-from brucem@mail.cruzio.com) Received: from mail.cruzio.com (localhost [127.0.0.1]) by cruzio.com (8.12.10/8.12.10) with ESMTP id i3DEj4ho000312; Tue, 13 Apr 2004 07:45:04 -0700 (PDT) (envelope-from brucem@mail.cruzio.com) Received: (from brucem@localhost) by mail.cruzio.com (8.12.10/8.12.10/Submit) id i3DEj4fv000311; Tue, 13 Apr 2004 07:45:04 -0700 (PDT) (envelope-from brucem) Date: Tue, 13 Apr 2004 07:45:04 -0700 (PDT) From: "Bruce R. Montague" Message-Id: <200404131445.i3DEj4fv000311@mail.cruzio.com> To: freebsd-hardware@freebsd.org cc: ohmer@epita.info cc: will@surfingsc.com Subject: Re: Webcam X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2004 15:51:20 -0000 Hi, re: > has anyone succeeded in using a webcam under freebsd ? > any comments on any webcam and freebsd version ... Yes, I added fixed isochronous support for the ohci usb so that a friend could run "vid" using an OV511-based D-Link DSB-C100 camera. He is hacking around with a webcam as part of his chicken coop and greenhouse controller. I believe he was running one of the 5.x release candidates. I think he has the details at his site where you can usually see his webcam in operation: http://chicks.surfingsc.com/ vid also needs at least one minor hack to comment out a check that just gets in the way, I think this is the needed patch to "vid.c": -/*HACK THE THING +#if 0 +/* HACK */ if(ov511_i2c_read(fd, 0x00) < 0) exit(1); -HACK END*/ +#endif /* set YUV 4:2:0 format, Y channel LPF */ if(ov511_reg_write(fd, OV511_REG_M400, 0x01) < 0) @@ -447,12 +461,16 @@ if(ov511_reg_write(fd, OV511_REG_CE_EN, 0x0) < 0) exit(1); -/* HACK THE THING - * This returns 0 if we have an OV7620 sensor * +#if 0 +/* HACK */ + /* This returns 0 if we have an OV7620 sensor */ if((is20 = ov511_i2c_read(fd, OV7610_REG_COMI)) < 0) exit(1); -HACK END*/ is20 = !is20; +#else + is20 = 0; +#endif + It appears very few webcams have readily available doc. That was what drove the use of the OV511, which may be hard to find. - bruce