diff options
author | Devin Heitmueller <dheitmueller@kernellabs.com> | 2009-08-31 22:23:03 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 22:47:40 -0400 |
commit | 206313db83641022c5ee213ac5f619973a9b427b (patch) | |
tree | a787103836bbbba90e06770793c9eeb97986c76c | |
parent | df72f32ae2eebb1d8cd3994ec7b54344f4164c68 (diff) |
V4L/DVB (12740): em28xx: better describe vinctrl registers
Properly document the video input control register, in preparation for the
addition of VBI support. Note this patch makes no functional changes.
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 3 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-reg.h | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 7e3c78239fa9..cc807232b820 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -2570,7 +2570,8 @@ static int em28xx_init_dev(struct em28xx **devhandle, struct usb_device *udev, | |||
2570 | * Default format, used for tvp5150 or saa711x output formats | 2570 | * Default format, used for tvp5150 or saa711x output formats |
2571 | */ | 2571 | */ |
2572 | dev->vinmode = 0x10; | 2572 | dev->vinmode = 0x10; |
2573 | dev->vinctl = 0x11; | 2573 | dev->vinctl = EM28XX_VINCTRL_INTERLACED | |
2574 | EM28XX_VINCTRL_CCIR656_ENABLE; | ||
2574 | 2575 | ||
2575 | /* Do board specific init and eeprom reading */ | 2576 | /* Do board specific init and eeprom reading */ |
2576 | em28xx_card_setup(dev); | 2577 | em28xx_card_setup(dev); |
diff --git a/drivers/media/video/em28xx/em28xx-reg.h b/drivers/media/video/em28xx/em28xx-reg.h index 6bf84bd787df..3bf69f9ec375 100644 --- a/drivers/media/video/em28xx/em28xx-reg.h +++ b/drivers/media/video/em28xx/em28xx-reg.h | |||
@@ -86,7 +86,19 @@ | |||
86 | #define EM28XX_XCLK_FREQUENCY_24MHZ 0x0b | 86 | #define EM28XX_XCLK_FREQUENCY_24MHZ 0x0b |
87 | 87 | ||
88 | #define EM28XX_R10_VINMODE 0x10 | 88 | #define EM28XX_R10_VINMODE 0x10 |
89 | |||
89 | #define EM28XX_R11_VINCTRL 0x11 | 90 | #define EM28XX_R11_VINCTRL 0x11 |
91 | |||
92 | /* em28xx Video Input Control Register 0x11 */ | ||
93 | #define EM28XX_VINCTRL_VBI_SLICED 0x80 | ||
94 | #define EM28XX_VINCTRL_VBI_RAW 0x40 | ||
95 | #define EM28XX_VINCTRL_VOUT_MODE_IN 0x20 /* HREF,VREF,VACT in output */ | ||
96 | #define EM28XX_VINCTRL_CCIR656_ENABLE 0x10 | ||
97 | #define EM28XX_VINCTRL_VBI_16BIT_RAW 0x08 /* otherwise 8-bit raw */ | ||
98 | #define EM28XX_VINCTRL_FID_ON_HREF 0x04 | ||
99 | #define EM28XX_VINCTRL_DUAL_EDGE_STROBE 0x02 | ||
100 | #define EM28XX_VINCTRL_INTERLACED 0x01 | ||
101 | |||
90 | #define EM28XX_R12_VINENABLE 0x12 /* */ | 102 | #define EM28XX_R12_VINENABLE 0x12 /* */ |
91 | 103 | ||
92 | #define EM28XX_R14_GAMMA 0x14 | 104 | #define EM28XX_R14_GAMMA 0x14 |