aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@m1k.net>2005-11-09 00:38:20 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:26 -0500
commit3b64e8e238217ebd3d847ca19ead631124a2ed14 (patch)
treeaff92f3166857d38990b2d9804bdc12f2dee5ef3
parentf4372beb84874ab33f2b06bd6a66ff6d07427081 (diff)
[PATCH] v4l: 870: added dvb support for avermedia avertvhd mce a180
- Added DVB support for AVerMedia AVerTVHD MCE A180 Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/media/video/saa7134/Kconfig12
-rw-r--r--drivers/media/video/saa7134/Makefile3
-rw-r--r--drivers/media/video/saa7134/saa7134-cards.c1
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c17
4 files changed, 32 insertions, 1 deletions
diff --git a/drivers/media/video/saa7134/Kconfig b/drivers/media/video/saa7134/Kconfig
index e8c89b4828ff..624e8808a517 100644
--- a/drivers/media/video/saa7134/Kconfig
+++ b/drivers/media/video/saa7134/Kconfig
@@ -13,7 +13,7 @@ config VIDEO_SAA7134
13 module will be called saa7134. 13 module will be called saa7134.
14 14
15config VIDEO_SAA7134_DVB 15config VIDEO_SAA7134_DVB
16 tristate "DVB Support for saa7134 based TV cards" 16 tristate "DVB/ATSC Support for saa7134 based TV cards"
17 depends on VIDEO_SAA7134 && DVB_CORE 17 depends on VIDEO_SAA7134 && DVB_CORE
18 select VIDEO_BUF_DVB 18 select VIDEO_BUF_DVB
19 ---help--- 19 ---help---
@@ -32,6 +32,7 @@ config VIDEO_SAA7134_DVB_ALL_FRONTENDS
32 depends on VIDEO_SAA7134_DVB 32 depends on VIDEO_SAA7134_DVB
33 select DVB_MT352 33 select DVB_MT352
34 select DVB_TDA1004X 34 select DVB_TDA1004X
35 select DVB_NXT200X
35 ---help--- 36 ---help---
36 This builds saa7134-dvb with all currently supported frontend 37 This builds saa7134-dvb with all currently supported frontend
37 demodulators. If you wish to tweak your configuration, and 38 demodulators. If you wish to tweak your configuration, and
@@ -56,3 +57,12 @@ config VIDEO_SAA7134_DVB_TDA1004X
56 ---help--- 57 ---help---
57 This adds DVB-T support for cards based on the 58 This adds DVB-T support for cards based on the
58 Philips saa7134 chip and the TDA10045H/TDA10046H demodulator. 59 Philips saa7134 chip and the TDA10045H/TDA10046H demodulator.
60
61config VIDEO_SAA7134_DVB_NXT200X
62 tristate "NXT2002/NXT2004 ATSC Support"
63 default m
64 depends on VIDEO_SAA7134_DVB && !VIDEO_SAA7134_DVB_ALL_FRONTENDS
65 select DVB_NXT200X
66 ---help---
67 This adds ATSC 8VSB and QAM64/256 support for cards based on the
68 Philips saa7134 chip and the NXT2002/NXT2004 demodulator.
diff --git a/drivers/media/video/saa7134/Makefile b/drivers/media/video/saa7134/Makefile
index 1418f9f88d26..937dff8d561c 100644
--- a/drivers/media/video/saa7134/Makefile
+++ b/drivers/media/video/saa7134/Makefile
@@ -18,3 +18,6 @@ endif
18ifneq ($(CONFIG_DVB_TDA1004X),n) 18ifneq ($(CONFIG_DVB_TDA1004X),n)
19 EXTRA_CFLAGS += -DHAVE_TDA1004X=1 19 EXTRA_CFLAGS += -DHAVE_TDA1004X=1
20endif 20endif
21ifneq ($(CONFIG_DVB_NXT200X),n)
22 EXTRA_CFLAGS += -DHAVE_NXT200X=1
23endif
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c
index 6650efa44ca7..2f2015202450 100644
--- a/drivers/media/video/saa7134/saa7134-cards.c
+++ b/drivers/media/video/saa7134/saa7134-cards.c
@@ -2358,6 +2358,7 @@ struct saa7134_board saa7134_boards[] = {
2358 .radio_type = UNSET, 2358 .radio_type = UNSET,
2359 .tuner_addr = ADDR_UNSET, 2359 .tuner_addr = ADDR_UNSET,
2360 .radio_addr = ADDR_UNSET, 2360 .radio_addr = ADDR_UNSET,
2361 .mpeg = SAA7134_MPEG_DVB,
2361 .inputs = {{ 2362 .inputs = {{
2362 .name = name_comp1, 2363 .name = name_comp1,
2363 .vmux = 3, 2364 .vmux = 3,
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c
index 342891d431a8..aaac12e8adbf 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -39,6 +39,10 @@
39#ifdef HAVE_TDA1004X 39#ifdef HAVE_TDA1004X
40# include "tda1004x.h" 40# include "tda1004x.h"
41#endif 41#endif
42#ifdef HAVE_NXT200X
43# include "nxt200x.h"
44# include "dvb-pll.h"
45#endif
42 46
43MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); 47MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]");
44MODULE_LICENSE("GPL"); 48MODULE_LICENSE("GPL");
@@ -624,6 +628,14 @@ static struct tda1004x_config tda827x_lifeview_config = {
624}; 628};
625#endif 629#endif
626 630
631#ifdef HAVE_NXT200X
632static struct nxt200x_config avertvhda180 = {
633 .demod_address = 0x0a,
634 .pll_address = 0x61,
635 .pll_desc = &dvb_pll_tdhu2,
636};
637#endif
638
627/* ------------------------------------------------------------------ */ 639/* ------------------------------------------------------------------ */
628 640
629static int dvb_init(struct saa7134_dev *dev) 641static int dvb_init(struct saa7134_dev *dev)
@@ -677,6 +689,11 @@ static int dvb_init(struct saa7134_dev *dev)
677 &dev->i2c_adap); 689 &dev->i2c_adap);
678 break; 690 break;
679#endif 691#endif
692#ifdef HAVE_NXT200X
693 case SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180:
694 dev->dvb.frontend = nxt200x_attach(&avertvhda180, &dev->i2c_adap);
695 break;
696#endif
680 default: 697 default:
681 printk("%s: Huh? unknown DVB card?\n",dev->name); 698 printk("%s: Huh? unknown DVB card?\n",dev->name);
682 break; 699 break;