Skip to content

Commit 865b5f4

Browse files
Michiielpopcornmix
authored andcommitted
vc4/hdmi: Fix Hsync and Vsync polarity changes
Polarity bits were only ever set and never cleared. Make sure they can also be cleared. Signed-off-by: Michiel Vanbiervliet <[email protected]>
1 parent 5df3720 commit 865b5f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/vc4/vc4_hdmi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,8 @@ static void vc4_hdmi_encoder_post_crtc_enable(struct drm_encoder *encoder,
18971897
spin_lock_irqsave(&vc4_hdmi->hw_lock, flags);
18981898

18991899
HDMI_WRITE(HDMI_VID_CTL,
1900-
HDMI_READ(HDMI_VID_CTL) |
1900+
(HDMI_READ(HDMI_VID_CTL) &~
1901+
(VC4_HD_VID_CTL_VSYNC_LOW | VC4_HD_VID_CTL_HSYNC_LOW)) |
19011902
VC4_HD_VID_CTL_ENABLE |
19021903
VC4_HD_VID_CTL_CLRRGB |
19031904
VC4_HD_VID_CTL_UNDERFLOW_ENABLE |

0 commit comments

Comments
 (0)