diff options
author | Prabhakar Lad <prabhakar.csengg@gmail.com> | 2014-09-06 11:26:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-21 19:15:39 -0400 |
commit | ead130335f35fb732921ee0ffde6639be35aa108 (patch) | |
tree | 41392993f45791635852b5b2a2775378935161e6 /include/media | |
parent | 3b8a269b7dd64cab4645f95daf3e470e72adfed8 (diff) |
[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 <prabhakar.csengg@gmail.com>
Cc: Pawel Osciak <pawel@osciak.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/videobuf2-core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 5a10d8d695b4..b3c9973463ed 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) | |||
590 | return 0; | 590 | return 0; |
591 | } | 591 | } |
592 | 592 | ||
593 | /** | ||
594 | * vb2_start_streaming_called() - return streaming status of driver | ||
595 | * @q: videobuf queue | ||
596 | */ | ||
597 | static inline bool vb2_start_streaming_called(struct vb2_queue *q) | ||
598 | { | ||
599 | return q->start_streaming_called; | ||
600 | } | ||
601 | |||
593 | /* | 602 | /* |
594 | * The following functions are not part of the vb2 core API, but are simple | 603 | * The following functions are not part of the vb2 core API, but are simple |
595 | * helper functions that you can use in your struct v4l2_file_operations, | 604 | * helper functions that you can use in your struct v4l2_file_operations, |