提交 609f33c9 编写于 作者: K Koji Matsuoka 提交者: Mauro Carvalho Chehab

[media] rcar_vin: Enable VSYNC field toggle mode

By applying this patch, it sets to VSYNC field toggle mode not only
at the time of progressive mode but at the time of an interlace mode.
Signed-off-by: NKoji Matsuoka <koji.matsuoka.xm@renesas.com>
Signed-off-by: NYoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 4c28078c
...@@ -130,6 +130,7 @@ ...@@ -130,6 +130,7 @@
#define VNDMR2_VPS (1 << 30) #define VNDMR2_VPS (1 << 30)
#define VNDMR2_HPS (1 << 29) #define VNDMR2_HPS (1 << 29)
#define VNDMR2_FTEV (1 << 17) #define VNDMR2_FTEV (1 << 17)
#define VNDMR2_VLV(n) ((n & 0xf) << 12)
#define VIN_MAX_WIDTH 2048 #define VIN_MAX_WIDTH 2048
#define VIN_MAX_HEIGHT 2048 #define VIN_MAX_HEIGHT 2048
...@@ -1243,7 +1244,7 @@ static int rcar_vin_set_bus_param(struct soc_camera_device *icd) ...@@ -1243,7 +1244,7 @@ static int rcar_vin_set_bus_param(struct soc_camera_device *icd)
if (ret < 0 && ret != -ENOIOCTLCMD) if (ret < 0 && ret != -ENOIOCTLCMD)
return ret; return ret;
val = priv->field == V4L2_FIELD_NONE ? VNDMR2_FTEV : 0; val = VNDMR2_FTEV | VNDMR2_VLV(1);
if (!(common_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW)) if (!(common_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW))
val |= VNDMR2_VPS; val |= VNDMR2_VPS;
if (!(common_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW)) if (!(common_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册