diff options
author | Hans de Goede <j.w.r.degoede@hhs.nl> | 2008-07-04 17:39:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:17:06 -0400 |
commit | 46ccdafa71c1c95de002ce7a31e700cf5c8195df (patch) | |
tree | 053c0f6740d4bcda3f966a789e34f75e7ff4de60 /drivers | |
parent | ab8f12cf8e3d33adec382585f9f60f8686a372c3 (diff) |
V4L/DVB (8198): gspca: Frame decoding errors when PAC207 in full daylight.
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/gspca/pac207.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index 0135ba599e81..ab83d7b69348 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c | |||
@@ -40,9 +40,17 @@ MODULE_LICENSE("GPL"); | |||
40 | #define PAC207_BRIGHTNESS_MAX 255 | 40 | #define PAC207_BRIGHTNESS_MAX 255 |
41 | #define PAC207_BRIGHTNESS_DEFAULT 4 /* power on default: 4 */ | 41 | #define PAC207_BRIGHTNESS_DEFAULT 4 /* power on default: 4 */ |
42 | 42 | ||
43 | #define PAC207_EXPOSURE_MIN 4 | 43 | /* An exposure value of 4 also works (3 does not) but then we need to lower |
44 | the compression balance setting when in 352x288 mode, otherwise the usb | ||
45 | bandwidth is not enough and packets get dropped resulting in corrupt | ||
46 | frames. The problem with this is that when the compression balance gets | ||
47 | lowered below 0x80, the pac207 starts using a different compression | ||
48 | algorithm for some lines, these lines get prefixed with a 0x2dd2 prefix | ||
49 | and currently we do not know how to decompress these lines, so for now | ||
50 | we use a minimum exposure value of 5 */ | ||
51 | #define PAC207_EXPOSURE_MIN 5 | ||
44 | #define PAC207_EXPOSURE_MAX 26 | 52 | #define PAC207_EXPOSURE_MAX 26 |
45 | #define PAC207_EXPOSURE_DEFAULT 4 /* power on default: 3 ?? */ | 53 | #define PAC207_EXPOSURE_DEFAULT 5 /* power on default: 3 ?? */ |
46 | #define PAC207_EXPOSURE_KNEE 11 /* 4 = 30 fps, 11 = 8, 15 = 6 */ | 54 | #define PAC207_EXPOSURE_KNEE 11 /* 4 = 30 fps, 11 = 8, 15 = 6 */ |
47 | 55 | ||
48 | #define PAC207_GAIN_MIN 0 | 56 | #define PAC207_GAIN_MIN 0 |