linux/drivers/media/platform/rockchip/rga
Sven Püschel 7acc334cf0 media: rockchip: rga: don't change RGB quantization
Don't change the quantization of an RGB format when converting between
RGB and YUV with the RGA3. As the RGA3 only supports doing conversions
to full range YUV with BT601, it wants to announce it through
try_fmt/s_fmt.

As it is only relevant, when converting between RGB and YUV, it's
guarded by a given condition. But the condition also causes the
RGB format quantization to be adjusted to limited range, which
is incorrect.

Therefore simplify the condition to only apply when the current format
is a YUV format. Also document the reason for checking if the other
format is an RGB format.

Fixes: 24a63d4c9d ("media: rockchip: rga: add rga3 support")
Cc: stable@vger.kernel.org
Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2026-07-17 12:36:15 +02:00
..
Kconfig media: rockchip: rga: support external iommus 2026-05-21 12:32:20 +02:00
Makefile media: rockchip: rga: add rga3 support 2026-05-21 12:32:21 +02:00
rga-buf.c media: rockchip: rga: move rga_fmt to rga-hw.h 2026-05-21 12:32:21 +02:00
rga-hw.c media: rockchip: rga: add feature flags 2026-05-21 12:32:21 +02:00
rga-hw.h media: rockchip: rga: move rga_fmt to rga-hw.h 2026-05-21 12:32:21 +02:00
rga.c media: rockchip: rga: add rga3 support 2026-05-21 12:32:21 +02:00
rga.h media: rockchip: rga: add rga3 support 2026-05-21 12:32:21 +02:00
rga3-hw.c media: rockchip: rga: don't change RGB quantization 2026-07-17 12:36:15 +02:00
rga3-hw.h media: rockchip: rga: add rga3 support 2026-05-21 12:32:21 +02:00