1. 22 3月, 2011 1 次提交
  2. 21 10月, 2010 3 次提交
    • H
      V4L/DVB: v4l2: add core serialization lock · ee6869af
      Hans Verkuil 提交于
      Drivers can optionally set a pointer to a mutex in struct video_device.
      The core will use that to lock before calling open, read, write, unlocked_ioctl,
      poll, mmap or release.
      
      Updated the documentation as well and ensure that v4l2-event knows about the
      lock: it will unlock it before doing a blocking wait on an event and relock it
      afterwards.
      
      Ensure that the 'video_is_registered' check is done when the lock is held:
      a typical disconnect will take the lock as well before unregistering the
      device nodes, so to prevent race conditions the video_is_registered check
      should also be done with the lock held.
      Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ee6869af
    • H
      V4L/DVB: v4l2-dev: remove get_unmapped_area · c29fcff3
      Hans Verkuil 提交于
      The get_unmapped_area file operation is unused. Remove.
      Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c29fcff3
    • H
      V4L/DVB: videotext: remove this obsolete API · 226c0eea
      Hans Verkuil 提交于
      Remove the vtx (aka videotext aka teletext) API from the v4l2 core.
      This API was scheduled for removal in kernel 2.6.35.
      
      The vtx device nodes have been superseded by vbi device nodes
      for many years. No applications exist that use the vtx support.
      Of the two i2c drivers that actually support this API the saa5249
      has been impossible to use for a year now and no known hardware
      that supports this device exists. The saa5246a is theoretically
      supported by the old mxb boards, but it never actually worked.
      
      In summary: there is no hardware that can use this API and there
      are no applications actually implementing this API.
      
      The vtx support still reserves minors 192-223 and we would really
      like to reuse those for upcoming new functionality. In the unlikely
      event that new hardware appears that wants to use the functionality
      provided by the vtx API, then that functionality should be build
      around the sliced VBI API instead.
      Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      226c0eea
  3. 09 8月, 2010 1 次提交
    • H
      V4L/DVB: v4l2: Add new control handling framework · 0996517c
      Hans Verkuil 提交于
      Add a new framework to handle controls which makes life for driver
      developers much easier.
      
      Note that this patch moves some of the control support that used to be in
      v4l2-common.c to v4l2-ctrls.c. The tables were copied unchanged. The body
      of v4l2_ctrl_query_fill() was copied to a new v4l2_ctrl_fill() function
      in v4l2-ctrls.c. This new function doesn't use the v4l2_queryctrl
      struct anymore, which makes it more general.
      
      The remainder of v4l2-ctrls.c is all new. Highlights include:
      
      - No need to implement VIDIOC_QUERYCTRL, QUERYMENU, S_CTRL, G_CTRL,
        S_EXT_CTRLS, G_EXT_CTRLS or TRY_EXT_CTRLS in either bridge drivers
        or subdevs. New wrapper functions are provided that can just be plugged in.
        Once everything has been converted these wrapper functions can be removed as well.
      
      - When subdevices are added their controls can be automatically merged
        with the bridge driver's controls.
      
      - Most drivers just need to implement s_ctrl to set the controls.
        The framework handles the locking and tries to be as 'atomic' as possible.
      
      - Ready for the subdev device nodes: the same mechanism applies to subdevs
        and their device nodes as well. Sub-device drivers can make controls
        local, preventing them from being merged with bridge drivers.
      
      - Takes care of backwards compatibility handling of VIDIOC_S_CTRL and
        VIDIOC_G_CTRL. Handling of V4L2_CID_PRIVATE_BASE is fully transparent.
        CTRL_CLASS controls are automatically added.
      Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      0996517c
  4. 19 5月, 2010 1 次提交
  5. 16 12月, 2009 2 次提交
  6. 19 9月, 2009 2 次提交
  7. 30 3月, 2009 1 次提交
  8. 03 1月, 2009 2 次提交
  9. 30 12月, 2008 2 次提交
  10. 12 10月, 2008 7 次提交
  11. 27 7月, 2008 3 次提交
  12. 26 7月, 2008 2 次提交
  13. 24 7月, 2008 3 次提交
  14. 20 7月, 2008 7 次提交
  15. 27 6月, 2008 1 次提交
  16. 05 6月, 2008 1 次提交
  17. 25 4月, 2008 1 次提交