Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193126
b: refs/heads/master
c: cf19cd3
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent d32f5a8 commit f49f478
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: ffb4877ba013f94322083f77cbb05b35c2a218aa
refs/heads/master: cf19cd3d8a043b1c5784218709a85e358e0d78fb
13 changes: 5 additions & 8 deletions trunk/drivers/media/video/tvp7002.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,6 @@ static int tvp7002_query_dv_preset(struct v4l2_subdev *sd,
struct v4l2_dv_preset *qpreset)
{
const struct tvp7002_preset_definition *presets = tvp7002_presets;
struct v4l2_dv_enum_preset e_preset;
struct tvp7002 *device;
u8 progressive;
u32 lpfr;
Expand Down Expand Up @@ -828,20 +827,18 @@ static int tvp7002_query_dv_preset(struct v4l2_subdev *sd,
}

if (index == NUM_PRESETS) {
v4l2_err(sd, "querystd error, lpf = %x, cpl = %x\n",
v4l2_dbg(1, debug, sd, "detection failed: lpf = %x, cpl = %x\n",
lpfr, cpln);
return -EINVAL;
/* Could not detect a signal, so return the 'invalid' preset */
qpreset->preset = V4L2_DV_INVALID;
return 0;
}

if (v4l_fill_dv_preset_info(presets->preset, &e_preset))
return -EINVAL;

/* Set values in found preset */
qpreset->preset = presets->preset;

/* Update lines per frame and clocks per line info */
v4l2_dbg(1, debug, sd, "Current preset: %d %d",
e_preset.width, e_preset.height);
v4l2_dbg(1, debug, sd, "detected preset: %d\n", presets->preset);
return 0;
}

Expand Down

0 comments on commit f49f478

Please sign in to comment.