提交 a326ae11 编写于 作者: B Brandon Philips 提交者: Mauro Carvalho Chehab

V4L/DVB (6273): 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: NBrandon Philips <bphilips@suse.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 11f7078c
......@@ -820,8 +820,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册