diff options
author | Steve Longerbeam <slongerbeam@gmail.com> | 2018-05-31 17:30:41 -0700 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2018-07-16 16:56:35 +0200 |
commit | bbe4a089e299efe696ef520e58513c12c0d497c9 (patch) | |
tree | 11cf474b1df8eb5cda58ce9fda467ac47ed277fb | |
parent | c80d673b91a6c81d765864e10f2b15110ee900ad (diff) | |
download | linux-stable-bbe4a089e299efe696ef520e58513c12c0d497c9.tar.gz linux-stable-bbe4a089e299efe696ef520e58513c12c0d497c9.tar.bz2 linux-stable-bbe4a089e299efe696ef520e58513c12c0d497c9.zip |
gpu: ipu-csi: Check for field type alternate
When the CSI is receiving from a bt.656 bus, include a check for
field type 'alternate' when determining whether to set CSI clock
mode to CCIR656_INTERLACED or CCIR656_PROGRESSIVE.
Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
-rw-r--r-- | drivers/gpu/ipu-v3/ipu-csi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drivers/gpu/ipu-v3/ipu-csi.c index caa05b0702e1..5450a2db1219 100644 --- a/drivers/gpu/ipu-v3/ipu-csi.c +++ b/drivers/gpu/ipu-v3/ipu-csi.c @@ -339,7 +339,8 @@ static void fill_csi_bus_cfg(struct ipu_csi_bus_config *csicfg, break; case V4L2_MBUS_BT656: csicfg->ext_vsync = 0; - if (V4L2_FIELD_HAS_BOTH(mbus_fmt->field)) + if (V4L2_FIELD_HAS_BOTH(mbus_fmt->field) || + mbus_fmt->field == V4L2_FIELD_ALTERNATE) csicfg->clk_mode = IPU_CSI_CLK_MODE_CCIR656_INTERLACED; else csicfg->clk_mode = IPU_CSI_CLK_MODE_CCIR656_PROGRESSIVE; |