CONFIG_AMLOGIC_MEDIA_FB_OSD_SYNC_FENCE=y
CONFIG_AMLOGIC_MEDIA_FB_OSD_VSYNC_RDMA=y
CONFIG_AMLOGIC_MEDIA_FB_OSD2_ENABLE=y
-CONFIG_AMLOGIC_MEDIA_FB_OSD2_CURSOR=y
CONFIG_AMLOGIC_MEDIA_DEINTERLACE=y
CONFIG_AMLOGIC_MEDIA_VIN=y
CONFIG_AMLOGIC_MEDIA_TVIN=y
};
#endif
+#ifdef CONFIG_AMLOGIC_MEDIA_FB_OSD2_CURSOR
static int osd_cursor(struct fb_info *fbi, struct fb_cursor *var);
+#endif
+
+extern int soft_cursor(struct fb_info *info, struct fb_cursor *cursor);
static int osd_set_fb_var(int index, const struct vinfo_s *vinfo)
{
return 0;
}
+#ifdef CONFIG_AMLOGIC_MEDIA_FB_OSD2_CURSOR
static int osd_cursor(struct fb_info *fbi, struct fb_cursor *var)
{
s16 startx = 0, starty = 0;
return 0;
}
+#endif
static int osd_sync(struct fb_info *info)
{
.fb_fillrect = cfb_fillrect,
.fb_copyarea = cfb_copyarea,
.fb_imageblit = cfb_imageblit,
+#if !defined(CONFIG_AMLOGIC_MEDIA_FB_OSD2_CURSOR)
+ .fb_cursor = soft_cursor,
+#else
#ifdef CONFIG_FB_SOFT_CURSOR
.fb_cursor = soft_cursor,
#endif
+#ifdef CONFIG_AMLOGIC_MEDIA_FB_OSD2_CURSOR
.fb_cursor = osd_cursor,
+#endif
+#endif
.fb_ioctl = osd_ioctl,
#ifdef CONFIG_COMPAT
.fb_compat_ioctl = osd_compat_ioctl,