Improve controls handling (preload)

This commit is contained in:
Kamil Trzcinski
2022-04-11 13:00:45 +02:00
parent a586bad403
commit 7c56fa2813
4 changed files with 82 additions and 66 deletions

View File

@ -26,6 +26,9 @@ int v4l2_device_open(device_t *dev)
strcpy(dev->bus_info, v4l2_cap.bus_info);
dev->v4l2->subdev_fd = v4l2_device_open_v4l2_subdev(dev, 0);
v4l2_device_query_controls(dev, dev->v4l2->dev_fd);
v4l2_device_query_controls(dev, dev->v4l2->subdev_fd);
return 0;
error: