提交 708f48e7 编写于 作者: S Sakari Ailus 提交者: Mauro Carvalho Chehab

[media] v4l: Document that m2m devices have a file handle specific context

Memory-to-memory V4L2 devices all have file handle specific context.
Say this in the API documentation so that the user space may rely on it
being the case.
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 20d93338
...@@ -26,7 +26,7 @@ parameters ...@@ -26,7 +26,7 @@ parameters
The MPEG controls actually support many more codecs than The MPEG controls actually support many more codecs than
just MPEG. See :ref:`mpeg-controls`. just MPEG. See :ref:`mpeg-controls`.
Memory-to-memory devices can often be used as a shared resource: you can Memory-to-memory devices function as a shared resource: you can
open the video node multiple times, each application setting up their open the video node multiple times, each application setting up their
own codec properties that are local to the file handle, and each can use own codec properties that are local to the file handle, and each can use
it independently from the others. The driver will arbitrate access to it independently from the others. The driver will arbitrate access to
......
...@@ -90,6 +90,9 @@ struct v4l2_m2m_queue_ctx { ...@@ -90,6 +90,9 @@ struct v4l2_m2m_queue_ctx {
* %TRANS_QUEUED, %TRANS_RUNNING and %TRANS_ABORT. * %TRANS_QUEUED, %TRANS_RUNNING and %TRANS_ABORT.
* @finished: Wait queue used to signalize when a job queue finished. * @finished: Wait queue used to signalize when a job queue finished.
* @priv: Instance private data * @priv: Instance private data
*
* The memory to memory context is specific to a file handle, NOT to e.g.
* a device.
*/ */
struct v4l2_m2m_ctx { struct v4l2_m2m_ctx {
/* optional cap/out vb2 queues lock */ /* optional cap/out vb2 queues lock */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册