[COMMON] media: scaler: add byteswap seting for P010
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 28 May 2018 07:24:07 +0000 (16:24 +0900)
committerJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 23 Jul 2018 05:39:42 +0000 (14:39 +0900)
When source format is P010, reading order is different than standard
format, so byteswap should be set to correct order.

Change-Id: Ib07d44edd98e29db95e006c470679f6b9bd80c42
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/media/platform/exynos/scaler/scaler-core.c

index e9e5cf457413c72404591fcd57c82cdee49f9b80..9766bd3ebb926f9ef62a9c5d2423db4059a8c995 100644 (file)
@@ -279,6 +279,7 @@ static const struct sc_fmt sc_formats[] = {
                .name           = "YUV 4:2:0 contiguous 2-planar, Y/CbCr 10-bit",
                .pixelformat    = V4L2_PIX_FMT_NV12M_P010,
                .cfg_val        = SCALER_CFG_FMT_YCBCR420_2P |
+                                       SCALER_CFG_BYTE_SWAP |
                                        SCALER_CFG_10BIT_P010,
                .bitperpixel    = { 16, 8 },
                .num_planes     = 2,