Re: no parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Johannes Erdfelt wrote:

On Wed, Oct 16, 2002, Bob Lockie <bjlockie@xxxxxxxxx> wrote:
The SANE people don't know.
How is the V4L driver able to detect which USB devices are video devices?
The SANE driver for a USB scanner requires the vendor and product ID as parameters.

insmod scanner vendor=0x06bd product=0x208f

This is a generic driver. It could as easily use the same table the
other USB drivers use and not require the command line options.

insmod videodev
insmod ov511

This driver only supports one device so it knows the vendor/product of
all of the hardware it is compatible with and sets up the appropriate
table with that list.

So I'm lucky my vendor/product IDs are known.
Is the vendor ID in /usr/include/linux/videodev.h and the product ID is in the ov511 driver?

#define VID_HARDWARE_OV511      27

----------------------------------------
From Mozilla and GNU/Linux






[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux