[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:17 +0000 (20:22 +0300)
commitb95bffe840322658754d250dad678702b27f16b6
treee5f9c633fb3c6db7e5b3854992ad64763e4155ae
parent9b7688b3959ee330868f36b8280d89fd79118eee
[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