diff options
Diffstat (limited to 'drivers/media/video/saa7115.c')
-rw-r--r-- | drivers/media/video/saa7115.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c index e443d0d54f8f..cee98ea0eca7 100644 --- a/drivers/media/video/saa7115.c +++ b/drivers/media/video/saa7115.c | |||
@@ -793,7 +793,6 @@ static int saa711x_s_ctrl(struct v4l2_ctrl *ctrl) | |||
793 | saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val); | 793 | saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val); |
794 | else | 794 | else |
795 | saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val | 0x80); | 795 | saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val | 0x80); |
796 | v4l2_ctrl_activate(state->gain, !state->agc->val); | ||
797 | break; | 796 | break; |
798 | 797 | ||
799 | default: | 798 | default: |
@@ -1601,7 +1600,6 @@ static int saa711x_probe(struct i2c_client *client, | |||
1601 | V4L2_CID_CHROMA_AGC, 0, 1, 1, 1); | 1600 | V4L2_CID_CHROMA_AGC, 0, 1, 1, 1); |
1602 | state->gain = v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, | 1601 | state->gain = v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, |
1603 | V4L2_CID_CHROMA_GAIN, 0, 127, 1, 40); | 1602 | V4L2_CID_CHROMA_GAIN, 0, 127, 1, 40); |
1604 | state->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; | ||
1605 | sd->ctrl_handler = hdl; | 1603 | sd->ctrl_handler = hdl; |
1606 | if (hdl->error) { | 1604 | if (hdl->error) { |
1607 | int err = hdl->error; | 1605 | int err = hdl->error; |
@@ -1610,8 +1608,7 @@ static int saa711x_probe(struct i2c_client *client, | |||
1610 | kfree(state); | 1608 | kfree(state); |
1611 | return err; | 1609 | return err; |
1612 | } | 1610 | } |
1613 | state->agc->flags |= V4L2_CTRL_FLAG_UPDATE; | 1611 | v4l2_ctrl_auto_cluster(2, &state->agc, 0, true); |
1614 | v4l2_ctrl_cluster(2, &state->agc); | ||
1615 | 1612 | ||
1616 | state->input = -1; | 1613 | state->input = -1; |
1617 | state->output = SAA7115_IPORT_ON; | 1614 | state->output = SAA7115_IPORT_ON; |