summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-02-17 08:07:09 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2006-02-17 08:07:09 -0500
commit32610a343e2447dca344c6e61f4eea03bfb5acc5 (patch)
tree678d5a7455ffb4c4dee59a00371bb5d99f65cea8 /linux/drivers/media/video
parent0741e0581d98ea09dea78b52258f25aa0ce6bcea (diff)
downloadmediapointer-dvb-s2-32610a343e2447dca344c6e61f4eea03bfb5acc5.tar.gz
mediapointer-dvb-s2-32610a343e2447dca344c6e61f4eea03bfb5acc5.tar.bz2
Kworld ATSC110: initialize the tuner for analog mode on module load
From: Curt Meyers <cmeyers@boilerbots.com> - 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>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-cards.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-cards.c b/linux/drivers/media/video/saa7134/saa7134-cards.c
index bb5f62076..bfd55845b 100644
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c
@@ -3591,6 +3591,18 @@ int saa7134_board_init2(struct saa7134_dev *dev)
i2c_transfer(&dev->i2c_adap, &msg, 1);
}
break;
+ case SAA7134_BOARD_KWORLD_ATSC110:
+ {
+ /* enable tuner */
+ int i;
+ u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
+ dev->i2c_client.addr = 0x0a;
+ for (i = 0; i < 5; i++)
+ if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2))
+ printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n",
+ dev->name, i);
+ }
+ break;
}
return 0;
}