kernel-fxtec-pro1x/drivers/media
Paul Kocialkowski d7ee731744 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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-21 11:05:35 +02:00
..
cec media: cec: silence shift wrapping warning in __cec_s_log_addrs() 2020-06-22 09:05:15 +02:00
common media: videobuf2-dma-sg: Prevent size from overflowing 2019-07-26 09:14:24 +02:00
dvb-core media: don't drop front-end reference count for ->detach 2019-10-05 13:10:05 +02:00
dvb-frontends media: dvb-frontends: use ida for pll number 2019-10-05 13:09:46 +02:00
firewire media: firewire: Using uninitialized values in node_probe() 2020-08-19 08:14:56 +02:00
i2c media: ov5640: fix use of destroyed mutex 2020-06-22 09:05:27 +02:00
mmc
pci media: rc: prevent memory leak in cx23888_ir_probe 2020-08-05 10:05:59 +02:00
platform media: rockchip: rga: Only set output CSC mode for RGB input 2020-08-21 11:05:35 +02:00
radio media: si470x-i2c: Move free() past last use of 'radio' 2020-02-05 14:43:40 +00:00
rc media: rc: IR signal for Panasonic air conditioner too long 2020-04-13 10:45:01 +02:00
spi media: cxd2880-spi: fix probe when dvb_attach fails 2019-12-13 08:52:23 +01:00
tuners media: si2157: Better check for running tuner in init 2020-06-22 09:05:09 +02:00
usb media: go7007: fix a miss of snd_card_free 2020-06-22 09:05:26 +02:00
v4l2-core media: v4l2-mem2mem.c: fix broken links 2020-03-11 14:15:03 +01:00
Kconfig
Makefile
media-device.c media: mc-device.c: don't memset __user pointer contents 2019-07-26 09:14:02 +02:00
media-devnode.c
media-entity.c