Hans Verkuil wrote: > On Tuesday 23 February 2010 00:27:30 Sakari Ailus wrote: >> Hans Verkuil wrote: >>> On Monday 22 February 2010 23:47:49 Sakari Ailus wrote: >>>> Will be "There are standard and private events. New standard events must >>>> use the smallest available event type. The drivers must allocate their >>>> events starting from base (V4L2_EVENT_PRIVATE_START + n * 1024) + 1." in >>>> the next one. >>> >>> Ah, OK. But why '+ 1'? I don't really see a reason for that to be honest. >>> Am I missing something? >> >> Many V4L2 control classes do that. No other reason really. :-) Can be >> removed on my behalf. > > Then this can be removed. There are reasons for doing that with controls, but > those reasons do not apply to events (mostly to do with the CTRL_NEXT flag).
Good point. Would we want to enumerate events in future perhaps? If so, it might still be a good idea to keep this for now. What do you think? -- Sakari Ailus sakari.ai...@maxwell.research.nokia.com -- 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