Skip to content
Commit f86092d1 authored by Stuart Menefy's avatar Stuart Menefy Committed by Greg Kroah-Hartman
Browse files

drm/meson: Fix OSD1 RGB to YCbCr coefficient



[ Upstream commit 6463d393 ]

VPP_WRAP_OSD1_MATRIX_COEF22.Coeff22 is documented as being bits 0-12,
not 16-28.

Without this the output tends to have a pink hue, changing it results
in better color accuracy.

The vendor kernel doesn't use this register. However the code which
sets VIU2_OSD1_MATRIX_COEF22 also uses bits 0-12. There is a slightly
different style of registers for configuring some of the other matrices,
which do use bits 16-28 for this coefficient, but those have names
ending in MATRIX_COEF22_30, and this is not one of those.

Signed-off-by: default avatarStuart Menefy <stuart.menefy@mathembedded.com>
Fixes: 72888394 ("drm/meson: Add G12A Support for VIU setup")
Reviewed-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220908155243.687143-1-stuart.menefy@mathembedded.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d38eb1f3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment