[cpia] Using cpia with a 2.4.13 kernel

Nick Holloway Nick.Holloway@pyrites.org.uk
1 Nov 2001 22:21:55 -0000


As I discovered that the setting of cpia parameters had been disabled
(as it was insecure) in the 2.4 kernel stream, I decided to drop the
current CVS code from sourceforge into the kernel source.

At the end is a patch required to get it to compile with 2.4.13.

I now have the camera working on a 486 DX2/50 plugged into a
TRISTATE parallel port, with images being captured by "motion"
(motion.sourceforge.net).

I must confess I've hardly exhaustively tested the parameter settings,
as the only setting I have changed is the compression mode.

Are there plans to feed a patch for cpia into the 2.4 kernel?

Index: cpia_pp.c
===================================================================
RCS file: /cvsroot/webcam/cpia/module/cpia_pp.c,v
retrieving revision 1.3
diff -u -r1.3 cpia_pp.c
--- cpia_pp.c	2001/09/16 12:15:17	1.3
+++ cpia_pp.c	2001/11/01 22:12:50
@@ -1651,7 +1651,7 @@
 #endif /* kernel version >= 2.3.0 */
 
 	cam_list = NULL;
-	spinlock_init( cam_list_lock_pp );
+	spin_lock_init( cam_list_lock_pp );
 
 	return 0;
 }

-- 
 `O O'  | Nick.Holloway@pyrites.org.uk
// ^ \\ | http://www.pyrites.org.uk/