All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems with the gspca_ov519 driver
@ 2012-05-22 11:00 Lluís Batlle i Rossell
  2012-05-22 14:08 ` Paulo Assis
  0 siblings, 1 reply; 9+ messages in thread
From: Lluís Batlle i Rossell @ 2012-05-22 11:00 UTC (permalink / raw)
  To: hdegoede; +Cc: linux-media

Hello,

I'm trying to get video using v4l2 ioctls from a gspca_ov519 camera, and after
STREAMOFF all buffers are still flagged as QUEUED, and QBUF fails.  DQBUF also
fails (blocking for a 3 sec timeout), after streamoff. So I'm stuck, after
STREAMOFF, unable to get pictures coming in again. (Linux 3.3.5).

As an additional note, pinchartl on irc #v4l says to favour a moving of gspca to
vb2. I don't know what it means.

Can someone take care of the bug, or should I consider the camera 'non working'
in linux?

Thank you,
Lluís.

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

* Re: Problems with the gspca_ov519 driver
  2012-05-22 11:00 Problems with the gspca_ov519 driver Lluís Batlle i Rossell
@ 2012-05-22 14:08 ` Paulo Assis
  2012-05-22 14:39   ` Hans de Goede
  0 siblings, 1 reply; 9+ messages in thread
From: Paulo Assis @ 2012-05-22 14:08 UTC (permalink / raw)
  To: Lluís Batlle i Rossell; +Cc: hdegoede, linux-media

Hi,
This bug also causes the camera to crash when changing fps in
guvcview, uvc devices (at least all the ones I tested) require the
stream to be restarted for fps to change, so in the case of this
driver after STREAMOFF the camera just becomes unresponsive.

Regards,
Paulo

2012/5/22 Lluís Batlle i Rossell <viric@viric.name>:
> Hello,
>
> I'm trying to get video using v4l2 ioctls from a gspca_ov519 camera, and after
> STREAMOFF all buffers are still flagged as QUEUED, and QBUF fails.  DQBUF also
> fails (blocking for a 3 sec timeout), after streamoff. So I'm stuck, after
> STREAMOFF, unable to get pictures coming in again. (Linux 3.3.5).
>
> As an additional note, pinchartl on irc #v4l says to favour a moving of gspca to
> vb2. I don't know what it means.
>
> Can someone take care of the bug, or should I consider the camera 'non working'
> in linux?
>
> Thank you,
> Lluís.
> --
> 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

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

* Re: Problems with the gspca_ov519 driver
  2012-05-22 14:08 ` Paulo Assis
@ 2012-05-22 14:39   ` Hans de Goede
  2012-05-22 15:27     ` Lluís Batlle i Rossell
  2012-05-22 21:02     ` Antonio Ospite
  0 siblings, 2 replies; 9+ messages in thread
From: Hans de Goede @ 2012-05-22 14:39 UTC (permalink / raw)
  To: Paulo Assis; +Cc: Lluís Batlle i Rossell, linux-media

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

Hi,

On 05/22/2012 04:08 PM, Paulo Assis wrote:
> Hi,
> This bug also causes the camera to crash when changing fps in
> guvcview, uvc devices (at least all the ones I tested) require the
> stream to be restarted for fps to change, so in the case of this
> driver after STREAMOFF the camera just becomes unresponsive.
>
> Regards,
> Paulo
>
> 2012/5/22 Lluís Batlle i Rossell<viric@viric.name>:
>> Hello,
>>
>> I'm trying to get video using v4l2 ioctls from a gspca_ov519 camera, and after
>> STREAMOFF all buffers are still flagged as QUEUED, and QBUF fails.  DQBUF also
>> fails (blocking for a 3 sec timeout), after streamoff. So I'm stuck, after
>> STREAMOFF, unable to get pictures coming in again. (Linux 3.3.5).
>>
>> As an additional note, pinchartl on irc #v4l says to favour a moving of gspca to
>> vb2. I don't know what it means.
>>
>> Can someone take care of the bug, or should I consider the camera 'non working'
>> in linux?

We talked about this on irc, attached it a patch which should fix this, feedback
appreciated.

Regards,

Hans

[-- Attachment #2: 0001-gspca-core-Fix-buffers-staying-in-queued-state-after.patch --]
[-- Type: text/x-patch, Size: 1209 bytes --]

>From b0eefa00c72e9dfe9eaa5f425c0d346b19ea01cd Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Tue, 22 May 2012 16:24:05 +0200
Subject: [PATCH] gspca-core: Fix buffers staying in queued state after a
 stream_off

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/media/video/gspca/gspca.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 137166d..31721ea 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -1653,7 +1653,7 @@ static int vidioc_streamoff(struct file *file, void *priv,
 				enum v4l2_buf_type buf_type)
 {
 	struct gspca_dev *gspca_dev = video_drvdata(file);
-	int ret;
+	int i, ret;
 
 	if (buf_type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
 		return -EINVAL;
@@ -1678,6 +1678,8 @@ static int vidioc_streamoff(struct file *file, void *priv,
 	wake_up_interruptible(&gspca_dev->wq);
 
 	/* empty the transfer queues */
+	for (i = 0; i < gspca_dev->nframes; i++)
+		gspca_dev->frame[i].v4l2_buf.flags &= ~BUF_ALL_FLAGS;
 	atomic_set(&gspca_dev->fr_q, 0);
 	atomic_set(&gspca_dev->fr_i, 0);
 	gspca_dev->fr_o = 0;
-- 
1.7.10


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

* Re: Problems with the gspca_ov519 driver
  2012-05-22 14:39   ` Hans de Goede
