media: rockchip: vpss: fix online use channel assigned to offline

Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: Id7dba90c6162ffe05efdc35b23fc5bdfb9b872a5
This commit is contained in:
Mingwei Yan
2024-04-11 17:40:50 +08:00
committed by Tao Huang
parent a3c8a03bae
commit 9d581d0ef4

View File

@@ -1206,6 +1206,11 @@ static int rkvpss_start_streaming(struct vb2_queue *queue, unsigned int count)
goto free_buf_queue;
}
if (hw->is_ofl_ch[stream->id]) {
v4l2_err(&dev->v4l2_dev, "channel[%d] already assigned to offline", stream->id);
goto free_buf_queue;
}
rkvpss_pipeline_open(dev);
ret = rkvpss_stream_start(stream);