aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-cards.c
diff options
context:
space:
mode:
authorCurt Meyers <cmeyers@boilerbots.com>2006-02-26 22:08:39 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-02-26 22:08:39 -0500
commit20b5ee5d491238b8de7ba0c06945d8e3935d42e6 (patch)
treeac87266bfa3710626fb04ecb77787cee26f8ed24 /drivers/media/video/saa7134/saa7134-cards.c
parentccb1ef199162754e80c27e5b7d20817eb73a0eab (diff)
V4L/DVB (3366): Kworld ATSC110: initialize the tuner for analog mode on module load
- Enable the tuv1236 tuner on the Kworld-ATSC110 card so that the tuner can be identified when tuners.ko loads. - With this change it is no longer necessary to remove and reload the tuner module in order to get the tuv1236 identified. - This code was copied from the ATI HDTV Wonder init routine (in cx88-cards.c) which also uses the TUV1236D. Signed-off-by: Curt Meyers <cmeyers@boilerbots.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-cards.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-cards.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c
index 99cefdd077ab..e1145a84b03e 100644
--- a/drivers/media/video/saa7134/saa7134-cards.c
+++ b/drivers/media/video/saa7134/saa7134-cards.c
@@ -3549,6 +3549,18 @@ int saa7134_board_init2(struct saa7134_dev *dev)
3549 i2c_transfer(&dev->i2c_adap, &msg, 1); 3549 i2c_transfer(&dev->i2c_adap, &msg, 1);
3550 } 3550 }
3551 break; 3551 break;
3552 case SAA7134_BOARD_KWORLD_ATSC110:
3553 {
3554 /* enable tuner */
3555 int i;
3556 u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
3557 dev->i2c_client.addr = 0x0a;
3558 for (i = 0; i < 5; i++)
3559 if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2))
3560 printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n",
3561 dev->name, i);
3562 }
3563 break;
3552 } 3564 }
3553 return 0; 3565 return 0;
3554} 3566}