summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François Moine <moinejf@free.fr>2010-12-25 16:11:54 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 10:17:05 (GMT)
commitefd3769269f2ef9a0ad452ea8298b3edcb2f5a62 (patch)
tree8ee905ce811e36a5e54464996847cf946effc159
parent3ebd17946448df50b9082412d09955c87a112721 (diff)
downloadlinux-efd3769269f2ef9a0ad452ea8298b3edcb2f5a62.tar.xz
[media] gspca - sq930x: Some detected sensors are not handled yet
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>
-rw-r--r--drivers/media/video/gspca/sq930x.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/sq930x.c b/drivers/media/video/gspca/sq930x.c
index 74628ed..b1d771b 100644
--- a/drivers/media/video/gspca/sq930x.c
+++ b/drivers/media/video/gspca/sq930x.c
@@ -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)