Commit 4fac17b4e73715aefe48f4ada7d4930cd4df6c31

Authored by Erik Andrén
Committed by Mauro Carvalho Chehab
1 parent a8ca20b209

V4L/DVB (13007): gspca - stv06xx-hdcs: Add exposure and gain ctrls to hdcs_1020

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

Showing 1 changed file with 29 additions and 1 deletions Side-by-side Diff

drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c
... ... @@ -74,7 +74,35 @@
74 74 }
75 75 };
76 76  
77   -static const struct ctrl hdcs1020_ctrl[] = {};
  77 +static const struct ctrl hdcs1020_ctrl[] = {
  78 + {
  79 + {
  80 + .id = V4L2_CID_EXPOSURE,
  81 + .type = V4L2_CTRL_TYPE_INTEGER,
  82 + .name = "exposure",
  83 + .minimum = 0x00,
  84 + .maximum = 0xffff,
  85 + .step = 0x1,
  86 + .default_value = HDCS_DEFAULT_EXPOSURE,
  87 + .flags = V4L2_CTRL_FLAG_SLIDER
  88 + },
  89 + .set = hdcs_set_exposure,
  90 + .get = hdcs_get_exposure
  91 + }, {
  92 + {
  93 + .id = V4L2_CID_GAIN,
  94 + .type = V4L2_CTRL_TYPE_INTEGER,
  95 + .name = "gain",
  96 + .minimum = 0x00,
  97 + .maximum = 0xff,
  98 + .step = 0x1,
  99 + .default_value = HDCS_DEFAULT_GAIN,
  100 + .flags = V4L2_CTRL_FLAG_SLIDER
  101 + },
  102 + .set = hdcs_set_gain,
  103 + .get = hdcs_get_gain
  104 + }
  105 +};
78 106  
79 107 static struct v4l2_pix_format hdcs1020_mode[] = {
80 108 {