Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56059
b: refs/heads/master
c: ba70d59
h: refs/heads/master
i:
  56057: ba338e6
  56055: e91cd55
v: v3
  • Loading branch information
Servaas Vandenberghe authored and Mauro Carvalho Chehab committed May 9, 2007
1 parent de9c260 commit 8a58242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 5c808e641741ecd7a7d5e65e38f740378d7406fc
refs/heads/master: ba70d59bb987110c4394e896b299f9726609aa33
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/cx25840/cx25840-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ static int set_v4lfmt(struct i2c_client *client, struct v4l2_format *fmt)
{
struct v4l2_pix_format *pix;
int HSC, VSC, Vsrc, Hsrc, filter, Vlines;
int is_pal = !(cx25840_get_v4lstd(client) & V4L2_STD_NTSC);
int is_50Hz = !(cx25840_get_v4lstd(client) & V4L2_STD_525_60);

switch (fmt->type) {
case V4L2_BUF_TYPE_VIDEO_CAPTURE:
Expand All @@ -567,7 +567,7 @@ static int set_v4lfmt(struct i2c_client *client, struct v4l2_format *fmt)
Hsrc = (cx25840_read(client, 0x472) & 0x3f) << 4;
Hsrc |= (cx25840_read(client, 0x471) & 0xf0) >> 4;

Vlines = pix->height + (is_pal ? 4 : 7);
Vlines = pix->height + (is_50Hz ? 4 : 7);

if ((pix->width * 16 < Hsrc) || (Hsrc < pix->width) ||
(Vlines * 8 < Vsrc) || (Vsrc < Vlines)) {
Expand Down

0 comments on commit 8a58242

Please sign in to comment.