USB composite device with two UVC functions (e.g. two RGB cameras)

From
Matthias Deeg <hidden>
Date
2021-02-25 18:03:39
Hello everybody,

what is the currently recommended way to create a USB composite device
consisting of two UVC functions, for instance two RGB cameras or one RGB
camera and an IR camera?

My current simple approach [1] configuring two UVC devices via configfs
and having two separate uvc-gadget processes dealing with the
corresponding video device nodes does not work in its current state.

The RGB camera and the IR camera used individually work as intended.

I'm new to the USB Gadget API and Video4Linux and would appreciate any
help in implementing a working USB composite device with two cameras
that can be used simultaneously.

The goal of my research project is figuring out if it is possible to
create a Microsoft Windows Hello-compatible USB camera using a simple
single-board computer running Linux like a Raspberry Pi.

It is also interesting for me to know, if my current approach with the
uvc-gadget is working at all for my set goal or if I have to create a
kernel module for such a USB composite device.

Error and lsusb ouputs of my non-working implementation are also
available in the corresponding GitHub repository [2].

Best regards,
Matthias


[1] https://github.com/mdeeg/uvc-gadget-subface

[2] https://github.com/mdeeg/uvc-gadget-subface/tree/master/debug
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help