mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
media: rockchip/cif: fix cif restart not work
if stop cif timeout, stopping flag still true, restart cif can't work. Change-Id: If4c0805aa5d1231b1dab6046a826fe41d9796872 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -362,8 +362,10 @@ static void rkcif_stop_streaming(struct vb2_queue *queue)
|
||||
ret = wait_event_timeout(stream->wq_stopped,
|
||||
stream->state != RKCIF_STATE_STREAMING,
|
||||
msecs_to_jiffies(1000));
|
||||
if (!ret)
|
||||
if (!ret) {
|
||||
rkcif_stream_stop(stream);
|
||||
stream->stopping = false;
|
||||
}
|
||||
pm_runtime_put(dev->dev);
|
||||
|
||||
/* stop the sub device*/
|
||||
|
||||
Reference in New Issue
Block a user