aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-17 20:40:45 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:41 -0400
commit102a0b0879a01a413ed5f667f7db9c2085ca8474 (patch)
treedf057cd2bd569bd9fdeb586927f635d67f2ce6a6 /drivers/media/video/em28xx/em28xx.h
parent3421b7787a2cf41ac5edce9b5766bddd1e1d9986 (diff)
V4L/DVB (7604): em28xx-dvb: Fix analog mode
The analog entries are wrong. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r--drivers/media/video/em28xx/em28xx.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h
index e5fd2dc77355..91dce95cd19c 100644
--- a/drivers/media/video/em28xx/em28xx.h
+++ b/drivers/media/video/em28xx/em28xx.h
@@ -225,19 +225,10 @@ enum em28xx_decoder {
225 EM28XX_SAA7114 225 EM28XX_SAA7114
226}; 226};
227 227
228#define MAX_GPIO 2 228struct em28xx_reg_seq {
229struct gpio_ctl { 229 int reg;
230 /* Register to be set */
231 unsigned char reg;
232 /* Initial/final value */
233 unsigned char val; 230 unsigned char val;
234 /* reset value - if set, it will do: 231 int sleep;
235 val1 - val2 - val1
236 */
237 unsigned char rst;
238 /* Sleep times
239 */
240 unsigned int t1, t2, t3;
241}; 232};
242 233
243struct em28xx_board { 234struct em28xx_board {
@@ -255,9 +246,6 @@ struct em28xx_board {
255 unsigned int max_range_640_480:1; 246 unsigned int max_range_640_480:1;
256 unsigned int has_dvb:1; 247 unsigned int has_dvb:1;
257 248
258 struct gpio_ctl analog_gpio[MAX_GPIO];
259 struct gpio_ctl digital_gpio[MAX_GPIO];
260
261 enum em28xx_decoder decoder; 249 enum em28xx_decoder decoder;
262 250
263 struct em28xx_input input[MAX_EM28XX_INPUT]; 251 struct em28xx_input input[MAX_EM28XX_INPUT];
@@ -343,8 +331,8 @@ struct em28xx {
343 unsigned int max_range_640_480:1; 331 unsigned int max_range_640_480:1;
344 unsigned int has_dvb:1; 332 unsigned int has_dvb:1;
345 333
346 struct gpio_ctl *analog_gpio; 334 /* GPIO sequences for tuner callback */
347 struct gpio_ctl *digital_gpio; 335 struct em28xx_reg_seq *analog_gpio, *digital_gpio;
348 336
349 int video_inputs; /* number of video inputs */ 337 int video_inputs; /* number of video inputs */
350 struct list_head devlist; 338 struct list_head devlist;