mirror_ubuntu-kernels/drivers/gpu/drm/meson
Stuart Menefy 6463d3930b 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: 728883948b ("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
2022-09-09 13:34:06 +02:00
..
Kconfig drm: Remove CONFIG_DRM_KMS_CMA_HELPER option 2021-11-30 11:10:03 +01:00
Makefile drm/meson: rename venc_cvbs to encoder_cvbs 2021-11-12 10:10:01 +01:00
meson_crtc.c drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
meson_crtc.h
meson_drv.c drm/meson: Fix refcount bugs in meson_vpu_has_available_connectors() 2022-08-08 09:46:22 +02:00
meson_drv.h drm/meson: overlay: setup overlay for Amlogic FBC 2020-07-03 10:12:29 +02:00
meson_dw_hdmi.c drm/meson: encoder_hdmi: switch to bridge DRM_BRIDGE_ATTACH_NO_CONNECTOR 2021-11-12 10:10:01 +01:00
meson_dw_hdmi.h
meson_encoder_cvbs.c drm/meson: encoder_cvbs: Fix refcount leak in meson_encoder_cvbs_init 2022-06-07 14:25:16 +02:00
meson_encoder_cvbs.h drm/meson: rename venc_cvbs to encoder_cvbs 2021-11-12 10:10:01 +01:00
meson_encoder_hdmi.c drm/meson: encoder_hdmi: Fix refcount leak in meson_encoder_hdmi_init 2022-06-07 14:25:16 +02:00
meson_encoder_hdmi.h drm/meson: split out encoder from meson_dw_hdmi 2021-11-12 10:09:19 +01:00
meson_osd_afbcd.c drm/meson: osd_afbcd: Add an exit callback to struct meson_afbcd_ops 2022-01-03 12:28:25 +01:00
meson_osd_afbcd.h drm/meson: osd_afbcd: Add an exit callback to struct meson_afbcd_ops 2022-01-03 12:28:25 +01:00
meson_overlay.c drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
meson_overlay.h
meson_plane.c drm/meson: Correct OSD1 global alpha value 2022-09-09 13:33:44 +02:00
meson_plane.h
meson_rdma.c
meson_rdma.h
meson_registers.h drm/meson: fix colour distortion from HDR set during vendor u-boot 2021-08-10 10:00:02 +02:00
meson_vclk.c drm/meson/meson_vclk: Make two local functions static 2020-11-17 18:34:14 +01:00
meson_vclk.h
meson_venc.c drm/meson: Fix few typo 2021-03-19 10:40:54 +01:00
meson_venc.h
meson_viu.c drm/meson: Fix OSD1 RGB to YCbCr coefficient 2022-09-09 13:34:06 +02:00
meson_viu.h
meson_vpp.c
meson_vpp.h