xf86-video-v4l: Changes to 'master'

Mauro Carvalho Chehab mchehab at kemper.freedesktop.org
Mon Feb 14 14:17:29 PST 2011


 src/v4l.c       | 1581 ++++++++++++++++++++++++++-------------------
 src/videodev.h  |  254 -------
 src/videodev2.h | 1929 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 2847 insertions(+), 917 deletions(-)

New commits:
commit ca09693ba2b82be416eaa0f9b6d4cd644bed514b
Author: Mauro Carvalho Chehab <mchehab at redhat.com>
Date:   Fri Feb 11 09:12:29 2011 -0200

    Fix standard video size detection
    
    video width/height size can vary not only as a function of the
    video standard but also in function of device capabilities. Due
    to that, the code were trying to get those info from the hardware.
    However, due to a driver bug, the info is not properly filled when
    the video standard is changed.
    
    While I intend to fix this inside the drivers, the current logic
    doesn't work with the current stable kernels. So, use an alternative
    way of getting this info, just using video standards information.
    
    Let's keep the not working code there, in order to make easy to
    return, after fixing the drivers. We'll probably need to check for
    driver versions after reenabling the correct (not working) code,
    or to use the new VIDIOC ioctl's to enumberate the supported
    formats.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab at redhat.com>

commit f7e6dcee73fe7bd95a1f9ae34018dbf4f2412f00
Author: Mauro Carvalho Chehab <mchehab at redhat.com>
Date:   Fri Feb 11 09:07:53 2011 -0200

    Fix arguments for v4l_check_yuv
    
    The device name and the file descriptors are wrong at the cal for
    v4l_check_yuv(). Due to that, the driver were falling back to work
    with RGB formats.
    
    While here, add a code to prevent V4L driver to work if no video
    adapter provide Xv overlay method.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab at redhat.com>

commit 6167b289f12ae9edff5640c8dc95eec102db1ee8
Author: Mauro Carvalho Chehab <mchehab at redhat.com>
Date:   Fri Feb 11 09:02:06 2011 -0200

    Provide a more consistent message if FBUF fails
    
    Instead of providing an useless info that FBUF fails, print an
    error indicating what's the Fourcc format that fails.
    
    Also, on debug mode, prints a message indicating the selection of a
    given fourcc. This helps to verify if both the video adapter and the
    video capture board were set to the same video format.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab at redhat.com>

commit 362a97d43c063809f9d64f9c762f50c382fd4cd3
Author: Mauro Carvalho Chehab <mchehab at redhat.com>
Date:   Fri Feb 11 08:58:30 2011 -0200

    Return BadMatch if a Port Attribute is not found
    
    Fix a small non-compliance issue: if a port attribute is not known,
    according with Xv specs, it should return BadMatch, and not BadValue.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab at redhat.com>

commit 2cca68d701d6b803b200ae064a4b77123d9a03f5
Author: Mauro Carvalho Chehab <mchehab at redhat.com>
Date:   Fri Feb 11 08:54:39 2011 -0200

    Fix Get/Set Port Attribute logic
    
    There are several issues at GPA/SPA logic:
      - driver tries to limit minimum/maximum values to -1000/1000;
      - If yuv_format is available, all GPA/SPA are sent to the
        overlay encoder at the video adapter;
      - The most used return condition is an error.
    
    Rework the entire logic to fix the above bugs and clean the
    code.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab at redhat.com>

commit f344cb78efc3d3bf80a74862111fcd352076201c
Author: Mauro Carvalho Chehab <mchehab at redhat.com>
Date:   Fri Feb 11 08:46:32 2011 -0200

    Use the fourcc header instead of redefining it inside the code
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab at redhat.com>

commit 436829a9d661815683f29df16a6843aa2e6066df
Author: Mauro Carvalho Chehab <mchehab at redhat.com>
Date:   Fri Feb 11 08:27:38 2011 -0200

    Coding style Cleanup
    
    It is hard to work on a file that has multiple coding styles. As
    we're rewriting the entire file, the better is to remove trailing
    spaces and fix all the alignment issues, using 4 spaces for alignment
    and not using tab.
    
    No functional changes are made on this patch.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab at redhat.com>

commit f4ccca1dec77ebc10609e23313e47504e8f19f55
Author: Mauro Carvalho Chehab <mchehab at redhat.com>
Date:   Fri Feb 11 07:49:01 2011 -0200

    Port xf86-video-v4l driver to V4L2
    
    V4L1 API was dropped on kernel 2.6.38. Even the emulation layer
    inside kernel was dropped. While it might still be possible to use
    X with libv4l and a LD_PRELOADER setup, the proper way is to port
    the driver to use the V4L2 API.
    
    This change brings some improvements to the code, as now all
    integer/boolean/menu controls are visible, and all video standards.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab at redhat.com>



More information about the xorg-commit mailing list