[media] gspca - sonixj: Bad sensor mode at start time
authorJean-François Moine <moinejf@free.fr>
Wed, 30 Nov 2011 08:58:20 +0000 (05:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Dec 2011 11:26:27 +0000 (09:26 -0200)
The 'open-drain' mode was not reset when starting the webcams.
This problem was introduced by commit 0e4d413af1a9d and
its exact effects are unknown.

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 ced16a0..a87b1e1 100644 (file)
@@ -2393,7 +2393,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
        reg_w1(gspca_dev, 0x17, reg17);
        reg01 &= ~S_PWR_DN;             /* sensor power on */
        reg_w1(gspca_dev, 0x01, reg01);
-       reg01 &= ~SYS_SEL_48M;
+       reg01 &= ~SCL_SEL_OD;           /* remove open-drain mode */
        reg_w1(gspca_dev, 0x01, reg01);
 
        switch (sd->sensor) {