@ 2012-05-22 15:27     ` Lluís Batlle i Rossell
  2012-05-22 16:28       ` Hans de Goede
  2012-05-22 21:02     ` Antonio Ospite
  1 sibling, 1 reply; 9+ messages in thread
From: Lluís Batlle i Rossell @ 2012-05-22 15:27 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Paulo Assis, linux-media

Is this over linux 3.4 mainline? Because I can't get the patch applied over it.

Regards,
Lluís.

On Tue, May 22, 2012 at 04:39:17PM +0200, Hans de Goede wrote:
> Hi,
> 
> On 05/22/2012 04:08 PM, Paulo Assis wrote:
> >Hi,
> >This bug also causes the camera to crash when changing fps in
> >guvcview, uvc devices (at least all the ones I tested) require the
> >stream to be restarted for fps to change, so in the case of this
> >driver after STREAMOFF the camera just becomes unresponsive.
> >
> >Regards,
> >Paulo
> >
> >2012/5/22 Lluís Batlle i Rossell<viric@viric.name>:
> >>Hello,
> >>
> >>I'm trying to get video using v4l2 ioctls from a gspca_ov519 camera, and after
> >>STREAMOFF all buffers are still flagged as QUEUED, and QBUF fails.  DQBUF also
> >>fails (blocking for a 3 sec timeout), after streamoff. So I'm stuck, after
> >>STREAMOFF, unable to get pictures coming in again. (Linux 3.3.5).
> >>
> >>As an additional note, pinchartl on irc #v4l says to favour a moving of gspca to
> >>vb2. I don't know what it means.
> >>
> >>Can someone take care of the bug, or should I consider the camera 'non working'
> >>in linux?
> 
> We talked about this on irc, attached it a patch which should fix this, feedback
> appreciated.
> 
> Regards,
> 
> Hans

> From b0eefa00c72e9dfe9eaa5f425c0d346b19ea01cd Mon Sep 17 00:00:00 2001
> From: Hans de Goede <hdegoede@redhat.com>
> Date: Tue, 22 May 2012 16:24:05 +0200
> Subject: [PATCH] gspca-core: Fix buffers staying in queued state after a
>  stream_off
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
>  drivers/media/video/gspca/gspca.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
> index 137166d..31721ea 100644
> --- a/drivers/media/video/gspca/gspca.c
> +++ b/drivers/media/video/gspca/gspca.c
> @@ -1653,7 +1653,7 @@ static int vidioc_streamoff(struct file *file, void *priv,
>  				enum v4l2_buf_type buf_type)
>  {
>  	struct gspca_dev *gspca_dev = video_drvdata(file);
> -	int ret;
> +	int i, ret;
>  
>  	if (buf_type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
>  		return -EINVAL;
> @@ -1678,6 +1678,8 @@ static int vidioc_streamoff(struct file *file, void *priv,
>  	wake_up_interruptible(&gspca_dev->wq);
>  
>  	/* empty the transfer queues */
> +	for (i = 0; i < gspca_dev->nframes; i++)
> +		gspca_dev->frame[i].v4l2_buf.flags &= ~BUF_ALL_FLAGS;
>  	atomic_set(&gspca_dev->fr_q, 0);
>  	atomic_set(&gspca_dev->fr_i, 0);
>  	gspca_dev->fr_o = 0;
> -- 
> 1.7.10
> 


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

* Re: Problems with the gspca_ov519 driver
  2012-05-22 15:27     ` Lluís Batlle i Rossell
