Commit e5c27ef3 authored by Anton Leontiev's avatar Anton Leontiev Committed by Mauro Carvalho Chehab

[media] vb2: Fix queue_setup() callback description

Correct meaning of the last sensence by swapping it with previous.
Fix two small typos.
Signed-off-by: default avatarAnton Leontiev <scileont@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 49375e68
...@@ -305,16 +305,16 @@ struct vb2_buffer { ...@@ -305,16 +305,16 @@ struct vb2_buffer {
* buffer in \*num_planes, the size of each plane should be * buffer in \*num_planes, the size of each plane should be
* set in the sizes\[\] array and optional per-plane * set in the sizes\[\] array and optional per-plane
* allocator specific device in the alloc_devs\[\] array. * allocator specific device in the alloc_devs\[\] array.
* When called from VIDIOC_REQBUFS,() \*num_planes == 0, * When called from VIDIOC_REQBUFS(), \*num_planes == 0,
* the driver has to use the currently configured format to * the driver has to use the currently configured format to
* determine the plane sizes and \*num_buffers is the total * determine the plane sizes and \*num_buffers is the total
* number of buffers that are being allocated. When called * number of buffers that are being allocated. When called
* from VIDIOC_CREATE_BUFS,() \*num_planes != 0 and it * from VIDIOC_CREATE_BUFS(), \*num_planes != 0 and it
* describes the requested number of planes and sizes\[\] * describes the requested number of planes and sizes\[\]
* contains the requested plane sizes. If either * contains the requested plane sizes. In this case
* \*num_planes or the requested sizes are invalid callback * \*num_buffers are being allocated additionally to
* must return %-EINVAL. In this case \*num_buffers are * q->num_buffers. If either \*num_planes or the requested
* being allocated additionally to q->num_buffers. * sizes are invalid callback must return %-EINVAL.
* @wait_prepare: release any locks taken while calling vb2 functions; * @wait_prepare: release any locks taken while calling vb2 functions;
* it is called before an ioctl needs to wait for a new * it is called before an ioctl needs to wait for a new
* buffer to arrive; required to avoid a deadlock in * buffer to arrive; required to avoid a deadlock in
......
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