changeset 10:bce647a9dd4b

Some changes to allow working with stock kernel 2.6.27
author AngelCarpintero
date Mon, 13 Oct 2008 00:26:10 +0000
parents 00bb25bff577
children b904131a3807
files Makefile vloopback.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Aug 31 17:28:08 2008 +0000
+++ b/Makefile	Mon Oct 13 00:26:10 2008 +0000
@@ -41,7 +41,7 @@
 	rm -f $(DEST)/$(MODULENAME).ko
 	-/sbin/depmod -a
 clean:
-	rm -f .*.cmd *.o *.mod.c *.ko .v* *~ core Modules.symvers Module.symvers
+	rm -f .*.cmd *.o *.mod.c *.ko .v* *~ core Modules.symvers Module.symvers modules.order
 	rm -rf .tmp_versions/
 	rm -f example/dummy example/feed example/resize example/invert
 
--- a/vloopback.c	Sun Aug 31 17:28:08 2008 +0000
+++ b/vloopback.c	Mon Oct 13 00:26:10 2008 +0000
@@ -145,6 +145,10 @@
  * 24.08.08    (Angel Carpintero)
  *            Added compat_iotcl32 init in fopsl, replace tabs by 4 spaces in source code,
  *            add number of buffers as module param.
+ *
+ * 13.10.09    (Stephan Berberig & Angel Carpintero)
+ *            Release to work on 2.6.27 , allow v4l_compat_ioctl32 work in 2.6.27 and a little cleanup 
+ *            in Makefile.
  */
 
 
@@ -161,6 +165,11 @@
  #include <media/v4l2-common.h>
 #endif
 
+/* v4l_compat_ioctl32 */ 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ #include <media/v4l2-ioctl.h>
+#endif
+
 #include <linux/videodev.h>
 #include <linux/vmalloc.h>
 #include <linux/wait.h>