Skip to content

Commit

Permalink
[media] gspca - sonixj: Bad sensor mode at start time
Browse files Browse the repository at this point in the history
The 'open-drain' mode was not reset when starting the webcams.
This problem was introduced by commit 0e4d413 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>
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Dec 11, 2011
1 parent 6121ca5 commit b4b0107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/sonixj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b4b0107

Please sign in to comment.