提交 bf7d5ee1 编写于 作者: L Laurent Pinchart 提交者: Mauro Carvalho Chehab

media: vsp1: Use vb2_queue_is_busy()

Use the new vb2_queue_is_busy() helper to replace the open-coded
version.
Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: NKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
上级 74ff2640
...@@ -1030,7 +1030,7 @@ vsp1_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type) ...@@ -1030,7 +1030,7 @@ vsp1_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type)
struct vsp1_pipeline *pipe; struct vsp1_pipeline *pipe;
int ret; int ret;
if (video->queue.owner && video->queue.owner != file->private_data) if (vb2_queue_is_busy(&video->queue, file))
return -EBUSY; return -EBUSY;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册