Skip to content

Commit

Permalink
[media] tvp5150: Add video format registers configuration values
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier Martinez Canillas authored and Mauro Carvalho Chehab committed Oct 8, 2011
1 parent 86caf81 commit 6493333
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion drivers/media/video/tvp5150_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,22 @@

/* Reserved 1Fh-27h */

#define TVP5150_VIDEO_STD 0x28 /* Video standard */
#define VIDEO_STD_MASK (0x07 >> 1)
#define TVP5150_VIDEO_STD 0x28 /* Video standard */
#define VIDEO_STD_AUTO_SWITCH_BIT 0x00
#define VIDEO_STD_NTSC_MJ_BIT 0x02
#define VIDEO_STD_PAL_BDGHIN_BIT 0x04
#define VIDEO_STD_PAL_M_BIT 0x06
#define VIDEO_STD_PAL_COMBINATION_N_BIT 0x08
#define VIDEO_STD_NTSC_4_43_BIT 0x0a
#define VIDEO_STD_SECAM_BIT 0x0c

#define VIDEO_STD_NTSC_MJ_BIT_AS 0x01
#define VIDEO_STD_PAL_BDGHIN_BIT_AS 0x03
#define VIDEO_STD_PAL_M_BIT_AS 0x05
#define VIDEO_STD_PAL_COMBINATION_N_BIT_AS 0x07
#define VIDEO_STD_NTSC_4_43_BIT_AS 0x09
#define VIDEO_STD_SECAM_BIT_AS 0x0b

/* Reserved 29h-2bh */

Expand Down

0 comments on commit 6493333

Please sign in to comment.