• Trent Piepho's avatar
    V4L/DVB (5890): zr36067: Add UYVY, RGB555X, RGB565X, and RGB32 formats · 603d6f2c
    Trent Piepho authored
    Add support for the UYVY and the other big endian output formats.  The
    driver was naming formats based on the host endianess.  This is different
    that all the other drivers appear to work and not what software appears
    to expect.
    
    Use ARRAY_SIZE() to find the the size of the zoran_formats array.
    
    Change the way the driver handles setting the video format register.  Rather
    than use some if and switch statements to set to register by looking at the
    format id, the format list simply has a field with the proper bits to set.
    
    Adds a bit of ifdef to make a driver without V4L1 support more possible.
    Also create a macro for defining formats that handles vl41 and/or vl42
    support to avoid repeated ifdefs in the format list.
    Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
    Acked-by: default avatarRonald S. Bultje <rbultje@ronald.bitfreak.net>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
    603d6f2c
zoran_driver.c 114 KB