Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21742
b: refs/heads/master
c: f89982a
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab authored and Linus Torvalds committed Mar 21, 2006
1 parent e7a98f3 commit a45f201
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5762e441d5022ecc5b66b5fe54e41e2ac5d02be
refs/heads/master: f89982a978974cc2fb74f512d7ec7438e0e851ea
29 changes: 29 additions & 0 deletions trunk/drivers/media/video/saa7115.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,35 @@ static void saa7115_set_v4lstd(struct i2c_client *client, v4l2_std_id std)
saa7115_writeregs(client, saa7115_cfg_50hz_video);
}

/* Register 0E - Bits D6-D4 on NO-AUTO mode
(SAA7113 doesn't have auto mode)
50 Hz / 625 lines 60 Hz / 525 lines
000 PAL BGDHI (4.43Mhz) NTSC M (3.58MHz)
001 NTSC 4.43 (50 Hz) PAL 4.43 (60 Hz)
010 Combination-PAL N (3.58MHz) NTSC 4.43 (60 Hz)
011 NTSC N (3.58MHz) PAL M (3.58MHz)
100 reserved NTSC-Japan (3.58MHz)
*/
if (state->ident == V4L2_IDENT_SAA7113) {
u8 reg = saa7115_read(client, 0x0e) & 0x8f;

if (std & V4L2_STD_PAL) {
if (std == V4L2_STD_PAL_M) {
reg|=0x30;
} else if (std == V4L2_STD_PAL_N) {
reg|=0x20;
} else if (std == V4L2_STD_PAL_60) {
reg|=0x10;
}
} else if (std & V4L2_STD_NTSC) {
if (std == V4L2_STD_NTSC_M_JP) {
reg|=0x40;
}
}
saa7115_write(client, 0x0e, reg);
}


state->std = std;

/* restart task B if needed */
Expand Down

0 comments on commit a45f201

Please sign in to comment.