]> git.baikalelectronics.ru Git - kernel.git/commit
drm/meson: Fix OSD1 RGB to YCbCr coefficient
authorStuart Menefy <stuart.menefy@mathembedded.com>
Thu, 8 Sep 2022 15:52:43 +0000 (16:52 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 9 Sep 2022 11:34:06 +0000 (13:34 +0200)
commit5cacf2d5edfaf6f01311bd22556d4f1a8d0bc3ca
treefd4031740ed857f2cc031b42e709ca5bb1867357
parent955d8719516428357dbda7e1f1d146cf6ca6ae41
drm/meson: Fix OSD1 RGB to YCbCr coefficient

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: Stuart Menefy <stuart.menefy@mathembedded.com>
Fixes: 9a920133d0a7 ("drm/meson: Add G12A Support for VIU setup")
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220908155243.687143-1-stuart.menefy@mathembedded.com
drivers/gpu/drm/meson/meson_viu.c