]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
V4L/DVB (11537): gspca - m5602-po1030: Clear subsampling flag when setting VGA mode
authorErik Andr?n <erik.andren@gmail.com>
Sun, 18 Jan 2009 14:13:47 +0000 (11:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:34 +0000 (18:20 -0300)
Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/m5602/m5602_po1030.c

index 5b9113325ecb82ecb0b9fa877512f51bbe18cfa2..840a3ca53200b9c3e7933a4d6c2c9a4f2e1cf101 100644 (file)
@@ -367,6 +367,11 @@ int po1030_start(struct sd *sd)
                break;
 
        case 640:
+               data = 0;
+               err = m5602_write_sensor(sd, PO1030_CONTROL3, &data, 1);
+               if (err < 0)
+                       return err;
+
                data = ((width + 7) >> 8) & 0xff;
                err = m5602_write_sensor(sd, PO1030_WINDOWWIDTH_H, &data, 1);
                if (err < 0)