提交 f00ae754 编写于 作者: S Sergei Shtylyov 提交者: Mauro Carvalho Chehab

[media] rcar_vin: call g_std() instead of querystd()

Hans Verkuil says: "The only place querystd can be called  is in the QUERYSTD
ioctl, all other ioctls should use the last set standard." So call the g_std()
subdevice method instead of querystd() in the driver's set_fmt() method.
Reported-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 936ad890
......@@ -1600,8 +1600,8 @@ static int rcar_vin_set_fmt(struct soc_camera_device *icd,
field = pix->field;
break;
case V4L2_FIELD_INTERLACED:
/* Query for standard if not explicitly mentioned _TB/_BT */
ret = v4l2_subdev_call(sd, video, querystd, &std);
/* Get the last standard if not explicitly mentioned _TB/_BT */
ret = v4l2_subdev_call(sd, video, g_std, &std);
if (ret == -ENOIOCTLCMD) {
field = V4L2_FIELD_NONE;
} else if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册