Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226368
b: refs/heads/master
c: f9d7d78
h: refs/heads/master
v: v3
  • Loading branch information
Anatolij Gustschin authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent 6bb6b77 commit 07a555c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 641d21167f66ef4c574ef4f586fec0ae32179acd
refs/heads/master: f9d7d787842e92bc768d282f37fc3056c5441ddb
11 changes: 10 additions & 1 deletion trunk/drivers/media/video/saa7115.c
Original file line number Diff line number Diff line change
Expand Up @@ -1348,8 +1348,17 @@ static int saa711x_querystd(struct v4l2_subdev *sd, v4l2_std_id *std)
int reg1e;

*std = V4L2_STD_ALL;
if (state->ident != V4L2_IDENT_SAA7115)
if (state->ident != V4L2_IDENT_SAA7115) {
int reg1f = saa711x_read(sd, R_1F_STATUS_BYTE_2_VD_DEC);

if (reg1f & 0x20)
*std = V4L2_STD_525_60;
else
*std = V4L2_STD_625_50;

return 0;
}

reg1e = saa711x_read(sd, R_1E_STATUS_BYTE_1_VD_DEC);

switch (reg1e & 0x03) {
Expand Down

0 comments on commit 07a555c

Please sign in to comment.