media: rockchip: vpss: update vpss stream stop process

Change-Id: I5cd198d8b741f4227099e6fc29c0601b50c454b3
Signed-off-by: Wei Dun <willam.wei@rock-chips.com>
This commit is contained in:
Wei Dun
2025-06-11 17:36:42 +08:00
committed by Tao Huang
parent 680862e96a
commit cceb0646ba

View File

@@ -1947,12 +1947,10 @@ static void rkvpss_stream_stop(struct rkvpss_stream *stream)
int ret;
stream->stopping = true;
if (atomic_read(&dev->pipe_stream_cnt) > 0) {
ret = wait_event_timeout(stream->done, !stream->streaming,
msecs_to_jiffies(300));
if (!ret)
v4l2_warn(&dev->v4l2_dev, "%s id:%d timeout\n", __func__, stream->id);
}
ret = wait_event_timeout(stream->done, !stream->streaming,
msecs_to_jiffies(300));
if (!ret)
v4l2_warn(&dev->v4l2_dev, "%s id:%d timeout\n", __func__, stream->id);
stream->stopping = false;
stream->streaming = false;
if (stream->ops->disable_mi)