aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-dvb.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-08-08 08:10:09 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-26 10:53:26 -0400
commit1f10c7afa1ac611c32ec4a2114788876a3f5d05e (patch)
tree0021db082b7f7b9c18448bcef9dd3a099cabe1df /drivers/media/video/saa7134/saa7134-dvb.c
parent102a342bb9672f67a34fd185803aaded4ce8dd0f (diff)
V4L/DVB (4388): Remove frontend selection from cx88/saa7134 drivers
Replaced with dvb_attach() Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-dvb.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c31
1 files changed, 4 insertions, 27 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c
index 7bc3af7af50..fdd1bb51e80 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -34,16 +34,10 @@
34#include <media/v4l2-common.h> 34#include <media/v4l2-common.h>
35#include "dvb-pll.h" 35#include "dvb-pll.h"
36 36
37#ifdef HAVE_MT352 37#include "mt352.h"
38# include "mt352.h" 38#include "mt352_priv.h" /* FIXME */
39# include "mt352_priv.h" /* FIXME */ 39#include "tda1004x.h"
40#endif 40#include "nxt200x.h"
41#ifdef HAVE_TDA1004X
42# include "tda1004x.h"
43#endif
44#ifdef HAVE_NXT200X
45# include "nxt200x.h"
46#endif
47 41
48MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); 42MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]");
49MODULE_LICENSE("GPL"); 43MODULE_LICENSE("GPL");
@@ -54,8 +48,6 @@ module_param(antenna_pwr, int, 0444);
54MODULE_PARM_DESC(antenna_pwr,"enable antenna power (Pinnacle 300i)"); 48MODULE_PARM_DESC(antenna_pwr,"enable antenna power (Pinnacle 300i)");
55 49
56/* ------------------------------------------------------------------ */ 50/* ------------------------------------------------------------------ */
57
58#ifdef HAVE_MT352
59static int pinnacle_antenna_pwr(struct saa7134_dev *dev, int on) 51static int pinnacle_antenna_pwr(struct saa7134_dev *dev, int on)
60{ 52{
61 u32 ok; 53 u32 ok;
@@ -185,12 +177,8 @@ static struct mt352_config avermedia_777 = {
185 .demod_address = 0xf, 177 .demod_address = 0xf,
186 .demod_init = mt352_aver777_init, 178 .demod_init = mt352_aver777_init,
187}; 179};
188#endif
189 180
190/* ------------------------------------------------------------------ */ 181/* ------------------------------------------------------------------ */
191
192#ifdef HAVE_TDA1004X
193
194static int philips_tda6651_pll_set(u8 addr, struct dvb_frontend *fe, struct dvb_frontend_parameters *params) 182static int philips_tda6651_pll_set(u8 addr, struct dvb_frontend *fe, struct dvb_frontend_parameters *params)
195{ 183{
196 struct saa7134_dev *dev = fe->dvb->priv; 184 struct saa7134_dev *dev = fe->dvb->priv;
@@ -1014,11 +1002,8 @@ static struct tda1004x_config md8800_dvbt_config = {
1014 .request_firmware = NULL, 1002 .request_firmware = NULL,
1015}; 1003};
1016 1004
1017#endif
1018
1019/* ------------------------------------------------------------------ */ 1005/* ------------------------------------------------------------------ */
1020 1006
1021#ifdef HAVE_NXT200X
1022static struct nxt200x_config avertvhda180 = { 1007static struct nxt200x_config avertvhda180 = {
1023 .demod_address = 0x0a, 1008 .demod_address = 0x0a,
1024}; 1009};
@@ -1036,7 +1021,6 @@ static struct nxt200x_config kworldatsc110 = {
1036 .demod_address = 0x0a, 1021 .demod_address = 0x0a,
1037 .set_pll_input = nxt200x_set_pll_input, 1022 .set_pll_input = nxt200x_set_pll_input,
1038}; 1023};
1039#endif
1040 1024
1041/* ------------------------------------------------------------------ */ 1025/* ------------------------------------------------------------------ */
1042 1026
@@ -1054,7 +1038,6 @@ static int dvb_init(struct saa7134_dev *dev)
1054 dev); 1038 dev);
1055 1039
1056 switch (dev->board) { 1040 switch (dev->board) {
1057#ifdef HAVE_MT352
1058 case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL: 1041 case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
1059 printk("%s: pinnacle 300i dvb setup\n",dev->name); 1042 printk("%s: pinnacle 300i dvb setup\n",dev->name);
1060 dev->dvb.frontend = dvb_attach(mt352_attach, &pinnacle_300i, 1043 dev->dvb.frontend = dvb_attach(mt352_attach, &pinnacle_300i,
@@ -1063,7 +1046,6 @@ static int dvb_init(struct saa7134_dev *dev)
1063 dev->dvb.frontend->ops.tuner_ops.set_params = mt352_pinnacle_tuner_set_params; 1046 dev->dvb.frontend->ops.tuner_ops.set_params = mt352_pinnacle_tuner_set_params;
1064 } 1047 }
1065 break; 1048 break;
1066
1067 case SAA7134_BOARD_AVERMEDIA_777: 1049 case SAA7134_BOARD_AVERMEDIA_777:
1068 printk("%s: avertv 777 dvb setup\n",dev->name); 1050 printk("%s: avertv 777 dvb setup\n",dev->name);
1069 dev->dvb.frontend = dvb_attach(mt352_attach, &avermedia_777, 1051 dev->dvb.frontend = dvb_attach(mt352_attach, &avermedia_777,
@@ -1072,8 +1054,6 @@ static int dvb_init(struct saa7134_dev *dev)
1072 dev->dvb.frontend->ops.tuner_ops.calc_regs = mt352_aver777_tuner_calc_regs; 1054 dev->dvb.frontend->ops.tuner_ops.calc_regs = mt352_aver777_tuner_calc_regs;
1073 } 1055 }
1074 break; 1056 break;
1075#endif
1076#ifdef HAVE_TDA1004X
1077 case SAA7134_BOARD_MD7134: 1057 case SAA7134_BOARD_MD7134:
1078 dev->dvb.frontend = dvb_attach(tda10046_attach, &medion_cardbus, 1058 dev->dvb.frontend = dvb_attach(tda10046_attach, &medion_cardbus,
1079 &dev->i2c_adap); 1059 &dev->i2c_adap);
@@ -1207,8 +1187,6 @@ static int dvb_init(struct saa7134_dev *dev)
1207 dev->dvb.frontend->ops.tuner_ops.set_params = md8800_dvbt_pll_set; 1187 dev->dvb.frontend->ops.tuner_ops.set_params = md8800_dvbt_pll_set;
1208 } 1188 }
1209 break; 1189 break;
1210#endif
1211#ifdef HAVE_NXT200X
1212 case SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180: 1190 case SAA7134_BOARD_AVERMEDIA_AVERTVHD_A180:
1213 dev->dvb.frontend = dvb_attach(nxt200x_attach, &avertvhda180, &dev->i2c_adap); 1191 dev->dvb.frontend = dvb_attach(nxt200x_attach, &avertvhda180, &dev->i2c_adap);
1214 if (dev->dvb.frontend) { 1192 if (dev->dvb.frontend) {
@@ -1221,7 +1199,6 @@ static int dvb_init(struct saa7134_dev *dev)
1221 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, &dev->i2c_adap, &dvb_pll_tuv1236d); 1199 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, &dev->i2c_adap, &dvb_pll_tuv1236d);
1222 } 1200 }
1223 break; 1201 break;
1224#endif
1225 default: 1202 default:
1226 printk("%s: Huh? unknown DVB card?\n",dev->name); 1203 printk("%s: Huh? unknown DVB card?\n",dev->name);
1227 break; 1204 break;