All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug?] ov519 fails to handle Hercules Deluxe webcam
       [not found] <20120304223239.22117.54556.reportbug@deepthought>
@ 2012-03-05  0:38 ` Jonathan Nieder
  2012-03-05  9:21   ` Jean-Francois Moine
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Nieder @ 2012-03-05  0:38 UTC (permalink / raw)
  To: Skippy le Grand Gourou
  Cc: linux-media, linux-usb, Jean-Francois Moine, Hans de Goede

Hi,

Skippy le Grand Gourou wrote[1]:

> Hercules Deluxe USB webcam won't work, see the end of the kernel
> log.
[...]
> [521041.808976] gspca: probing 05a9:4519
> [521042.469094] ov519: I2C synced in 3 attempt(s)
> [521042.469097] ov519: starting OV7xx0 configuration
> [521042.469793] ov519: Unknown image sensor version: 2
> [521042.469795] ov519: Failed to configure OV7xx0
> [521042.469797] ov519: OV519 Config failed
> [521042.469807] ov519: probe of 3-1.4:1.0 failed with error -16
> [521042.469884] gspca: probing 05a9:4519
> [521467.885255] usbcore: deregistering interface driver ov519
> [521467.885278] ov519: deregistered
> [521467.900288] gspca: main deregistered
> [521809.376462] dialog[12612]: segfault at 0 ip b77c6125 sp bf8861b0 error 4 in libncursesw.so.5.7[b77b5000+43000]
> [524303.418813] usb 3-1.3: USB disconnect, address 9
[...]
> [528511.174900] usb 3-1.4: USB disconnect, address 10
> [528513.420812] usb 3-1.4: new full speed USB device using ehci_hcd and address 13
> [528513.515013] usb 3-1.4: New USB device found, idVendor=05a9, idProduct=4519
> [528513.515018] usb 3-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> [528513.515021] usb 3-1.4: Product: USB Camera
> [528513.515023] usb 3-1.4: Manufacturer: OmniVision Technologies, Inc.
> [528513.515116] usb 3-1.4: configuration #1 chosen from 1 choice
> [528513.524620] Linux video capture interface: v2.00
> [528513.526783] gspca: main v2.7.0 registered
> [528513.527299] gspca: probing 05a9:4519
> [528514.190995] ov519: I2C synced in 3 attempt(s)
> [528514.190998] ov519: starting OV7xx0 configuration
> [528514.192570] ov519: Sensor is an OV7610
> [528514.417110] ov519: probe of 3-1.4:1.0 failed with error -5
> [528514.417139] usbcore: registered new interface driver ov519
> [528514.417143] ov519: registered
[...]
> 00:1a.0 USB Controller [0c03]: Intel Corporation Cougar Point USB Enhanced Host Controller #2 [8086:1c2d] (rev 05) (prog-if 20 [EHCI])
>         Subsystem: ASUSTeK Computer Inc. Device [1043:844d]
[...]
> Bus 001 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
> Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
> Bus 003 Device 012: ID 9e88:9e8f  
> Bus 003 Device 013: ID 05a9:4519 OmniVision Technologies, Inc. Webcam Classic
> Bus 003 Device 005: ID 04a9:221c Canon, Inc. CanoScan LiDE 60
> Bus 003 Device 006: ID 046d:c50e Logitech, Inc. Cordless Mouse Receiver
[...]

Kernel is Debian 2.6.32-41, which is closely based on stable
2.6.32.54.  I don't see any obvious potential fixes in the diff
relative to linux-next.

Known problem?  Any hints for tracking this down?

Thanks,
Jonathan

