[MPlayer-cvslog] r27058 - trunk/drivers/mga_vid.c

attila subversion at mplayerhq.hu
Sat Jun 14 16:26:43 CEST 2008


Author: attila
Date: Sat Jun 14 16:26:42 2008
New Revision: 27058

Log:
add MGA_VID_GET_VERSION ioctl to old mga_vid driver for compatibility with "new" mplayer


Modified:
   trunk/drivers/mga_vid.c

Modified: trunk/drivers/mga_vid.c
==============================================================================
--- trunk/drivers/mga_vid.c	(original)
+++ trunk/drivers/mga_vid.c	Sat Jun 14 16:26:42 2008
@@ -1193,6 +1193,14 @@ static int mga_vid_ioctl(struct inode *i
 
 	switch(cmd) 
 	{
+		case MGA_VID_GET_VERSION:
+			tmp = MGA_VID_VERSION;
+			if (copy_to_user((uint32_t *) arg, &tmp, sizeof(uint32_t))) {
+				printk(KERN_ERR "mga_vid: failed copy %p to userspace %p\n", &tmp, (uint32_t *) arg);
+				return (-EFAULT);
+			}
+			break;
+
 		case MGA_VID_CONFIG:
 			//FIXME remove
 //			printk(KERN_DEBUG "mga_vid: vcount = %d\n",readl(card->mmio_base + VCOUNT));



More information about the MPlayer-cvslog mailing list