[media] gspca - sonixj: Fix the darkness of sensor om6802 in 320x240
authorJean-François Moine <moinejf@free.fr>
Tue, 9 Aug 2011 18:13:50 +0000 (15:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Sep 2011 12:23:46 +0000 (09:23 -0300)
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>
drivers/media/video/gspca/sonixj.c

index 816008fe5bfa38009fedb3109ed35bce4fa70ae2..f3cfb9788aa5cf0393a271e6ba19f3777261f5dc 100644 (file)
@@ -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: