endpoint_bytes_per_packet calculation for Superspeed endpoint
vinayb-imdt opened this issue · comments
Hi,
I am trying to start streaming from a USB superspeed camera. The streaming is failing with "UVC_ERROR_INVALID_MODE". This appears to be due to the check "if (endpoint_bytes_per_packet >= config_bytes_per_packet)" in uvc_stream_start() function in stream.c
config_bytes_per_packet is set to 3072 (1072 packets * 3 packets per burst) using the multiplier set in "Superspeed Endpoint Companion Descriptor". The "endpoint_bytes_per_packet " is set to 1024 which is correct but the condition check should consider the multiplier. This bring me to the question if Superspeed Camera's are supported by libuvc..?
Please clarify.
Thanks,
Vinay