Closed imatespl closed 7 months ago
I think this issue may same with https://github.com/AristoChen/usb-proxy/issues/13, I will try it
I try raw_gadget dev branch and usb-proxy reset branch, there also has the issue
Not sure what exactly fails in your case, but neither usb-proxy nor Raw Gadget have proper support for isochronous transfers, so proxying webcams or other AV devices will not work anyway.
Thank you very much. I am closing this issue.
hi,@xairy, I test the Logitech webcam, that can not proxy with AristoChen/usb-proxy, because the webcam have 4 interface and each interface has multi altsettings, and some altsettings has no endpoints, then I start usb-proxy, when I click windows 11 webcam preview , the windows driver will send set altsetting control packet to webcam, and then usb-proxy will
terminate_eps
and restart process threadprocess_eps
, then the raw-gadget ioctl enable returnioctl(USB_RAW_IOCTL_EP_ENABLE): Device or resource busy
https://github.com/AristoChen/usb-proxy/blob/c681f1238371fae331482f7d300a4652586d0dd3/proxy.cpp#L474-L482 this line cause the issues https://github.com/AristoChen/usb-proxy/blob/c681f1238371fae331482f7d300a4652586d0dd3/proxy.cpp#L267 the log is like this, first not start any thread for this zero endpoint altsetting, then terminate any thing and start thread for altsetting has endpoint when the windows driver send control message change altsettingI also change the code bypass the zero endpoint altsetting, then first start thread will failed, the issues is same, ioctl(USB_RAW_IOCTL_EP_ENABLE): Device or resource busy
The device is
c922 Pro Stream Webcam
The windows 11 driver is Logitech 2021/4/27 1.4.40.0 The usb-proxy run on orangepi pc use the driver is musb-hdrc and device is musb-hdrc.4.auto See attachment for details lsusb-output.txt usb-proxy-console-log.txt