media: rockchip: ispp: fix error for diff stream on->off->on

Change-Id: I5730d1dafe0028d42dd59712b8a4d227ee70c451
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2020-08-11 14:08:10 +08:00
committed by Tao Huang
parent a7bf59569e
commit a42a9be178

View File

@@ -1366,6 +1366,13 @@ static void rkispp_stream_stop(struct rkispp_stream *stream)
if (!ret)
v4l2_warn(&dev->v4l2_dev,
"stream:%d stop timeout\n", stream->id);
} else {
/* scl stream close dma write */
if (stream->ops->stop)
stream->ops->stop(stream);
else if (stream->ops->is_stopped)
/* mb stream close dma write immediately */
stream->ops->is_stopped(stream);
}
stream->is_upd = false;
stream->streaming = false;