summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-simple.c
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-10-05 04:19:55 +0000
committerMichael Krufky <devnull@localhost>2005-10-05 04:19:55 +0000
commit55b1d32f6f1e9e22f8c775937b2b711e732949a8 (patch)
tree79968fa790aa0d9dffcfc2edfa49438800f62c3a /linux/drivers/media/video/tuner-simple.c
parent4a01bb35d2c11cd9c59970a08283a23bca17fd98 (diff)
downloadmediapointer-dvb-s2-55b1d32f6f1e9e22f8c775937b2b711e732949a8.tar.gz
mediapointer-dvb-s2-55b1d32f6f1e9e22f8c775937b2b711e732949a8.tar.bz2
* cx88.h, cx88-cards.c: (cx88_card_setup):
- Added analog support for ATI HDTV Wonder * tuner.h, tuner-simple.c: (default_set_tv_freq): - Added support for the Philips TUV1236D tuner on the ATI HDTV Wonder Signed-off-by: Kirk Lapray <kirk.lapray@gmail.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux/drivers/media/video/tuner-simple.c')
-rw-r--r--linux/drivers/media/video/tuner-simple.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/video/tuner-simple.c
index 9b1b2e8e1..9552b1a31 100644
--- a/linux/drivers/media/video/tuner-simple.c
+++ b/linux/drivers/media/video/tuner-simple.c
@@ -1,5 +1,5 @@
/*
- * $Id: tuner-simple.c,v 1.52 2005/09/28 19:28:51 nsh Exp $
+ * $Id: tuner-simple.c,v 1.53 2005/10/05 04:19:55 mkrufky Exp $
*
* i2c tv tuner chip device driver
* controls all those simple 4-control-bytes style tuners.
@@ -235,7 +235,7 @@ static struct tunertype tuners[] = {
{ "Ymec TVision TVF-5533MF", Philips, NTSC,
16*160.00,16*454.00,0x01,0x02,0x04,0x8e,732},
- /* 60-67 */
+ /* 60-68 */
{ "Thomson DDT 7611 (ATSC/NTSC)", THOMSON, ATSC,
16*157.25,16*454.00,0x39,0x3a,0x3c,0x8e,732},
{ "Tena TNF9533-D/IF/TNF9533-B/DF", Philips, PAL,
@@ -252,6 +252,8 @@ static struct tunertype tuners[] = {
16*137.25,16*373.25,0x01,0x02,0x08,0x8e,732 },
{ "Philips TD1316 Hybrid Tuner", Philips, PAL,
16*160.00,16*442.00,0xa1,0xa2,0xa4,0xc8,623 },
+ { "Philips TUV1236D ATSC/NTSC dual in", Philips, ATSC,
+ 16*157.25,16*454.00,0x01,0x02,0x03,0xce,732 },
};
unsigned const int tuner_count = ARRAY_SIZE(tuners);
@@ -393,6 +395,17 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
/* Set the charge pump for fast tuning */
tun->config |= TUNER_CHARGE_PUMP;
break;
+
+ case TUNER_PHILIPS_TUV1236D:
+ /* 0x40 -> ATSC antenna input 1 */
+ /* 0x48 -> ATSC antenna input 2 */
+ /* 0x00 -> NTSC antenna input 1 */
+ /* 0x08 -> NTSC antenna input 2 */
+ config &= ~0x40;
+ if (t->std & V4L2_STD_ATSC)
+ config |= 0x40;
+ /* FIXME: input */
+ break;
}
/*