@ 2012-05-22 16:28       ` Hans de Goede
  2012-05-22 16:30         ` Lluís Batlle i Rossell
  2012-05-22 18:25         ` Lluís Batlle i Rossell
  0 siblings, 2 replies; 9+ messages in thread
From: Hans de Goede @ 2012-05-22 16:28 UTC (permalink / raw)
  To: Lluís Batlle i Rossell; +Cc: Paulo Assis, linux-media

Hi,

On 05/22/2012 05:27 PM, Lluís Batlle i Rossell wrote:
> Is this over linux 3.4 mainline? Because I can't get the patch applied over it.

No it is against:
http://git.linuxtv.org/media_tree.git/shortlog/refs/heads/staging/for_v3.5

But it should be trivial to backport, the patch is only 3 lines.

Regards,

Hans

>
> Regards,
> Lluís.
>
> On Tue, May 22, 2012 at 04:39:17PM +0200, Hans de Goede wrote:
>> Hi,
>>
>> On 05/22/2012 04:08 PM, Paulo Assis wrote:
>>> Hi,
>>> This bug also causes the camera to crash when changing fps in
>>> guvcview, uvc devices (at least all the ones I tested) require the
>>> stream to be restarted for fps to change, so in the case of this
>>> driver after STREAMOFF the camera just becomes unresponsive.
>>>
>>> Regards,
>>> Paulo
>>>
>>> 2012/5/22 Lluís Batlle i Rossell<viric@viric.name>:
>>>> Hello,
>>>>
>>>> I'm trying to get video using v4l2 ioctls from a gspca_ov519 camera, and after
>>>> STREAMOFF all buffers are still flagged as QUEUED, and QBUF fails.  DQBUF also
>>>> fails (blocking for a 3 sec timeout), after streamoff. So I'm stuck, after
>>>> STREAMOFF, unable to get pictures coming in again. (Linux 3.3.5).
>>>>
>>>> As an additional note, pinchartl on irc #v4l says to favour a moving of gspca to
>>>> vb2. I don't know what it means.
>>>>
>>>> Can someone take care of the bug, or should I consider the camera 'non working'
>>>> in linux?
>>
>> We talked about this on irc, attached it a patch which should fix this, feedback
>> appreciated.
>>
>> Regards,
>>
>> Hans
>
>>  From b0eefa00c72e9dfe9eaa5f425c0d346b19ea01cd Mon Sep 17 00:00:00 2001
>> From: Hans de Goede<hdegoede@redhat.com>
>> Date: Tue, 22 May 2012 16:24:05 +0200
>> Subject: [PATCH] gspca-core: Fix buffers staying in queued state after a
>>   stream_off
>>
>> Signed-off-by: Hans de Goede<hdegoede@redhat.com>
>> ---
>>   drivers/media/video/gspca/gspca.c |    4 +++-
>>   1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
>> index 137166d..31721ea 100644
>> --- a/drivers/media/video/gspca/gspca.c
>> +++ b/drivers/media/video/gspca/gspca.c
>> @@ -1653,7 +1653,7 @@ static int vidioc_streamoff(struct file *file, void *priv,
>>   				enum v4l2_buf_type buf_type)
>>   {
>>   	struct gspca_dev *gspca_dev = video_drvdata(file);
>> -	int ret;
>> +	int i, ret;
>>
>>   	if (buf_type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
>>   		return -EINVAL;
>> @@ -1678,6 +1678,8 @@ static int vidioc_streamoff(struct file *file, void *priv,
>>   	wake_up_interruptible(&gspca_dev->wq);
>>
>>   	/* empty the transfer queues */
>> +	for (i = 0; i<  gspca_dev->nframes; i++)
>> +		gspca_dev->frame[i].v4l2_buf.flags&= ~BUF_ALL_FLAGS;
>>   	atomic_set(&gspca_dev->fr_q, 0);
>>   	atomic_set(&gspca_dev->fr_i, 0);
>>   	gspca_dev->fr_o = 0;
>> --
>> 1.7.10
>>
>
> --
> 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

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

* Re: Problems with the gspca_ov519 driver
  2012-05-22 16:28       ` Hans de Goede
