linux/drivers/media/platform/rockchip/rga
Paul Kocialkowski 0f879bab72 media: rockchip: rga: Only set output CSC mode for RGB input
Setting the output CSC mode is required for a YUV output, but must not
be set when the input is also YUV. Doing this (as tested with a YUV420P
to YUV420P conversion) results in wrong colors.

Adapt the logic to only set the output CSC mode when the output is YUV and
the input is RGB. Also add a comment to clarify the rationale.

Fixes: f7e7b48e6d ("[media] rockchip/rga: v4l2 m2m support")
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-07-04 12:44:59 +02:00
..
Makefile
rga-buf.c
rga-hw.c media: rockchip: rga: Only set output CSC mode for RGB input 2020-07-04 12:44:59 +02:00
rga-hw.h media: rockchip: rga: Introduce color fmt macros and refactor CSC mode logic 2020-07-04 12:44:42 +02:00
rga.c
rga.h