diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-10-31 06:50:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-30 13:21:48 -0500 |
commit | 69c003996b4d05c190ebc0e3a578d6393cd497f6 (patch) | |
tree | 509ee11cc80f341ab2b3ecd9c7f0cfcb8df336e3 | |
parent | 47faa6f83633aa4839ea680ca794ee210009064c (diff) |
[media] gspca_pac207: Raise max exposure + various autogain setting tweaks
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/gspca/pac207.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index 1600df152fd6..1d95ec8fa952 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c | |||
@@ -41,14 +41,14 @@ MODULE_LICENSE("GPL"); | |||
41 | #define PAC207_BRIGHTNESS_DEFAULT 46 | 41 | #define PAC207_BRIGHTNESS_DEFAULT 46 |
42 | 42 | ||
43 | #define PAC207_EXPOSURE_MIN 3 | 43 | #define PAC207_EXPOSURE_MIN 3 |
44 | #define PAC207_EXPOSURE_MAX 26 | 44 | #define PAC207_EXPOSURE_MAX 90 /* 1 sec expo time / 1 fps */ |
45 | #define PAC207_EXPOSURE_DEFAULT 5 /* power on default: 3 */ | 45 | #define PAC207_EXPOSURE_DEFAULT 5 /* power on default: 3 */ |
46 | #define PAC207_EXPOSURE_KNEE 8 /* 4 = 30 fps, 11 = 8, 15 = 6 */ | 46 | #define PAC207_EXPOSURE_KNEE 9 /* fps: 90 / exposure -> 9: 10 fps */ |
47 | 47 | ||
48 | #define PAC207_GAIN_MIN 0 | 48 | #define PAC207_GAIN_MIN 0 |
49 | #define PAC207_GAIN_MAX 31 | 49 | #define PAC207_GAIN_MAX 31 |
50 | #define PAC207_GAIN_DEFAULT 9 /* power on default: 9 */ | 50 | #define PAC207_GAIN_DEFAULT 7 /* power on default: 9 */ |
51 | #define PAC207_GAIN_KNEE 31 | 51 | #define PAC207_GAIN_KNEE 15 |
52 | 52 | ||
53 | #define PAC207_AUTOGAIN_DEADZONE 30 | 53 | #define PAC207_AUTOGAIN_DEADZONE 30 |
54 | 54 | ||
@@ -332,7 +332,7 @@ static void pac207_do_auto_gain(struct gspca_dev *gspca_dev) | |||
332 | if (sd->autogain_ignore_frames > 0) | 332 | if (sd->autogain_ignore_frames > 0) |
333 | sd->autogain_ignore_frames--; | 333 | sd->autogain_ignore_frames--; |
334 | else if (gspca_auto_gain_n_exposure(gspca_dev, avg_lum, | 334 | else if (gspca_auto_gain_n_exposure(gspca_dev, avg_lum, |
335 | 100, PAC207_AUTOGAIN_DEADZONE, | 335 | 90, PAC207_AUTOGAIN_DEADZONE, |
336 | PAC207_GAIN_KNEE, PAC207_EXPOSURE_KNEE)) | 336 | PAC207_GAIN_KNEE, PAC207_EXPOSURE_KNEE)) |
337 | sd->autogain_ignore_frames = PAC_AUTOGAIN_IGNORE_FRAMES; | 337 | sd->autogain_ignore_frames = PAC_AUTOGAIN_IGNORE_FRAMES; |
338 | } | 338 | } |