aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-dvb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-dvb.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c
index 334bc1850092..48400e0cb34f 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -36,11 +36,11 @@
36#include "saa7134-reg.h" 36#include "saa7134-reg.h"
37#include "saa7134.h" 37#include "saa7134.h"
38 38
39#if CONFIG_DVB_MT352 39#ifdef CONFIG_DVB_MT352
40# include "mt352.h" 40# include "mt352.h"
41# include "mt352_priv.h" /* FIXME */ 41# include "mt352_priv.h" /* FIXME */
42#endif 42#endif
43#if CONFIG_DVB_TDA1004X 43#ifdef CONFIG_DVB_TDA1004X
44# include "tda1004x.h" 44# include "tda1004x.h"
45#endif 45#endif
46 46
@@ -54,7 +54,7 @@ MODULE_PARM_DESC(antenna_pwr,"enable antenna power (Pinnacle 300i)");
54 54
55/* ------------------------------------------------------------------ */ 55/* ------------------------------------------------------------------ */
56 56
57#if CONFIG_DVB_MT352 57#ifdef CONFIG_DVB_MT352
58static int pinnacle_antenna_pwr(struct saa7134_dev *dev, int on) 58static int pinnacle_antenna_pwr(struct saa7134_dev *dev, int on)
59{ 59{
60 u32 ok; 60 u32 ok;
@@ -153,7 +153,7 @@ static struct mt352_config pinnacle_300i = {
153 153
154/* ------------------------------------------------------------------ */ 154/* ------------------------------------------------------------------ */
155 155
156#if CONFIG_DVB_TDA1004X 156#ifdef CONFIG_DVB_TDA1004X
157static int philips_tu1216_pll_init(struct dvb_frontend *fe) 157static int philips_tu1216_pll_init(struct dvb_frontend *fe)
158{ 158{
159 struct saa7134_dev *dev = fe->dvb->priv; 159 struct saa7134_dev *dev = fe->dvb->priv;
@@ -385,7 +385,7 @@ static int philips_fmd1216_pll_set(struct dvb_frontend *fe, struct dvb_frontend_
385 return 0; 385 return 0;
386} 386}
387 387
388 388#ifdef CONFIG_DVB_TDA1004X
389static struct tda1004x_config medion_cardbus = { 389static struct tda1004x_config medion_cardbus = {
390 .demod_address = 0x08, 390 .demod_address = 0x08,
391 .invert = 1, 391 .invert = 1,
@@ -398,6 +398,7 @@ static struct tda1004x_config medion_cardbus = {
398 .pll_sleep = philips_fmd1216_analog, 398 .pll_sleep = philips_fmd1216_analog,
399 .request_firmware = NULL, 399 .request_firmware = NULL,
400}; 400};
401#endif
401 402
402/* ------------------------------------------------------------------ */ 403/* ------------------------------------------------------------------ */
403 404
@@ -547,14 +548,14 @@ static int dvb_init(struct saa7134_dev *dev)
547 dev); 548 dev);
548 549
549 switch (dev->board) { 550 switch (dev->board) {
550#if CONFIG_DVB_MT352 551#ifdef CONFIG_DVB_MT352
551 case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL: 552 case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
552 printk("%s: pinnacle 300i dvb setup\n",dev->name); 553 printk("%s: pinnacle 300i dvb setup\n",dev->name);
553 dev->dvb.frontend = mt352_attach(&pinnacle_300i, 554 dev->dvb.frontend = mt352_attach(&pinnacle_300i,
554 &dev->i2c_adap); 555 &dev->i2c_adap);
555 break; 556 break;
556#endif 557#endif
557#if CONFIG_DVB_TDA1004X 558#ifdef CONFIG_DVB_TDA1004X
558 case SAA7134_BOARD_MD7134: 559 case SAA7134_BOARD_MD7134:
559 dev->dvb.frontend = tda10046_attach(&medion_cardbus, 560 dev->dvb.frontend = tda10046_attach(&medion_cardbus,
560 &dev->i2c_adap); 561 &dev->i2c_adap);