From: Kuninori Morimoto Date: Fri, 13 Mar 2009 09:08:20 +0000 (-0300) Subject: V4L/DVB (11028): ov772x: use soft sleep mode in stop_capture X-Git-Tag: v2.6.30-rc1~621^2~229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f340e3f6f1c2061a65fd1cbd70e9e57e27d34212;p=platform%2Fkernel%2Flinux-exynos.git V4L/DVB (11028): ov772x: use soft sleep mode in stop_capture Signed-off-by: Kuninori Morimoto Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/ov772x.c b/drivers/media/video/ov772x.c index 8dd93b3..84b0fc1 100644 --- a/drivers/media/video/ov772x.c +++ b/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; }