[media] gspca - sq930x: Some detected sensors are not handled yet
authorJean-François Moine <moinejf@free.fr>
Sat, 25 Dec 2010 16:11:54 +0000 (13:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:17:05 +0000 (08:17 -0200)
These are OmniVision's OV7660 and OV9630.
Don't register the webcam when they are found.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sq930x.c

index 74628eda7d96de82222e316b9a6d87e4f583f21d..b1d771bc3f2cccb136a9dd47f739d0e507c90fe1 100644 (file)
@@ -693,6 +693,13 @@ static void cmos_probe(struct gspca_dev *gspca_dev)
                return;
        }
        sd->sensor = probe_order[i];
+       switch (sd->sensor) {
+       case SENSOR_OV7660:
+       case SENSOR_OV9630:
+               err("Sensor %s not yet treated", sensor_tb[sd->sensor].name);
+               gspca_dev->usb_err = -EINVAL;
+               break;
+       }
 }
 
 static void mt9v111_init(struct gspca_dev *gspca_dev)