From: Antoine Jacquet <royale@zerezo.com>
To: thomas.schorpp@gmail.com
Cc: linux-media@vger.kernel.org
Subject: Re: zr364xx: Aiptek DV8800 (neo): 08ca:2062: Fails on subsequent zr364xx_open()
Date: Thu, 11 Feb 2010 16:03:35 +0100 [thread overview]
Message-ID: <4B741C47.1090905@zerezo.com> (raw)
In-Reply-To: <4B73C792.3060907@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 534 bytes --]
Hi Thomas,
> Looks like the device does not like to be fed with the (full) init
> METHOD2 on every open()...
> Since the VIDIOC_QUERYCAP worked it should not be the wrong METHOD.
Someone reported similar behavior recently, and was apparently able to
fix the issue by adding more delay between open/close sequences.
Could you try the attached patch to see if it solves the issue?
If not, we can also try to add some mdelay() after each usb_control_msg().
Regards,
Antoine
--
Antoine "Royale" Jacquet
http://royale.zerezo.com
[-- Attachment #2: zr364xx-mdelay.patch --]
[-- Type: text/x-patch, Size: 841 bytes --]
diff -r 77e731753c15 linux/drivers/media/video/zr364xx.c
--- a/linux/drivers/media/video/zr364xx.c Thu Feb 11 12:02:16 2010 -0200
+++ b/linux/drivers/media/video/zr364xx.c Thu Feb 11 16:01:44 2010 +0100
@@ -1005,7 +1005,7 @@
/* Added some delay here, since opening/closing the camera quickly,
* like Ekiga does during its startup, can crash the webcam
*/
- mdelay(100);
+ mdelay(200);
cam->skip = 2;
ret = 0;
@@ -1310,7 +1310,7 @@
/* Added some delay here, since opening/closing the camera quickly,
* like Ekiga does during its startup, can crash the webcam
*/
- mdelay(100);
+ mdelay(200);
err = 0;
out:
@@ -1396,7 +1396,7 @@
/* Added some delay here, since opening/closing the camera quickly,
* like Ekiga does during its startup, can crash the webcam
*/
- mdelay(100);
+ mdelay(200);
err = 0;
out:
next prev parent reply other threads:[~2010-02-11 15:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 9:02 zr364xx: Aiptek DV8800 (neo): 08ca:2062: Fails on subsequent zr364xx_open() thomas schorpp
2010-02-11 15:03 ` Antoine Jacquet [this message]
2010-02-12 14:38 ` thomas schorpp
2010-02-14 22:21 ` Antoine Jacquet
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=4B741C47.1090905@zerezo.com \
--to=royale@zerezo.com \
--cc=linux-media@vger.kernel.org \
--cc=thomas.schorpp@gmail.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