diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-i2c.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-i2c.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c index d7406a994f09..8e74d64fdcd2 100644 --- a/drivers/media/video/cx88/cx88-i2c.c +++ b/drivers/media/video/cx88/cx88-i2c.c | |||
@@ -201,7 +201,23 @@ int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci) | |||
201 | 201 | ||
202 | core->i2c_rc = i2c_bit_add_bus(&core->i2c_adap); | 202 | core->i2c_rc = i2c_bit_add_bus(&core->i2c_adap); |
203 | if (0 == core->i2c_rc) { | 203 | if (0 == core->i2c_rc) { |
204 | static u8 tuner_data[] = | ||
205 | { 0x0b, 0xdc, 0x86, 0x52 }; | ||
206 | static struct i2c_msg tuner_msg = | ||
207 | { .flags = 0, .addr = 0xc2 >> 1, .buf = tuner_data, .len = 4 }; | ||
208 | |||
204 | dprintk(1, "i2c register ok\n"); | 209 | dprintk(1, "i2c register ok\n"); |
210 | switch( core->boardnr ) { | ||
211 | case CX88_BOARD_HAUPPAUGE_HVR1300: | ||
212 | case CX88_BOARD_HAUPPAUGE_HVR3000: | ||
213 | case CX88_BOARD_HAUPPAUGE_HVR4000: | ||
214 | printk("%s: i2c init: enabling analog demod on HVR1300/3000/4000 tuner\n", | ||
215 | core->name); | ||
216 | i2c_transfer(core->i2c_client.adapter, &tuner_msg, 1); | ||
217 | break; | ||
218 | default: | ||
219 | break; | ||
220 | } | ||
205 | if (i2c_scan) | 221 | if (i2c_scan) |
206 | do_i2c_scan(core->name,&core->i2c_client); | 222 | do_i2c_scan(core->name,&core->i2c_client); |
207 | } else | 223 | } else |