07 Apr, 2009

4 commits

  • The functions v4l2_i2c_new_subdev and v4l2_i2c_new_probed_subdev relied on
    i2c_get_adapdata to return the v4l2_device. However, this is not always
    possible on embedded platforms. So modify the API to pass the v4l2_device
    pointer explicitly.

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

    Hans Verkuil
     
  • Now that all drivers are converted to v4l2_subdev we can remove legacy code
    in v4l2-common. Also move the documentation of the internal API to
    v4l2-subdev.h where it really belongs.

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

    Hans Verkuil
     
  • If usb_interface.dev is used as dev parameter for v4l2_device_register
    v4l2_dev.name contains the v4l driver/module name and usb device and
    interface instead of a simple "usb x-y".
    It also matches the recommendation to set the parent devices for usb
    drivers.

    Signed-off-by: Janne Grunau
    Signed-off-by: Mauro Carvalho Chehab

    Janne Grunau
     
  • The DMA transfers in pxa_camera showed some weaknesses in
    multiple queued buffers context :
    - poll/select problem
    The bug shows up with capture_example tool from v4l2 hg
    tree. The process just "stalls" on a "select timeout".

    - multiple buffers DMA starting
    When multiple buffers were queued, the DMA channels were
    always started right away. This is not optimal, as a
    special case appears when the first EOF was not yet
    reached, and the DMA channels were prematurely started.

    - Maintainability
    DMA code was a bit obfuscated. Rationalize the code to be
    easily maintainable by anyone.

    - DMA hot chaining
    DMA is not stopped anymore to queue a buffer, the buffer
    is queued with DMA running. As a tribute, a corner case
    exists where chaining happens while DMA finishes the
    chain, and the capture is restarted to deal with the
    missed link buffer.

    This patch attemps to address these issues / improvements.

    create mode 100644 Documentation/video4linux/pxa_camera.txt

    Signed-off-by: Robert Jarzmik
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Robert Jarzmik
     

30 Mar, 2009

36 commits