[PATCH] drm/meson: Fix OSD1 RGB to YCbCr coefficient

2022-09-08 Thread Stuart Menefy
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 --- drivers/gpu/drm/meson/meson_viu.c | 2

[PATCH] drm/meson: Correct OSD1 global alpha value

2022-09-08 Thread Stuart Menefy
VIU_OSD1_CTRL_STAT.GLOBAL_ALPHA is a 9 bit field, so the maximum value is 0x100 not 0xff. This matches the vendor kernel. Signed-off-by: Stuart Menefy --- drivers/gpu/drm/meson/meson_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/meson/meson_plane.c