media: rockchip: vicap fixes error of stop stream

it may lead to iommu error

Change-Id: If1b1d59f3e1ffe839ebd63b9bc06253ea20b1ec4
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
This commit is contained in:
Zefa Chen
2025-03-23 19:20:38 +08:00
committed by Tao Huang
parent 02b83fb29a
commit 89102de3a7

View File

@@ -6716,7 +6716,8 @@ void rkcif_do_stop_stream(struct rkcif_stream *stream,
spin_unlock_irqrestore(&stream->fps_lock, flags);
cur_time = rkcif_time_get_ns(dev);
if (cur_time > fs_time &&
cur_time - fs_time < (frame_time_ns - 10000000)) {
cur_time - fs_time < (frame_time_ns - 10000000) &&
stream->is_in_vblank) {
rkcif_stream_stop(stream);
} else {
stream->stopping = true;