Public bug reported:

Hi all,

Problem:
The LED on this webcam is always turned on when connected to USB, unless some 
application uses it - the behavior that is opposite to what is expected.

It was tested on Ubuntu 9.10 32 bit, kernel 2.6.31-19-generic.
lsusb shows the webcam information as follows:
ID 093a:2460 Pixart Imaging, Inc. Q-TEC WEBCAM 100

Suggested solution:
The driver for this camera is gspca_pac207 (located at 
/lib/modules/2.6.31-19-generic/kernel/drivers/media/video/gspca).
In the driver source file pac207.c it can be seen that the bit 1 of the 
register at 0x41 controls the LED. Looks like it was assumed that '0' at this 
bit turns the light off, when actually '1' does that. After I've changed the 
value of this register to the opposite, the re-compiled driver works correctly 
and the LED is on only when the camera is in use.
I've attached the modified pac207.c. The diff of the changed file vs. original 
is below:

272c272
<       pac207_write_reg(gspca_dev, 0x41, 0x02);
---
>       pac207_write_reg(gspca_dev, 0x41, 0x00);
308c308
<       mode = 0x00; /* Image Format (Bit 0), LED (1), Compr. test mode (2) */
---
>       mode = 0x02; /* Image Format (Bit 0), LED (1), Compr. test mode (2) */
331c331
<       pac207_write_reg(gspca_dev, 0x41, 0x02); /* Turn off LED */
---
>       pac207_write_reg(gspca_dev, 0x41, 0x00); /* Turn of LED */

** Affects: gspca (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Webcam 093a:2460 (Pixart PAC207BCA) - inverted LED logic 
https://bugs.launchpad.net/bugs/525959
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to