mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 15:41:39 +00:00
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>
This commit is contained in:
parent
6ad52b675f
commit
1de014dc6b
@ -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 ***/
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user