From: Pierre ANTOINE <nunux@free.fr>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-media@vger.kernel.org
Subject: Re: uvcvideo: Trying to lower the URB buffers on eMPIA minicam
Date: Fri, 26 Apr 2013 02:56:23 +0200 [thread overview]
Message-ID: <1366937783.5179d0b7b4993@imp.free.fr> (raw)
In-Reply-To: <1880069.7yVprJ14P8@avalon>
Laurent,
I finally did it !
On usbcore, I correct the bandwidth of endpoint 4 from 912 to 1024.
maxp = usb_endpoint_maxp(&endpoint->desc) & 0x07ff;
if (maxp == 912) endpoint->desc.wMaxPacketSize = cpu_to_le16(1024);
On uvcvideo:
I set: 768 B/frame bandwidth
I use endpoint alt-setting 4 by disabling some checking code.
And I get uvcvideo: Allocated 5 URB buffers of 32x1024 bytes each.
So I can run the 4 cam on the same USB card:
gst-launch v4l2src device=/dev/video0 !
'video/x-raw-yuv,width=160,height=120,framerate=30/1' ! xvimagesink
gst-launch v4l2src device=/dev/video1 !
'video/x-raw-yuv,width=160,height=120,framerate=30/1' ! xvimagesink
gst-launch v4l2src device=/dev/video2 !
'video/x-raw-yuv,width=160,height=120,framerate=30/1' ! xvimagesink
gst-launch v4l2src device=/dev/video3 !
'video/x-raw-yuv,width=160,height=120,framerate=30/1' ! xvimagesink
I will try to do it less dirty next week ...
Thank's a lot for pointing me on usbcore ...
Many regards,
Pierre
Selon Laurent Pinchart <laurent.pinchart@ideasonboard.com>:
> lsusb parses the raw descriptors. Could you print the wMaxPacketSize value
> for all the endpoints in the uvcvideo driver ? The value is also exported
through
> a sysfs attribute.
>
> --
> Regards,
>
> Laurent Pinchart
>
>
prev parent reply other threads:[~2013-04-26 0:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-24 22:47 uvcvideo: Trying to lower the URB buffers on eMPIA minicam Pierre ANTOINE
2013-04-25 11:36 ` Laurent Pinchart
2013-04-25 19:13 ` Pierre ANTOINE
2013-04-25 22:55 ` Laurent Pinchart
2013-04-26 0:03 ` Pierre ANTOINE
2013-04-26 0:41 ` Laurent Pinchart
2013-04-26 0:56 ` Pierre ANTOINE [this message]
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=1366937783.5179d0b7b4993@imp.free.fr \
--to=nunux@free.fr \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
/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