[1] http://bugs.debian.org/662246

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [bug?] ov519 fails to handle Hercules Deluxe webcam
  2012-03-05  0:38 ` [bug?] ov519 fails to handle Hercules Deluxe webcam Jonathan Nieder
@ 2012-03-05  9:21   ` Jean-Francois Moine
  2012-03-05  9:34     ` Jonathan Nieder
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Francois Moine @ 2012-03-05  9:21 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: Skippy le Grand Gourou, linux-media, linux-usb

On Sun, 4 Mar 2012 18:38:01 -0600
Jonathan Nieder <jrnieder@gmail.com> wrote:

> Hi,
> 
> Skippy le Grand Gourou wrote[1]:
> 
> > Hercules Deluxe USB webcam won't work, see the end of the kernel
> > log.
> [...]
> > [521041.808976] gspca: probing 05a9:4519
> > [521042.469094] ov519: I2C synced in 3 attempt(s)
> > [521042.469097] ov519: starting OV7xx0 configuration
> > [521042.469793] ov519: Unknown image sensor version: 2
> > [521042.469795] ov519: Failed to configure OV7xx0
> > [521042.469797] ov519: OV519 Config failed
> > [521042.469807] ov519: probe of 3-1.4:1.0 failed with error -16
> > [521042.469884] gspca: probing 05a9:4519
> > [521467.885255] usbcore: deregistering interface driver ov519
> > [521467.885278] ov519: deregistered
> > [521467.900288] gspca: main deregistered
> > [521809.376462] dialog[12612]: segfault at 0 ip b77c6125 sp bf8861b0 error 4 in libncursesw.so.5.7[b77b5000+43000]
> > [524303.418813] usb 3-1.3: USB disconnect, address 9
> [...]
> > [528511.174900] usb 3-1.4: USB disconnect, address 10
> > [528513.420812] usb 3-1.4: new full speed USB device using ehci_hcd and address 13
> > [528513.515013] usb 3-1.4: New USB device found, idVendor=05a9, idProduct=4519
> > [528513.515018] usb 3-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> > [528513.515021] usb 3-1.4: Product: USB Camera
> > [528513.515023] usb 3-1.4: Manufacturer: OmniVision Technologies, Inc.
> > [528513.515116] usb 3-1.4: configuration #1 chosen from 1 choice
> > [528513.524620] Linux video capture interface: v2.00
> > [528513.526783] gspca: main v2.7.0 registered
> > [528513.527299] gspca: probing 05a9:4519
> > [528514.190995] ov519: I2C synced in 3 attempt(s)
> > [528514.190998] ov519: starting OV7xx0 configuration
> > [528514.192570] ov519: Sensor is an OV7610
> > [528514.417110] ov519: probe of 3-1.4:1.0 failed with error -5
> > [528514.417139] usbcore: registered new interface driver ov519
> > [528514.417143] ov519: registered
> [...]
> > 00:1a.0 USB Controller [0c03]: Intel Corporation Cougar Point USB Enhanced Host Controller #2 [8086:1c2d] (rev 05) (prog-if 20 [EHCI])
> >         Subsystem: ASUSTeK Computer Inc. Device [1043:844d]
> [...]
> > Bus 001 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
> > Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
> > Bus 003 Device 012: ID 9e88:9e8f  
> > Bus 003 Device 013: ID 05a9:4519 OmniVision Technologies, Inc. Webcam Classic
> > Bus 003 Device 005: ID 04a9:221c Canon, Inc. CanoScan LiDE 60
> > Bus 003 Device 006: ID 046d:c50e Logitech, Inc. Cordless Mouse Receiver
> [...]
> 
> Kernel is Debian 2.6.32-41, which is closely based on stable
> 2.6.32.54.  I don't see any obvious potential fixes in the diff
> relative to linux-next.
> 
> Known problem?  Any hints for tracking this down?
> 
> Thanks,
> Jonathan
> 
> [1] http://bugs.debian.org/662246

Hi Skippy and Jonathan,

The git commit b877a9a7fb0 (gspca - ov519: Fix sensor detection
problems) may have fix this problem.

To be sure, try the gspca test version from my web site.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [bug?] ov519 fails to handle Hercules Deluxe webcam
  2012-03-05  9:21   ` Jean-Francois Moine
