These test patterns can be generated when the gspca_pac7302 driver is built with CONFIG_VIDEO_ADV_DEBUG=y. First start streaming e.g. with cheese then execute "v4l2-dbg --set-register=0x72 0x01" for value 0x01.

+

These test patterns can be generated when the gspca_pac7302 driver is built with CONFIG_VIDEO_ADV_DEBUG=y. First start streaming e.g. with cheese then execute "v4l2-dbg --set-register=0x72 0x01" for value 0x01. These test patterns were generated using [http://labtec.com/index.cfm/gear/details/EUR/EN,crid=30,contentid=761 Labtec Webcam 2200] hardware.

In the User's Manual, page 12 there is a detailed picture settings panel which can adjust the different controls.

The webcam driver may also support the following devices with only a little modification. The webcam drivers for Windows installs the pac7302.sys file. It is possible to download the driver and install it under Linux using wine. If this driver file is installed then we know that the webcam is based on the PixArt PAC7301/PAC7302. Then it is necesary to check the pac7302.inf file to find out the USB Vendor ID and USB Device ID for a specific webcam. The following table summarizes the devices identified with this method.

Making it Work

Firmware

No firmware is necessary to use this device.

Drivers

The gspca_pac7302 driver was separated from the gspca_pac7311 with the commit 1408b8472910e894b290205b4baed5b14b8f45af.
If you have a kernel version 2.6.32 or before then use gspca_pac7311 instead of gspca_pac7302.

The support for snapshot button is available since 28 Jan 2010 in one of the repositories. The patch was merged as commit aed6f1b5fe4e95cf8a9fc149e25041aa8cc7c78a to the mailine and it is included in Linux kernel starting with the stable release 2.6.37, released on 4 Jan 2011.

Sample Kernel Output

This is the kernel output when the Labtec Webcam 2200 is plugged in. You may recognise the pac7302 driver and the snd-usb-audio driver attaching themselves to the device.

Remote Control Support

Not applicable.

Programming reference

Note: this chapter is based on the Linux gspca_pac7302 driver and on trial-and error. Use information here on your risk.

The PAC7301/PAC7302 can be controlled through registers. The registers are grouped to pages of 256 registers. The registers can be written by sending an USB control message to the device. The value parameter of usb_control_msg() is always zero; the index parameter specifies the offset within a page; the data and length parameters specify the register content to be written.

The different register pages can be switched by writing the new page value to offset 255 of any page.

These test patterns can be generated when the gspca_pac7302 driver is built with CONFIG_VIDEO_ADV_DEBUG=y. First start streaming e.g. with cheese then execute "v4l2-dbg --set-register=0x72 0x01" for value 0x01. These test patterns were generated using Labtec Webcam 2200 hardware.