diff options
author | Erik Andren <erik.andren@gmail.com> | 2008-12-31 12:33:53 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:29 -0400 |
commit | 766231ab859546edd459242c2dbd805bc7fd446e (patch) | |
tree | e37f6e7e8d45ec9ae12bb42ee1d7c0006b840589 /drivers/media/video/gspca/stv06xx/stv06xx_pb0100.h | |
parent | 50e06dee958bdb81229cb42486f7fdc4917fa4da (diff) |
V4L/DVB (10334): gspca - stv06xx: Rework control description.
Signed-off-by: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/stv06xx/stv06xx_pb0100.h')
-rw-r--r-- | drivers/media/video/gspca/stv06xx/stv06xx_pb0100.h | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx_pb0100.h b/drivers/media/video/gspca/stv06xx/stv06xx_pb0100.h index 5ea21a1154c..da7c13ed8ff 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx_pb0100.h +++ b/drivers/media/video/gspca/stv06xx/stv06xx_pb0100.h | |||
@@ -137,139 +137,11 @@ const struct stv06xx_sensor stv06xx_sensor_pb0100 = { | |||
137 | .i2c_addr = 0xba, | 137 | .i2c_addr = 0xba, |
138 | .i2c_len = 2, | 138 | .i2c_len = 2, |
139 | 139 | ||
140 | .nctrls = 7, | ||
141 | .ctrls = { | ||
142 | #define GAIN_IDX 0 | ||
143 | { | ||
144 | { | ||
145 | .id = V4L2_CID_GAIN, | ||
146 | .type = V4L2_CTRL_TYPE_INTEGER, | ||
147 | .name = "Gain", | ||
148 | .minimum = 0, | ||
149 | .maximum = 255, | ||
150 | .step = 1, | ||
151 | .default_value = 128 | ||
152 | }, | ||
153 | .set = pb0100_set_gain, | ||
154 | .get = pb0100_get_gain | ||
155 | }, | ||
156 | #define RED_BALANCE_IDX 1 | ||
157 | { | ||
158 | { | ||
159 | .id = V4L2_CID_RED_BALANCE, | ||
160 | .type = V4L2_CTRL_TYPE_INTEGER, | ||
161 | .name = "Red Balance", | ||
162 | .minimum = -255, | ||
163 | .maximum = 255, | ||
164 | .step = 1, | ||
165 | .default_value = 0 | ||
166 | }, | ||
167 | .set = pb0100_set_red_balance, | ||
168 | .get = pb0100_get_red_balance | ||
169 | }, | ||
170 | #define BLUE_BALANCE_IDX 2 | ||
171 | { | ||
172 | { | ||
173 | .id = V4L2_CID_BLUE_BALANCE, | ||
174 | .type = V4L2_CTRL_TYPE_INTEGER, | ||
175 | .name = "Blue Balance", | ||
176 | .minimum = -255, | ||
177 | .maximum = 255, | ||
178 | .step = 1, | ||
179 | .default_value = 0 | ||
180 | }, | ||
181 | .set = pb0100_set_blue_balance, | ||
182 | .get = pb0100_get_blue_balance | ||
183 | }, | ||
184 | #define EXPOSURE_IDX 3 | ||
185 | { | ||
186 | { | ||
187 | .id = V4L2_CID_EXPOSURE, | ||
188 | .type = V4L2_CTRL_TYPE_INTEGER, | ||
189 | .name = "Exposure", | ||
190 | .minimum = 0, | ||
191 | .maximum = 511, | ||
192 | .step = 1, | ||
193 | .default_value = 12 | ||
194 | }, | ||
195 | .set = pb0100_set_exposure, | ||
196 | .get = pb0100_get_exposure | ||
197 | }, | ||
198 | #define AUTOGAIN_IDX 4 | ||
199 | { | ||
200 | { | ||
201 | .id = V4L2_CID_AUTOGAIN, | ||
202 | .type = V4L2_CTRL_TYPE_BOOLEAN, | ||
203 | .name = "Automatic Gain and Exposure", | ||
204 | .minimum = 0, | ||
205 | .maximum = 1, | ||
206 | .step = 1, | ||
207 | .default_value = 1 | ||
208 | }, | ||
209 | .set = pb0100_set_autogain, | ||
210 | .get = pb0100_get_autogain | ||
211 | }, | ||
212 | #define AUTOGAIN_TARGET_IDX 5 | ||
213 | { | ||
214 | { | ||
215 | .id = V4L2_CTRL_CLASS_USER + 0x1000, | ||
216 | .type = V4L2_CTRL_TYPE_INTEGER, | ||
217 | .name = "Automatic Gain Target", | ||
218 | .minimum = 0, | ||
219 | .maximum = 255, | ||
220 | .step = 1, | ||
221 | .default_value = 128 | ||
222 | }, | ||
223 | .set = pb0100_set_autogain_target, | ||
224 | .get = pb0100_get_autogain_target | ||
225 | }, | ||
226 | #define NATURAL_IDX 6 | ||
227 | { | ||
228 | { | ||
229 | .id = V4L2_CTRL_CLASS_USER + 0x1001, | ||
230 | .type = V4L2_CTRL_TYPE_BOOLEAN, | ||
231 | .name = "Natural Light Source", | ||
232 | .minimum = 0, | ||
233 | .maximum = 1, | ||
234 | .step = 1, | ||
235 | .default_value = 1 | ||
236 | }, | ||
237 | .set = pb0100_set_natural, | ||
238 | .get = pb0100_get_natural | ||
239 | }, | ||
240 | }, | ||
241 | |||
242 | .init = pb0100_init, | 140 | .init = pb0100_init, |
243 | .probe = pb0100_probe, | 141 | .probe = pb0100_probe, |
244 | .start = pb0100_start, | 142 | .start = pb0100_start, |
245 | .stop = pb0100_stop, | 143 | .stop = pb0100_stop, |
246 | .dump = pb0100_dump, | 144 | .dump = pb0100_dump, |
247 | |||
248 | .nmodes = 2, | ||
249 | .modes = { | ||
250 | /* low res / subsample modes disabled as they are only half res horizontal, | ||
251 | halving the vertical resolution does not seem to work */ | ||
252 | { | ||
253 | 320, | ||
254 | 240, | ||
255 | V4L2_PIX_FMT_SGRBG8, | ||
256 | V4L2_FIELD_NONE, | ||
257 | .sizeimage = 320 * 240, | ||
258 | .bytesperline = 320, | ||
259 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
260 | .priv = PB0100_CROP_TO_VGA | ||
261 | }, | ||
262 | { | ||
263 | 352, | ||
264 | 288, | ||
265 | V4L2_PIX_FMT_SGRBG8, | ||
266 | V4L2_FIELD_NONE, | ||
267 | .sizeimage = 352 * 288, | ||
268 | .bytesperline = 352, | ||
269 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
270 | .priv = 0 | ||
271 | }, | ||
272 | } | ||
273 | }; | 145 | }; |
274 | 146 | ||
275 | #endif | 147 | #endif |