summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2008-12-23 22:06:37 +0100
committerErik Andrén <erik.andren@gmail.com>2008-12-23 22:06:37 +0100
commitcbd16cf5e7e4aae60ca283ad27bafae1fcb21102 (patch)
tree3e8b7782b0b3053aac67bfc2139f6b672a57e2e6 /linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
parent9a93d80c962c9118675ff97cdc3244b8a1749f3d (diff)
downloadmediapointer-dvb-s2-cbd16cf5e7e4aae60ca283ad27bafae1fcb21102.tar.gz
mediapointer-dvb-s2-cbd16cf5e7e4aae60ca283ad27bafae1fcb21102.tar.bz2
Rework parts of the resolution initialization
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602/m5602_ov9650.c')
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_ov9650.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
index f2fa24174..dde5075ed 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
@@ -141,7 +141,6 @@ int ov9650_init(struct sd *sd)
data = 0x30;
err = m5602_write_sensor(sd, OV9650_MVFP, &data, 1);
}
-
return err;
}
@@ -150,6 +149,13 @@ int ov9650_start(struct sd *sd)
int i, err = 0;
struct cam *cam = &sd->gspca_dev.cam;
+ for (i = 0; i < ARRAY_SIZE(res_init_ov9650) && !err; i++) {
+ u8 data = res_init_ov9650[i][1];
+ err = m5602_write_bridge(sd, res_init_ov9650[i][0], data);
+ }
+ if (err < 0)
+ return err;
+
switch (cam->cam_mode[sd->gspca_dev.curr_mode].width)
{
case 640: