Web lists-archives.com

Re: [Spca50x-devs] Would 0C45:613A work?




Hello Jean-Francois, thanks for your answer.

I hope this reaches the right thread and don't create a new one, because I didn't received the digest and I'm blind writing this. I'm sorry if that happens.

Attached is the datasheet for OV7648 I told you before. I hope anyone find it useful.

Well, I've patched gspca/sonixj.c from 2.6.27.4 and disabled sn9c102 like you said, then plugged the webcam
and this is what dmesg output:

[   79.748048] usb 2-1: new full speed USB device using uhci_hcd and address 2
[   79.909305] usb 2-1: configuration #1 chosen from 1 choice
[   79.915876] usb 2-1: New USB device found, idVendor=0c45, idProduct=613a
[   79.917467] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   79.919014] usb 2-1: Product: USB camera
[   80.028256] Linux video capture interface: v2.00
[   80.090348] gspca: main v2.2.0 registered
[   80.100878] gspca: probing 0c45:613a
[   80.107261] sonixj: Sonix chip id: 12
[   80.111358] gspca: probe ok
[   80.112920] usbcore: registered new interface driver sonixj
[   80.114545] sonixj: registered

lsmod | grep gspca output:

gspca_sonixj           14336  0
gspca_main             17792  1 gspca_sonixj
videodev               29184  1 gspca_main
usbcore               118420  5 gspca_sonixj,gspca_main,uhci_hcd,ehci_hcd

ls -l /dev/video* output :

crw-rw---- 1 root video 81, 0 nov  6 22:39 /dev/video0

then tried some apps..
From console, Cheese complains about an empty stream.. and keeps showing the default color bars for video.
Ekiga detects "USB Camera" for input devide under V4L, but can't open the device.
aMSN just crashes when try to open the configuration window for the webcam.

Is it anything else do you want me to try from here? Some debug info you want to dig in, just tell me.

By the way, 2.6.27 kernel still includes sn9c102 version 1.47pre49 which actually doesn't support OV7648. Only sn9c102 version 1.48 support this bridge+sensor although I can't compile since 2.6.26, but anyway I will put my effort on gspca driver.

Saludos!
Pablo.




From: Jean-Francois Moine <moinejf@xxxxx> - 2008-11-06 08:13

Attachments: sonixj.patch     

On Thu, 2008-11-06 at 01:45 -0300, Pablo da Palma wrote:
> Hello,

Hello Pablo,

> I'm the owner of a Sonix/Microdia webcam:
> USBID 0C45:613A
> Bridge SN9C120
> Image sensor OV7648
>
> I've seen here http://mxhaard.free.fr/spca5xx.html that spca50x and
[snip]

The driver gspca v1 is not maintained anymore. You should switch to the
gspca v2 which is included in the kernel 2.6.27.

> I'm wondering if this project would add support for this webcam soon.
> I'm kinda newbie and don't have any skills for developement, but I
> would like to help and get this webcam working. I've got the datasheet
> for OV7648 sensor (22 pages, rev1.2, 20/Feb/2003) with it's registers
> description, if it's useful for anyone, just tell me.

I'd be glad to get this document.

> I've used to get it working with sn9c1xx-1.48 driver from
> http://www.linux-projects.org for 2.6.22 and 2.6.24 kernel... but now can't
> compile that thing for 2.6.26 or 2.6.27 kernel.

Your webcam may work with the driver sn9c102 which is included in the
kernel 2.6.27, but also with gspca v2 thanks to the little patch I
attached to this mail.

Take care in kernel generation: if you generate the driver sn9c102,
gspca will not handle your webcam. You should disable sn9c102 and enable
gspca + sonixj (plus aplying the patch) for it _may_ work.

Cheers.

--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/

Attachment: OV7648.pdf
Description: Adobe PDF document

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs