From b336af7ccc70d05e695b4eee55a8e03645d21348 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 21 Jun 2012 14:40:10 +0200 Subject: sensor: Support setting gains selectively Setting a gain value to OMAP3_ISP_SENSOR_GAIN_KEEP will prevent that gain from being set. Signed-off-by: Laurent Pinchart --- isp/omap3isp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'isp/omap3isp.h') diff --git a/isp/omap3isp.h b/isp/omap3isp.h index 1e9489f..545c82c 100644 --- a/isp/omap3isp.h +++ b/isp/omap3isp.h @@ -86,12 +86,14 @@ int omap3_isp_preview_set_saturation(struct omap3_isp_device *isp, float value); int omap3_isp_preview_set_gain(struct omap3_isp_device *isp, float gain); int omap3_isp_preview_set_white_balance(struct omap3_isp_device *isp, float gains[4]); +#define OMAP3_ISP_SENSOR_GAIN_KEEP -1 + 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); +int omap3_isp_sensor_set_gains(struct omap3_isp_device *isp, + int red, int green, int blue); #endif -- cgit v1.2.3