Labtec Webcam 1200 not supported, patch incl.

Bug #182329 reported by Ingo Breßler
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned
linux-ubuntu-modules-2.6.24 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: linux-ubuntu-modules-2.6.22-14-generic

The webcam is recognized as usb device (syslog), but thats all, nothing loaded beyond this.

$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 093a:2464 Pixart Imaging, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 046d:c040 Logitech, Inc.
Bus 001 Device 001: ID 0000:0000

(the logitech device is my mouse and/or keyboard ...)

The ouput of 'lsusb -s 2:2 -v' can be found here:
http://www.wollsau.de/gspca/labtec1200_lsusb.txt.gz

Based on this source package [linux-ubuntu-modules-2.6.22_2.6.22-14.37.tar.gz]:
http://packages.ubuntu.com/gutsy/source/linux-ubuntu-modules-2.6.22
.. I made a patch which adds the corresponding device and vendor IDs to gspca_core.c
(But gspca is still not loaded if the cam is plugged in, I don't know where this can be fixed.)

http://www.wollsau.de/gspca/linux-ubuntu-modules-2.6.22_2.6.22-14.37_Labtec1200.patch.gz

--- linux-ubuntu-modules-2.6.22-2.6.22/ubuntu/media/gspcav1/gspca_core.c 2007-01-10 22:22:01.000000000 +0100
+++ linux-ubuntu-modules-2.6.22-2.6.22_mod/ubuntu/media/gspcav1/gspca_core.c 2008-01-12 14:22:01.000000000 +0100
@@ -365,6 +365,7 @@
  PcCam350,
  PAC207,
  QtecWb100,
+ Labtec1200,
  GeniusGe111,
  Vimicro303b,
  CyberpixS550V,
@@ -547,6 +548,7 @@
  {PcCam350, "PC-Cam350"},
  {PAC207, "Pixart PAC207-BCA"},
  {QtecWb100, "Qtec Webcam 100"},
+ {Labtec1200, "Labtec Webcam 1200"},
  {GeniusGe111, "Genius VideoCam Ge111"},
  {Vimicro303b, "Generic Vimicro 303b"},
  {CyberpixS550V, "Mercury Cyberpix S550V"},
@@ -731,6 +733,7 @@
  {USB_DEVICE(0x093a, 0x2468)}, /* PAC207 */
  {USB_DEVICE(0x093a, 0x2471)}, /* PAC207 Genius VideoCam ge111 */
  {USB_DEVICE(0x093a, 0x2460)}, /* PAC207 Qtec Webcam 100 */
+ {USB_DEVICE(0x093a, 0x2464)}, /* Labtec Webcam 1200 */
  {USB_DEVICE(0x0733, 0x3281)}, /* Cyberpix S550V */
  {USB_DEVICE(0x093a, 0x2470)}, /* Genius GF112 */
  {USB_DEVICE(0x046d, 0x08a6)}, /* Logitech QCim */
@@ -3856,6 +3859,11 @@
    spca50x->bridge = BRIDGE_PAC207;
    spca50x->sensor = SENSOR_PAC207;
    break;
+ case 0x2464:
+ spca50x->desc = Labtec1200;
+ spca50x->bridge = BRIDGE_PAC207;
+ spca50x->sensor = SENSOR_PAC207;
+ break;
   case 0x2468:
    spca50x->desc = PAC207;
    spca50x->bridge = BRIDGE_PAC207;

I am not sure if this is everything which is needed (to make this 'round') but the cam works this way.
In camorama with inverted colors (fixed by force_rgb=1 module option) using 176x144 at ~20fps. At 352x288 its slower (~9fps).

I'm also unsure if the rather slow speed in general is common to all those 'ultra cheap' cams or if this can be tuned inside the driver ...

ingo.

Revision history for this message
Ingo Breßler (ibressler) wrote :

sorry, i'm new to launchpad, I didn't know about the attachment form ...

Revision history for this message
Ingo Breßler (ibressler) wrote :

forgot to mention that the frame-rate improves with autoexposure off (autoexpo=0 module option), just because I lost some words about speed above

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: New → Triaged
Changed in linux-ubuntu-modules-2.6.24:
assignee: ubuntu-kernel-team → timg-tpi
status: Triaged → In Progress
Revision history for this message
Ingo Breßler (ibressler) wrote :

There is one issue left, I have with this cam:
In the images is a 2 pixel wide column on the left side which seems to be flipped over from the right side of the image. I attached an image snapped in camorama 0.19 and using the module options autoexpo=0 force_rgb=1.
I get this kind of 'border' also with my own simple v4l app and force_rgb=0 using VIDEO_PALETTE_RGB24 or VIDEO_PALETTE_YUV420P.

I experimented with the start positions inside bayer_decode() and pixart_decompress(), but no success so far ..

Revision history for this message
Tim Gardner (timg-tpi) wrote :

Patch applied.

Changed in linux-ubuntu-modules-2.6.24:
assignee: timg-tpi → nobody
milestone: none → hardy-alpha-5
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-ubuntu-modules-2.6.24 - 2.6.24-8.13

---------------
linux-ubuntu-modules-2.6.24 (2.6.24-8.13) hardy; urgency=low

  [Chuck Short]

  * Update drbd to 8.0.11

  [Soren Hansen]

  * Update open-vm-tools to 2008.01.23-74039

  [Stefan Bader]

  * Add tp_smapi support.

  [Tim Gardner]

  * ALSA 1.0.16 (released version)
  * Fix powerpc64-smp FTBS by disabling ALSA.
  * Disabled ia64 CONFIG_PRISM2_USB to fix FTBS.
  * Add Labtec Webcam 1200 support
    - LP: #182329
  * Restore support for special buttons on Fujitsu tablets
    - LP: #181889
  * Added stk11xx USB video driver
  * Quirk support for Fujitsu Siemens MS-7031 ac97 codec
    - LP: #176110

 -- Tim Gardner <email address hidden> Thu, 07 Feb 2008 18:43:14 -0700

Changed in linux-ubuntu-modules-2.6.24:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.