Skip to content

Commit 6836829

Browse files
Stuart Menefysuperna9999
authored andcommitted
drm/meson: Correct OSD1 global alpha value
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 <stuart.menefy@mathembedded.com> Fixes: bbbe775 ("drm: Add support for Amlogic Meson Graphic Controller") Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220908155103.686904-1-stuart.menefy@mathembedded.com
1 parent 8f7115c commit 6836829

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/meson/meson_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static void meson_plane_atomic_update(struct drm_plane *plane,
170170

171171
/* Enable OSD and BLK0, set max global alpha */
172172
priv->viu.osd1_ctrl_stat = OSD_ENABLE |
173-
(0xFF << OSD_GLOBAL_ALPHA_SHIFT) |
173+
(0x100 << OSD_GLOBAL_ALPHA_SHIFT) |
174174
OSD_BLK0_ENABLE;
175175

176176
priv->viu.osd1_ctrl_stat2 = readl(priv->io_base +

0 commit comments

Comments
 (0)