@ 2012-03-05  9:34     ` Jonathan Nieder
  2012-03-05  9:55       ` Jean-Francois Moine
  2012-03-05 21:40       ` Skippy
  0 siblings, 2 replies; 6+ messages in thread
From: Jonathan Nieder @ 2012-03-05  9:34 UTC (permalink / raw)
  To: Jean-Francois Moine; +Cc: Skippy le Grand Gourou, linux-media, linux-usb

[-- Attachment #1: Type: text/plain, Size: 2091 bytes --]

Jean-Francois Moine wrote:
>> Skippy le Grand Gourou wrote[1]:

>>> Hercules Deluxe USB webcam won't work, see the end of the kernel
>>> log.
>> [...]
>>> [521041.808976] gspca: probing 05a9:4519
>>> [521042.469094] ov519: I2C synced in 3 attempt(s)
>>> [521042.469097] ov519: starting OV7xx0 configuration
>>> [521042.469793] ov519: Unknown image sensor version: 2
>>> [521042.469795] ov519: Failed to configure OV7xx0
[...]
>>> [528513.526783] gspca: main v2.7.0 registered
>>> [528513.527299] gspca: probing 05a9:4519
>>> [528514.190995] ov519: I2C synced in 3 attempt(s)
>>> [528514.190998] ov519: starting OV7xx0 configuration
>>> [528514.192570] ov519: Sensor is an OV7610
[...]
> The git commit b877a9a7fb0 (gspca - ov519: Fix sensor detection
> problems) may have fix this problem.

Oh!  Yep, the symptoms match well --- sorry I missed it.

> To be sure, try the gspca test version from my web site.

Skippy, assuming that works (and I expect it would), could you try the
attached patch against 2.6.32.y?  It works like this:

 0. Prerequisites:
	apt-get install git build-essential

 1. Get the kernel, if you don't already have it:
	git clone \
	 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

 2. Fetch point releases:
	cd linux
	git remote add -f stable \
	 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

 3. Try the 2.6.32.y branch:

	git checkout stable/linux-2.6.32.y
	cp /boot/config-$(uname -r) .config; # current configuration
	make localmodconfig; # optional: minimize configuration
	make; # optionally with -j<num> for parallel build
	fakeroot -u make deb-pkg
	dpkg -i ../<name of package>
	reboot

    "make localmodconfig" works by leaving out drivers whose modules are
    not currently loaded, so take care to make sure the gspca and ov519
    modules are built.  ("make nconfig" customizes the configuration.)

    Hopefully this kernel reproduces the bug.

 4. See if the patch helps:

	git am -3sc <path to patch>
	make; # maybe with -j4
	fakeroot -u make deb-pkg
	dpkg -i ../<name of package>
	reboot

Hopeful,
Jonathan

[-- Attachment #2: media-gspca-ov519-Fix-sensor-detection-problems.patch --]
[-- Type: text/plain, Size: 1288 bytes --]

From: Jean-François Moine <moinejf@free.fr>
Date: Sun, 3 Jul 2011 05:17:27 -0300
Subject: [media] gspca - ov519: Fix sensor detection problems

commit b877a9a7fb00d96bae4ab49c69f1be65b3e87e61 upstream.

The sensor of some webcams could not be detected due to timing problems
in sensor register reading. This patch adds bridge register readings
before sensor register reading.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
 drivers/media/video/gspca/ov519.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c
index e16557819782..7a31e432d038 100644
--- a/drivers/media/video/gspca/ov519.c
+++ b/drivers/media/video/gspca/ov519.c
@@ -1314,11 +1314,14 @@ static int ov518_i2c_r(struct sd *sd, __u8 reg)
 	rc = reg_w(sd, R518_I2C_CTL, 0x03);
 	if (rc < 0)
 		return rc;
+	reg_r8(sd, R518_I2C_CTL);
 
 	/* Initiate 2-byte read cycle */
 	rc = reg_w(sd, R518_I2C_CTL, 0x05);
 	if (rc < 0)
 		return rc;
+	reg_r8(sd, R518_I2C_CTL);
+
 	value = reg_r(sd, R51x_I2C_DATA);
 	PDEBUG(D_USBI, "i2c [0x%02X] -> 0x%02X", reg, value);
 	return value;
-- 
1.7.9.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [bug?] ov519 fails to handle Hercules Deluxe webcam
  2012-03-05  9:34     ` Jonathan Nieder
