[pwc] Preserve user setting for another program

Ben Lau xbenlau at gmail.com
Fri Dec 14 06:29:45 CET 2007


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 <xbenlau at gmail.com> 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.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pwc-10.0.12-agc-fixed.patch
Type: text/x-patch
Size: 359 bytes
Desc: not available
Url : http://lists.saillard.org/pipermail/pwc/attachments/20071214/eb6357a3/attachment.bin 


More information about the pwc mailing list