diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-12-02 13:00:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:38:51 -0500 |
commit | daa5cb42f12684173e2cfd7d062527ca24916791 (patch) | |
tree | 8fefaaa0aee7f37f32366f4bec5af7c39efcecea /drivers/media/video/gspca/sonixj.c | |
parent | bd088835c78bd402711b16940b80bb761a74fa75 (diff) |
V4L/DVB (9852): gspca: Fix image problem at low resolutions with ov7660 in sonixj.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/sonixj.c')
-rw-r--r-- | drivers/media/video/gspca/sonixj.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 1f94cfd32c00..97056703e177 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -1373,19 +1373,15 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
1373 | default: | 1373 | default: |
1374 | /* case SENSOR_OV7660: */ | 1374 | /* case SENSOR_OV7660: */ |
1375 | ov7660_InitSensor(gspca_dev); | 1375 | ov7660_InitSensor(gspca_dev); |
1376 | if (mode) { | 1376 | if (sd->bridge == BRIDGE_SN9C120) { |
1377 | /* reg17 = 0x21; * 320 */ | 1377 | if (mode) { /* 320x240 - 160x120 */ |
1378 | /* reg1 = 0x44; */ | ||
1379 | /* reg1 = 0x46; (done) */ | ||
1380 | } else { /* 640 */ | ||
1381 | if (sd->bridge == BRIDGE_SN9C120) { | ||
1382 | reg17 = 0xa2; | 1378 | reg17 = 0xa2; |
1383 | reg1 = 0x44; /* 48 Mhz, video trf eneble */ | 1379 | reg1 = 0x44; /* 48 Mhz, video trf eneble */ |
1384 | } else { | ||
1385 | reg17 = 0x22; | ||
1386 | reg1 = 0x06; /* 24 Mhz, video trf eneble | ||
1387 | * inverse power down */ | ||
1388 | } | 1380 | } |
1381 | } else { | ||
1382 | reg17 = 0x22; | ||
1383 | reg1 = 0x06; /* 24 Mhz, video trf eneble | ||
1384 | * inverse power down */ | ||
1389 | } | 1385 | } |
1390 | break; | 1386 | break; |
1391 | } | 1387 | } |