Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285182
b: refs/heads/master
c: 2da12fc
h: refs/heads/master
v: v3
  • Loading branch information
Javier Martinez Canillas authored and Mauro Carvalho Chehab committed Nov 8, 2011
1 parent ddf66bb commit eaf3bf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 918847341af0f5f1907fc0b52549f0dc29192c03
refs/heads/master: 2da12fcbea0a2faa94a5d4e58eb2f0f79f9739db
14 changes: 7 additions & 7 deletions trunk/drivers/media/video/tvp5150.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,21 +702,21 @@ static int tvp5150_set_std(struct v4l2_subdev *sd, v4l2_std_id std)
/* First tests should be against specific std */

if (std == V4L2_STD_ALL) {
fmt = 0; /* Autodetect mode */
fmt = VIDEO_STD_AUTO_SWITCH_BIT; /* Autodetect mode */
} else if (std & V4L2_STD_NTSC_443) {
fmt = 0xa;
fmt = VIDEO_STD_NTSC_4_43_BIT;
} else if (std & V4L2_STD_PAL_M) {
fmt = 0x6;
fmt = VIDEO_STD_PAL_M_BIT;
} else if (std & (V4L2_STD_PAL_N | V4L2_STD_PAL_Nc)) {
fmt = 0x8;
fmt = VIDEO_STD_PAL_COMBINATION_N_BIT;
} else {
/* Then, test against generic ones */
if (std & V4L2_STD_NTSC)
fmt = 0x2;
fmt = VIDEO_STD_NTSC_MJ_BIT;
else if (std & V4L2_STD_PAL)
fmt = 0x4;
fmt = VIDEO_STD_PAL_BDGHIN_BIT;
else if (std & V4L2_STD_SECAM)
fmt = 0xc;
fmt = VIDEO_STD_SECAM_BIT;
}

v4l2_dbg(1, debug, sd, "Set video std register to %d.\n", fmt);
Expand Down

0 comments on commit eaf3bf9

Please sign in to comment.