]> git.baikalelectronics.ru Git - kernel.git/commit
media: videodev2.h: Add request_fd field to v4l2_buffer
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 21 May 2018 08:54:44 +0000 (04:54 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 15:16:57 +0000 (11:16 -0400)
commita28074059df86016697598d661aa76354740ff49
treeea4a6ce0251a918d97b18fbd5de0277359491d86
parenta04e8a250c6b0e1dbea06b1292996f564977423e
media: videodev2.h: Add request_fd field to v4l2_buffer

When queuing buffers allow for passing the request that should
be associated with this buffer.

If V4L2_BUF_FLAG_REQUEST_FD is set, then request_fd is used as
the file descriptor.

If a buffer is stored in a request, but not yet queued to the
driver, then V4L2_BUF_FLAG_IN_REQUEST is set.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/videobuf2/videobuf2-v4l2.c
drivers/media/usb/cpia2/cpia2_v4l.c
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
drivers/media/v4l2-core/v4l2-ioctl.c
include/uapi/linux/videodev2.h