Commit 5b8c1d30 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

media: atomisp: use vb2_start_streaming_called()

Don't touch q->start_streaming_called directly, use the
vb2_start_streaming_called() function instead.

Link: https://lore.kernel.org/r/bc6c24ec-72ea-64a1-9061-311cc7339827@xs4all.nlSigned-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent be94be1b
......@@ -636,10 +636,10 @@ static int atomisp_enum_input(struct file *file, void *fh,
static unsigned int
atomisp_subdev_streaming_count(struct atomisp_sub_device *asd)
{
return asd->video_out_preview.vb_queue.start_streaming_called
+ asd->video_out_capture.vb_queue.start_streaming_called
+ asd->video_out_video_capture.vb_queue.start_streaming_called
+ asd->video_out_vf.vb_queue.start_streaming_called;
return vb2_start_streaming_called(&asd->video_out_preview.vb_queue) +
vb2_start_streaming_called(&asd->video_out_capture.vb_queue) +
vb2_start_streaming_called(&asd->video_out_video_capture.vb_queue) +
vb2_start_streaming_called(&asd->video_out_vf.vb_queue);
}
unsigned int atomisp_streaming_count(struct atomisp_device *isp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment