[COMMON] fimc-is2: Skip the vertical down-scaling scenario for DJAG
authorSanghoon Lee <shoon114.lee@samsung.com>
Tue, 26 Jun 2018 07:50:59 +0000 (16:50 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:29 +0000 (17:05 +0900)
DJAG should not be enabled for the purpose of down-scaling, even for vertical direction.

Change-Id: I6167aa6a5e976358d694810ea7f98369edc703e2
Signed-off-by: Sanghoon Lee <shoon114.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-djag.c

index 73e1f7b1b3408d19f849f9152de162dee16c7d53..db1cb73c9e4e76bedd918ee370e0f947198559ba 100644 (file)
@@ -154,10 +154,10 @@ int fimc_is_hw_mcsc_update_djag_register(struct fimc_is_hw_ip *hw_ip,
                }
        }
 
-       if (param->input.width > out_width) {
-               sdbg_hw(2, "DJAG is not applied still.(input : %d > output : %d)\n", hw_ip,
-                               param->input.width,
-                               out_width);
+       if (param->input.width > out_width || param->input.height > out_height) {
+               sdbg_hw(2, "DJAG is not applied still.(input : %dx%d > output : %dx%d)\n", hw_ip,
+                               param->input.width, param->input.height,
+                               out_width, out_height);
                fimc_is_scaler_set_djag_enable(hw_ip->regs, 0);
                return ret;
        }