Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2004 07:45:04 -0700 (PDT)
From:      "Bruce R. Montague" <brucem@mail.cruzio.com>
To:        freebsd-hardware@freebsd.org
Cc:        will@surfingsc.com
Subject:   Re: Webcam
Message-ID:  <200404131445.i3DEj4fv000311@mail.cruzio.com>

next in thread | raw e-mail | index | archive | help


 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404131445.i3DEj4fv000311>