Webcam
    Bruce R. Montague 
    brucem at mail.cruzio.com
       
    Tue Apr 13 08:51:20 PDT 2004
    
    
  
 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
    
    
More information about the freebsd-hardware
mailing list