OSDN Git Service

media: imx: enable V4L2_PIX_FMT_XBGR32, _BGRX32, and _RGBX32
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 12 Sep 2019 16:01:20 +0000 (13:01 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 20:15:41 +0000 (17:15 -0300)
Now that proper V4L2 pixel formats exist for all 32-bit RGB
permutations, drop support for the poorly defined legacy format
V4L2_PIX_FMT_BGR32.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx-media-utils.c

index 4cc6a74..0788a18 100644 (file)
@@ -184,7 +184,15 @@ static const struct imx_media_pixfmt rgb_formats[] = {
                .cs     = IPUV3_COLORSPACE_RGB,
                .bpp    = 24,
        }, {
-               .fourcc = V4L2_PIX_FMT_BGR32,
+               .fourcc = V4L2_PIX_FMT_XBGR32,
+               .cs     = IPUV3_COLORSPACE_RGB,
+               .bpp    = 32,
+       }, {
+               .fourcc = V4L2_PIX_FMT_BGRX32,
+               .cs     = IPUV3_COLORSPACE_RGB,
+               .bpp    = 32,
+       }, {
+               .fourcc = V4L2_PIX_FMT_RGBX32,
                .cs     = IPUV3_COLORSPACE_RGB,
                .bpp    = 32,
        },