projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[cascardo/linux.git]
/
Documentation
/
media
/
uapi
/
v4l
/
vidioc-streamon.rst
diff --git
a/Documentation/media/uapi/v4l/vidioc-streamon.rst
b/Documentation/media/uapi/v4l/vidioc-streamon.rst
index
bb23745
..
972d5b3
100644
(file)
--- a/
Documentation/media/uapi/v4l/vidioc-streamon.rst
+++ b/
Documentation/media/uapi/v4l/vidioc-streamon.rst
@@
-15,7
+15,11
@@
VIDIOC_STREAMON - VIDIOC_STREAMOFF - Start or stop streaming I/O
Synopsis
========
Synopsis
========
-.. cpp:function:: int ioctl( int fd, int request, const int *argp )
+.. c:function:: int ioctl( int fd, VIDIOC_STREAMON, const int *argp )
+ :name: VIDIOC_STREAMON
+
+.. c:function:: int ioctl( int fd, VIDIOC_STREAMOFF, const int *argp )
+ :name: VIDIOC_STREAMOFF
Arguments
Arguments
@@
-24,9
+28,6
@@
Arguments
``fd``
File descriptor returned by :ref:`open() <func-open>`.
``fd``
File descriptor returned by :ref:`open() <func-open>`.
-``request``
- VIDIOC_STREAMON, VIDIOC_STREAMOFF
-
``argp``
``argp``
@@
-68,7
+69,7
@@
accordingly.
Both ioctls take a pointer to an integer, the desired buffer or stream
type. This is the same as struct
Both ioctls take a pointer to an integer, the desired buffer or stream
type. This is the same as struct
-:
ref:`v4l2_requestbuffers <v4l2-requestbuffers>
` ``type``.
+:
c:type:`v4l2_requestbuffers
` ``type``.
If ``VIDIOC_STREAMON`` is called when streaming is already in progress,
or if ``VIDIOC_STREAMOFF`` is called when streaming is already stopped,
If ``VIDIOC_STREAMON`` is called when streaming is already in progress,
or if ``VIDIOC_STREAMOFF`` is called when streaming is already stopped,
@@
-76,7
+77,9
@@
then 0 is returned. Nothing happens in the case of ``VIDIOC_STREAMON``,
but ``VIDIOC_STREAMOFF`` will return queued buffers to their starting
state as mentioned above.
but ``VIDIOC_STREAMOFF`` will return queued buffers to their starting
state as mentioned above.
-.. note:: Applications can be preempted for unknown periods right before
+.. note::
+
+ Applications can be preempted for unknown periods right before
or after the ``VIDIOC_STREAMON`` or ``VIDIOC_STREAMOFF`` calls, there is
no notion of starting or stopping "now". Buffer timestamps can be used
to synchronize with other events.
or after the ``VIDIOC_STREAMON`` or ``VIDIOC_STREAMOFF`` calls, there is
no notion of starting or stopping "now". Buffer timestamps can be used
to synchronize with other events.