Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271849
b: refs/heads/master
c: 6f43dbf
h: refs/heads/master
i:
  271847: f43da2f
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Sep 21, 2011
1 parent 3fa6e55 commit db73343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 34ebdc97b9f273262559ab410d18f4e9424a54c2
refs/heads/master: 6f43dbfd8fa7f80b1cf073446275c691b52cd7b2
5 changes: 1 addition & 4 deletions trunk/drivers/media/video/saa7115.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,6 @@ static int saa711x_s_ctrl(struct v4l2_ctrl *ctrl)
saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val);
else
saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val | 0x80);
v4l2_ctrl_activate(state->gain, !state->agc->val);
break;

default:
Expand Down Expand Up @@ -1601,7 +1600,6 @@ static int saa711x_probe(struct i2c_client *client,
V4L2_CID_CHROMA_AGC, 0, 1, 1, 1);
state->gain = v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops,
V4L2_CID_CHROMA_GAIN, 0, 127, 1, 40);
state->gain->flags |= V4L2_CTRL_FLAG_VOLATILE;
sd->ctrl_handler = hdl;
if (hdl->error) {
int err = hdl->error;
Expand All @@ -1610,8 +1608,7 @@ static int saa711x_probe(struct i2c_client *client,
kfree(state);
return err;
}
state->agc->flags |= V4L2_CTRL_FLAG_UPDATE;
v4l2_ctrl_cluster(2, &state->agc);
v4l2_ctrl_auto_cluster(2, &state->agc, 0, true);

state->input = -1;
state->output = SAA7115_IPORT_ON;
Expand Down

0 comments on commit db73343

Please sign in to comment.