Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137957
b: refs/heads/master
c: 674a323
h: refs/heads/master
i:
  137955: 9849cc1
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 9ae3baa commit 2c6a07f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10afbef15e7bba5e1008f583852077743d28c395
refs/heads/master: 674a323218ab0b0be100b51c251a72787b5c9e3a
11 changes: 6 additions & 5 deletions trunk/drivers/media/video/saa7115.c
Original file line number Diff line number Diff line change
Expand Up @@ -1310,11 +1310,12 @@ static int saa711x_s_stream(struct v4l2_subdev *sd, int enable)
v4l2_dbg(1, debug, sd, "%s output\n",
enable ? "enable" : "disable");

if (state->enable != enable) {
state->enable = enable;
saa711x_write(sd, R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED,
state->enable);
}
if (state->enable == enable)
return 0;
state->enable = enable;
if (!saa711x_has_reg(state->ident, R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED))
return 0;
saa711x_write(sd, R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED, state->enable);
return 0;
}

Expand Down

0 comments on commit 2c6a07f

Please sign in to comment.