From: Jean-François Moine Date: Tue, 9 Aug 2011 18:13:50 +0000 (-0300) Subject: [media] gspca - sonixj: Fix the darkness of sensor om6802 in 320x240 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=822f6e2a9a41d3fea094591bf8cc227e12f5cb8f;p=mv-sheeva.git [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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 816008fe5bf..f3cfb9788aa 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: