diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-03-13 05:08:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:21 -0400 |
commit | f340e3f6f1c2061a65fd1cbd70e9e57e27d34212 (patch) | |
tree | c88070c56fa5395bf40e50aa82e24fd3a635e3b3 /drivers/media/video/ov772x.c | |
parent | 025c18a19d7d7eb8745d25986f982a5f35a85157 (diff) |
V4L/DVB (11028): ov772x: use soft sleep mode in stop_capture
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ov772x.c')
-rw-r--r-- | drivers/media/video/ov772x.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/ov772x.c b/drivers/media/video/ov772x.c index 8dd93b36c787..84b0fc1bb237 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) | |||
646 | return -EPERM; | 646 | return -EPERM; |
647 | } | 647 | } |
648 | 648 | ||
649 | ov772x_mask_set(priv->client, COM2, SOFT_SLEEP_MODE, 0); | ||
650 | |||
649 | dev_dbg(&icd->dev, | 651 | dev_dbg(&icd->dev, |
650 | "format %s, win %s\n", priv->fmt->name, priv->win->name); | 652 | "format %s, win %s\n", priv->fmt->name, priv->win->name); |
651 | 653 | ||
@@ -654,6 +656,8 @@ static int ov772x_start_capture(struct soc_camera_device *icd) | |||
654 | 656 | ||
655 | static int ov772x_stop_capture(struct soc_camera_device *icd) | 657 | static int ov772x_stop_capture(struct soc_camera_device *icd) |
656 | { | 658 | { |
659 | struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); | ||
660 | ov772x_mask_set(priv->client, COM2, SOFT_SLEEP_MODE, SOFT_SLEEP_MODE); | ||
657 | return 0; | 661 | return 0; |
658 | } | 662 | } |
659 | 663 | ||