diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-09-03 15:48:03 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 17:36:51 -0400 |
commit | 759aa3c21ebbab6cc00fc4aebd09b3a7d63715d1 (patch) | |
tree | aded46460206d04389557c0ff91c94623496525b /drivers | |
parent | 4a18625e88efef2b5a21695edcb2b21d98fdf71b (diff) |
V4L/DVB (8712): gspca: Bad start of sonixj webcams since changeset a8779025e7e8.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/gspca/sonixj.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index c34e02dccd5c..6673a3edf190 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -59,7 +59,6 @@ struct sd { | |||
59 | #define SENSOR_OV7648 5 | 59 | #define SENSOR_OV7648 5 |
60 | #define SENSOR_OV7660 6 | 60 | #define SENSOR_OV7660 6 |
61 | unsigned char i2c_base; | 61 | unsigned char i2c_base; |
62 | __u8 regf1; | ||
63 | }; | 62 | }; |
64 | 63 | ||
65 | /* V4L2 controls supported by the driver */ | 64 | /* V4L2 controls supported by the driver */ |
@@ -929,7 +928,6 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
929 | sd->bridge = id->driver_info >> 16; | 928 | sd->bridge = id->driver_info >> 16; |
930 | sd->sensor = id->driver_info >> 8; | 929 | sd->sensor = id->driver_info >> 8; |
931 | sd->i2c_base = id->driver_info; | 930 | sd->i2c_base = id->driver_info; |
932 | sd->regf1 = 0; /*jfm: was 1 in v1*/ | ||
933 | 931 | ||
934 | sd->qindex = 4; /* set the quantization table */ | 932 | sd->qindex = 4; /* set the quantization table */ |
935 | sd->brightness = BRIGHTNESS_DEF; | 933 | sd->brightness = BRIGHTNESS_DEF; |
@@ -982,7 +980,7 @@ static int sd_open(struct gspca_dev *gspca_dev) | |||
982 | break; | 980 | break; |
983 | } | 981 | } |
984 | 982 | ||
985 | reg_w1(gspca_dev, 0xf1, sd->regf1); | 983 | reg_w1(gspca_dev, 0xf1, 0x01); |
986 | 984 | ||
987 | return 0; | 985 | return 0; |
988 | } | 986 | } |
@@ -1346,7 +1344,7 @@ static void sd_stopN(struct gspca_dev *gspca_dev) | |||
1346 | reg_w1(gspca_dev, 0x17, sn9c1xx[0x17]); | 1344 | reg_w1(gspca_dev, 0x17, sn9c1xx[0x17]); |
1347 | reg_w1(gspca_dev, 0x01, sn9c1xx[1]); | 1345 | reg_w1(gspca_dev, 0x01, sn9c1xx[1]); |
1348 | reg_w1(gspca_dev, 0x01, data); | 1346 | reg_w1(gspca_dev, 0x01, data); |
1349 | reg_w1(gspca_dev, 0xf1, sd->regf1); | 1347 | reg_w1(gspca_dev, 0xf1, 0x00); |
1350 | } | 1348 | } |
1351 | 1349 | ||
1352 | static void sd_stop0(struct gspca_dev *gspca_dev) | 1350 | static void sd_stop0(struct gspca_dev *gspca_dev) |