Commit 800d3c6f authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Linus Torvalds

[PATCH] v4l: (943) added secam l video standard

- Added SECAM L' video standard
- SECAM L' is a Secam variant that requires special config.

This patch adds support on V4L core. Requires aditional patches
on tuners to support.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c817e763
...@@ -251,7 +251,7 @@ static inline int check_mode(struct tuner *t, char *cmd) ...@@ -251,7 +251,7 @@ static inline int check_mode(struct tuner *t, char *cmd)
static char pal[] = "-"; static char pal[] = "-";
module_param_string(pal, pal, sizeof(pal), 0644); module_param_string(pal, pal, sizeof(pal), 0644);
static char secam[] = "-"; static char secam[] = "--";
module_param_string(secam, secam, sizeof(secam), 0644); module_param_string(secam, secam, sizeof(secam), 0644);
/* get more precise norm info from insmod option */ /* get more precise norm info from insmod option */
...@@ -307,8 +307,13 @@ static int tuner_fixup_std(struct tuner *t) ...@@ -307,8 +307,13 @@ static int tuner_fixup_std(struct tuner *t)
break; break;
case 'l': case 'l':
case 'L': case 'L':
tuner_dbg ("insmod fixup: SECAM => SECAM-L\n"); if ((secam[1]=='C')||(secam[1]=='c')) {
t->std = V4L2_STD_SECAM_L; tuner_dbg ("insmod fixup: SECAM => SECAM-L'\n");
t->std = V4L2_STD_SECAM_LC;
} else {
tuner_dbg ("insmod fixup: SECAM => SECAM-L\n");
t->std = V4L2_STD_SECAM_L;
}
break; break;
case '-': case '-':
/* default parameter, do nothing */ /* default parameter, do nothing */
......
...@@ -636,6 +636,7 @@ typedef __u64 v4l2_std_id; ...@@ -636,6 +636,7 @@ typedef __u64 v4l2_std_id;
#define V4L2_STD_SECAM_K ((v4l2_std_id)0x00100000) #define V4L2_STD_SECAM_K ((v4l2_std_id)0x00100000)
#define V4L2_STD_SECAM_K1 ((v4l2_std_id)0x00200000) #define V4L2_STD_SECAM_K1 ((v4l2_std_id)0x00200000)
#define V4L2_STD_SECAM_L ((v4l2_std_id)0x00400000) #define V4L2_STD_SECAM_L ((v4l2_std_id)0x00400000)
#define V4L2_STD_SECAM_LC ((v4l2_std_id)0x00800000)
/* ATSC/HDTV */ /* ATSC/HDTV */
#define V4L2_STD_ATSC_8_VSB ((v4l2_std_id)0x01000000) #define V4L2_STD_ATSC_8_VSB ((v4l2_std_id)0x01000000)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment