Hi Hans,
Many thanks for the patch. I'm very happy to see this!
I have just one comment below.
> diff --git a/include/media/v4l2-event.h b/include/media/v4l2-event.h
> index 45e9c1e..042b893 100644
> --- a/include/media/v4l2-event.h
> +++ b/include/media/v4l2-event.h
> @@ -43,17 +43,6 @@ struct v4l2_subscribed_event {
> u32 id;
> };
>
> -struct v4l2_events {
> - wait_queue_head_t wait;
> - struct list_head subscribed; /* Subscribed events */
> - struct list_head free; /* Events ready for use */
> - struct list_head available; /* Dequeueable event */
> - unsigned int navailable;
> - unsigned int nallocated; /* Number of allocated events */
> - u32 sequence;
> -};
> -
> -int v4l2_event_init(struct v4l2_fh *fh);
> int v4l2_event_alloc(struct v4l2_fh *fh, unsigned int n);
> void v4l2_event_free(struct v4l2_fh *fh);
> int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event,
> diff --git a/include/media/v4l2-fh.h b/include/media/v4l2-fh.h
> index d247111..bfc0457 100644
> --- a/include/media/v4l2-fh.h
> +++ b/include/media/v4l2-fh.h
> @@ -29,15 +29,22 @@
> #include <linux/list.h>
>
> struct video_device;
> -struct v4l2_events;
> struct v4l2_ctrl_handler;
>
> struct v4l2_fh {
> struct list_head list;
> struct video_device *vdev;
> - struct v4l2_events *events; /* events, pending and subscribed */
> struct v4l2_ctrl_handler *ctrl_handler;
> enum v4l2_priority prio;
> +
> + /* Events */
> + wait_queue_head_t wait;
> + struct list_head subscribed; /* Subscribed events */
> + struct list_head free; /* Events ready for use */
> + struct list_head available; /* Dequeueable event */
> + unsigned int navailable;
> + unsigned int nallocated; /* Number of allocated events */
> + u32 sequence;
A question: why to move the fields from v4l2_events to v4l2_fh? Events may
be more important part of V4L2 than before but they're still not file
handles. :-) The event related field names have no hing they'd be related to
events --- "free", for example.
Regards,
--
Sakari Ailus
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html