diff options
| author | Eugen Hristev <eugen.hristev@microchip.com> | 2021-04-13 12:57:18 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-08 14:18:09 +0200 |
| commit | 8f1b451c87ee054f3f5238ac00593e7adaf96152 (patch) | |
| tree | 9717406645803d2f741ac30b517cd0787c4e4d32 /drivers/media/platform/atmel/atmel-isc-base.c | |
| parent | 2873f85bd318bfc3f453fa78facb2b77632b36d8 (diff) | |
| download | linux-8f1b451c87ee054f3f5238ac00593e7adaf96152.tar.gz linux-8f1b451c87ee054f3f5238ac00593e7adaf96152.tar.bz2 linux-8f1b451c87ee054f3f5238ac00593e7adaf96152.zip | |
media: atmel: atmel-isc: create product specific v4l2 controls config
Create product specific callback for initializing v4l2 controls.
Call this from v4l2 controls init function.
[hverkuil: made isc_sama5d2_config_ctrls static]
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/atmel/atmel-isc-base.c')
| -rw-r--r-- | drivers/media/platform/atmel/atmel-isc-base.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel-isc-base.c index ffce8de2cf4d..8ed8b8a4840c 100644 --- a/drivers/media/platform/atmel/atmel-isc-base.c +++ b/drivers/media/platform/atmel/atmel-isc-base.c @@ -2051,11 +2051,12 @@ static int isc_ctrl_init(struct isc_device *isc) if (ret < 0) return ret; + /* Initialize product specific controls. For example, contrast */ + isc->config_ctrls(isc, ops); + ctrls->brightness = 0; - ctrls->contrast = 256; v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BRIGHTNESS, -1024, 1023, 1, 0); - v4l2_ctrl_new_std(hdl, ops, V4L2_CID_CONTRAST, -2048, 2047, 1, 256); v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAMMA, 0, isc->gamma_max, 1, isc->gamma_max); isc->awb_ctrl = v4l2_ctrl_new_std(hdl, &isc_awb_ops, |
