26 Nov, 2011

1 commit


28 Jul, 2011

2 commits


31 Mar, 2011

1 commit


23 Mar, 2011

3 commits


22 Mar, 2011

7 commits

  • Instead of returning an error when receiving an ioctl call with an
    unsupported command, forward the call to the subdev core::ioctl handler.

    Signed-off-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     
  • V4L2 subdevices are media entities. As such they need to inherit from
    (include) the media_entity structure.

    When registering/unregistering the subdevice, the media entity is
    automatically registered/unregistered. The entity is acquired on device
    open and released on device close.

    Signed-off-by: Laurent Pinchart
    Signed-off-by: Sakari Ailus
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     
  • V4L2 devices are media entities. As such they need to inherit from
    (include) the media_entity structure.

    When registering/unregistering the device, the media entity is
    automatically registered/unregistered. The entity is acquired on device
    open and released on device close.

    Signed-off-by: Laurent Pinchart
    Signed-off-by: Sakari Ailus
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     
  • The pointer will later be used to register/unregister media entities
    when registering/unregistering a v4l2_subdev or a video_device.

    With the introduction of media devices, device drivers need to store a
    pointer to a driver-specific structure in the device's drvdata.
    v4l2_device can't claim ownership of the drvdata anymore.

    To maintain compatibility with drivers that rely on v4l2_device storing
    a pointer to itself in the device's drvdata, v4l2_device_register() will
    keep doing so if the drvdata is NULL.

    Signed-off-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     
  • Provide v4l2_subdevs with v4l2_event support. Subdev drivers only need very
    little to support events.

    Signed-off-by: Sakari Ailus
    Signed-off-by: David Cohen
    Signed-off-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     
  • Pass the control-related ioctls to the subdev driver through the control
    framework.

    Signed-off-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     
  • Create a device node named subdevX for every registered subdev.

    As the device node is registered before the subdev core::s_config
    function is called, return -EGAIN on open until initialization
    completes.

    Signed-off-by: Laurent Pinchart
    Signed-off-by: Vimarsh Zutshi
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     

21 Oct, 2010

5 commits

  • Don't hold the lock before unregistering the device, since when the
    device is unregistered the datastruct containing the lock may be freed
    (if the refcount went to 0).

    Also fixed the framework documentation that erroneously suggested the
    wrong locking order as well.

    Reported-by: David Ellingsworth
    Signed-off-by: Hans Verkuil
    Acked-by: David Ellingsworth
    Signed-off-by: Mauro Carvalho Chehab

    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: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Until now all fops except release and (unlocked_)ioctl returned an error
    after the device node was unregistered. Extend this as well to the ioctl
    fops. There is nothing useful that an application can do here and it
    complicates the driver code unnecessarily.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Remove all references to /dev/vtx in the documentation, except for
    some historical comments in dev-teletext.xml.

    Documentation/devices.txt is not updated, this will go through Alan Cox
    who maintains this file.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The existing priv field stores subdev private data owned by the subdev
    driver. Host (bridge) drivers might need to store per-subdev
    host-specific data, such as a pointer to platform data.

    Add a v4l2_subdev host_priv field to store host-specific data, and
    rename the existing priv field to dev_priv.

    Signed-off-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     

19 May, 2010

3 commits


27 Feb, 2010

2 commits


16 Dec, 2009

1 commit


19 Sep, 2009

4 commits


23 Jun, 2009

1 commit


17 Jun, 2009

1 commit


07 Apr, 2009

3 commits


30 Mar, 2009

6 commits