diff options
author | Volokh Konstantin <volokh84@gmail.com> | 2013-03-23 18:28:28 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-25 07:13:40 -0400 |
commit | 8dbee53b2a8dcc23e8d52d85d7e0b4fe268c55e7 (patch) | |
tree | ec46b5244ffd15adaddbb1607ee4673dc7c74ed3 /drivers/media/i2c | |
parent | 136d9f3a41bc528773430f2723cf27963bbd6fbc (diff) |
[media] tw2804: Revert ADC Control commit 523a4f7fbcf856fb1c2a4850f44edea6738ee37b
Case: In AdLink MPG24 there is bt878 exists (it captures one frame of all video
inputs), Video Signal for it one transmits through tw2804 chip, so we can't
control ADC (shut on/off) on tw2804, as some another can use bttv capture way.
Signed-off-by: Volokh Konstantin <volokh84@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/tw2804.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/media/i2c/tw2804.c b/drivers/media/i2c/tw2804.c index 441b7661d491..c5dc2c3bf2d7 100644 --- a/drivers/media/i2c/tw2804.c +++ b/drivers/media/i2c/tw2804.c | |||
@@ -53,7 +53,7 @@ static const u8 global_registers[] = { | |||
53 | 0x3d, 0x80, | 53 | 0x3d, 0x80, |
54 | 0x3e, 0x82, | 54 | 0x3e, 0x82, |
55 | 0x3f, 0x82, | 55 | 0x3f, 0x82, |
56 | 0x78, 0x0f, | 56 | 0x78, 0x00, |
57 | 0xff, 0xff, /* Terminator (reg 0xff does not exist) */ | 57 | 0xff, 0xff, /* Terminator (reg 0xff does not exist) */ |
58 | }; | 58 | }; |
59 | 59 | ||
@@ -337,20 +337,6 @@ static int tw2804_s_video_routing(struct v4l2_subdev *sd, u32 input, u32 output, | |||
337 | return 0; | 337 | return 0; |
338 | } | 338 | } |
339 | 339 | ||
340 | static int tw2804_s_stream(struct v4l2_subdev *sd, int enable) | ||
341 | { | ||
342 | struct tw2804 *dec = to_state(sd); | ||
343 | struct i2c_client *client = v4l2_get_subdevdata(sd); | ||
344 | u32 reg = read_reg(client, 0x78, 0); | ||
345 | |||
346 | if (enable == 1) | ||
347 | write_reg(client, 0x78, reg & ~(1 << dec->channel), 0); | ||
348 | else | ||
349 | write_reg(client, 0x78, reg | (1 << dec->channel), 0); | ||
350 | |||
351 | return 0; | ||
352 | } | ||
353 | |||
354 | static const struct v4l2_ctrl_ops tw2804_ctrl_ops = { | 340 | static const struct v4l2_ctrl_ops tw2804_ctrl_ops = { |
355 | .g_volatile_ctrl = tw2804_g_volatile_ctrl, | 341 | .g_volatile_ctrl = tw2804_g_volatile_ctrl, |
356 | .s_ctrl = tw2804_s_ctrl, | 342 | .s_ctrl = tw2804_s_ctrl, |
@@ -358,7 +344,6 @@ static const struct v4l2_ctrl_ops tw2804_ctrl_ops = { | |||
358 | 344 | ||
359 | static const struct v4l2_subdev_video_ops tw2804_video_ops = { | 345 | static const struct v4l2_subdev_video_ops tw2804_video_ops = { |
360 | .s_routing = tw2804_s_video_routing, | 346 | .s_routing = tw2804_s_video_routing, |
361 | .s_stream = tw2804_s_stream, | ||
362 | }; | 347 | }; |
363 | 348 | ||
364 | static const struct v4l2_subdev_core_ops tw2804_core_ops = { | 349 | static const struct v4l2_subdev_core_ops tw2804_core_ops = { |