aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/gspca/sonixj.c16
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 }