]> git.baikalelectronics.ru Git - kernel.git/commit
media: vb2: store userspace data in vb2_v4l2_buffer
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 21 May 2018 08:54:45 +0000 (04:54 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 15:14:44 +0000 (11:14 -0400)
commite76632abe7d15b83be5fe22c1193b3a61c613796
tree0fb12ca81661df0f07005df9615453b34d5de638
parent9e57d176bbd6495d3935b39c189d0cda65ed1ecb
media: vb2: store userspace data in vb2_v4l2_buffer

The userspace-provided plane data needs to be stored in
vb2_v4l2_buffer. Currently this information is applied by
__fill_vb2_buffer() which is called by the core prepare_buf
and qbuf functions, but when using requests these functions
aren't called yet since the buffer won't be prepared until
the media request is actually queued.

In the meantime this information has to be stored somewhere
and vb2_v4l2_buffer is a good place for it.

The __fill_vb2_buffer callback now just copies the relevant
information from vb2_v4l2_buffer into the planes array.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/videobuf2/videobuf2-core.c
drivers/media/common/videobuf2/videobuf2-v4l2.c
drivers/media/dvb-core/dvb_vb2.c
include/media/videobuf2-core.h
include/media/videobuf2-v4l2.h