diff options
Diffstat (limited to 'isp')
-rw-r--r-- | isp/controls.c | 10 | ||||
-rw-r--r-- | isp/omap3isp.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/isp/controls.c b/isp/controls.c index f75402b..4939ae0 100644 --- a/isp/controls.c +++ b/isp/controls.c @@ -370,6 +370,16 @@ int omap3_isp_sensor_set_exposure(struct omap3_isp_device *isp, return v4l2_subdev_set_controls(isp->sensor.entity, ARRAY_SIZE(ctrls), ctrls); } +int omap3_isp_sensor_set_gain(struct omap3_isp_device *isp, unsigned int gain) +{ + struct v4l2_ext_control ctrls[1]; + + ctrls[0].id = V4L2_CID_GAIN; + ctrls[0].value = gain; + + return v4l2_subdev_set_controls(isp->sensor.entity, ARRAY_SIZE(ctrls), ctrls); +} + int omap3_isp_sensor_set_gains(struct omap3_isp_device *isp, unsigned int red, unsigned int green, unsigned int blue) { diff --git a/isp/omap3isp.h b/isp/omap3isp.h index 23a5577..db1002e 100644 --- a/isp/omap3isp.h +++ b/isp/omap3isp.h @@ -86,6 +86,7 @@ int omap3_isp_sensor_get_exposure(struct omap3_isp_device *isp, unsigned int *exposure); int omap3_isp_sensor_set_exposure(struct omap3_isp_device *isp, unsigned int exposure); +int omap3_isp_sensor_set_gain(struct omap3_isp_device *isp, unsigned int gain); int omap3_isp_sensor_set_gains(struct omap3_isp_device *isp, unsigned int red, unsigned int green, unsigned int blue); |