From: Prabhakar Lad Date: Sat, 6 Sep 2014 15:26:49 +0000 (-0300) Subject: [media] media: videobuf2-core.h: add a helper to get status of start_streaming() X-Git-Tag: v5.15~16478^2~549 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ead130335f35fb732921ee0ffde6639be35aa108;p=platform%2Fkernel%2Flinux-starfive.git [media] media: videobuf2-core.h: add a helper to get status of start_streaming() this patch adds a helper to get the status if start_streaming() was called successfully. Signed-off-by: Lad, Prabhakar Cc: Pawel Osciak Cc: Marek Szyprowski Cc: Kyungmin Park Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 5a10d8d..b3c9973 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h @@ -590,6 +590,15 @@ vb2_plane_size(struct vb2_buffer *vb, unsigned int plane_no) return 0; } +/** + * vb2_start_streaming_called() - return streaming status of driver + * @q: videobuf queue + */ +static inline bool vb2_start_streaming_called(struct vb2_queue *q) +{ + return q->start_streaming_called; +} + /* * The following functions are not part of the vb2 core API, but are simple * helper functions that you can use in your struct v4l2_file_operations,