aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/gspca/m5602/m5602_ov9650.h
diff options
context:
space:
mode:
authorErik Andr?n <erik.andren@gmail.com>2009-01-04 04:52:50 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-06 21:44:47 -0300
commit7460f524980d1d7c39f05b7e95d6d2fba072fd8a (patch)
tree5e51a44d18a0d0ec2affecd9a906f0e06db1143a /drivers/media/video/gspca/m5602/m5602_ov9650.h
parentbe63b722a56f0fe8fbe8e76cbdadaee0429cd291 (diff)
V4L/DVB (11425): gspca - m5602: Move the vflip quirk to probe stage.
The vflip quirk is better checked at probe time as it's only needed once. Also add an extra reset at init time to resolve a suspend to ram regression. Signed-off-by: Erik Andr?n <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/m5602/m5602_ov9650.h')
-rw-r--r--drivers/media/video/gspca/m5602/m5602_ov9650.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_ov9650.h b/drivers/media/video/gspca/m5602/m5602_ov9650.h
index 1f27a857bf3..fcc54e4c0f4 100644
--- a/drivers/media/video/gspca/m5602/m5602_ov9650.h
+++ b/drivers/media/video/gspca/m5602/m5602_ov9650.h
@@ -218,6 +218,10 @@ static const unsigned char init_ov9650[][3] =
/* Reset chip */
{SENSOR, OV9650_COM7, OV9650_REGISTER_RESET},
+ /* One extra reset is needed in order to make the sensor behave
+ properly when resuming from ram */
+ {SENSOR, OV9650_COM7, OV9650_REGISTER_RESET},
+
/* Enable double clock */
{SENSOR, OV9650_CLKRC, 0x80},
/* Do something out of spec with the power */