diff options
author | Sungchun Kang <sungchun.kang@samsung.com> | 2010-12-30 00:35:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 19:31:40 -0400 |
commit | ba10795ed1018488964e6054b5076ec31a471d96 (patch) | |
tree | 1a7e520fa7a6cffc65cb0414ebe4f07663b490a7 /drivers/media/video/s5p-fimc | |
parent | 5bbe425e57d3ca715cfe9c98bac5f8f07a96c81a (diff) |
[media] s5p-fimc: fimc_stop_capture bug fix
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>
Diffstat (limited to 'drivers/media/video/s5p-fimc')
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-capture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c index c326f6bbf290..5159cc8a0e1c 100644 --- a/drivers/media/video/s5p-fimc/fimc-capture.c +++ b/drivers/media/video/s5p-fimc/fimc-capture.c | |||
@@ -204,7 +204,7 @@ static int fimc_stop_capture(struct fimc_dev *fimc) | |||
204 | spin_unlock_irqrestore(&fimc->slock, flags); | 204 | spin_unlock_irqrestore(&fimc->slock, flags); |
205 | 205 | ||
206 | wait_event_timeout(fimc->irq_queue, | 206 | wait_event_timeout(fimc->irq_queue, |
207 | test_bit(ST_CAPT_SHUT, &fimc->state), | 207 | !test_bit(ST_CAPT_SHUT, &fimc->state), |
208 | FIMC_SHUTDOWN_TIMEOUT); | 208 | FIMC_SHUTDOWN_TIMEOUT); |
209 | 209 | ||
210 | v4l2_subdev_call(cap->sd, video, s_stream, 0); | 210 | v4l2_subdev_call(cap->sd, video, s_stream, 0); |