diff options
author | Erik Andrén <erik.andren@gmail.com> | 2009-06-24 09:38:02 +0200 |
---|---|---|
committer | Erik Andrén <erik.andren@gmail.com> | 2009-06-24 09:38:02 +0200 |
commit | b65f5869a75669f90fd8efd2c3a46a8da058701c (patch) | |
tree | cbf3ecce67f3d759c09dff5a5453559dcaecd79e /linux | |
parent | ca95982eb7320a5661da1cf4f550defaab913fc7 (diff) | |
download | mediapointer-dvb-s2-b65f5869a75669f90fd8efd2c3a46a8da058701c.tar.gz mediapointer-dvb-s2-b65f5869a75669f90fd8efd2c3a46a8da058701c.tar.bz2 |
gspca - stv06xx-hdcs: Add exposure and gain ctrls to hdcs_1020
From: Erik Andrén <erik.andren@gmail.com>
Priority: normal
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c b/linux/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c index e5024c849..e180ce611 100644 --- a/linux/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c +++ b/linux/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c @@ -74,7 +74,35 @@ static struct v4l2_pix_format hdcs1x00_mode[] = { } }; -static const struct ctrl hdcs1020_ctrl[] = {}; +static const struct ctrl hdcs1020_ctrl[] = { + { + { + .id = V4L2_CID_EXPOSURE, + .type = V4L2_CTRL_TYPE_INTEGER, + .name = "exposure", + .minimum = 0x00, + .maximum = 0xffff, + .step = 0x1, + .default_value = HDCS_DEFAULT_EXPOSURE, + .flags = V4L2_CTRL_FLAG_SLIDER + }, + .set = hdcs_set_exposure, + .get = hdcs_get_exposure + }, { + { + .id = V4L2_CID_GAIN, + .type = V4L2_CTRL_TYPE_INTEGER, + .name = "gain", + .minimum = 0x00, + .maximum = 0xff, + .step = 0x1, + .default_value = HDCS_DEFAULT_GAIN, + .flags = V4L2_CTRL_FLAG_SLIDER + }, + .set = hdcs_set_gain, + .get = hdcs_get_gain + } +}; static struct v4l2_pix_format hdcs1020_mode[] = { { |