Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Javier Martinez Canillas and committed by
Mauro Carvalho Chehab
64933337 86caf811

+16 -1
+16 -1
drivers/media/video/tvp5150_reg.h
··· 45 45 46 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 65 /* Reserved 29h-2bh */ 51 66