diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-05-10 03:06:45 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-07-08 18:02:59 +0100 |
commit | 1de014dc6bf91155d292c2a03905b9b1ebe1f67d (patch) | |
tree | 87abe54e2d0deee2f10df67a687aac63458bbacd /drivers/staging/media/imx | |
parent | 6ad52b675f1be517cea3b1c45ddf1277860ab702 (diff) | |
download | linux-stable-1de014dc6bf91155d292c2a03905b9b1ebe1f67d.tar.gz linux-stable-1de014dc6bf91155d292c2a03905b9b1ebe1f67d.tar.bz2 linux-stable-1de014dc6bf91155d292c2a03905b9b1ebe1f67d.zip |
media: staging: media: imx: imx7-media-csi: Drop unsupported YUV and RGB formats
A large number of formats defined in the pixel_formats array are not
supported, as shown by the switch-case check in
imx7_csi_pad_link_validate(). Drop them.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/staging/media/imx')
-rw-r--r-- | drivers/staging/media/imx/imx7-media-csi.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c index d41eb7a08a03..98cf1cf41fda 100644 --- a/drivers/staging/media/imx/imx7-media-csi.c +++ b/drivers/staging/media/imx/imx7-media-csi.c @@ -838,61 +838,6 @@ static const struct imx7_csi_pixfmt pixel_formats[] = { ), .yuv = true, .bpp = 16, - }, { - .fourcc = V4L2_PIX_FMT_YUV420, - .yuv = true, - .bpp = 12, - .planar = true, - }, { - .fourcc = V4L2_PIX_FMT_YVU420, - .yuv = true, - .bpp = 12, - .planar = true, - }, { - .fourcc = V4L2_PIX_FMT_YUV422P, - .yuv = true, - .bpp = 16, - .planar = true, - }, { - .fourcc = V4L2_PIX_FMT_NV12, - .yuv = true, - .bpp = 12, - .planar = true, - }, { - .fourcc = V4L2_PIX_FMT_NV16, - .yuv = true, - .bpp = 16, - .planar = true, - }, - /*** RGB formats start here ***/ - { - .fourcc = V4L2_PIX_FMT_RGB565, - .codes = IMX_BUS_FMTS(MEDIA_BUS_FMT_RGB565_2X8_LE), - .bpp = 16, - .cycles = 2, - }, { - .fourcc = V4L2_PIX_FMT_RGB24, - .codes = IMX_BUS_FMTS( - MEDIA_BUS_FMT_RGB888_1X24, - MEDIA_BUS_FMT_RGB888_2X12_LE - ), - .bpp = 24, - }, { - .fourcc = V4L2_PIX_FMT_BGR24, - .bpp = 24, - }, { - .fourcc = V4L2_PIX_FMT_XRGB32, - .codes = IMX_BUS_FMTS(MEDIA_BUS_FMT_ARGB8888_1X32), - .bpp = 32, - }, { - .fourcc = V4L2_PIX_FMT_XBGR32, - .bpp = 32, - }, { - .fourcc = V4L2_PIX_FMT_BGRX32, - .bpp = 32, - }, { - .fourcc = V4L2_PIX_FMT_RGBX32, - .bpp = 32, }, /*** raw bayer and grayscale formats start here ***/ { |