In fact , only the setting of AGC is not preserved. By looking through
the source code , I found that AGC is set to auto mode inside the
pwc_video_open. Therefore , no matter what value you have picked
inside camstream, it will restore to auto mode automatically.

Becoz I need this feature for a demonstration urgently, I have fixed
it by myself. The patch is attached in my email.

(Based on the source code come with 2.6.20.6 kernel)

On Dec 14, 2007 11:29 AM, Ben Lau <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>    I have a Philips SPC900NC. I would like to disable the auto AGC and
> shutter speed for another program that use GStreamer as input source.
> The camera's parameter is tuned inside Camstream, and then pressed the
> "Save user settings" button. However, the setting can not be preserved
> for another program and even for camstream itself. Open the camera
> again by camstream will restore to default setting unless the "Restore
> user setting" button was pressed.
>
>    How can I preserve the user setting for another program?
>
> Thanks.
>
diff -urN pwc.orig/pwc-if.c pwc/pwc-if.c
--- pwc.orig/pwc-if.c	2007-04-07 04:02:48.000000000 +0800
+++ pwc/pwc-if.c	2007-12-14 13:08:04.000000000 +0800
@@ -1187,7 +1187,7 @@
 
 	/* Initialize the webcam to sane value */
 	pwc_set_brightness(pdev, 0x7fff);
-	pwc_set_agc(pdev, 1, 0);
+	//pwc_set_agc(pdev, 1, 0);
 
 	pdev->vopen++;
 	file->private_data = vdev;
_______________________________________________
pwc mailing list
[email protected]
http://lists.saillard.org/mailman/listinfo/pwc

Reply via email to