diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2011-09-30 19:33:50 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-10-08 07:01:52 -0400 |
commit | 64933337e3cb61ca555969a35ab68b477db34ee2 (patch) | |
tree | 396ac0f596b689a54e147614206e3079d6a485f3 /drivers/media/video/tvp5150_reg.h | |
parent | 86caf8113800cf4e4eedbeac222f3daa0fb146b5 (diff) |
[media] tvp5150: Add video format registers configuration values
The tvp5150 video decoder has two operation modes to configure the video
standard used.
If auto-switch mode is enable, the device can sense the signal and detect which
video standard the device is operating. Also the device can be forced to use a
user defined video standard.
Each operation mode uses a different register and the bitmask values to
represent each standard is different.
So we add video standard constants for both autoswitch and no-autoswitch mode.
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tvp5150_reg.h')
-rw-r--r-- | drivers/media/video/tvp5150_reg.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/media/video/tvp5150_reg.h b/drivers/media/video/tvp5150_reg.h index 4240043c0b2a..25a994944918 100644 --- a/drivers/media/video/tvp5150_reg.h +++ b/drivers/media/video/tvp5150_reg.h | |||
@@ -45,7 +45,22 @@ | |||
45 | 45 | ||
46 | /* Reserved 1Fh-27h */ | 46 | /* Reserved 1Fh-27h */ |
47 | 47 | ||
48 | #define TVP5150_VIDEO_STD 0x28 /* Video standard */ | 48 | #define VIDEO_STD_MASK (0x07 >> 1) |
49 | #define TVP5150_VIDEO_STD 0x28 /* Video standard */ | ||
50 | #define VIDEO_STD_AUTO_SWITCH_BIT 0x00 | ||
51 | #define VIDEO_STD_NTSC_MJ_BIT 0x02 | ||
52 | #define VIDEO_STD_PAL_BDGHIN_BIT 0x04 | ||
53 | #define VIDEO_STD_PAL_M_BIT 0x06 | ||
54 | #define VIDEO_STD_PAL_COMBINATION_N_BIT 0x08 | ||
55 | #define VIDEO_STD_NTSC_4_43_BIT 0x0a | ||
56 | #define VIDEO_STD_SECAM_BIT 0x0c | ||
57 | |||
58 | #define VIDEO_STD_NTSC_MJ_BIT_AS 0x01 | ||
59 | #define VIDEO_STD_PAL_BDGHIN_BIT_AS 0x03 | ||
60 | #define VIDEO_STD_PAL_M_BIT_AS 0x05 | ||
61 | #define VIDEO_STD_PAL_COMBINATION_N_BIT_AS 0x07 | ||
62 | #define VIDEO_STD_NTSC_4_43_BIT_AS 0x09 | ||
63 | #define VIDEO_STD_SECAM_BIT_AS 0x0b | ||
49 | 64 | ||
50 | /* Reserved 29h-2bh */ | 65 | /* Reserved 29h-2bh */ |
51 | 66 | ||