summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorbphilips@suse.de <bphilips@suse.de>2007-09-27 20:54:52 -0300
committerbphilips@suse.de <bphilips@suse.de>2007-09-27 20:54:52 -0300
commit8704d9503c0b345ac2b63ee06cdb208e24a1c853 (patch)
treee6e5556682a0c02acaa8f5e6adbb97fa05445a87 /linux
parenta823311c70fb2d7b186f58d06a52e834c55fb31c (diff)
downloadmediapointer-dvb-s2-8704d9503c0b345ac2b63ee06cdb208e24a1c853.tar.gz
mediapointer-dvb-s2-8704d9503c0b345ac2b63ee06cdb208e24a1c853.tar.bz2
V4L: vivi.c vidioc_try_fmt_cap() negotiate a valid field
If the client provides V4L2_FIELD_ANY vivi should return a valid field :) Signed-off-by: Brandon Philips <bphilips@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/vivi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/vivi.c b/linux/drivers/media/video/vivi.c
index b199fb9bf..d75206483 100644
--- a/linux/drivers/media/video/vivi.c
+++ b/linux/drivers/media/video/vivi.c
@@ -912,8 +912,7 @@ static int vidioc_try_fmt_cap (struct file *file, void *priv,
field = f->fmt.pix.field;
if (field == V4L2_FIELD_ANY) {
-// field=V4L2_FIELD_INTERLACED;
- field=V4L2_FIELD_SEQ_TB;
+ field=V4L2_FIELD_INTERLACED;
} else if (V4L2_FIELD_INTERLACED != field) {
dprintk(1,"Field type invalid.\n");
return -EINVAL;