]> git.baikalelectronics.ru Git - kernel.git/commit
[media] videobuf2-core: move __setup_lengths into __vb2_queue_alloc()
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 20 Nov 2015 11:25:52 +0000 (09:25 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 18 Dec 2015 16:03:00 +0000 (14:03 -0200)
commitba8e39e666d867630942b648f10e324144a02f88
tree651130166f7677aafeeb4031c9bbf06196014868
parente70945f65cb2cab91da62e00ee3da41b5d9157df
[media] videobuf2-core: move __setup_lengths into __vb2_queue_alloc()

Rather than setting up the lengths at the end, set them up when
the vb2_buffer is allocated. This also ensures that buf_init()
sees the right length values.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c