diff options
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 66 |
1 files changed, 1 insertions, 65 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index 8f12b848b1d1..2188bc44c465 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <media/videobuf-dvb.h> | 35 | #include <media/videobuf-dvb.h> |
36 | #endif | 36 | #endif |
37 | #include "tuner-xc2028.h" | 37 | #include "tuner-xc2028.h" |
38 | #include "em28xx-reg.h" | ||
38 | 39 | ||
39 | /* Boards supported by driver */ | 40 | /* Boards supported by driver */ |
40 | #define EM2800_BOARD_UNKNOWN 0 | 41 | #define EM2800_BOARD_UNKNOWN 0 |
@@ -480,71 +481,6 @@ int em28xx_get_key_em_haup(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw); | |||
480 | int em28xx_get_key_pinnacle_usb_grey(struct IR_i2c *ir, u32 *ir_key, | 481 | int em28xx_get_key_pinnacle_usb_grey(struct IR_i2c *ir, u32 *ir_key, |
481 | u32 *ir_raw); | 482 | u32 *ir_raw); |
482 | 483 | ||
483 | /* em2800 registers */ | ||
484 | #define EM2800_AUDIOSRC_REG 0x08 | ||
485 | |||
486 | /* em28xx registers */ | ||
487 | #define I2C_CLK_REG 0x06 | ||
488 | #define CHIPID_REG 0x0a | ||
489 | #define USBSUSP_REG 0x0c /* */ | ||
490 | |||
491 | #define AUDIOSRC_REG 0x0e | ||
492 | #define XCLK_REG 0x0f | ||
493 | |||
494 | #define VINMODE_REG 0x10 | ||
495 | #define VINCTRL_REG 0x11 | ||
496 | #define VINENABLE_REG 0x12 /* */ | ||
497 | |||
498 | #define GAMMA_REG 0x14 | ||
499 | #define RGAIN_REG 0x15 | ||
500 | #define GGAIN_REG 0x16 | ||
501 | #define BGAIN_REG 0x17 | ||
502 | #define ROFFSET_REG 0x18 | ||
503 | #define GOFFSET_REG 0x19 | ||
504 | #define BOFFSET_REG 0x1a | ||
505 | |||
506 | #define OFLOW_REG 0x1b | ||
507 | #define HSTART_REG 0x1c | ||
508 | #define VSTART_REG 0x1d | ||
509 | #define CWIDTH_REG 0x1e | ||
510 | #define CHEIGHT_REG 0x1f | ||
511 | |||
512 | #define YGAIN_REG 0x20 | ||
513 | #define YOFFSET_REG 0x21 | ||
514 | #define UVGAIN_REG 0x22 | ||
515 | #define UOFFSET_REG 0x23 | ||
516 | #define VOFFSET_REG 0x24 | ||
517 | #define SHARPNESS_REG 0x25 | ||
518 | |||
519 | #define COMPR_REG 0x26 | ||
520 | #define OUTFMT_REG 0x27 | ||
521 | |||
522 | #define XMIN_REG 0x28 | ||
523 | #define XMAX_REG 0x29 | ||
524 | #define YMIN_REG 0x2a | ||
525 | #define YMAX_REG 0x2b | ||
526 | |||
527 | #define HSCALELOW_REG 0x30 | ||
528 | #define HSCALEHIGH_REG 0x31 | ||
529 | #define VSCALELOW_REG 0x32 | ||
530 | #define VSCALEHIGH_REG 0x33 | ||
531 | |||
532 | #define AC97LSB_REG 0x40 | ||
533 | #define AC97MSB_REG 0x41 | ||
534 | #define AC97ADDR_REG 0x42 | ||
535 | #define AC97BUSY_REG 0x43 | ||
536 | |||
537 | /* em202 registers */ | ||
538 | #define MASTER_AC97 0x02 | ||
539 | #define LINE_IN_AC97 0x10 | ||
540 | #define VIDEO_AC97 0x14 | ||
541 | |||
542 | /* register settings */ | ||
543 | #define EM2800_AUDIO_SRC_TUNER 0x0d | ||
544 | #define EM2800_AUDIO_SRC_LINE 0x0c | ||
545 | #define EM28XX_AUDIO_SRC_TUNER 0xc0 | ||
546 | #define EM28XX_AUDIO_SRC_LINE 0x80 | ||
547 | |||
548 | /* printk macros */ | 484 | /* printk macros */ |
549 | 485 | ||
550 | #define em28xx_err(fmt, arg...) do {\ | 486 | #define em28xx_err(fmt, arg...) do {\ |