set device settings

This commit is contained in:
Kamil Trzcinski
2022-04-04 22:44:01 +02:00
parent 59ba024b7f
commit 659240889f
3 changed files with 24 additions and 13 deletions

View File

@@ -182,7 +182,7 @@ int device_set_option(device_t *dev, const char *name, uint32_t id, int32_t valu
struct v4l2_control ctl = {0};
ctl.id = id;
ctl.value = value;
E_LOG_DEBUG(dev, "Configuring option %s ...", name);
E_LOG_DEBUG(dev, "Configuring option %s (%08x) = %d", name, id, value);
E_XIOCTL(dev, dev->fd, VIDIOC_S_CTRL, &ctl, "Can't set option %s", name);
return 0;
error: