• D
    media: tc358743: Return an appropriate colorspace from tc358743_set_fmt · 28210c29
    Dave Stevenson 提交于
    raspberrypi inclusion
    category: feature
    bugzilla: 50432
    
    --------------------------------
    
    When calling tc358743_set_fmt, the code was calling tc358743_get_fmt
    to choose a valid format. However that sets the colorspace
    based on what was read back from the chip. When you set the format,
    then the driver would choose and program the colorspace based
    on the format code.
    
    The result was that if you called try or set format for UYVY
    when the current format was RGB3 then you would get told sRGB,
    and try RGB3 when current was UYVY and you would get told
    SMPTE170M.
    
    The value programmed into the chip is determined by this driver,
    therefore there is no need to read back the value. Return the
    colorspace based on the format set/tried instead.
    Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.org>
    Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
    Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
    28210c29
tc358743.c 60.0 KB