[media] gspca: sn9c2028: Add gain and autogain controls Genius Videocam Live v2
authorVasily Khoruzhick <anarsoul@gmail.com>
Fri, 24 Apr 2015 07:04:04 +0000 (04:04 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 30 May 2015 14:48:09 +0000 (11:48 -0300)
commitd8fd9f56255cfeebe88b987543fd2d1399a35a25
treee566ae1e29e1c94d97a424c5a1982c973c81bad1
parent48c291eda79da46582438ec8d821c6efcd54120d
[media] gspca: sn9c2028: Add gain and autogain controls Genius Videocam Live v2

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 <anarsoul@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/gspca/sn9c2028.c
drivers/media/usb/gspca/sn9c2028.h