@ 2012-03-05  9:55       ` Jean-Francois Moine
  2012-03-05 10:00         ` Jonathan Nieder
  2012-03-05 21:40       ` Skippy
  1 sibling, 1 reply; 6+ messages in thread
From: Jean-Francois Moine @ 2012-03-05  9:55 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: Skippy le Grand Gourou, linux-media, linux-usb

On Mon, 5 Mar 2012 03:34:30 -0600
Jonathan Nieder <jrnieder@gmail.com> wrote:

> > To be sure, try the gspca test version from my web site.  
> 
> Skippy, assuming that works (and I expect it would), could you try the
> attached patch against 2.6.32.y?  It works like this:
> 
>  0. Prerequisites:
> 	apt-get install git build-essential
> 
>  1. Get the kernel, if you don't already have it:
> 	git clone \
> 	 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
	[snip]

This asks for a lot of job. With the gspca tarball (423Kb), you just
need the linux-headers. And it permits further debugging...

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [bug?] ov519 fails to handle Hercules Deluxe webcam
  2012-03-05  9:55       ` Jean-Francois Moine
@ 2012-03-05 10:00         ` Jonathan Nieder
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Nieder @ 2012-03-05 10:00 UTC (permalink / raw)
  To: Jean-Francois Moine; +Cc: Skippy le Grand Gourou, linux-media, linux-usb

Jean-Francois Moine wrote:
> Jonathan Nieder <jrnieder@gmail.com> wrote:

>>> To be sure, try the gspca test version from my web site.
>>
>> Skippy, assuming that works (and I expect it would), could you try the
>> attached patch against 2.6.32.y?  It works like this:
[...]
>>  1. Get the kernel, if you don't already have it:
>> 	git clone \
>> 	 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>	[snip]
>
> This asks for a lot of job.

Do you mean bandwidth?

>                             With the gspca tarball (423Kb), you just
> need the linux-headers. And it permits further debugging...

I expect that this is fixed in 3.x.y already, so I wanted to confirm
that that is the only fix needed to get it fixed in 2.6.32.y-longterm
as well.

Kind regards,
Jonathan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [bug?] ov519 fails to handle Hercules Deluxe webcam
  2012-03-05  9:34     ` Jonathan Nieder
  2012-03-05  9:55       ` Jean-Francois Moine
@ 2012-03-05 21:40       ` Skippy
  1 sibling, 0 replies; 6+ messages in thread
From: Skippy @ 2012-03-05 21:40 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: Jean-Francois Moine, linux-media, linux-usb

Le 05/03/2012 10:34, Jonathan Nieder a écrit :
> 	make localmodconfig; # optional: minimize configuration
> 	make; # optionally with -j<num>  for parallel build

The compilation failed (see at the end of this email) and I didn't feel 
like trying to debug it so I went for Jean-François' build, and it seems 
to work fine (thanks !).

<HS>Jean-François, please have a look at 
http://fr.wikipedia.org/wiki/Casse_%28typographie%29 or 
http://www.cnrtl.fr/definition/casse (CASSE³) and you may switch back to 
French… ;-)</HS>

-----------------------------------------------------------------------
# LANG=en_US.utf8 make localmodconfig
   HOSTCC  scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:40,
                  from /usr/include/netinet/in.h:25,
                  from /usr/include/arpa/inet.h:23,
                  from scripts/basic/fixdep.c:116:
/usr/include/bits/socket.h:370:24: error: asm/socket.h: No such file or 
directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

# LANG=en_US.utf8 make
   HOSTCC  scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:40,
                  from /usr/include/netinet/in.h:25,
                  from /usr/include/arpa/inet.h:23,
                  from scripts/basic/fixdep.c:116:
/usr/include/bits/socket.h:370:24: error: asm/socket.h: No such file or 
directory
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by 
`include/config/kernel.release'.  Stop.
-----------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-05 22:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20120304223239.22117.54556.reportbug@deepthought>
2012-03-05  0:38 ` [bug?] ov519 fails to handle Hercules Deluxe webcam Jonathan Nieder
2012-03-05  9:21   ` Jean-Francois Moine
2012-03-05  9:34     ` Jonathan Nieder
2012-03-05  9:55       ` Jean-Francois Moine
2012-03-05 10:00         ` Jonathan Nieder
2012-03-05 21:40       ` Skippy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.