diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-10 13:22:19 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-10 13:31:24 +0200 |
commit | 282f02cb863594d9f39b7b89a92eeb7fc989a883 (patch) | |
tree | 30287f366a774c53ca4e500234fa9f5ea260ac10 /Documentation/media/uapi/v4l/video.rst | |
parent | [media] doc-rst: do cross-references between header and the doc (diff) | |
download | linux-282f02cb863594d9f39b7b89a92eeb7fc989a883.tar.xz linux-282f02cb863594d9f39b7b89a92eeb7fc989a883.zip |
[media] doc-rst: Don't use captions for examples
Unfortunately, captions are new on Sphinx for c blocks: it was
added only on version 1.3. Also, it were already bad enough
not being able to auto-numerate them.
So, let's give up and use, instead, titles before the examples.
Not much is lost, and, as a side track, we don't need to
numerate them anymore.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/media/uapi/v4l/video.rst')
-rw-r--r-- | Documentation/media/uapi/v4l/video.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/media/uapi/v4l/video.rst b/Documentation/media/uapi/v4l/video.rst index e38ebe192614..d3f00715fbc1 100644 --- a/Documentation/media/uapi/v4l/video.rst +++ b/Documentation/media/uapi/v4l/video.rst @@ -28,8 +28,10 @@ applications call the :ref:`VIDIOC_S_INPUT <VIDIOC_G_INPUT>` and implement all the input ioctls when the device has one or more inputs, all the output ioctls when the device has one or more outputs. +Example: Information about the current video input +================================================== + .. code-block:: c - :caption: Example 1.1. Information about the current video input struct v4l2_input input; int index; @@ -50,8 +52,10 @@ all the output ioctls when the device has one or more outputs. printf("Current input: %s\\n", input.name); +Example: Switching to the first video input +=========================================== + .. code-block:: c - :caption: Example 1.2. Switching to the first video input int index; |