The patch number 11028 was added via Guennadi Liakhovetski 
<[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Kuninori Morimoto  <[email protected]>
ov772x: use soft sleep mode in stop_capture

Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Guennadi Liakhovetski <[email protected]>
---
 drivers/media/video/ov772x.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


---

 linux/drivers/media/video/ov772x.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -r 00074e44c476 -r 2e24dad8d0b6 linux/drivers/media/video/ov772x.c
--- a/linux/drivers/media/video/ov772x.c        Fri Mar 13 10:08:20 2009 +0100
+++ b/linux/drivers/media/video/ov772x.c        Fri Mar 13 10:08:20 2009 +0100
@@ -646,6 +646,8 @@ static int ov772x_start_capture(struct s
                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 s
 
 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;
 }
 


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/2e24dad8d0b65523266e1dda41d8146379a6bbe7

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to