Skip to content

Commit

Permalink
V4L/DVB (11028): ov772x: use soft sleep mode in stop_capture
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 025c18a commit f340e3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/video/ov772x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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;
}

Expand Down

0 comments on commit f340e3f

Please sign in to comment.