From: Wooyeon Kim Date: Mon, 4 Jun 2018 05:58:16 +0000 (+0900) Subject: [COMMON] fimc-is2: fix wrong TDNR WDMA stride equation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a47921c5f2137dd94ec6a14a8eed118cdf1a6fa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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);