Commit 071dedfe authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] doc-rst: mention the memory type to be set for all streaming I/O

Changeset 8c9f46095176 ("[media] DocBook: mention the memory type to
be set for all streaming I/O") updated the media DocBook to mention
the need of filling the memory types. We need to keep the ReST
doc updated to such change.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 53ce5239
...@@ -11,8 +11,8 @@ Input and output devices support this I/O method when the ...@@ -11,8 +11,8 @@ Input and output devices support this I/O method when the
:ref:`v4l2_capability <v4l2-capability>` returned by the :ref:`v4l2_capability <v4l2-capability>` returned by the
:ref:`VIDIOC_QUERYCAP` ioctl is set. There are two :ref:`VIDIOC_QUERYCAP` ioctl is set. There are two
streaming methods, to determine if the memory mapping flavor is streaming methods, to determine if the memory mapping flavor is
supported applications must call the supported applications must call the :ref:`VIDIOC_REQBUFS` ioctl
:ref:`VIDIOC_REQBUFS` ioctl. with the memory type set to ``V4L2_MEMORY_MMAP``.
Streaming is an I/O method where only pointers to buffers are exchanged Streaming is an I/O method where only pointers to buffers are exchanged
between application and driver, the data itself is not copied. Memory between application and driver, the data itself is not copied. Memory
......
...@@ -11,8 +11,8 @@ Input and output devices support this I/O method when the ...@@ -11,8 +11,8 @@ Input and output devices support this I/O method when the
:ref:`v4l2_capability <v4l2-capability>` returned by the :ref:`v4l2_capability <v4l2-capability>` returned by the
:ref:`VIDIOC_QUERYCAP` ioctl is set. If the :ref:`VIDIOC_QUERYCAP` ioctl is set. If the
particular user pointer method (not only memory mapping) is supported particular user pointer method (not only memory mapping) is supported
must be determined by calling the must be determined by calling the :ref:`VIDIOC_REQBUFS` ioctl
:ref:`VIDIOC_REQBUFS` ioctl. with the memory type set to ``V4L2_MEMORY_USERPTR``.
This I/O method combines advantages of the read/write and memory mapping This I/O method combines advantages of the read/write and memory mapping
methods. Buffers (planes) are allocated by the application itself, and methods. Buffers (planes) are allocated by the application itself, and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment