tech-multimedia archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problems (panics) with using my uvideo... Help please..



Martin S. Weber wrote:
On Thu, Oct 23, 2008 at 06:41:56PM +0100, Jeremy Morse wrote:
(..)
Does anyone know why uvideo is using so many frames on a full speed usb device?

Maybe related: with usb-debug in the dmesg it says some moral equivalent
of "ehci: handing over low speed device to uhci". Maybe this is related?

I'll test the patch.

Ok so your camera is a full speed device, and we must get nframes calculation wrong in the uvideo driver in the full speed case. Can you try the following change:

--- uvideo.c    21 Sep 2008 19:26:36 -0000      1.21
+++ uvideo.c    23 Oct 2008 19:54:07 -0000
@@ -1562,7 +1562,7 @@ uvideo_stream_start_xfer(struct uvideo_s
                /* TODO: "packet" not same as frame */
                vframe_len = vs->vs_current_format.sample_size;
                uframe_len = alt->max_packet_size;
-               nframes = (vframe_len + uframe_len - 1) / uframe_len;
+               nframes = 64;
                DPRINTF(("uvideo_stream_start_xfer: nframes=%d\n", nframes));
                
                ix->ix_nframes = nframes;


Home | Main Index | Thread Index | Old Index