TRATS2: fimc: resetting the ctrl->status
authorHJ.CHOI <hj210.choi@samsung.com>
Tue, 7 May 2013 05:51:00 +0000 (14:51 +0900)
committerHJ.CHOI <hj210.choi@samsung.com>
Tue, 7 May 2013 07:55:05 +0000 (16:55 +0900)
resetting the ctrl->status with FIMC_STREAMOFF in an attempt to resolve
a 'fimc is running' issue after finishing the fimc_streamoff_capture
function. There is a case that ctrl->status isn't FIMC_STREAMOFF after
finishing the fimc_streamoff_capture function. Because the checking
available buffer in the fimc_irq_cap function can change ctrl->status
from FIMC_STREAMOFF to FIMC_BUFFER_STOP.

Signed-off-by: HJ.CHOI <hj210.choi@samsung.com>
Change-Id: I230ba88d76994e57279c6d7d19cdf67ece1d410b

drivers/media/video/samsung/fimc/fimc_capture.c

index b4eebb8..4605b21 100644 (file)
@@ -3029,6 +3029,15 @@ int fimc_streamoff_capture(void *fh)
                                ctrl->cam->initialized = 0;
                }
        }
+       /*
+        * resetting the ctrl->status with FIMC_STREAMOFF in an attempt to
+        * resolve a fimc is running issue after finishing this function.
+        * There is a case that ctrl->status isn't FIMC_STREAMOFF after
+        * finishing this function.  Because the checking avaliable buffer
+        * in the fimc_irq_cap function can change ctrl->status from
+        * FIMC_STREAMOFF to FIMC_BUFFER_STOP.
+        */
+       ctrl->status = FIMC_STREAMOFF;
        printk(KERN_INFO "%s-- fimc%d\n", __func__, ctrl->id);
        return 0;
 }