From 88d57484c53879aa1c0f29ad6d318a8265c3fc9f Mon Sep 17 00:00:00 2001 From: Janghyuck Kim Date: Mon, 28 May 2018 16:24:07 +0900 Subject: [PATCH] [COMMON] media: scaler: add byteswap seting for P010 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 --- drivers/media/platform/exynos/scaler/scaler-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/exynos/scaler/scaler-core.c b/drivers/media/platform/exynos/scaler/scaler-core.c index e9e5cf457413..9766bd3ebb92 100644 --- a/drivers/media/platform/exynos/scaler/scaler-core.c +++ b/drivers/media/platform/exynos/scaler/scaler-core.c @@ -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, -- 2.20.1