media: videobuf2: handle V4L2 buffer cache flags
authorSergey Senozhatsky <senozhatsky@chromium.org>
Thu, 14 May 2020 16:01:42 +0000 (18:01 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Jun 2020 11:25:11 +0000 (13:25 +0200)
commitf5f5fa73fbfb9f346f1b5f37ebf343bae6ef6361
tree6dac7c8404b8b378374cd960af73577e09f0f437
parent6d2199868a9aede70a4ee5fa32e6ae2800b8b25a
media: videobuf2: handle V4L2 buffer cache flags

Set video buffer cache management flags corresponding to V4L2 cache
flags.

Both ->prepare() and ->finish() cache management hints should be
passed during this stage (buffer preparation), because there is
no other way for user-space to tell V4L2 to avoid ->finish() cache
flush.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/videobuf2/videobuf2-v4l2.c
include/media/videobuf2-core.h