1
0
Fork 0
alistair23-linux/drivers/media
Paul Kocialkowski ea1cdb1bb8 media: rockchip: rga: Only set output CSC mode for RGB input
[ Upstream commit 0f879bab72 ]

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 13:05:31 +02:00
..
cec media: cec: silence shift wrapping warning in __cec_s_log_addrs() 2020-06-22 09:31:02 +02:00
common media: v4l2-tpg: add support for new pixelformats 2019-07-30 12:16:45 -04:00
dvb-core media: dvbdev: Fix tuner->demod media controller link 2020-06-22 09:30:55 +02:00
dvb-frontends media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
firewire media: firewire: Using uninitialized values in node_probe() 2020-08-19 08:16:10 +02:00
i2c media: ov5640: fix use of destroyed mutex 2020-06-22 09:31:19 +02:00
mc media: media-request: Fix crash if memory allocation fails 2020-08-19 08:16:24 +02:00
mmc
pci media: rc: prevent memory leak in cx23888_ir_probe 2020-08-05 09:59:40 +02:00
platform media: rockchip: rga: Only set output CSC mode for RGB input 2020-08-21 13:05:31 +02:00
radio media: si470x-i2c: add missed operations in remove 2019-12-31 16:45:13 +01:00
rc media: rc: add keymap for Videostrong KII Pro 2020-04-17 10:49:59 +02:00
spi media: Clarify how menus are hidden by SUBDRV_AUTOSELECT 2019-08-19 12:00:29 -03:00
tuners media: si2157: Better check for running tuner in init 2020-06-22 09:30:50 +02:00
usb media: cxusb-analog: fix V4L2 dependency 2020-08-19 08:16:07 +02:00
v4l2-core media: v4l2-core: fix a use-after-free bug of sd->devnode 2020-04-01 11:02:18 +02:00
Kconfig media: Clarify how menus are hidden by SUBDRV_AUTOSELECT 2019-08-19 12:00:29 -03:00
Makefile