Skip to content

Commit

Permalink
[media] s5p-fimc: fimc_stop_capture bug fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sungchun Kang authored and Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 5bbe425 commit ba10795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/s5p-fimc/fimc-capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ba10795

Please sign in to comment.