media: gscaller: fix RGB32 format id to match s5p-fimc
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 27 Feb 2015 07:58:14 +0000 (08:58 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 31 Mar 2016 07:58:51 +0000 (16:58 +0900)
Testing showed that HW produces BGR32 rather then RGB32 as exposed
in the driver. The documentation seems to state the pixels are stored
in little endian order.

Change-Id: I0f7cdea461bd09ff2aac24cf6dfd001d0848b534
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
drivers/media/platform/exynos-gsc/gsc-core.c

index 2edc40bc55473df9d14dcfa448253c778bc7a86b..aebb6d1c1243e37fefcbf40a23b9e329f0951d1f 100644 (file)
@@ -40,7 +40,7 @@ static const struct gsc_fmt gsc_formats[] = {
                .num_comp       = 1,
        }, {
                .name           = "XRGB-8-8-8-8, 32 bpp",
-               .pixelformat    = V4L2_PIX_FMT_RGB32,
+               .pixelformat    = V4L2_PIX_FMT_BGR32,
                .depth          = { 32 },
                .color          = GSC_RGB,
                .num_planes     = 1,