Skip to contentSkip to conversation

video: da8xx-fb: fix the polarities of the hsync/vsync pulse

PATCH In review Darren Etheridge 1 participant 1 message Aug 23, 2013 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 video: da8xx-fb: fix the polarities of the hsync/vsync pulse

The polarities were being set to active low when fbdev was requesting active high. This patch reverses it so that what is set into the LCD controller is correct.

---
 drivers/video/da8xx-fb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/da8xx-fb.c +2 -2
index 278b7d7..f768791 100644
@@ -494,12 +494,12 @@ static int lcd_cfg_display(const struct lcd_ctrl_config *cfg,
 	else
 		reg &= ~LCD_SYNC_EDGE;
 
-	if (panel->sync & FB_SYNC_HOR_HIGH_ACT)
+	if ((panel->sync & FB_SYNC_HOR_HIGH_ACT) = 0)
 		reg |= LCD_INVERT_LINE_CLOCK;
 	else
 		reg &= ~LCD_INVERT_LINE_CLOCK;
 
-	if (panel->sync & FB_SYNC_VERT_HIGH_ACT)
+	if ((panel->sync & FB_SYNC_VERT_HIGH_ACT) = 0)
 		reg |= LCD_INVERT_FRAME_CLOCK;
 	else
 		reg &= ~LCD_INVERT_FRAME_CLOCK;
Signature · 1 line
1.7.0.4