All of lore.kernel.org
 help / color / mirror / Atom feed
* Using UVC webcam gadget with a real v4l2 device
@ 2012-04-22 18:24 Bhupesh SHARMA
  2012-04-23 14:17 ` Laurent Pinchart
  2012-04-24  0:36 ` Peter Chen
  0 siblings, 2 replies; 12+ messages in thread
From: Bhupesh SHARMA @ 2012-04-22 18:24 UTC (permalink / raw)
  To: laurent.pinchart; +Cc: linux-usb, linux-media, balbi, g.liakhovetski

Hi Laurent,

I have been doing some experimentation with the UVC webcam gadget along with the UVC user-space
application which you have written.

The UVC webcam gadget works fine with the user space application handling the CONTROL events and
providing DATA events. Now, I wish to interface a real v4l2 device, for e.g. VIVI or more particularly
a soc_camera based host and subdev pair.

Now, I see that I can achieve this by opening the UVC and V4L2 devices and doing MMAP -> REQBUF ->
QBUF -> DQBUF calls on both the devices per the UVC control event received. But this will involve
copying the video buffer in the user-space application from v4l2 (_CAPTURE) to uvc (_OUTPUT) domains,
which will significantly reduce the video capture performance.

Is there a better solution to this issue? Maybe doing something like a RNDIS gadget does with
the help of u_ether.c like helper routines. But if I remember well it also requires the BRCTL (Bridge
Control Utility) in userspace to route data arriving on usb0 to eth0 and vice-versa. Not sure though,
if it does copying of a skb buffer from ethernet to usb domain and vice-versa.

Any idea is much appreciated.

Thanks for your help,
Bhupesh

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

end of thread, other threads:[~2012-05-02 11:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-22 18:24 Using UVC webcam gadget with a real v4l2 device Bhupesh SHARMA
2012-04-23 14:17 ` Laurent Pinchart
2012-04-23 18:46   ` Bhupesh SHARMA
2012-04-23 20:55     ` Laurent Pinchart
2012-04-25 15:06       ` Bhupesh SHARMA
2012-04-26  5:23       ` Bhupesh SHARMA
2012-04-30 10:20         ` Laurent Pinchart
2012-04-30 10:47           ` Bhupesh SHARMA
2012-05-02 11:55             ` Laurent Pinchart
2012-04-30  3:34       ` Bhupesh SHARMA
2012-04-24  0:36 ` Peter Chen
2012-04-24  9:04   ` Laurent Pinchart

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.