[COMMON] fimc-is2: Fix a bugs of setting efd address for DDK
authorSunmi Lee <carrotsm.lee@samsung.com>
Thu, 7 Jun 2018 06:58:54 +0000 (15:58 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:04:57 +0000 (17:04 +0900)
Change-Id: I5b11a36d6ca6d3a2e998b0fd5830145a1b44aa80
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-3aa.c

index a53c4266717021386b7f473eba157f3ba196b8aa..86232219e79b2c792d031529ed7e90fa687bef91 100644 (file)
@@ -405,7 +405,7 @@ static int fimc_is_hw_3aa_shot(struct fimc_is_hw_ip *hw_ip, struct fimc_is_frame
        }
 
        if (param_set->dma_output_efd.cmd != DMA_OUTPUT_COMMAND_DISABLE) {
-               for (i = 0; i < frame->planes; i++) {
+               for (i = 0; i < param->efd_output.plane; i++) {
                        param_set->output_dva_efd[i] = frame->shot->uctl.scalerUd.efdTargetAddress[i];
                        if (frame->shot->uctl.scalerUd.efdTargetAddress[i] == 0) {
                                msinfo_hw("[F:%d]efdTargetAddress[%d] is zero\n",