From: Janghyuck Kim Date: Wed, 21 Jun 2017 08:31:12 +0000 (+0900) Subject: [COMMON] media: scaler: 10bit size calculation for V4L2_PIX_FMT_NV12N_10B X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de67a36bf22650a764c3afb7d335624f00c478a1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] media: scaler: 10bit size calculation for V4L2_PIX_FMT_NV12N_10B V4L2_PIX_FMT_NV12N_10B was missed for 10bit size calculation. Change-Id: I6cb0582ae7e00b5c91a9362e9bd9b35603def47b Signed-off-by: Janghyuck Kim --- diff --git a/drivers/media/platform/exynos/scaler/scaler-core.c b/drivers/media/platform/exynos/scaler/scaler-core.c index 8d61e4078caf..842910ab915d 100644 --- a/drivers/media/platform/exynos/scaler/scaler-core.c +++ b/drivers/media/platform/exynos/scaler/scaler-core.c @@ -727,6 +727,7 @@ int sc_calc_s10b_planesize(u32 pixelformat, u32 width, u32 height, switch (pixelformat) { case V4L2_PIX_FMT_NV12M_S10B: + case V4L2_PIX_FMT_NV12N_10B: *ysize = NV12M_Y_SIZE(width, height); *csize = NV12M_CBCR_SIZE(width, height); break; @@ -745,6 +746,7 @@ int sc_calc_s10b_planesize(u32 pixelformat, u32 width, u32 height, switch (pixelformat) { case V4L2_PIX_FMT_NV12M_S10B: + case V4L2_PIX_FMT_NV12N_10B: *ysize += NV12M_Y_2B_SIZE(width, height); *csize += NV12M_CBCR_2B_SIZE(width, height); break;