mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
OMAP: DSS2: OMAPFB: add support for FBIO_WAITFORVSYNC
FBIO_WAITFORVSYNC is a stardard ioctl for waiting vsync, already used by some userspace, so add it as an alias for OMAPFB_WAITFORVSYNC. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
This commit is contained in:
parent
f3c77d6332
commit
ece350d394
1 changed files with 12 additions and 0 deletions
|
@ -610,6 +610,7 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg)
|
||||||
struct omapfb_vram_info vram_info;
|
struct omapfb_vram_info vram_info;
|
||||||
struct omapfb_tearsync_info tearsync_info;
|
struct omapfb_tearsync_info tearsync_info;
|
||||||
struct omapfb_display_info display_info;
|
struct omapfb_display_info display_info;
|
||||||
|
u32 crt;
|
||||||
} p;
|
} p;
|
||||||
|
|
||||||
int r = 0;
|
int r = 0;
|
||||||
|
@ -768,6 +769,17 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg)
|
||||||
r = -EFAULT;
|
r = -EFAULT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FBIO_WAITFORVSYNC:
|
||||||
|
if (get_user(p.crt, (__u32 __user *)arg)) {
|
||||||
|
r = -EFAULT;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (p.crt != 0) {
|
||||||
|
r = -ENODEV;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
/* FALLTHROUGH */
|
||||||
|
|
||||||
case OMAPFB_WAITFORVSYNC:
|
case OMAPFB_WAITFORVSYNC:
|
||||||
DBG("ioctl WAITFORVSYNC\n");
|
DBG("ioctl WAITFORVSYNC\n");
|
||||||
if (!display) {
|
if (!display) {
|
||||||
|
|
Loading…
Reference in a new issue