Skip to content

Commit

Permalink
Merge pull request #97 from OtherCrashOverride/fix-fbdev_vsync_-and_p…
Browse files Browse the repository at this point in the history
…anning

Fix OdroidC1 fbdev vsync and panning
  • Loading branch information
mdrjr committed Apr 22, 2015
2 parents 877f0fc + a9f09e0 commit 6544606
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/amlogic/display/osd/osd_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1484,8 +1484,9 @@ void osd_pan_display_hw(unsigned int xoffset, unsigned int yoffset,int index )
osd_hw.pandata[index].x_end += diff_x;
osd_hw.pandata[index].y_start += diff_y;
osd_hw.pandata[index].y_end += diff_y;
#if 0

add_to_update_list(index,DISP_GEOMETRY);
#if 0

#ifdef CONFIG_AM_FB_EXT
osd_ext_clone_pan(index);
Expand Down
13 changes: 13 additions & 0 deletions drivers/amlogic/display/osd/osd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
#include <linux/amlogic/logo/logo_dev_osd.h>
#ifdef CONFIG_HAS_EARLYSUSPEND
#include <linux/earlysuspend.h>

// This is not in osd_hw.h private or public header
void osd_wait_vsync_hw(void);


static struct early_suspend early_suspend;
static int early_suspend_flag = 0;
#endif
Expand Down Expand Up @@ -381,6 +386,14 @@ osd_ioctl(struct fb_info *info, unsigned int cmd,
ret = osddev_copy_data_tocursor(fbdev, &para);
}
break;

case FBIO_WAITFORVSYNC:
{
osd_wait_vsync_hw();
ret = 0;
}
break;

default :
amlog_mask_level(LOG_MASK_IOCTL,LOG_LEVEL_HIGH,"command not supported\r\n ");
return -1;
Expand Down

0 comments on commit 6544606

Please sign in to comment.