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: http://git.lede-project.org./?a=commitdiff_plain;h=5b5cfc3674756d249cb389bbd2a0be94abae5f7c;p=openwrt%2Fstaging%2Fblogic.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 2ad757dc2e1c..c477ad11f103 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c @@ -2532,6 +2532,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: