summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-04-27 20:41:45 +0200
committerErik Andrén <erik.andren@gmail.com>2009-04-27 20:41:45 +0200
commit3d905953a3fb0f7b2c013ea00f18944f5612b8e1 (patch)
tree6e5a84bcc7a6e3425fded27335ffc49dd68759a9
parentcd2add238ace8333d560fa90cd3f246a25b91bb0 (diff)
downloadmediapointer-dvb-s2-3d905953a3fb0f7b2c013ea00f18944f5612b8e1.tar.gz
mediapointer-dvb-s2-3d905953a3fb0f7b2c013ea00f18944f5612b8e1.tar.bz2
gspca - m5602: Probe the ov7660 sensor
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_core.c b/linux/drivers/media/video/gspca/m5602/m5602_core.c
index 8ca5643f2..36bdcda84 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_core.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_core.c
@@ -17,6 +17,7 @@
*/
#include "m5602_ov9650.h"
+#include "m5602_ov7660.h"
#include "m5602_mt9m111.h"
#include "m5602_po1030.h"
#include "m5602_s5k83a.h"
@@ -217,6 +218,11 @@ static int m5602_probe_sensor(struct sd *sd)
if (!sd->sensor->probe(sd))
return 0;
+ /* Try the ov7660 */
+ sd->sensor = &ov7660;
+ if (!sd->sensor->probe(sd))
+ return 0;
+
/* Try the s5k83a */
sd->sensor = &s5k83a;
if (!sd->sensor->probe(sd))