MLK-19730: ISI: correct V4L2_PIX_FMT_RGB32 to V4L2_PIX_FMT_XRGB32
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Wed, 26 Sep 2018 05:50:43 +0000 (13:50 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Because V4L2_PIX_FMT_RGB32 is deprecated and must not
be used by new drivers. V4L2_PIX_FMT_XRGB32 is used to
replace it.

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

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

index 5e8a4d0..b3ed9cd 100644 (file)
@@ -84,7 +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_RGB32) ||
+               (pix_fmt == V4L2_PIX_FMT_XRGB32) ||
                (pix_fmt == V4L2_PIX_FMT_BGR24) ||
            (pix_fmt == V4L2_PIX_FMT_ARGB32)) {
                return true;