[media] vb2: add is_unordered callback for drivers
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Fri, 23 Mar 2018 07:34:55 +0000 (16:34 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:40 +0000 (14:28 +0900)
commit087d5a2870133e942b6f0a2aaee8e40c9f7b49d2
tree7f255dc2173d5a43c9ca2d0ff1eba3000fcc52db
parent7ca1afa7431f80b2edf514e0d29a0ebe9efeee42
[media] vb2: add is_unordered callback for drivers

Explicit synchronization benefits a lot from ordered queues, they fit
better in a pipeline with DRM for example so create a opt-in way for
drivers notify videobuf2 that the queue is unordered.

Drivers don't need implement it if the queue is ordered.

v2: - improve comments for is_unordered flag (Hans)

v3: - make it bool (Hans)
- create vb2_ops_set_unordered() helper

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Change-Id: I519c8576f2fd1b83e60a4da40c169b16b86ef825
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/media/v4l2-core/videobuf2-v4l2.c
include/media/videobuf2-core.h
include/media/videobuf2-v4l2.h