@ 2012-05-22 16:30         ` Lluís Batlle i Rossell
  2012-05-22 18:25         ` Lluís Batlle i Rossell
  1 sibling, 0 replies; 9+ messages in thread
From: Lluís Batlle i Rossell @ 2012-05-22 16:30 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Paulo Assis, linux-media

On Tue, May 22, 2012 at 06:28:18PM +0200, Hans de Goede wrote:
> Hi,
> 
> On 05/22/2012 05:27 PM, Lluís Batlle i Rossell wrote:
> >Is this over linux 3.4 mainline? Because I can't get the patch applied over it.
> 
> No it is against:
> http://git.linuxtv.org/media_tree.git/shortlog/refs/heads/staging/for_v3.5
> 
> But it should be trivial to backport, the patch is only 3 lines.

I tried to, but I couldn't find any match for
"video_drvdata". I'll check again.

Thank you.

> >
> >Regards,
> >Lluís.
> >
> >On Tue, May 22, 2012 at 04:39:17PM +0200, Hans de Goede wrote:
> >>Hi,
> >>
> >>On 05/22/2012 04:08 PM, Paulo Assis wrote:
> >>>Hi,
> >>>This bug also causes the camera to crash when changing fps in
> >>>guvcview, uvc devices (at least all the ones I tested) require the
> >>>stream to be restarted for fps to change, so in the case of this
> >>>driver after STREAMOFF the camera just becomes unresponsive.
> >>>
> >>>Regards,
> >>>Paulo
> >>>
> >>>2012/5/22 Lluís Batlle i Rossell<viric@viric.name>:
> >>>>Hello,
> >>>>
> >>>>I'm trying to get video using v4l2 ioctls from a gspca_ov519 camera, and after
> >>>>STREAMOFF all buffers are still flagged as QUEUED, and QBUF fails.  DQBUF also
> >>>>fails (blocking for a 3 sec timeout), after streamoff. So I'm stuck, after
> >>>>STREAMOFF, unable to get pictures coming in again. (Linux 3.3.5).
> >>>>
> >>>>As an additional note, pinchartl on irc #v4l says to favour a moving of gspca to
> >>>>vb2. I don't know what it means.
> >>>>
> >>>>Can someone take care of the bug, or should I consider the camera 'non working'
> >>>>in linux?
> >>
> >>We talked about this on irc, attached it a patch which should fix this, feedback
> >>appreciated.
> >>
> >>Regards,
> >>
> >>Hans
> >
> >> From b0eefa00c72e9dfe9eaa5f425c0d346b19ea01cd Mon Sep 17 00:00:00 2001
> >>From: Hans de Goede<hdegoede@redhat.com>
> >>Date: Tue, 22 May 2012 16:24:05 +0200
> >>Subject: [PATCH] gspca-core: Fix buffers staying in queued state after a
> >>  stream_off
> >>
> >>Signed-off-by: Hans de Goede<hdegoede@redhat.com>
> >>---
> >>  drivers/media/video/gspca/gspca.c |    4 +++-
> >>  1 file changed, 3 insertions(+), 1 deletion(-)
> >>
> >>diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
> >>index 137166d..31721ea 100644
> >>--- a/drivers/media/video/gspca/gspca.c
> >>+++ b/drivers/media/video/gspca/gspca.c
> >>@@ -1653,7 +1653,7 @@ static int vidioc_streamoff(struct file *file, void *priv,
> >>  				enum v4l2_buf_type buf_type)
> >>  {
> >>  	struct gspca_dev *gspca_dev = video_drvdata(file);
> >>-	int ret;
> >>+	int i, ret;
> >>
> >>  	if (buf_type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
> >>  		return -EINVAL;
> >>@@ -1678,6 +1678,8 @@ static int vidioc_streamoff(struct file *file, void *priv,
> >>  	wake_up_interruptible(&gspca_dev->wq);
> >>
> >>  	/* empty the transfer queues */
> >>+	for (i = 0; i<  gspca_dev->nframes; i++)
> >>+		gspca_dev->frame[i].v4l2_buf.flags&= ~BUF_ALL_FLAGS;
> >>  	atomic_set(&gspca_dev->fr_q, 0);
> >>  	atomic_set(&gspca_dev->fr_i, 0);
> >>  	gspca_dev->fr_o = 0;
> >>--
> >>1.7.10
> >>
> >
> >--
> >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

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

* Re: Problems with the gspca_ov519 driver
  2012-05-22 16:28       ` Hans de Goede
  2012-05-22 16:30         ` Lluís Batlle i Rossell
@ 2012-05-22 18:25         ` Lluís Batlle i Rossell
  1 sibling, 0 replies; 9+ messages in thread
From: Lluís Batlle i Rossell @ 2012-05-22 18:25 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Paulo Assis, linux-media

On Tue, May 22, 2012 at 06:28:18PM +0200, Hans de Goede wrote:
> On 05/22/2012 05:27 PM, Lluís Batlle i Rossell wrote:
> >Is this over linux 3.4 mainline? Because I can't get the patch applied over it.
> 
> No it is against:
> http://git.linuxtv.org/media_tree.git/shortlog/refs/heads/staging/for_v3.5
> 
> But it should be trivial to backport, the patch is only 3 lines.

Hello,


I ported your patch to 3.4, and it works for me. I can stream off and on as I
can with other cameras.

Thank you,
Lluís.

> >On Tue, May 22, 2012 at 04:39:17PM +0200, Hans de Goede wrote:
> >>Hi,
> >>
> >>On 05/22/2012 04:08 PM, Paulo Assis wrote:
> >>>Hi,
> >>>This bug also causes the camera to crash when changing fps in
> >>>guvcview, uvc devices (at least all the ones I tested) require the
> >>>stream to be restarted for fps to change, so in the case of this
> >>>driver after STREAMOFF the camera just becomes unresponsive.
> >>>
> >>>Regards,
> >>>Paulo
> >>>
> >>>2012/5/22 Lluís Batlle i Rossell<viric@viric.name>:
> >>>>Hello,
> >>>>
> >>>>I'm trying to get video using v4l2 ioctls from a gspca_ov519 camera, and after
> >>>>STREAMOFF all buffers are still flagged as QUEUED, and QBUF fails.  DQBUF also
> >>>>fails (blocking for a 3 sec timeout), after streamoff. So I'm stuck, after
> >>>>STREAMOFF, unable to get pictures coming in again. (Linux 3.3.5).
> >>>>
> >>>>As an additional note, pinchartl on irc #v4l says to favour a moving of gspca to
> >>>>vb2. I don't know what it means.
> >>>>
> >>>>Can someone take care of the bug, or should I consider the camera 'non working'
> >>>>in linux?
> >>
> >>We talked about this on irc, attached it a patch which should fix this, feedback
> >>appreciated.
> >>
> >>Regards,
> >>
> >>Hans
> >
> >> From b0eefa00c72e9dfe9eaa5f425c0d346b19ea01cd Mon Sep 17 00:00:00 2001
> >>From: Hans de Goede<hdegoede@redhat.com>
> >>Date: Tue, 22 May 2012 16:24:05 +0200
> >>Subject: [PATCH] gspca-core: Fix buffers staying in queued state after a
> >>  stream_off
> >>
> >>Signed-off-by: Hans de Goede<hdegoede@redhat.com>
> >>---
> >>  drivers/media/video/gspca/gspca.c |    4 +++-
> >>  1 file changed, 3 insertions(+), 1 deletion(-)
> >>
> >>diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
> >>index 137166d..31721ea 100644
> >>--- a/drivers/media/video/gspca/gspca.c
> >>+++ b/drivers/media/video/gspca/gspca.c
> >>@@ -1653,7 +1653,7 @@ static int vidioc_streamoff(struct file *file, void *priv,
> >>  				enum v4l2_buf_type buf_type)
> >>  {
> >>  	struct gspca_dev *gspca_dev = video_drvdata(file);
> >>-	int ret;
> >>+	int i, ret;
> >>
> >>  	if (buf_type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
> >>  		return -EINVAL;
> >>@@ -1678,6 +1678,8 @@ static int vidioc_streamoff(struct file *file, void *priv,
> >>  	wake_up_interruptible(&gspca_dev->wq);
> >>
> >>  	/* empty the transfer queues */
> >>+	for (i = 0; i<  gspca_dev->nframes; i++)
> >>+		gspca_dev->frame[i].v4l2_buf.flags&= ~BUF_ALL_FLAGS;
> >>  	atomic_set(&gspca_dev->fr_q, 0);
> >>  	atomic_set(&gspca_dev->fr_i, 0);
> >>  	gspca_dev->fr_o = 0;
> >>--
> >>1.7.10
> >>
> >
> >--
> >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

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

* Re: Problems with the gspca_ov519 driver
  2012-05-22 14:39   ` Hans de Goede
  2012-05-22 15:27     ` Lluís Batlle i Rossell
@ 2012-05-22 21:02     ` Antonio Ospite
  2012-05-23  8:14       ` Hans de Goede
  1 sibling, 1 reply; 9+ messages in thread
From: Antonio Ospite @ 2012-05-22 21:02 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Paulo Assis, Lluís Batlle i Rossell, linux-media

On Tue, 22 May 2012 16:39:17 +0200
Hans de Goede <hdegoede@redhat.com> wrote:

> On 05/22/2012 04:08 PM, Paulo Assis wrote:
> > Hi,
> > This bug also causes the camera to crash when changing fps in
> > guvcview, uvc devices (at least all the ones I tested) require the
> > stream to be restarted for fps to change, so in the case of this
> > driver after STREAMOFF the camera just becomes unresponsive.
> >

[...]
> > 2012/5/22 Lluís Batlle i Rossell<viric@viric.name>:
> >> Hello,
> >>
> >> I'm trying to get video using v4l2 ioctls from a gspca_ov519 camera, and after
> >> STREAMOFF all buffers are still flagged as QUEUED, and QBUF fails.  DQBUF also
> >> fails (blocking for a 3 sec timeout), after streamoff. So I'm stuck, after
> >> STREAMOFF, unable to get pictures coming in again. (Linux 3.3.5).
> >>

[...]
> We talked about this on irc, attached it a patch which should fix this, feedback
> appreciated.
> 

Thanks HdG.

Paulo, this seems to fix the problem I too was having when changing the
framerate on ov534 with guvcview.

IIRC, from a previous investigation, I've been experiencing this since
commit f7059ea, which in fact removes the lines HdG added back, but I
didn't put too much effort in investigating the exact cause, sorry.

For the record the guvcview error messages were:

VIDIOC_QBUF - Unable to queue buffer: Invalid argument
 Could not grab image (select timeout): Resource temporarily unavailable

I feel I can add a:

Tested-by: Antonio Ospite <ospite@studenti.unina.it>

I can backport the change to older kernels and even CC linux-stable if
you think it is appropriate, that's the least I can do to expiate for
knowing about a bug/regression and not hunting its cause hard enough.

HdG maybe you could mention f7059ea in the commit message of this fix
if you can confirm the problem was introduced there.

Regards,
   Antonio

-- 
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

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

* Re: Problems with the gspca_ov519 driver
  2012-05-22 21:02     ` Antonio Ospite
@ 2012-05-23  8:14       ` Hans de Goede
  0 siblings, 0 replies; 9+ messages in thread
From: Hans de Goede @ 2012-05-23  8:14 UTC (permalink / raw)
  To: Antonio Ospite; +Cc: Paulo Assis, Lluís Batlle i Rossell, linux-media

Hi,

On 05/22/2012 11:02 PM, Antonio Ospite wrote:

<snip>
> I feel I can add a:
>
> Tested-by: Antonio Ospite<ospite@studenti.unina.it>

Thanks added to the commit message.

> I can backport the change to older kernels and even CC linux-stable if
> you think it is appropriate, that's the least I can do to expiate for
> knowing about a bug/regression and not hunting its cause hard enough.

Hehe, I've CC-ed stable@kernel.org on the patch, it should apply cleanly
to older versions, so no backporting is needed.

> HdG maybe you could mention f7059ea in the commit message of this fix
> if you can confirm the problem was introduced there.

I can confirm that the problem was introduced there and I've added a
reference to that commmit to the commit message thanks for looking
that commit up!

Regards,

Hans

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

end of thread, other threads:[~2012-05-23  8:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-22 11:00 Problems with the gspca_ov519 driver Lluís Batlle i Rossell
2012-05-22 14:08 ` Paulo Assis
2012-05-22 14:39   ` Hans de Goede
2012-05-22 15:27     ` Lluís Batlle i Rossell
2012-05-22 16:28       ` Hans de Goede
2012-05-22 16:30         ` Lluís Batlle i Rossell
2012-05-22 18:25         ` Lluís Batlle i Rossell
2012-05-22 21:02     ` Antonio Ospite
2012-05-23  8:14       ` Hans de Goede

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.