summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ov772x.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-03-13 10:08:20 +0100
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-03-13 10:08:20 +0100
commit823ea474f6ef741eb378f550d4c7b2aaf233b23f (patch)
treebad5b1eede3e7f58f9fe7a5820bccc46486568b6 /linux/drivers/media/video/ov772x.c
parenta00a0b74b7fe24e815f70f49ac8b8cc073cdad80 (diff)
downloadmediapointer-dvb-s2-823ea474f6ef741eb378f550d4c7b2aaf233b23f.tar.gz
mediapointer-dvb-s2-823ea474f6ef741eb378f550d4c7b2aaf233b23f.tar.bz2
ov772x: use soft sleep mode in stop_capture
From: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> --- drivers/media/video/ov772x.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
Diffstat (limited to 'linux/drivers/media/video/ov772x.c')
-rw-r--r--linux/drivers/media/video/ov772x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/ov772x.c b/linux/drivers/media/video/ov772x.c
index 73d447247..cde3a1019 100644
--- a/linux/drivers/media/video/ov772x.c
+++ b/linux/drivers/media/video/ov772x.c
@@ -646,6 +646,8 @@ static int ov772x_start_capture(struct soc_camera_device *icd)
return -EPERM;
}
+ ov772x_mask_set(priv->client, COM2, SOFT_SLEEP_MODE, 0);
+
dev_dbg(&icd->dev,
"format %s, win %s\n", priv->fmt->name, priv->win->name);
@@ -654,6 +656,8 @@ static int ov772x_start_capture(struct soc_camera_device *icd)
static int ov772x_stop_capture(struct soc_camera_device *icd)
{
+ struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd);
+ ov772x_mask_set(priv->client, COM2, SOFT_SLEEP_MODE, SOFT_SLEEP_MODE);
return 0;
}