Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba10795e authored by Sungchun Kang's avatar Sungchun Kang Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarSungchun Kang <sungchun.kang@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5bbe425e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);