This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Failed to capture VGA video in YUYV format ?

Hi,

I am trying to capture VGA video in YUYV format using my usb camera.

I am using Logitech E3500 quickcam.

I get the following error when I try to capture this video

uvcvideo: Failed to submit URB 0 (-90)

VIDIOC_STREAMON error 90, Message too long

 

The error apparently comes from the musb_urb_enqueue() function of musb_host.c file.

 

I tried to do a work around and did the following:

musb->hb_iso_rx = true;

musb->hb_iso_tx = true;

 

in musb_core_init() function of musb_core.c

 

This removed the above error but I now get:

uvcvideo: Failed to submit URB 0 (-28)

which apparently comes from musb_schedule() function of musb_host.c

 

How can this problem of VGA capture be resolved?

 

Regards,

Shekhar

 

Note: I can successfully capture QVGA-YUYV video

  • Shekhar,

    What platform you are using?

  • Shekhar,

    The problem seems to be related to highband width isoc transfer. Which platform are you using?

    Regards,
    Ajay

  • gugs, I get the same problem at linux-2.6.32.17-psp03.01.01.38.

    this is what i have done :

    I edit the "driver/usb/musb/musb_core.c", and changing the following lines:

    static struct fifo_cfg __initdata mode_2_cfg[] = {
    { .hw_ep_num = 1, .style = FIFO_TX,   .maxpacket = 512, },
    { .hw_ep_num = 1, .style = FIFO_RX,   .maxpacket = 512, },
    { .hw_ep_num = 2, .style = FIFO_TX,   .maxpacket = 512, },
    { .hw_ep_num = 2, .style = FIFO_RX,   .maxpacket = 1024, },
    { .hw_ep_num = 3, .style = FIFO_TX,   .maxpacket = 512, },
    { .hw_ep_num = 3, .style = FIFO_RX,   .maxpacket = 1024, },
    { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
    };

    then make the new musb_hdrc.ko module.

    i get the error:

    musb_hdrc: probe of musb_hdrc failed with error -22, then :

    after change .ram_bits       = 11,  in ./arch/arm/mach-davinci/usb.c

    i get the problem sloved,but the previous comes up again... (more details here : http://e2e.ti.com/support/embedded/f/354/p/59718/472169.aspx#472169)

    any ideas ?

    Regards, Mike