]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: uapi: v4l: Fix V4L2_TYPE_IS_OUTPUT condition
authorNas Chung <nas.chung@chipsnmedia.com>
Thu, 25 Jul 2024 06:10:34 +0000 (15:10 +0900)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 7 Apr 2025 11:28:25 +0000 (13:28 +0200)
V4L2_TYPE_IS_OUTPUT() returns true for V4L2_BUF_TYPE_VIDEO_OVERLAY
which definitely belongs to CAPTURE.

Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
include/uapi/linux/videodev2.h

index ccd6ad53432ea7661d5adabc493e7fcd9557cf5f..af86ece741e94d27233ee74ad1171a23fd93d469 100644 (file)
@@ -172,7 +172,6 @@ enum v4l2_buf_type {
 #define V4L2_TYPE_IS_OUTPUT(type)                              \
        ((type) == V4L2_BUF_TYPE_VIDEO_OUTPUT                   \
         || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE         \
-        || (type) == V4L2_BUF_TYPE_VIDEO_OVERLAY               \
         || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY        \
         || (type) == V4L2_BUF_TYPE_VBI_OUTPUT                  \
         || (type) == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT           \