[vox-tech] QuickCam Express success! :)

Micah Cowan vox-tech@lists.lugod.org
Fri, 7 Dec 2001 10:53:23 -0800


On Fri, Dec 07, 2001 at 12:59:14AM -0800, Mark K. Kim wrote:
Keywords: QuickCam Express, STV0602, xawtv, digital camera, webcam, getting unsupported hardware working
> 
> So today, I decided to try some other things.  I tried poking around the
> mod_quickcam source.  I noticed the code checks the vendor and product ID
> codes so I compared them with the values returned by `usbview`....  It
> turned out the product ID wasn't correct (the code had 840, but usbview
> reports 870).  I modified the code, with some caution.
> 
> Note: If the product ID is different, then the chances are I have a
> different model that won't work with the mod_quickcam module... but
> hopefully they'll be similar in design and hopefully I'll only need to
> tweak mod_quickcam only a little to get it to work.
> 
> But the modification didn't do anything, so I put some "printk(...)"
> statements to figure out where the code was going and where it wasn't
> (printk prints statements in /var/log/messages).  It turned out there was
> another place where 840 was hard-coded, so I changed that to 870 as well.

Yet more proof that magic numbers are pure evil.

Micah