Hello,
I am setting exposure and gain values on my sensor and those ioctl calls from userspace block for 10ms. Is this normal behavior or is something wrong here?
This is example code in userspace for my ioctl call:
void v4l2_producer::set_exposure(unsigned int exposure) {
{
struct v4l2_ext_controls ctrls;
struct v4l2_ext_control ctrl;
CLEAR(ctrl);
CLEAR(ctrls);
ctrls.controls = &ctrl;
ctrls.count = 1;
ctrls.which = V4L2_CTRL_WHICH_CUR_VAL;ctrl.id = TEGRA_CAMERA_CID_EXPOSURE; ctrl.value = exposure; if (xioctl(fd, VIDIOC_S_EXT_CTRLS, &ctrls) == -1) { fprintf(stderr, "Error VIDIOC_S_EXT_CTRLS %s\n", strerror(errno)); } }
}
Best regards,
Johannes