forked from luck/tmp_suning_uos_patched
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 <bphilips@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
11f7078c10
commit
a326ae1126
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user