Hi Hans,

> int my_subdev_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh,
> struct v4l2_event_subscription *sub)
> {
> switch (sub->type) {
> case V4L2_EVENT_CTRL:
> return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub);
> case V4L2_EVENT_SOURCE_CHANGE:
> return v4l2_src_change_event_subdev_subscribe(sd, fh, sub);
> ...
> default:
> return -EINVAL;
> }
The state machine is already ON, whether the user does a subdev open or not.

So, the events are generated anyways.

I guess it's not too weird as the v4l2_event_queue_fh() requires fh, and it 
seems okay to get hold off fh by using these ops.


Regards,

Divneil                                           --
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to