Skip to content
Commit ec0eb51d authored by Dave Stevenson's avatar Dave Stevenson Committed by popcornmix
Browse files

media: tc358743: Return an appropriate colorspace from tc358743_set_fmt



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: default avatarDave Stevenson <dave.stevenson@raspberrypi.org>
parent 93b3e854
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment