kernel_samsung_a53x/drivers/media/platform
Michael Tretter ce172d418c media: rockchip: rga: fix swizzling for RGB formats
[ Upstream commit 9e7dc39260edac180c206bb6149595a40eabae3e ]

When using 32 bit RGB formats, the RGA on the rk3568 produces wrong
colors as the wrong color channels are read or written.  The reason is
that the format description for the channel swizzeling is wrong and the
wrong bits are configured. For example, when converting ARGB32 to NV12,
the alpha channel is used as blue channel.. This doesn't happen if the
color format is the same on both sides.

Fix the color_swap settings of the formats to correctly handle 32 bit
RGB formats.

For RGA_COLOR_FMT_XBGR8888, the RGA_COLOR_ALPHA_SWAP bit doesn't have an
effect. Thus, it isn't possible to handle the V4L2_PIX_FMT_XRGB32. Thus,
it is removed from the list of supported formats.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:18 +01:00
..
am437x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atmel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cadence Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coda Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davinci Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos mfc: Reduce QoS boosting from Samsung hacks 2024-11-17 17:43:58 +01:00
exynos-gsc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos4-is Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
marvell-ccic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk-jpeg media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run 2024-11-18 12:13:06 +01:00
mtk-mdp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk-vcodec Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk-vpu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap3isp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom media: qcom: camss: Fix vfe_get() error jump 2024-11-18 11:43:31 +01:00
rcar-vin Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rockchip/rga media: rockchip: rga: fix swizzling for RGB formats 2024-11-18 12:13:18 +01:00
s3c-camif media: s3c-camif: Avoid inappropriate kfree() 2024-11-18 11:43:07 +01:00
s5p-g2d Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s5p-jpeg Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s5p-mfc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunxi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti-vpe Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vsp1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xilinx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aspeed-video.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl-viu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-pxp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-pxp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
m2m-deinterlace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mx2_emmaprp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa_camera.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar-fcp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar_drif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar_fdp1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar_jpu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
renesas-ceu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sh_vou.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
via-camera.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
via-camera.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
video-mux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00