]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
V4L/DVB: gspca - sonixj: Set the vertical flip at capture start for all sensors
authorJean-François Moine <moinejf@free.fr>
Thu, 18 Feb 2010 17:56:33 +0000 (14:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:11:04 +0000 (15:11 -0300)
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sonixj.c

index fea807574425e7f7bc6d09065ef8e7259fea99a7..2ccddcd710f2de38be1d562a06c31346e8f93edb 100644 (file)
@@ -2082,7 +2082,6 @@ static int sd_start(struct gspca_dev *gspca_dev)
                reg17 = 0x64;           /* 640 MCKSIZE */
                break;
        case SENSOR_OV7630:
-               setvflip(sd);
                reg17 = 0xe2;
                reg1 = 0x44;
                break;
@@ -2154,11 +2153,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
        reg_w1(gspca_dev, 0x17, reg17);
        reg_w1(gspca_dev, 0x01, reg1);
 
-       switch (sd->sensor) {
-       case SENSOR_OV7630:
-               setvflip(sd);
-               break;
-       }
+       setvflip(sd);
        setbrightness(gspca_dev);
        setcontrast(gspca_dev);
        setautogain(gspca_dev);