MLK-20046-2: ISI: add YUV444M format support
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Thu, 25 Oct 2018 03:14:52 +0000 (11:14 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
add YUV444M format support

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit e424d16926d0320b31850bdd293e77c164a80661)

drivers/media/platform/imx8/mxc-isi-hw.c

index 6e686bd..fe297ed 100644 (file)
@@ -84,6 +84,7 @@ 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_BGR32) ||
                (pix_fmt == V4L2_PIX_FMT_XRGB32) ||
                (pix_fmt == V4L2_PIX_FMT_BGR24) ||
            (pix_fmt == V4L2_PIX_FMT_ARGB32)) {
@@ -97,6 +98,7 @@ static bool is_yuv(u32 pix_fmt)
 {
        if ((pix_fmt == V4L2_PIX_FMT_YUYV) ||
                (pix_fmt == V4L2_PIX_FMT_YUV32) ||
+               (pix_fmt == V4L2_PIX_FMT_YUV444M) ||
                (pix_fmt == V4L2_PIX_FMT_NV12)) {
                return true;
        } else {