Black screen patch for some HiSilicon devices (FBIOPAN_DISPLAY)

Change-Id: Ib114dcc7b48219142602a2fbc256e2a0258b26e0
This commit is contained in:
Muhammad Fahad Baig
2016-04-07 09:19:33 +01:00
committed by Dees Troy
parent b9e547e6ac
commit 0ac2293a9e
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -137,6 +137,9 @@ endif
ifeq ($(TW_SCREEN_BLANK_ON_BOOT), true)
LOCAL_CFLAGS += -DTW_SCREEN_BLANK_ON_BOOT
endif
ifeq ($(TW_FBIOPAN), true)
LOCAL_CFLAGS += -DTW_FBIOPAN
endif
ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true)
LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN
+6
View File
@@ -103,6 +103,12 @@ static void set_displayed_framebuffer(unsigned n)
vi.bits_per_pixel = gr_framebuffer[0].pixel_bytes * 8;
if (ioctl(fb_fd, FBIOPUT_VSCREENINFO, &vi) < 0) {
perror("active fb swap failed");
#ifdef TW_FBIOPAN
} else {
if (ioctl(fb_fd, FBIOPAN_DISPLAY, &vi) < 0) {
perror("pan failed");
}
#endif
}
displayed_buffer = n;
}