Web lists-archives.com

Re: [Spca50x-devs] Fwd: webcam recognized by driver but freeze the apps

On Friday 27 April 2007 06:39, Michel Xhaard wrote:
> I will investigate tomorrow but it compile and run fine for me :(

Hi Michel,

I just downloaded gspcav1-20070426.tar.gz, and came across the same error. I'm 
using a Suse 9.3 kernel,

I assume you're using a kernel newer than 2.6.17; it appears that videodev.h 
has changed somewhere around that version... (At least, I think that is the 
version the bttv guys test for...) It looks like someone added return values 
for video_device_create_file at that point.

Here's a trivial patch based on Thomas's suggestion. This allows it to compile 
for me. Hope this helps. :-)



Allwyn Fernandes
Stobor Pty Ltd
diff -ru gspcav1-20070426/gspca_core.c gspcav1-200704af/gspca_core.c
--- gspcav1-20070426/gspca_core.c	2007-04-26 23:35:55.000000000 +1000
+++ gspcav1-200704af/gspca_core.c	2007-04-28 05:31:27.000000000 +1000
@@ -2625,6 +2625,7 @@
 static int
 spca50x_create_sysfs(struct video_device *vdev)
 	int rc;
 	rc = video_device_create_file(vdev, &class_device_attr_stream_id);
@@ -2642,6 +2643,13 @@
 	video_device_remove_file(vdev, &class_device_attr_stream_id);
 	return rc;
+	video_device_create_file(vdev, &class_device_attr_stream_id);
+	video_device_create_file(vdev, &class_device_attr_model);
+	video_device_create_file(vdev, &class_device_attr_pictsetting);
+	return 0;
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
Spca50x-devs mailing list