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 <[email protected]> Fixes: bbbe775 ("drm: Add support for Amlogic Meson Graphic Controller") Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 8f7115c commit 6836829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)