media: rockchip: vicap wait fe to stop stream when stream suspend

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I001f2052481c7b91b09100d1d6e5bae0d5555327
This commit is contained in:
Zefa Chen
2024-07-23 15:40:07 +08:00
committed by Tao Huang
parent d795377d62
commit 2b5a6bf9ae

View File

@@ -12297,7 +12297,7 @@ int rkcif_stream_suspend(struct rkcif_device *cif_dev, int mode)
suspend_cnt++;
v4l2_dbg(1, rkcif_debug, &cif_dev->v4l2_dev,
"stream[%d] stopping\n", stream->id);
if (stream->dma_en) {
if (!cif_dev->is_sensor_off) {
stream->stopping = true;
ret = wait_event_timeout(stream->wq_stopped,
stream->state != RKCIF_STATE_STREAMING,