diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-22 09:15:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-23 07:04:21 -0400 |
commit | f6fa883bb733376b2ac1c4772cce5b4316ab693f (patch) | |
tree | 7c72964dd5e69b5563714d92256f8fcf92816684 | |
parent | f4a6bdd1f36f940411b20fb3f615faa4127174a2 (diff) |
[media] doc-rst: reorganize the kAPI v4l2 chapters
Reorganize the order of the document, putting the chapters
on a more logical order and renaming some sections.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | Documentation/media/kapi/v4l2-common.rst | 4 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-controls.rst | 4 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-core.rst | 11 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-dev.rst | 12 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-device.rst | 8 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-dv-timings.rst | 4 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-event.rst | 5 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-fh.rst | 5 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-flash-led-class.rst | 4 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-intro.rst | 15 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-mc.rst | 4 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-mediabus.rst | 4 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-mem2mem.rst | 5 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-rect.rst | 4 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-subdev.rst | 12 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-tuner.rst | 4 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-tveeprom.rst | 4 | ||||
-rw-r--r-- | Documentation/media/kapi/v4l2-videobuf2.rst | 4 |
18 files changed, 51 insertions, 62 deletions
diff --git a/Documentation/media/kapi/v4l2-common.rst b/Documentation/media/kapi/v4l2-common.rst new file mode 100644 index 000000000000..d1ea1c9e35a0 --- /dev/null +++ b/Documentation/media/kapi/v4l2-common.rst | |||
@@ -0,0 +1,4 @@ | |||
1 | V4L2 common functions and data structures | ||
2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
3 | |||
4 | .. kernel-doc:: include/media/v4l2-common.h | ||
diff --git a/Documentation/media/kapi/v4l2-controls.rst b/Documentation/media/kapi/v4l2-controls.rst index 2d433305fd4e..07a179eeb2fb 100644 --- a/Documentation/media/kapi/v4l2-controls.rst +++ b/Documentation/media/kapi/v4l2-controls.rst | |||
@@ -808,7 +808,7 @@ notify function is called. | |||
808 | There can be only one notify function per control handler. Any attempt | 808 | There can be only one notify function per control handler. Any attempt |
809 | to set another notify function will cause a WARN_ON. | 809 | to set another notify function will cause a WARN_ON. |
810 | 810 | ||
811 | V4L2 control kAPI | 811 | v4l2_ctrl functions and data structures |
812 | ----------------- | 812 | --------------------------------------- |
813 | 813 | ||
814 | .. kernel-doc:: include/media/v4l2-ctrls.h | 814 | .. kernel-doc:: include/media/v4l2-ctrls.h |
diff --git a/Documentation/media/kapi/v4l2-core.rst b/Documentation/media/kapi/v4l2-core.rst index 6285c18978d1..e9677150ed99 100644 --- a/Documentation/media/kapi/v4l2-core.rst +++ b/Documentation/media/kapi/v4l2-core.rst | |||
@@ -6,20 +6,21 @@ Video2Linux devices | |||
6 | 6 | ||
7 | v4l2-intro | 7 | v4l2-intro |
8 | v4l2-dev | 8 | v4l2-dev |
9 | v4l2-controls | ||
10 | v4l2-device | 9 | v4l2-device |
11 | v4l2-fh | 10 | v4l2-fh |
11 | v4l2-subdev | ||
12 | v4l2-event | ||
13 | v4l2-controls | ||
14 | v4l2-videobuf | ||
15 | v4l2-videobuf2 | ||
12 | v4l2-clocks | 16 | v4l2-clocks |
13 | v4l2-dv-timings | 17 | v4l2-dv-timings |
14 | v4l2-event | ||
15 | v4l2-flash-led-class | 18 | v4l2-flash-led-class |
16 | v4l2-mc | 19 | v4l2-mc |
17 | v4l2-mediabus | 20 | v4l2-mediabus |
18 | v4l2-mem2mem | 21 | v4l2-mem2mem |
19 | v4l2-of | 22 | v4l2-of |
20 | v4l2-rect | 23 | v4l2-rect |
21 | v4l2-subdev | ||
22 | v4l2-tuner | 24 | v4l2-tuner |
25 | v4l2-common | ||
23 | v4l2-tveeprom | 26 | v4l2-tveeprom |
24 | v4l2-videobuf2 | ||
25 | v4l2-videobuf | ||
diff --git a/Documentation/media/kapi/v4l2-dev.rst b/Documentation/media/kapi/v4l2-dev.rst index 306306d8a43d..b03f9b33ad93 100644 --- a/Documentation/media/kapi/v4l2-dev.rst +++ b/Documentation/media/kapi/v4l2-dev.rst | |||
@@ -1,5 +1,5 @@ | |||
1 | Video device creation | 1 | Video device' s internal representation |
2 | ===================== | 2 | ======================================= |
3 | 3 | ||
4 | The actual device nodes in the ``/dev`` directory are created using the | 4 | The actual device nodes in the ``/dev`` directory are created using the |
5 | :c:type:`video_device` struct (``v4l2-dev.h``). This struct can either be | 5 | :c:type:`video_device` struct (``v4l2-dev.h``). This struct can either be |
@@ -309,8 +309,8 @@ it has been initialized: | |||
309 | This can be done from the release callback. | 309 | This can be done from the release callback. |
310 | 310 | ||
311 | 311 | ||
312 | video_device helper functions | 312 | helper functions |
313 | ----------------------------- | 313 | ---------------- |
314 | 314 | ||
315 | There are a few useful helper functions: | 315 | There are a few useful helper functions: |
316 | 316 | ||
@@ -357,7 +357,7 @@ The name is used as a hint by userspace tools such as udev. The function | |||
357 | should be used where possible instead of accessing the video_device::num and | 357 | should be used where possible instead of accessing the video_device::num and |
358 | video_device::minor fields. | 358 | video_device::minor fields. |
359 | 359 | ||
360 | video_device kAPI | 360 | video_device functions and data structures |
361 | ----------------- | 361 | ------------------------------------------ |
362 | 362 | ||
363 | .. kernel-doc:: include/media/v4l2-dev.h | 363 | .. kernel-doc:: include/media/v4l2-dev.h |
diff --git a/Documentation/media/kapi/v4l2-device.rst b/Documentation/media/kapi/v4l2-device.rst index 8e275d0ff0f5..c9115bcd8a9d 100644 --- a/Documentation/media/kapi/v4l2-device.rst +++ b/Documentation/media/kapi/v4l2-device.rst | |||
@@ -1,5 +1,5 @@ | |||
1 | V4L2 Device register logic | 1 | V4L2 device instance |
2 | -------------------------- | 2 | -------------------- |
3 | 3 | ||
4 | Each device instance is represented by a struct :c:type:`v4l2_device`. | 4 | Each device instance is represented by a struct :c:type:`v4l2_device`. |
5 | Very simple devices can just allocate this struct, but most of the time you | 5 | Very simple devices can just allocate this struct, but most of the time you |
@@ -138,7 +138,7 @@ Since the initial refcount is 1 you also need to call | |||
138 | or in the ``remove()`` callback (for e.g. PCI devices), otherwise the refcount | 138 | or in the ``remove()`` callback (for e.g. PCI devices), otherwise the refcount |
139 | will never reach 0. | 139 | will never reach 0. |
140 | 140 | ||
141 | V4L2 device kAPI | 141 | v4l2_device functions and data structures |
142 | ^^^^^^^^^^^^^^^^ | 142 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
143 | 143 | ||
144 | .. kernel-doc:: include/media/v4l2-device.h | 144 | .. kernel-doc:: include/media/v4l2-device.h |
diff --git a/Documentation/media/kapi/v4l2-dv-timings.rst b/Documentation/media/kapi/v4l2-dv-timings.rst index 4b08a49c54a4..55274329d229 100644 --- a/Documentation/media/kapi/v4l2-dv-timings.rst +++ b/Documentation/media/kapi/v4l2-dv-timings.rst | |||
@@ -1,4 +1,4 @@ | |||
1 | V4L2 DV Timings kAPI | 1 | V4L2 DV Timings functions |
2 | ^^^^^^^^^^^^^^^^^^^^ | 2 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
3 | 3 | ||
4 | .. kernel-doc:: include/media/v4l2-dv-timings.h | 4 | .. kernel-doc:: include/media/v4l2-dv-timings.h |
diff --git a/Documentation/media/kapi/v4l2-event.rst b/Documentation/media/kapi/v4l2-event.rst index 0bab793eb8fc..d81bbf23b6b1 100644 --- a/Documentation/media/kapi/v4l2-event.rst +++ b/Documentation/media/kapi/v4l2-event.rst | |||
@@ -130,7 +130,8 @@ function with ``V4L2_DEVICE_NOTIFY_EVENT``. This allows the bridge to map | |||
130 | the subdev that sends the event to the video node(s) associated with the | 130 | the subdev that sends the event to the video node(s) associated with the |
131 | subdev that need to be informed about such an event. | 131 | subdev that need to be informed about such an event. |
132 | 132 | ||
133 | V4L2 event kAPI | 133 | V4L2 event functions and data structures |
134 | ^^^^^^^^^^^^^^^ | 134 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
135 | 135 | ||
136 | .. kernel-doc:: include/media/v4l2-event.h | 136 | .. kernel-doc:: include/media/v4l2-event.h |
137 | |||
diff --git a/Documentation/media/kapi/v4l2-fh.rst b/Documentation/media/kapi/v4l2-fh.rst index a212698d5725..ef4ae046c0c5 100644 --- a/Documentation/media/kapi/v4l2-fh.rst +++ b/Documentation/media/kapi/v4l2-fh.rst | |||
@@ -133,6 +133,7 @@ associated device node: | |||
133 | - Same, but it calls v4l2_fh_is_singular with filp->private_data. | 133 | - Same, but it calls v4l2_fh_is_singular with filp->private_data. |
134 | 134 | ||
135 | 135 | ||
136 | V4L2 File Handler kAPI | 136 | V4L2 fh functions and data structures |
137 | ^^^^^^^^^^^^^^^^^^^^^^ | 137 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
138 | |||
138 | .. kernel-doc:: include/media/v4l2-fh.h | 139 | .. kernel-doc:: include/media/v4l2-fh.h |
diff --git a/Documentation/media/kapi/v4l2-flash-led-class.rst b/Documentation/media/kapi/v4l2-flash-led-class.rst index 251ed6b3aab3..20798bdac387 100644 --- a/Documentation/media/kapi/v4l2-flash-led-class.rst +++ b/Documentation/media/kapi/v4l2-flash-led-class.rst | |||
@@ -1,4 +1,4 @@ | |||
1 | V4L2 Flash and LED class kAPI | 1 | V4L2 flash functions and data structures |
2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
3 | 3 | ||
4 | .. kernel-doc:: include/media/v4l2-flash-led-class.h | 4 | .. kernel-doc:: include/media/v4l2-flash-led-class.h |
diff --git a/Documentation/media/kapi/v4l2-intro.rst b/Documentation/media/kapi/v4l2-intro.rst index 7f4f26e666a2..e614d8d4ca1c 100644 --- a/Documentation/media/kapi/v4l2-intro.rst +++ b/Documentation/media/kapi/v4l2-intro.rst | |||
@@ -1,10 +1,3 @@ | |||
1 | Overview of the V4L2 driver framework | ||
2 | ===================================== | ||
3 | |||
4 | This text documents the various structures provided by the V4L2 framework and | ||
5 | their relationships. | ||
6 | |||
7 | |||
8 | Introduction | 1 | Introduction |
9 | ------------ | 2 | ------------ |
10 | 3 | ||
@@ -39,8 +32,8 @@ source that is available in samples/v4l/. It is a skeleton driver for | |||
39 | a PCI capture card, and demonstrates how to use the V4L2 driver | 32 | a PCI capture card, and demonstrates how to use the V4L2 driver |
40 | framework. It can be used as a template for real PCI video capture driver. | 33 | framework. It can be used as a template for real PCI video capture driver. |
41 | 34 | ||
42 | Structure of a driver | 35 | Structure of a V4L driver |
43 | --------------------- | 36 | ------------------------- |
44 | 37 | ||
45 | All drivers have the following structure: | 38 | All drivers have the following structure: |
46 | 39 | ||
@@ -68,8 +61,8 @@ This is a rough schematic of how it all relates: | |||
68 | \-filehandle instances | 61 | \-filehandle instances |
69 | 62 | ||
70 | 63 | ||
71 | Structure of the framework | 64 | Structure of the V4L2 framework |
72 | -------------------------- | 65 | ------------------------------- |
73 | 66 | ||
74 | The framework closely resembles the driver structure: it has a v4l2_device | 67 | The framework closely resembles the driver structure: it has a v4l2_device |
75 | struct for the device instance data, a v4l2_subdev struct to refer to | 68 | struct for the device instance data, a v4l2_subdev struct to refer to |
diff --git a/Documentation/media/kapi/v4l2-mc.rst b/Documentation/media/kapi/v4l2-mc.rst index c94ce0fa3839..8af347013490 100644 --- a/Documentation/media/kapi/v4l2-mc.rst +++ b/Documentation/media/kapi/v4l2-mc.rst | |||
@@ -1,4 +1,4 @@ | |||
1 | V4L2 Media Controller kAPI | 1 | V4L2 Media Controller functions and data structures |
2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | 2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
3 | 3 | ||
4 | .. kernel-doc:: include/media/v4l2-mc.h | 4 | .. kernel-doc:: include/media/v4l2-mc.h |
diff --git a/Documentation/media/kapi/v4l2-mediabus.rst b/Documentation/media/kapi/v4l2-mediabus.rst index b3c246b51c2c..e64131906d11 100644 --- a/Documentation/media/kapi/v4l2-mediabus.rst +++ b/Documentation/media/kapi/v4l2-mediabus.rst | |||
@@ -1,4 +1,4 @@ | |||
1 | V4L2 Media Bus kAPI | 1 | V4L2 Media Bus functions and data structures |
2 | ^^^^^^^^^^^^^^^^^^^ | 2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
3 | 3 | ||
4 | .. kernel-doc:: include/media/v4l2-mediabus.h | 4 | .. kernel-doc:: include/media/v4l2-mediabus.h |
diff --git a/Documentation/media/kapi/v4l2-mem2mem.rst b/Documentation/media/kapi/v4l2-mem2mem.rst index 61f9923286c7..5536b4a71e51 100644 --- a/Documentation/media/kapi/v4l2-mem2mem.rst +++ b/Documentation/media/kapi/v4l2-mem2mem.rst | |||
@@ -1,3 +1,4 @@ | |||
1 | V4L2 Memory to Memory kAPI | 1 | V4L2 Memory to Memory functions and data structures |
2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | 2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
3 | |||
3 | .. kernel-doc:: include/media/v4l2-mem2mem.h | 4 | .. kernel-doc:: include/media/v4l2-mem2mem.h |
diff --git a/Documentation/media/kapi/v4l2-rect.rst b/Documentation/media/kapi/v4l2-rect.rst index bb86dcbc5a3c..8df5067ad57d 100644 --- a/Documentation/media/kapi/v4l2-rect.rst +++ b/Documentation/media/kapi/v4l2-rect.rst | |||
@@ -1,4 +1,4 @@ | |||
1 | V4L2 rect kAPI | 1 | V4L2 rect helper functions |
2 | ^^^^^^^^^^^^^^ | 2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
3 | 3 | ||
4 | .. kernel-doc:: include/media/v4l2-rect.h | 4 | .. kernel-doc:: include/media/v4l2-rect.h |
diff --git a/Documentation/media/kapi/v4l2-subdev.rst b/Documentation/media/kapi/v4l2-subdev.rst index 456fdec69042..7e45b23ad3bd 100644 --- a/Documentation/media/kapi/v4l2-subdev.rst +++ b/Documentation/media/kapi/v4l2-subdev.rst | |||
@@ -440,18 +440,6 @@ well, but with irq set to 0 and platform_data set to ``NULL``. | |||
440 | V4L2 sub-device functions and data structures | 440 | V4L2 sub-device functions and data structures |
441 | --------------------------------------------- | 441 | --------------------------------------------- |
442 | 442 | ||
443 | V4L2 sub-device kAPI | ||
444 | ^^^^^^^^^^^^^^^^^^^^ | ||
445 | |||
446 | .. kernel-doc:: include/media/v4l2-subdev.h | 443 | .. kernel-doc:: include/media/v4l2-subdev.h |
447 | 444 | ||
448 | V4L2 sub-device asynchronous kAPI | ||
449 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
450 | |||
451 | .. kernel-doc:: include/media/v4l2-async.h | 445 | .. kernel-doc:: include/media/v4l2-async.h |
452 | |||
453 | |||
454 | V4L2 common kAPI | ||
455 | ^^^^^^^^^^^^^^^^ | ||
456 | |||
457 | .. kernel-doc:: include/media/v4l2-common.h | ||
diff --git a/Documentation/media/kapi/v4l2-tuner.rst b/Documentation/media/kapi/v4l2-tuner.rst index 37b0ef310a62..86e894639651 100644 --- a/Documentation/media/kapi/v4l2-tuner.rst +++ b/Documentation/media/kapi/v4l2-tuner.rst | |||
@@ -1,5 +1,5 @@ | |||
1 | Tuner kAPI | 1 | Tuner functions and data structures |
2 | ^^^^^^^^^^ | 2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
3 | 3 | ||
4 | .. kernel-doc:: include/media/tuner.h | 4 | .. kernel-doc:: include/media/tuner.h |
5 | 5 | ||
diff --git a/Documentation/media/kapi/v4l2-tveeprom.rst b/Documentation/media/kapi/v4l2-tveeprom.rst index f7ef71742e93..33422cb26aa7 100644 --- a/Documentation/media/kapi/v4l2-tveeprom.rst +++ b/Documentation/media/kapi/v4l2-tveeprom.rst | |||
@@ -1,4 +1,4 @@ | |||
1 | Hauppauge TV EEPROM kAPI | 1 | Hauppauge TV EEPROM functions and data structures |
2 | ^^^^^^^^^^^^^^^^^^^^^^^^ | 2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
3 | 3 | ||
4 | .. kernel-doc:: include/media/tveeprom.h | 4 | .. kernel-doc:: include/media/tveeprom.h |
diff --git a/Documentation/media/kapi/v4l2-videobuf2.rst b/Documentation/media/kapi/v4l2-videobuf2.rst index bdb8b83f1ea0..3c4cb1e7e05f 100644 --- a/Documentation/media/kapi/v4l2-videobuf2.rst +++ b/Documentation/media/kapi/v4l2-videobuf2.rst | |||
@@ -1,7 +1,7 @@ | |||
1 | .. _vb2_framework: | 1 | .. _vb2_framework: |
2 | 2 | ||
3 | V4L2 videobuf2 kAPI | 3 | V4L2 videobuf2 functions and data structures |
4 | ^^^^^^^^^^^^^^^^^^^ | 4 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
5 | 5 | ||
6 | .. kernel-doc:: include/media/videobuf2-core.h | 6 | .. kernel-doc:: include/media/videobuf2-core.h |
7 | 7 | ||