From 1a47921c5f2137dd94ec6a14a8eed118cdf1a6fa Mon Sep 17 00:00:00 2001 From: Wooyeon Kim Date: Mon, 4 Jun 2018 14:58:16 +0900 Subject: [PATCH] [COMMON] fimc-is2: fix wrong TDNR WDMA stride equation guided by design team - TDNR_WDMA_STRIDE = ALIGN(TDNR_WDMA_WIDTH * 2, 2); Change-Id: I9dfe84c455eddaa21c198aed627aaa905bb8b433 Signed-off-by: Wooyeon Kim --- .../platform/exynos/fimc-is2/hardware/fimc-is-hw-tdnr-v2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-tdnr-v2.c b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-tdnr-v2.c index 0a5749291d0c..3719347d5555 100644 --- a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-tdnr-v2.c +++ b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-tdnr-v2.c @@ -276,7 +276,8 @@ static int fimc_is_hw_mcsc_cfg_tdnr_wdma(struct fimc_is_hw_ip *hw_ip, fimc_is_scaler_set_tdnr_wdma_size(hw_ip->regs, TDNR_IMAGE, wdma_width, wdma_height); - img_y_stride = ALIGN(wdma_width, 2); + /* TDNR DMA stride = image size * 2 */ + img_y_stride = wdma_width * 2; fimc_is_scaler_set_tdnr_wdma_stride(hw_ip->regs, TDNR_IMAGE, img_y_stride, 0); -- 2.20.1