media: imx: imx7-media-csi: Use dual sampling for YUV 1X16
authorJacopo Mondi <jacopo@jmondi.org>
Mon, 21 Feb 2022 17:47:23 +0000 (18:47 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 23 Feb 2022 07:53:07 +0000 (08:53 +0100)
commit9babbbaaeb87dee9a9a10dd2923b173902acf7ea
tree88e6aa75a747a88970ce974f34cb2871d82b72aa
parent5b21b566b977155407bd0d0ea0d28018f33e6c12
media: imx: imx7-media-csi: Use dual sampling for YUV 1X16

The CSI bridge should operate in dual components mode when it is
connected to a pixel transmitter that transfers two components at a time
in YUV 422 formats (16 bits, Y + U/V).

Use the image format variants to determine if single or dual component mode
should be used.

Add a note to the TODO file to record that the list of supported formats
should be restricted to the SoC model the CSI bridge is integrated on
to avoid potential pipeline mis-configurations.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/imx/TODO
drivers/staging/media/imx/imx7-media-csi.c