public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Kaiser <linux-dvb@kaiser-linux.li>
To: Tommy van der Vorst <tommy@mycms.nl>
Cc: Video 4 Linux <video4linux-list@redhat.com>
Subject: Re: Trust WB-1300N webcam
Date: Tue, 28 Oct 2008 09:29:36 +0100	[thread overview]
Message-ID: <4906CD70.1060402@kaiser-linux.li> (raw)
In-Reply-To: <001401c93855$9b263d80$d172b880$@nl>

Hello Tommy

I forward this mail to the v4l mail list because gspca V1 (spca5xx) is 
deprecated.

New, gspca V2 (v4l2 interface) is part of the official kernel tree, now. 
The newest source is included in the linuxtv project (www.linuxtv.org).

Jean-Francois, can you please pick up these changes?

Regards, Thomas

PS: Tommy, subscribe to the v4l mail list to get more infos about the 
progress with gspca v2.


Tommy van der Vorst wrote:
> Hi Michel, Thomas,
> 
>  
> 
> I tried to use the Trust WB-1300N webcam with the spca5xx drivers. The 
> device is not on the compatibility list, but is is based on the Pixart 
> PAC207 chip. Unfortunately, this webcam is not recognized by the driver 
> (it has USB ID 145f:013a, according to lsusb). When I read through the 
> source code, I realized that since the chip used is supported (Pixart 
> PAC207) and the chip is also the bridge itself, it might work if I 
> changed the USB vendor/device ID from another PAC207 device to my 
> device’s numbers. I edited a few lines in spca5xx.c to do that. That 
> didn’t work immediately, since the pac207 driver also seems to check 
> some kind of ‘id’ in the registers of the PAC207. The device was 
> recognized, but it didn’t work with any capture program (and would cause 
> errors to show up in dmesg). After disabling this check (which is 
> probably not the way it should be done…) I loaded the module and things 
> worked great! I now use it as a network camera (it’s connected to a 
> Linksys NSLU2, a small, ARM-based device).
> 
>  
> 
> My changes are below; I’m not such a hero with Linux source code so I 
> don’t know how to quickly create a patch, but it’s just a few changed 
> lines. It would be great if you could add these to the spca package, so 
> this is another cam to be supported!
> 
>  
> 
> Best regards,
> 
>  
> 
> Tommy van der Vorst.
> 
>  
> 
> *Pac207.h lines 137/138:*
> 
> // if (id[0] != 0x27 || id[1] != 0x00)
> 
> // return -ENODEV;
> 
>  
> 
> Probably change this to something sensible…
> 
>  
> 
> *In spca5xx.c function spcaDetectCamera:*
> 
> * *
> 
> *Add*
> 
> * *
> 
> case 0x145f:                       /* Trust */
> 
>                 switch(product) {
> 
>                                 case 0x013a:
> 
>                                                 spca50x->desc = PAC207;
> 
>                                                 spca50x->bridge = 
> BRIDGE_PAC207;
> 
>                                                 spca50x->sensor = 
> SENSOR_PAC207;
> 
>                                                 spca50x->cameratype = PGBRG;
> 
>                                                 
> memcpy(&spca50x->funct,&fpac207,sizeof(struct cam_operation));
> 
>                                                 break;
> 
>                                 }
> 
>                                 break;
> 
>                 }
> 
> }
> 
>  
> 
> Also add a USB_DEVICE with USB vendor ID 145f and product ID 013a.
> 

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

           reply	other threads:[~2008-10-28  8:29 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <001401c93855$9b263d80$d172b880$@nl>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4906CD70.1060402@kaiser-linux.li \
    --to=linux-dvb@kaiser-linux.li \
    --cc=tommy@mycms.nl \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox