Re: [PATCH 2/2] gspca: sn9c2028: Add gain and autogain controls Genius Videocam Live v2

2015-04-21 Thread Vasily Khoruzhick
Hi Hans, On Tue, Apr 21, 2015 at 5:32 PM, Hans de Goede wrote: >> diff --git a/drivers/media/usb/gspca/sn9c2028.h >> b/drivers/media/usb/gspca/sn9c2028.h >> index 8fd1d3e..6f20c0f 100644 >> --- a/drivers/media/usb/gspca/sn9c2028.h >> +++ b/drivers/media/usb/gspca/sn9c2028.h >> @@ -21,8 +21,17 @@

Re: [PATCH 2/2] gspca: sn9c2028: Add gain and autogain controls Genius Videocam Live v2

2015-04-21 Thread Hans de Goede
Hi, On 19-04-15 20:52, Vasily Khoruzhick wrote: Autogain algorithm is very simple, if average luminance is low - increase gain, if it's high - decrease gain. Gain granularity is low enough for this algo to stabilize quickly. Signed-off-by: Vasily Khoruzhick --- drivers/media/usb/gspca/sn9c20

Re: [PATCH 2/2] gspca: sn9c2028: Add gain and autogain controls Genius Videocam Live v2

2015-04-19 Thread Theodore Kilgore
On Sun, 19 Apr 2015, Vasily Khoruzhick wrote: Autogain algorithm is very simple, if average luminance is low - increase gain, if it's high - decrease gain. Gain granularity is low enough for this algo to stabilize quickly. Signed-off-by: Vasily Khoruzhick --- drivers/media/usb/gspca/sn9c2028

[PATCH 2/2] gspca: sn9c2028: Add gain and autogain controls Genius Videocam Live v2

2015-04-19 Thread Vasily Khoruzhick
Autogain algorithm is very simple, if average luminance is low - increase gain, if it's high - decrease gain. Gain granularity is low enough for this algo to stabilize quickly. Signed-off-by: Vasily Khoruzhick --- drivers/media/usb/gspca/sn9c2028.c | 121 + dr