MLK-19291: ISI: correct color mapping between V4L2 and ISI
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Thu, 8 Nov 2018 11:25:44 +0000 (19:25 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Correct color mapping between V4L2 and ISI

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-m2m.c

index 805c0ee..f8dfe02 100644 (file)
@@ -44,19 +44,12 @@ extern struct mxc_isi_fmt mxc_isi_out_formats[9];
 struct mxc_isi_fmt mxc_isi_input_formats[] = {
        /* Pixel link input format */
        {
-               .name           = "RGB32",
-               .fourcc         = V4L2_PIX_FMT_XRGB32,
+               .name           = "XBGR32",
+               .fourcc         = V4L2_PIX_FMT_XBGR32,
                .depth          = { 32 },
                .color =        MXC_ISI_M2M_IN_FMT_XRGB8,
                .memplanes      = 1,
                .colplanes      = 1,
-       }, {
-               .name           = "BGR32",
-               .fourcc         = V4L2_PIX_FMT_BGR32,
-               .depth          = { 32 },
-               .color =        MXC_ISI_M2M_IN_FMT_XBGR8,
-               .memplanes      = 1,
-               .colplanes      = 1,
        }, {
                .name           = "RGB565",
                .fourcc         = V4L2_PIX_FMT_RGB565,