TencentOS-kernel/drivers/media
Paul Kocialkowski 3458663775 media: rockchip: rga: Only set output CSC mode for RGB input
[ Upstream commit 0f879bab72f47e8ba2421a984e7acfa763d3e84e ]

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: f7e7b48e6d79 ("[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-16 16:34:12 +08:00
..
cec media: cec: silence shift wrapping warning in __cec_s_log_addrs() 2021-03-16 16:29:27 +08:00
common Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dvb-core media: dvbdev: Fix tuner->demod media controller link 2021-03-16 16:29:21 +08:00
dvb-frontends Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
firewire media: firewire: Using uninitialized values in node_probe() 2021-03-16 16:33:32 +08:00
i2c media: ov5640: fix use of destroyed mutex 2021-03-16 16:29:45 +08:00
mc media: media-request: Fix crash if memory allocation fails 2021-03-16 16:33:51 +08:00
mmc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pci media: rc: prevent memory leak in cx23888_ir_probe 2021-03-16 16:32:44 +08:00
platform media: rockchip: rga: Only set output CSC mode for RGB input 2021-03-16 16:34:12 +08:00
radio Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
rc media: rc: add keymap for Videostrong KII Pro 2021-03-16 16:25:54 +08:00
spi Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
tuners media: si2157: Better check for running tuner in init 2021-03-16 16:29:15 +08:00
usb media: cxusb-analog: fix V4L2 dependency 2021-03-16 16:33:30 +08:00
v4l2-core Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00