Skip to content

RFC media: events: add new flags

Hans Verkuil linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5media: videodev2.h: add flags field to v4l2_eventdrivers/media/v4l2-core/v4l2-compat-ioctl32.c drivers/media/v4l2-core/v4l2-ioctl.c include/uapi/linux/videodev2.h+10 -50 replies
2/5media: videodev2.h: add new v4l2_event flagsinclude/uapi/linux/videodev2.h+3 -00 replies
3/5media: v4l2-event: add support for V4L2_EVENT_FL_MULTIPLEdrivers/media/v4l2-core/v4l2-event.c+3 -01 reply
4/5media: v4l2-ctrls: set the new V4L2_EVENT_FL_INITIAL flagdrivers/media/v4l2-core/v4l2-ctrls-core.c+1 -00 replies
5/5Documentation: media: document new event flagsDocumentation/userspace-api/media/v4l/vidioc-dqevent.rst Documentation/userspace-api/media/v4l/vidioc-subscribe-event.rst Documentation/userspace-api/media/videodev2.h.rst.exceptions+35 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/5] media: events: add new flags

Note: this patch series sits on top of this patch:

https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/

However, it can be rebased if needed without that patch.

This series adds a flags field for v4l2_event and adds two flags:
one to indicate that the event is the initial event as requested by V4L2_EVENT_SUB_FL_SEND_INITIAL, and one flag to indicate that the event is a merger multiple events, meaning that some history is lost.

This information is particularly useful when debugging event issues.

Regards,

Hans

Hans Verkuil (5):
media: videodev2.h: add flags field to v4l2_event
media: videodev2.h: add new v4l2_event flags
media: v4l2-event: add support for V4L2_EVENT_FL_MULTIPLE
media: v4l2-ctrls: set the new V4L2_EVENT_FL_INITIAL flag
Documentation: media: document new event flags

 .../media/v4l/vidioc-dqevent.rst              | 29 +++++++++++++++++--
 .../media/v4l/vidioc-subscribe-event.rst      |  6 ++--
 .../media/videodev2.h.rst.exceptions          |  7 +++--
 drivers/media/v4l2-core/v4l2-compat-ioctl32.c |  8 +++--
 drivers/media/v4l2-core/v4l2-ctrls-core.c     |  1 +
 drivers/media/v4l2-core/v4l2-event.c          |  3 ++
 drivers/media/v4l2-core/v4l2-ioctl.c          |  4 +--
 include/uapi/linux/videodev2.h                |  6 +++-
 8 files changed, 52 insertions(+), 12 deletions(-)
Signature · 1 line
2.51.0