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-hw.c

index fe297ed..59df9d9 100644 (file)
@@ -84,9 +84,12 @@ static bool is_rgb(u32 pix_fmt)
 {
        if ((pix_fmt == V4L2_PIX_FMT_RGB565) ||
                (pix_fmt == V4L2_PIX_FMT_RGB24) ||
+               (pix_fmt == V4L2_PIX_FMT_RGB32) ||
                (pix_fmt == V4L2_PIX_FMT_BGR32) ||
                (pix_fmt == V4L2_PIX_FMT_XRGB32) ||
+               (pix_fmt == V4L2_PIX_FMT_XBGR32) ||
                (pix_fmt == V4L2_PIX_FMT_BGR24) ||
+               (pix_fmt == V4L2_PIX_FMT_ABGR32) ||
            (pix_fmt == V4L2_PIX_FMT_ARGB32)) {
                return true;
        } else {