Black screen patch for some HiSilicon devices (FBIOPAN_DISPLAY)
Change-Id: Ib114dcc7b48219142602a2fbc256e2a0258b26e0
This commit is contained in:
committed by
Dees Troy
parent
b9e547e6ac
commit
0ac2293a9e
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user