[libcamera-devel] Support for hotplugging UVC devices

Umang Jain email at uajain.com
Wed Apr 29 04:50:42 CEST 2020


Hi all,

Thanks for your comments on the approach, Laurent.
I have pushed a branch here : 
<https://u15657259.ct.sendgrid.net/ls/click?upn=8H1KCc2bev8KdIveckpOEF8NFg9rbIgRS-2FA55EvKtHykb8IS-2Bk-2FOjvY70Cmox2Skt4RwtdeXxv3-2Fvr0FP22m3Jn2NENLanEFXeyZZZVRTgE-3DTB9N_C3wFy2Q4UgRsRLDAYieRZ5Z3EhAWyy0-2FkOzyYc6FPc1dn6ROcAJqKXb9hjP566uPbTi715rC6Dpas9O8eyoMeX2BVivPRH6evIoIYA-2BT21SFIpA3bob9f0IVGAEuAZ4n3rRwBLi2ppD6w0syjZdIH9xder3vwjis6D4-2FsIaFIFcV1ulmTQoiZ2MiuZ-2BgHnDPGPqgfhrhH9MPjgwstE2-2FCGXWult6WVDjiOcsGB7DV7j9UIFp-2FjTkmzSzuf9lPquzZezRclvJ5-2B3s-2BrcbVBnWmQ-3D-3D>

I have tested with UVC devices (primarily a external webcam) and I had 
satisfactory results.
I am now exploring ways to write unit tests around this. I, ideally, 
needs to run CameraManager and have a mock UDev
device-connected event fired so that CameraManager can run/test the 
code path above. I came across <https://u15657259.ct.sendgrid.net/ls/click?upn=8H1KCc2bev8KdIveckpOENWIe8wLJf27r55W-2FCbo39NIgkUTQYfWmAgVXccH3QLaTs8m_C3wFy2Q4UgRsRLDAYieRZ5Z3EhAWyy0-2FkOzyYc6FPc1dn6ROcAJqKXb9hjP566uPbTi715rC6Dpas9O8eyoMeYJeiD1KnJYvUesa-2BhRy-2BNM5HBwxNnRiiRpM-2B4fVSeM2ejEmcIu4xHpi-2BSHnh8NdI8Hr0QenMCwpKojJSbF78djDKxX2ago8oroRKRJE2qA9QDs0Ai6c-2BnW8mPC5kVIlPJHC7B7rLj8n6aGP1AsEYQKls74RFh0DZ-2FyxLdemBlobH4fMFRwh2pdbarRytj4uaA-3D-3D>
which seems relevant for this. Not sure how far can I get with this.

--
Regards,

Umang J.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20200429/8f48ca1d/attachment.htm>


More information about the libcamera-devel mailing list