summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Toth <stoth@linuxtv.org>2008-09-22 00:46:26 -0400
committerSteven Toth <stoth@linuxtv.org>2008-09-22 00:46:26 -0400
commita3c69df8d4b794915e9bfecc4fd38951ba52a134 (patch)
tree1eef6c9de36d7f9a9ddbe22e2e4d24b4e2868d6a
parentfa2f07623c36247d983eaa8dde37921efd839e13 (diff)
downloadmediapointer-dvb-s2-a3c69df8d4b794915e9bfecc4fd38951ba52a134.tar.gz
mediapointer-dvb-s2-a3c69df8d4b794915e9bfecc4fd38951ba52a134.tar.bz2
cx88: Enable TDA9887 on HVR1300 / 3000 / 4000
From: Steven Toth <stoth@linuxtv.org> Patch provided by Darron Broad. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
-rw-r--r--linux/drivers/media/video/cx88/cx88-i2c.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-i2c.c b/linux/drivers/media/video/cx88/cx88-i2c.c
index d7406a994..8e74d64fd 100644
--- a/linux/drivers/media/video/cx88/cx88-i2c.c
+++ b/linux/drivers/media/video/cx88/cx88-i2c.c
@@ -201,7 +201,23 @@ int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci)
core->i2c_rc = i2c_bit_add_bus(&core->i2c_adap);
if (0 == core->i2c_rc) {
+ static u8 tuner_data[] =
+ { 0x0b, 0xdc, 0x86, 0x52 };
+ static struct i2c_msg tuner_msg =
+ { .flags = 0, .addr = 0xc2 >> 1, .buf = tuner_data, .len = 4 };
+
dprintk(1, "i2c register ok\n");
+ switch( core->boardnr ) {
+ case CX88_BOARD_HAUPPAUGE_HVR1300:
+ case CX88_BOARD_HAUPPAUGE_HVR3000:
+ case CX88_BOARD_HAUPPAUGE_HVR4000:
+ printk("%s: i2c init: enabling analog demod on HVR1300/3000/4000 tuner\n",
+ core->name);
+ i2c_transfer(core->i2c_client.adapter, &tuner_msg, 1);
+ break;
+ default:
+ break;
+ }
if (i2c_scan)
do_i2c_scan(core->name,&core->i2c_client);
} else