[media] s5p-fimc: fimc_stop_capture bug fix
authorSungchun Kang <sungchun.kang@samsung.com>
Thu, 30 Dec 2010 05:35:28 +0000 (02:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:31:40 +0000 (20:31 -0300)
When is called fimc_stop_capture, it seems that wait_event_timeout
used improperly. It should be wake up by irq handler.

Reviewed-by Jonghun Han <jonghun.han@samsung.com>

Signed-off-by: Sungchun Kang <sungchun.kang@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c

index c326f6bbf2904a15e60b0208e8765d2f9d39dbc2..5159cc8a0e1c2996d75cdeabb96b4bfda5af0c94 100644 (file)
@@ -204,7 +204,7 @@ static int fimc_stop_capture(struct fimc_dev *fimc)
        spin_unlock_irqrestore(&fimc->slock, flags);
 
        wait_event_timeout(fimc->irq_queue,
-                          test_bit(ST_CAPT_SHUT, &fimc->state),
+                          !test_bit(ST_CAPT_SHUT, &fimc->state),
                           FIMC_SHUTDOWN_TIMEOUT);
 
        v4l2_subdev_call(cap->sd, video, s_stream, 0);