[media] rcar_vin: call g_std() instead of querystd()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 3 Sep 2015 23:18:05 +0000 (20:18 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 25 Sep 2015 20:32:42 +0000 (17:32 -0300)
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: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/rcar_vin.c

index 1e277104b5fbe31d571435db7f6e84b22aa80f63..368ab7cfcbb40bcc2936457b95f46808d13b27fb 100644 (file)
@@ -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) {
This page took 0.027005 seconds and 5 git commands to generate.