The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/wmr: Expand USB transfers to 9

Enqueue more USB camera transfers to better cope
with extended mis-scheduling in the kernel.
9 pending transfers is 9/90 = 100ms, or 3 loops
through the SLAM/controller/controller exposures
cycle

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2394>

authored by

Jan Schmidt and committed by
Marge Bot
4a905bbb 37bb719e

+3 -1
+3 -1
src/xrt/drivers/wmr/wmr_camera.c
··· 51 51 52 52 #define CAM_ENDPOINT 0x05 53 53 54 - #define NUM_XFERS 4 54 + #define NUM_XFERS 9 55 55 56 56 #define WMR_CAMERA_CMD_GAIN 0x80 57 57 #define WMR_CAMERA_CMD_ON 0x81 ··· 463 463 for (i = 0; i < NUM_XFERS; i++) { 464 464 cam->xfers[i] = libusb_alloc_transfer(0); 465 465 if (cam->xfers[i] == NULL) { 466 + WMR_CAM_ERROR(cam, "Failed to allocate transfer %d", i); 466 467 res = LIBUSB_ERROR_NO_MEM; 467 468 goto fail; 468 469 } ··· 609 610 610 611 res = libusb_submit_transfer(cam->xfers[i]); 611 612 if (res < 0) { 613 + WMR_CAM_ERROR(cam, "Failed to submit transfer %d", i); 612 614 goto fail; 613 615 } 614 616 }