Hi Ricardo, On Tue, Sep 10, 2013 at 04:10:37PM +0200, Ricardo Ribalda Delgado wrote: > Hello! > > I am writing the driver for a device that can work as an input and as > output at the same time. It is used for debugging of the video > pipeline. > > Is it possible to have a vb2 queue that supports capture and out at > the same time? > > After a fast look on the code it seems that the code flow is different > depending of the type. if (V4L2_TYPE_IS_OUTPUT()....) :( > > Also it seems that struct video device has only space for one > vb2_queue, so I cant create a video device with two vbuf2 queues. > > So is there any way to have a video device with videobuf2 that > supports caputer and output? I think mem-to-mem devices do this. I think there should be plenty of examples there. However your use case is slightly different but I guess it wouldn't matter here. I think you'll need two buffer queues... -- Kind regards, Sakari Ailus e-mail: sakari.ailus@xxxxxx XMPP: sailus@xxxxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html