]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/ov772x.c
V4L/DVB (11028): ov772x: use soft sleep mode in stop_capture
[linux-2.6-omap-h63xx.git] / drivers / media / video / ov772x.c
index 8dd93b36c787219e3bcb06eca76dc1c73224e6ad..84b0fc1bb23712874205063d4eff38eb63629de5 100644 (file)
@@ -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;
 }