提交 200e0841 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] cx23885: map invalid fields to a valid field

If field format is not valid, map it as V4L2_FIELD_INTERLACED,
instead of pretending to support an invalid format.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 1af2ddd8
......@@ -948,7 +948,8 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
case V4L2_FIELD_INTERLACED:
break;
default:
return -EINVAL;
field = V4L2_FIELD_INTERLACED;
break;
}
f->fmt.pix.field = field;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册