diff options
author | Jean-François Moine <moinejf@free.fr> | 2011-08-09 15:13:50 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-11 09:23:46 -0300 |
commit | 822f6e2a9a41d3fea094591bf8cc227e12f5cb8f (patch) | |
tree | 079a3beb4972b3e2ddc4bcc2a539f8ed8bd63987 /drivers/media/video | |
parent | 72a16e8c7a9ba02a2e63c8c21bb055f4a33abc49 (diff) | |
download | blackbird-op-linux-822f6e2a9a41d3fea094591bf8cc227e12f5cb8f.tar.gz blackbird-op-linux-822f6e2a9a41d3fea094591bf8cc227e12f5cb8f.zip |
[media] gspca - sonixj: Fix the darkness of sensor om6802 in 320x240
The images are clearer with a lower bridge clock.
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/gspca/sonixj.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 816008fe5bfa..f3cfb9788aa5 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c @@ -2534,6 +2534,10 @@ static int sd_start(struct gspca_dev *gspca_dev) if (!mode) { /* if 640x480 */ reg17 &= ~MCK_SIZE_MASK; reg17 |= 0x04; /* clock / 4 */ + } else { + reg01 &= ~SYS_SEL_48M; /* clk 24Mz */ + reg17 &= ~MCK_SIZE_MASK; + reg17 |= 0x02; /* clock / 2 */ } break; case SENSOR_OV7630: |