diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-13 00:47:12 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-04-14 12:41:58 +0200 |
commit | 0aa09e57b0f6bd46a7e8e4d88ba0045e317d43f9 (patch) | |
tree | 62bf843e340e4a26cdde9eaaaa5cc8da3059bb0a | |
parent | media: imx: imx7-mipi-csis: Add missing RAW formats (diff) | |
download | linux-0aa09e57b0f6bd46a7e8e4d88ba0045e317d43f9.tar.xz linux-0aa09e57b0f6bd46a7e8e4d88ba0045e317d43f9.zip |
media: imx: imx7-mipi-csis: Expose correct YUV formats
The imx7-mipi-csis driver claims to support MEDIA_BUS_FMT_VYUY8_2X8 and
MEDIA_BUS_FMT_YUYV8_2X8, but this is not correct. When receiving
YUV 4:2:2 data on the CSI-2 bus, the output format is
MEDIA_BUS_FMT_UYVY8_2X8. Fix this.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r-- | drivers/staging/media/imx/imx7-mipi-csis.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/media/imx/imx7-mipi-csis.c b/drivers/staging/media/imx/imx7-mipi-csis.c index d1a67aff10f0..2afa04650503 100644 --- a/drivers/staging/media/imx/imx7-mipi-csis.c +++ b/drivers/staging/media/imx/imx7-mipi-csis.c @@ -267,11 +267,7 @@ struct csis_pix_format { static const struct csis_pix_format mipi_csis_formats[] = { /* YUV formats. */ { - .code = MEDIA_BUS_FMT_VYUY8_2X8, - .fmt_reg = MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT, - .data_alignment = 16, - }, { - .code = MEDIA_BUS_FMT_YUYV8_2X8, + .code = MEDIA_BUS_FMT_UYVY8_2X8, .fmt_reg = MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT, .data_alignment = 16, }, |