diff options
author | Steven Toth <stoth@hauppauge.com> | 2006-01-09 12:25:12 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:25:12 -0500 |
commit | 611900c1858747a87657eb405ebab5b1e72bb57c (patch) | |
tree | 661e767af2ee8a655dae18cd8872cfcb897e3ebb /drivers/media/video/cx88/cx88-i2c.c | |
parent | 35dc0fefb18eea1b4180a8fafbb83db6a9b7c401 (diff) |
V4L/DVB (3089): Adding support for the Hauppauge HVR1100 and HVR1100-LP products.
- Add support for the Hauppauge HVR1100 and HVR1100-LP products.
- Add i2c_gate_ctrl callback function to dvb_frontend_ops struct.
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/cx88/cx88-i2c.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-i2c.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c index 4a8fb161b16a..7363dd6e66e2 100644 --- a/drivers/media/video/cx88/cx88-i2c.c +++ b/drivers/media/video/cx88/cx88-i2c.c | |||
@@ -135,7 +135,20 @@ void cx88_call_i2c_clients(struct cx88_core *core, unsigned int cmd, void *arg) | |||
135 | { | 135 | { |
136 | if (0 != core->i2c_rc) | 136 | if (0 != core->i2c_rc) |
137 | return; | 137 | return; |
138 | i2c_clients_command(&core->i2c_adap, cmd, arg); | 138 | |
139 | if (core->dvbdev == NULL) { | ||
140 | i2c_clients_command(&core->i2c_adap, cmd, arg); | ||
141 | } else { | ||
142 | |||
143 | if (core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl) | ||
144 | core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl(core->dvbdev->dvb.frontend, 1); | ||
145 | |||
146 | i2c_clients_command(&core->i2c_adap, cmd, arg); | ||
147 | |||
148 | if (core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl) | ||
149 | core->dvbdev->dvb.frontend->ops->i2c_gate_ctrl(core->dvbdev->dvb.frontend, 0); | ||
150 | } | ||
151 | |||
139 | } | 152 | } |
140 | 153 | ||
141 | static struct i2c_algo_bit_data cx8800_i2c_algo_template = { | 154 | static struct i2c_algo_bit_data cx8800_i2c_algo_template = { |