All of lore.kernel.org
 help / color / mirror / Atom feed
* v4l1 doesn't work anymore with bttv on 2.6.26
@ 2009-01-03 20:28 matthieu castet
  2009-01-04 20:32 ` Trent Piepho
  0 siblings, 1 reply; 2+ messages in thread
From: matthieu castet @ 2009-01-03 20:28 UTC (permalink / raw)
  To: video4linux-list

Hi,

This is a copy of the bugreport i did on debian bugtracker : 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510621


I got a v4l1 application that worked for years.
With the current kernel, it hangs in a state where VIDIOCMCAPTURE always
return -EBUSY.

After some debug, it seems that VIDIOCMCAPTURE fails the first time
because of videobuf_queue_is_busy 'vbuf: busy: buffer #0 mapped'.

Then after that error it does a VIDIOCSYNC on all buffer.
Then every call of VIDIOCMCAPTURE failed because of check_btres
returning -EBUSY.

I don't know what cause the first videobuf_queue_is_busy error.
But for all the other errors I suppose one of the problem is that
VIDIOCSYNC does a STREAMON but never does a STREAMOFF...


Regards,

Matthieu

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

* Re: v4l1 doesn't work anymore with bttv on 2.6.26
  2009-01-03 20:28 v4l1 doesn't work anymore with bttv on 2.6.26 matthieu castet
@ 2009-01-04 20:32 ` Trent Piepho
  0 siblings, 0 replies; 2+ messages in thread
From: Trent Piepho @ 2009-01-04 20:32 UTC (permalink / raw)
  To: matthieu castet; +Cc: Linux and Kernel Video

On Sat, 3 Jan 2009, matthieu castet wrote:
> This is a copy of the bugreport i did on debian bugtracker :
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510621
>
> I got a v4l1 application that worked for years.
> With the current kernel, it hangs in a state where VIDIOCMCAPTURE always
> return -EBUSY.
>
> After some debug, it seems that VIDIOCMCAPTURE fails the first time
> because of videobuf_queue_is_busy 'vbuf: busy: buffer #0 mapped'.

Around that time frame the bttv driver was converted from having native
v4l1 support to using the v4l1->v4l2 compat module.  The bttv driver
supported a non-standard v4l1 buffer allocation method were there buffers
get allocated or resized in the MCAPTURE ioctl and the v4l1 compat module
doesn't support this.  I bet this is what your problem is.

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

end of thread, other threads:[~2009-01-04 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-03 20:28 v4l1 doesn't work anymore with bttv on 2.6.26 matthieu castet
2009-01-04 20:32 ` Trent Piepho

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.