Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106716
b: refs/heads/master
c: fff4205
h: refs/heads/master
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Jul 26, 2008
1 parent 1b4c4ad commit 0499ee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84754319e30a25626f6bf0d84efc7935ba1d0b3d
refs/heads/master: fff4205f1d64163132609942314e94ec3ba2ed6b
16 changes: 2 additions & 14 deletions trunk/drivers/media/video/gspca/sonixb.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,6 @@ static void sd_start(struct gspca_dev *gspca_dev)
struct sd *sd = (struct sd *) gspca_dev;
int mode, l = 0x1f;
const __u8 *sn9c10x;
__u8 reg01, reg17;
__u8 reg17_19[3];

mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
Expand Down Expand Up @@ -922,21 +921,10 @@ static void sd_start(struct gspca_dev *gspca_dev)
break;
}

/* Special case for SN9C101/2 with OV 7630 */
/* HDG: is this really necessary we overwrite the values immediately
afterwards with the ones from the template ?? */
if (sd->sensor == SENSOR_OV7630 && sd->fr_h_sz == 12) {
reg01 = 0x06;
reg17 = 0x29;
} else {
reg01 = sn9c10x[0];
reg17 = sn9c10x[0x17 - 1];
}

/* reg 0x01 bit 2 video transfert on */
reg_w(gspca_dev, 0x01, &reg01, 1);
reg_w(gspca_dev, 0x01, &sn9c10x[0x01 - 1], 1);
/* reg 0x17 SensorClk enable inv Clk 0x60 */
reg_w(gspca_dev, 0x17, &reg17, 1);
reg_w(gspca_dev, 0x17, &sn9c10x[0x17 - 1], 1);
/* Set the registers from the template */
reg_w_big(gspca_dev, 0x01, sn9c10x, l);
switch (sd->sensor) {
Expand Down

0 comments on commit 0499ee5

Please sign in to comment.