[Bug 538793] [NEW] [karmic] Set of shutter speed is broken in pwc driver

acss alexandre_css at yahoo.com.br
Sun Mar 14 19:32:40 UTC 2010


Public bug reported:

Hello,

I have 2 SPC-900NC Philips webcams conected two my PC (see lsub output bellow) and recently I've been trying to set the shutter speed using 'setpwc -s XXXX -d /dev/videoY', but it always caused an error 'ERROR VIDIOCPWCSSHUTTER: Broken pipe' and actually didn't set the shutter speed.
I investigated setpwc source code and didn't find anything wrong, so I got the linux source code and checked the pwc driver. I found an error that could result in an uninitilized value passed to the usb interface and what seemed to be a wrong sizeof use, I adjusted the code, generated a custom kernel and now I'm able to correctly set camera's shutter speed.
I'm submitting a patch for pwc/pwc-ctrl.c, so you can check.

Please check, and if possible, apply this, or something similar, to the
next kernel release.

Thanks!

My system data follows:

'uname -a' output
Linux amtvcjca 2.6.31-20-generic #57 SMP Sat Mar 13 20:00:18 BRT 2010 i686 GNU/Linux

'cat /proc/version_signature' output
Ubuntu 2.6.31-20.57-generic

'lspci' output
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
03:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)

'lsusb' output
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 004: ID 0471:0329 Philips SPC 900NC PC Camera / ORITE CCD Webcam(PC370R)
Bus 004 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 004: ID 0471:0329 Philips SPC 900NC PC Camera / ORITE CCD Webcam(PC370R)
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

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

-- 
[karmic] Set of shutter speed is broken in pwc driver
https://bugs.launchpad.net/bugs/538793
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list