[COMMON] fimc-is2: fix wrong TDNR WDMA stride equation
authorWooyeon Kim <wooy88.kim@samsung.com>
Mon, 4 Jun 2018 05:58:16 +0000 (14:58 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:49:47 +0000 (17:49 +0900)
 guided by design team
 - TDNR_WDMA_STRIDE = ALIGN(TDNR_WDMA_WIDTH * 2, 2);

Change-Id: I9dfe84c455eddaa21c198aed627aaa905bb8b433
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-tdnr-v2.c

index 0a5749291d0c218452d5104b81c3355478044969..3719347d55555ef801c3964eb844729b1c6c8a18 100644 (file)
@@ -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);