mirror of https://gitee.com/openkylin/linux.git
[media] media: imx: csi: increase burst size for YUV formats
The IDMAC supports burst sizes of up to 32 pixels for interleaved YUV formats and up to 64 pixels for planar YUV formats. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
c8da8c03d2
commit
6f30359239
|
@ -333,6 +333,23 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)
|
||||||
passthrough = true;
|
passthrough = true;
|
||||||
passthrough_bits = 16;
|
passthrough_bits = 16;
|
||||||
break;
|
break;
|
||||||
|
case V4L2_PIX_FMT_YUV420:
|
||||||
|
case V4L2_PIX_FMT_NV12:
|
||||||
|
burst_size = (image.pix.width & 0x3f) ?
|
||||||
|
((image.pix.width & 0x1f) ?
|
||||||
|
((image.pix.width & 0xf) ? 8 : 16) : 32) : 64;
|
||||||
|
passthrough = (sensor_ep->bus_type != V4L2_MBUS_CSI2 &&
|
||||||
|
sensor_ep->bus.parallel.bus_width >= 16);
|
||||||
|
passthrough_bits = 16;
|
||||||
|
break;
|
||||||
|
case V4L2_PIX_FMT_YUYV:
|
||||||
|
case V4L2_PIX_FMT_UYVY:
|
||||||
|
burst_size = (image.pix.width & 0x1f) ?
|
||||||
|
((image.pix.width & 0xf) ? 8 : 16) : 32;
|
||||||
|
passthrough = (sensor_ep->bus_type != V4L2_MBUS_CSI2 &&
|
||||||
|
sensor_ep->bus.parallel.bus_width >= 16);
|
||||||
|
passthrough_bits = 16;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
burst_size = (image.pix.width & 0xf) ? 8 : 16;
|
burst_size = (image.pix.width & 0xf) ? 8 : 16;
|
||||||
passthrough = (sensor_ep->bus_type != V4L2_MBUS_CSI2 &&
|
passthrough = (sensor_ep->bus_type != V4L2_MBUS_CSI2 &&
|
||||||
|
|
Loading…
Reference in New Issue