← Back to team overview

kernel-packages team mailing list archive

[Bug 525959] Re: 093a:2460 Webcam (Pixart PAC207BCA) - inverted LED logic

 

Yuri Glushkov, thank you for taking the time to report this bug and
helping to make Ubuntu better. However, I am closing it because as per
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/525959/comments/35
the bug has been fixed in the latest development version of Ubuntu -
Trusty Tahr.

This is a significant bug in Ubuntu. If you need a fix for the bug in
previous versions of Ubuntu, please perform as much as possible of the
SRU Procedure [1] to bring the need to a developer's attention.

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

** Changed in: linux (Ubuntu)
       Status: Incomplete => Fix Released

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/525959

Title:
  093a:2460 Webcam (Pixart PAC207BCA) - inverted LED logic

Status in “linux” package in Ubuntu:
  Fix Released

Bug description:
  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 change:
  pac207_write_reg(gspca_dev, 0x41, 0x00);

  to:
  pac207_write_reg(gspca_dev, 0x41, 0x02);

  308c308 change:
  mode = 0x02; /* Image Format (Bit 0), LED (1), Compr. test mode (2) */

  to:
  mode = 0x00; /* Image Format (Bit 0), LED (1), Compr. test mode (2) */

  
  331c331 change:
  pac207_write_reg(gspca_dev, 0x41, 0x00); /* Turn of LED */

  to:
  pac207_write_reg(gspca_dev, 0x41, 0x02); /* Turn off LED */

  
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
  ApportVersion: 1.23-0ubuntu4
  Architecture: i386
  ArecordDevices:
   **** List of CAPTURE Hardware Devices ****
   card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  yuri       1733 F.... pulseaudio
   /dev/snd/controlC0:  yuri       1733 F.... pulseaudio
  CRDA: Error: [Errno 2] No such file or directory
  Card0.Amixer.info:
   Card hw:0 'PCH'/'HDA Intel PCH at 0xfaa00000 irq 52'
     Mixer name	: 'Intel CougarPoint HDMI'
     Components	: 'HDA:10ec0892,1043841b,00100302 HDA:80862805,80862805,00100000'
     Controls      : 39
     Simple ctrls  : 21
  Card1.Amixer.info:
   Card hw:1 'NVidia'/'HDA NVidia at 0xfa080000 irq 17'
     Mixer name	: 'Nvidia GPU 15 HDMI/DP'
     Components	: 'HDA:10de0015,10de0101,00100100'
     Controls      : 16
     Simple ctrls  : 4
  DistroRelease: Ubuntu 11.10
  HibernationDevice: RESUME=UUID=de1eeb67-9373-4213-9118-ae26c42861ed
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
  IwConfig:
   lo        no wireless extensions.

   eth2      no wireless extensions.
  MachineType: System manufacturer System Product Name
  NonfreeKernelModules: nvidia
  Package: linux (not installed)
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-26-generic-pae root=UUID=8e0e5216-29f9-432a-9298-ec75abcd3f07 ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 3.0.0-26.43-generic-pae 3.0.43
  RelatedPackageVersions:
   linux-restricted-modules-3.0.0-26-generic-pae N/A
   linux-backports-modules-3.0.0-26-generic-pae  N/A
   linux-firmware                                1.60.1
  RfKill:

  StagingDrivers: mei
  Tags:  oneiric running-unity staging
  Uname: Linux 3.0.0-26-generic-pae i686
  UpgradeStatus: Upgraded to oneiric on 2011-10-30 (353 days ago)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
  dmi.bios.date: 04/01/2011
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 1002
  dmi.board.asset.tag: To be filled by O.E.M.
  dmi.board.name: P8H67-M PRO
  dmi.board.vendor: ASUSTeK Computer INC.
  dmi.board.version: Rev 1.xx
  dmi.chassis.asset.tag: Asset-1234567890
  dmi.chassis.type: 3
  dmi.chassis.vendor: Chassis Manufacture
  dmi.chassis.version: Chassis Version
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1002:bd04/01/2011:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP8H67-MPRO:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
  dmi.product.name: System Product Name
  dmi.product.version: System Version
  dmi.sys.vendor: System manufacturer

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/525959/+subscriptions