Webcam driver not working: drivers/media/video/gspca/ov519.c device 05a9:4519

Message ID AANLkTikZPmJWebfpU2yLpvMygqhzfAKZYL7rTCG45K3b@mail.gmail.com (mailing list archive)
State Superseded, archived
Headers

Commit Message

Anca Emanuel Oct. 31, 2010, 1:16 p.m. UTC
  After this patch,



I get:
[  182.680032] usb 8-1: new full speed USB device using uhci_hcd and address 3
[  182.875331] gspca: probing 05a9:4519
[  183.064309] ov519: I2C synced in 0 attempt(s)
[  183.064314] ov519: starting OV7xx0 configuration
[  183.076312] ov519: Sensor is an OV7660
[  184.316950] input: ov519 as
/devices/pci0000:00/0000:00:1d.3/usb8/8-1/input/input6
[  184.317142] gspca: video0 created
[  184.334667] gspca: [v4l_id] open
[  184.334673] gspca: open done
[  184.334741] gspca: [v4l_id] close
[  184.334744] gspca: close done

But only a green screen in Cheese. Logs attached.
  

Comments

Jean-Francois Moine Nov. 1, 2010, 7:15 p.m. UTC | #1
On Sun, 31 Oct 2010 15:16:40 +0200
Anca Emanuel <anca.emanuel@gmail.com> wrote:

> After this patch,
	[snip]
> I get:
> [  182.680032] usb 8-1: new full speed USB device using uhci_hcd and
> address 3 [  182.875331] gspca: probing 05a9:4519
> [  183.064309] ov519: I2C synced in 0 attempt(s)
> [  183.064314] ov519: starting OV7xx0 configuration
> [  183.076312] ov519: Sensor is an OV7660
	[snip]
> But only a green screen in Cheese. Logs attached.

Hi Emanuel,

The sensor ov7660 has not the same registers as the ov7670, so, your
webcam could not work.

To make it work, I need a USB trace done with ms-windows. May you do it?

In a first step, I need the webcam connection and no more than one
second of streaming at the maximum resolution.

Please, use a sniffer which creates text files like sniffbin.

Best regards.
  
Anca Emanuel Nov. 1, 2010, 8:02 p.m. UTC | #2
> To make it work, I need a USB trace done with ms-windows. May you do it?
>
> In a first step, I need the webcam connection and no more than one
> second of streaming at the maximum resolution.
>
> Please, use a sniffer which creates text files like sniffbin.
>
> Best regards.

Saved in txt and csv formats.

Thanks !
  
Jean-Francois Moine Nov. 1, 2010, 8:31 p.m. UTC | #3
On Mon, 1 Nov 2010 22:02:49 +0200
Anca Emanuel <anca.emanuel@gmail.com> wrote:

> Saved in txt and csv formats.

I did not know this sniffer. The trace is compact, but, alas, the
'Request' and 'Value' are lacking... Is it possible to see them?
  
Anca Emanuel Nov. 1, 2010, 9:27 p.m. UTC | #4
On Mon, Nov 1, 2010 at 10:31 PM, Jean-Francois Moine <moinejf@free.fr> wrote:
> On Mon, 1 Nov 2010 22:02:49 +0200
> Anca Emanuel <anca.emanuel@gmail.com> wrote:
>
>> Saved in txt and csv formats.
>
> I did not know this sniffer. The trace is compact, but, alas, the
> 'Request' and 'Value' are lacking... Is it possible to see them?

I am new to this. Is there a sniffbin for windows ?
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  
Anca Emanuel Nov. 1, 2010, 10:23 p.m. UTC | #5
On Mon, Nov 1, 2010 at 10:31 PM, Jean-Francois Moine <moinejf@free.fr> wrote:
> On Mon, 1 Nov 2010 22:02:49 +0200
> Anca Emanuel <anca.emanuel@gmail.com> wrote:
>
>> Saved in txt and csv formats.
>
> I did not know this sniffer. The trace is compact, but, alas, the
> 'Request' and 'Value' are lacking... Is it possible to see them?

This file is stream.ulz compressed
http://rapidshare.com/files/428384860/stream.zip

