Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357461
b: refs/heads/master
c: ed57256
h: refs/heads/master
i:
  357459: 6f6639a
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Feb 5, 2013
1 parent deba098 commit d0fe151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 52dec548d4244d9ec86c58e5696e1d4ee98c7b3c
refs/heads/master: ed57256f6fe8882cf6dde8d99f5fac5fd84c5a2d
9 changes: 3 additions & 6 deletions trunk/drivers/media/usb/tm6000/tm6000-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
(f->fmt.pix.width * fh->fmt->depth) >> 3;
f->fmt.pix.sizeimage =
f->fmt.pix.height * f->fmt.pix.bytesperline;
f->fmt.pix.priv = 0;

return 0;
}
Expand Down Expand Up @@ -948,12 +949,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,

field = f->fmt.pix.field;

if (field == V4L2_FIELD_ANY)
field = V4L2_FIELD_SEQ_TB;
else if (V4L2_FIELD_INTERLACED != field) {
dprintk(dev, V4L2_DEBUG_IOCTL_ARG, "Field type invalid.\n");
return -EINVAL;
}
field = V4L2_FIELD_INTERLACED;

tm6000_get_std_res(dev);

Expand All @@ -963,6 +959,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
f->fmt.pix.width &= ~0x01;

f->fmt.pix.field = field;
f->fmt.pix.priv = 0;

f->fmt.pix.bytesperline =
(f->fmt.pix.width * fmt->depth) >> 3;
Expand Down

0 comments on commit d0fe151

Please sign in to comment.