V4L/DVB (9852): gspca: Fix image problem at low resolutions with ov7660 in sonixj.
authorJean-Francois Moine <moinejf@free.fr>
Tue, 2 Dec 2008 18:00:57 +0000 (15:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:38:51 +0000 (09:38 -0200)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sonixj.c

index 1f94cfd32c00e958bf703e72ebbd5d5175091931..97056703e17788306836c6c2aeb63ab8161329b4 100644 (file)
@@ -1373,19 +1373,15 @@ static int sd_start(struct gspca_dev *gspca_dev)
        default:
 /*     case SENSOR_OV7660: */
                ov7660_InitSensor(gspca_dev);
-               if (mode) {
-/*                     reg17 = 0x21;    * 320 */
-/*                     reg1 = 0x44; */
-/*                     reg1 = 0x46;    (done) */
-               } else {                        /* 640 */
-                       if (sd->bridge == BRIDGE_SN9C120) {
+               if (sd->bridge == BRIDGE_SN9C120) {
+                       if (mode) {             /* 320x240 - 160x120 */
                                reg17 = 0xa2;
                                reg1 = 0x44;    /* 48 Mhz, video trf eneble */
-                       } else {
-                               reg17 = 0x22;
-                               reg1 = 0x06;    /* 24 Mhz, video trf eneble
-                                                * inverse power down */
                        }
+               } else {
+                       reg17 = 0x22;
+                       reg1 = 0x06;    /* 24 Mhz, video trf eneble
+                                        * inverse power down */
                }
                break;
        }