summaryrefslogtreecommitdiff
path: root/drivers/media/v4l2-core/videobuf-dma-sg.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-05-21 11:54:53 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-31 18:24:02 +0300
commit803a7ab758252599ddadf5fe9326acee7340d9b6 (patch)
treedc37d01104638e1dbc347b7020cde0e2b936dd22 /drivers/media/v4l2-core/videobuf-dma-sg.c
parent9ac8090fda77f072815c209c80fb230e89cda18c (diff)
downloadlinux-803a7ab758252599ddadf5fe9326acee7340d9b6.tar.xz
media: v4l2-mem2mem: add vb2_m2m_request_queue
For mem2mem devices we have to make sure that v4l2_m2m_try_schedule() is called whenever a request is queued. We do that by creating a vb2_m2m_request_queue() helper that should be used instead of the 'normal' vb2_request_queue() helper. The m2m helper function will call v4l2_m2m_try_schedule() as needed. In addition we also avoid calling v4l2_m2m_try_schedule() when preparing or queueing a buffer for a request since that is no longer needed. Instead this helper function will do that when the request is actually queued. 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>
Diffstat (limited to 'drivers/media/v4l2-core/videobuf-dma-sg.c')
0 files changed, 0 insertions, 0 deletions