diff options
Diffstat (limited to 'isp')
-rw-r--r-- | isp/controls.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/isp/controls.c b/isp/controls.c index 421b4bf..f75402b 100644 --- a/isp/controls.c +++ b/isp/controls.c @@ -162,6 +162,8 @@ int omap3_isp_ccdc_set_black_level(struct omap3_isp_device *isp, unsigned int va struct omap3isp_ccdc_bclamp bclamp; int ret; + v4l2_subdev_open(isp->ccdc.entity); + memset(&config, 0, sizeof config); config.update = OMAP3ISP_CCDC_BLCLAMP; config.flag = 0; @@ -171,8 +173,10 @@ int omap3_isp_ccdc_set_black_level(struct omap3_isp_device *isp, unsigned int va bclamp.dcsubval = value; ret = ioctl(isp->ccdc.entity->fd, VIDIOC_OMAP3ISP_CCDC_CFG, &config); - if (ret < 0) + if (ret < 0) { + printf("%s: %s (%d)\n", __func__, strerror(errno), errno); return -errno; + } return ret; } |