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-Tag: firefly_0821_release~3680^2~4256^2~185 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=822f6e2a9a41d3fea094591bf8cc227e12f5cb8f;p=firefly-linux-kernel-4.4.55.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 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: