From: Brandon Philips Date: Thu, 27 Sep 2007 23:54:52 +0000 (-0300) Subject: V4L/DVB (6273): V4L: vivi.c vidioc_try_fmt_cap() negotiate a valid field X-Git-Tag: v2.6.24-rc1~1463^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a326ae1126fddd07728e854322e0c657c6b1fbda;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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: Brandon Philips Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index 650e959..512128a 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c @@ -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;