summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca
diff options
context:
space:
mode:
authorHans de Goede2009-06-14 11:32:52 +0200
committerMauro Carvalho Chehab2009-06-23 08:12:32 +0200
commitf5cee95c2e4c56b50cdb8edd33cf04902946cd25 (patch)
treec79ac918e7f32a9128b747abba3e99f37c6dd8a6 /drivers/media/video/gspca
parentV4L/DVB (12077): gspca_ov519: Fix 320x240 with ov7660 sensor (diff)
downloadkernel-qcow2-linux-f5cee95c2e4c56b50cdb8edd33cf04902946cd25.tar.gz
kernel-qcow2-linux-f5cee95c2e4c56b50cdb8edd33cf04902946cd25.tar.xz
kernel-qcow2-linux-f5cee95c2e4c56b50cdb8edd33cf04902946cd25.zip
V4L/DVB (12078): gspca_ov519: Better default contrast for ov6630
Hmm, another one with an extra if (life sucks) the default contrast really is no good for the ov6630, it isn't even high enough in full daylight, this gives the ov6630 a different initial value for a better out of the box experience. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca')
-rw-r--r--drivers/media/video/gspca/ov519.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c
index c7e88cb0095a..9d4b69dbf966 100644
--- a/drivers/media/video/gspca/ov519.c
+++ b/drivers/media/video/gspca/ov519.c
@@ -1740,7 +1740,10 @@ static int sd_config(struct gspca_dev *gspca_dev,
break;
}
sd->brightness = BRIGHTNESS_DEF;
- sd->contrast = CONTRAST_DEF;
+ if (sd->sensor == SEN_OV6630 || sd->sensor == SEN_OV66308AF)
+ sd->contrast = 200; /* The default is too low for the ov6630 */
+ else
+ sd->contrast = CONTRAST_DEF;
sd->colors = COLOR_DEF;
sd->hflip = HFLIP_DEF;
sd->vflip = VFLIP_DEF;