Yifan-Liu1 commented on PR #21446: URL: https://github.com/apache/nuttx/pull/21446#issuecomment-6756749668
> usbhost_drivers_initialize() in `drivers/usbhost/usbhost_drivers.c:47` registers each class by its option, but not UVC, so only the sim gets the class. A board that uses this function and sets USBHOST_UVC has no camera support. > > Fix: add `usbhost_uvc_initialize()` there under CONFIG_USBHOST_UVC. @casaroli Good catch - that is exactly the gap. The simulator had the class because sim_usbhost_initialize() calls usbhost_uvc_initialize() directly, while a board that goes through usbhost_drivers_initialize() registered every class but this one. The registration is added there under CONFIG_USBHOST_UVC, next to the other classes, in 0fd929f. Thanks for spotting it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