To see the data, you need: http://www.usblyzer.com/download.htm
And a windows machine.
Sorry for the trouble.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  
Jean-Francois Moine Nov. 2, 2010, 8:26 a.m. UTC | #6
On Tue, 2 Nov 2010 00:23:23 +0200
Anca Emanuel <anca.emanuel@gmail.com> wrote:

> This file is stream.ulz compressed
> http://rapidshare.com/files/428384860/stream.zip
> 
> To see the data, you need: http://www.usblyzer.com/download.htm
> And a windows machine.
> Sorry for the trouble.

I got the ms-windows program, and I can see the lacking information,
but only on clicking on each exchange. It could take one month to
move all information into a readable format!

May you redo traces with one of the free SniffUSB's? You may find links
in:

https://groups.google.com/group/microdia/web/usb-sniffing-on-windows

Thanks.
  
Anca Emanuel Nov. 2, 2010, 10:33 a.m. UTC | #7
On Tue, Nov 2, 2010 at 10:26 AM, Jean-Francois Moine <moinejf@free.fr> wrote:
> On Tue, 2 Nov 2010 00:23:23 +0200
> Anca Emanuel <anca.emanuel@gmail.com> wrote:
>
>> This file is stream.ulz compressed
>> http://rapidshare.com/files/428384860/stream.zip
>>
>> To see the data, you need: http://www.usblyzer.com/download.htm
>> And a windows machine.
>> Sorry for the trouble.
>
> I got the ms-windows program, and I can see the lacking information,
> but only on clicking on each exchange. It could take one month to
> move all information into a readable format!
>
> May you redo traces with one of the free SniffUSB's? You may find links
> in:
>
> https://groups.google.com/group/microdia/web/usb-sniffing-on-windows
>
> Thanks.

I am using http://www.pcausa.com/Utilities/UsbSnoop/SniffUSB-x86-2.0.0006.zip
now.

The data:
http://rapidshare.com/files/428460107/log4.zip

please let me know if this is what you ask for.

Thank you.

P.S.: the file is ... 69MB uncompressed.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  
Jean-Francois Moine Nov. 2, 2010, 7:18 p.m. UTC | #8
On Tue, 2 Nov 2010 12:33:10 +0200
Anca Emanuel <anca.emanuel@gmail.com> wrote:

> I am using
> http://www.pcausa.com/Utilities/UsbSnoop/SniffUSB-x86-2.0.0006.zip
> now.
> 
> The data:
> http://rapidshare.com/files/428460107/log4.zip
> 
> please let me know if this is what you ask for.

Hi,

Thanks, that's what I wanted. Looking at the trace, I saw that the
capture stopped and restarted 3 or 4 times. May you tell me what
occured?

Anyway, I will try to code your sensor tomorrow. I'll e-mail you when
done.

Best regards.
  
Anca Emanuel Nov. 2, 2010, 7:25 p.m. UTC | #9
> Hi,
>
> Thanks, that's what I wanted. Looking at the trace, I saw that the
> capture stopped and restarted 3 or 4 times. May you tell me what
> occured?

Just open and close some capture programs.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  
Anca Emanuel Nov. 5, 2010, 6:20 a.m. UTC | #10
I found the datasheet for OV7660:
http://www.datasheetarchive.com/OV7660-datasheet.html

http://www.datasheetarchive.com/pdf-datasheets/Datasheets-25/DSA-482031.html
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  

Patch

diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519
index 6cf6855..47812d1 100644
--- a/drivers/media/video/gspca/ov519.c
+++ b/drivers/media/video/gspca/ov519.c
@@ -2561,6 +2561,10 @@  static int ov7xx0_configure(struct sd *sd)
                                PDEBUG(D_PROBE, "Sensor is an OV7648");
                                sd->sensor = SEN_OV7648;
                                break;
+                       case 0x60:
+                               PDEBUG(D_PROBE, "Sensor is an OV7660");
+                               sd->sensor = SEN_OV7670;
+                               break;
                        default:
                                PDEBUG(D_PROBE, "Unknown sensor: 0x76%x", low);
                                return -1;