diff options
author | Michael Krufky <devnull@localhost> | 2005-07-23 10:08:00 +0000 |
---|---|---|
committer | Michael Krufky <devnull@localhost> | 2005-07-23 10:08:00 +0000 |
commit | fc5fdeb9baf0a40a275635f2cc5280445e39c581 (patch) | |
tree | 03d66d0dca3d1692e5265c498616e04db7da1962 /linux/drivers/media/video/cx88/cx88-dvb.c | |
parent | 58f7f4b40f2ca86934efbe37084be2e09ed3f0cf (diff) | |
download | mediapointer-dvb-s2-fc5fdeb9baf0a40a275635f2cc5280445e39c581.tar.gz mediapointer-dvb-s2-fc5fdeb9baf0a40a275635f2cc5280445e39c581.tar.bz2 |
* cx88-dvb.c, saa7134-dvb.c:
* scripts/merge-trees.sh, scripts/unmerge-trees.sh:
- fix compilation warning for missing lgdt3302 when
compiling against kernel 2.6.12 without DVB tree.
- replaced #IF CONFIG_DVB_* with #IFDEF CONFIG_DVB_*
- include linux/config.h
- Let kconfig / Makefile decide to include frontend-specific code.
(Properly functioning now)
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-dvb.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-dvb.c | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-dvb.c b/linux/drivers/media/video/cx88/cx88-dvb.c index 3fe9b0a98..b4839b865 100644 --- a/linux/drivers/media/video/cx88/cx88-dvb.c +++ b/linux/drivers/media/video/cx88/cx88-dvb.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-dvb.c,v 1.49 2005/07/20 05:38:09 mkrufky Exp $ + * $Id: cx88-dvb.c,v 1.50 2005/07/23 10:08:00 mkrufky Exp $ * * device driver for Conexant 2388x based TV cards * MPEG Transport Stream (DVB) routines @@ -29,31 +29,27 @@ #include <linux/kthread.h> #include <linux/file.h> #include <linux/suspend.h> +#include <linux/config.h> #include "compat.h" -#define CONFIG_DVB_MT352 1 -#define CONFIG_DVB_CX22702 1 -#define CONFIG_DVB_OR51132 1 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13) -#define CONFIG_DVB_LGDT3302 0 -#else -#define CONFIG_DVB_LGDT3302 1 +#undef CONFIG_DVB_LGDT3302 #endif #include "cx88.h" #include "dvb-pll.h" -#if CONFIG_DVB_MT352 +#ifdef CONFIG_DVB_MT352 # include "mt352.h" # include "mt352_priv.h" #endif -#if CONFIG_DVB_CX22702 +#ifdef CONFIG_DVB_CX22702 # include "cx22702.h" #endif -#if CONFIG_DVB_OR51132 +#ifdef CONFIG_DVB_OR51132 # include "or51132.h" #endif -#if CONFIG_DVB_LGDT3302 +#ifdef CONFIG_DVB_LGDT3302 # include "lgdt3302.h" #endif @@ -112,7 +108,7 @@ static struct videobuf_queue_ops dvb_qops = { /* ------------------------------------------------------------------ */ -#if CONFIG_DVB_MT352 +#ifdef CONFIG_DVB_MT352 static int dvico_fusionhdtv_demod_init(struct dvb_frontend* fe) { static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 }; @@ -182,7 +178,7 @@ static struct mt352_config dntv_live_dvbt_config = { }; #endif -#if CONFIG_DVB_CX22702 +#ifdef CONFIG_DVB_CX22702 static struct cx22702_config connexant_refboard_config = { .demod_address = 0x43, #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12) @@ -202,7 +198,7 @@ static struct cx22702_config hauppauge_novat_config = { }; #endif -#if CONFIG_DVB_OR51132 +#ifdef CONFIG_DVB_OR51132 static int or51132_set_ts_param(struct dvb_frontend* fe, int is_punctured) { @@ -219,7 +215,7 @@ static struct or51132_config pchdtv_hd3000 = { }; #endif -#if CONFIG_DVB_LGDT3302 +#ifdef CONFIG_DVB_LGDT3302 static int lgdt3302_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf) @@ -270,7 +266,7 @@ static int dvb_register(struct cx8802_dev *dev) /* init frontend */ switch (dev->core->board) { -#if CONFIG_DVB_CX22702 +#ifdef CONFIG_DVB_CX22702 case CX88_BOARD_HAUPPAUGE_DVB_T1: dev->dvb.frontend = cx22702_attach(&hauppauge_novat_config, &dev->core->i2c_adap); @@ -281,7 +277,7 @@ static int dvb_register(struct cx8802_dev *dev) &dev->core->i2c_adap); break; #endif -#if CONFIG_DVB_MT352 +#ifdef CONFIG_DVB_MT352 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1: dev->core->pll_addr = 0x61; dev->core->pll_desc = &dvb_pll_lg_z201; @@ -303,13 +299,13 @@ static int dvb_register(struct cx8802_dev *dev) &dev->core->i2c_adap); break; #endif -#if CONFIG_DVB_OR51132 +#ifdef CONFIG_DVB_OR51132 case CX88_BOARD_PCHDTV_HD3000: dev->dvb.frontend = or51132_attach(&pchdtv_hd3000, &dev->core->i2c_adap); break; #endif -#if CONFIG_DVB_LGDT3302 +#ifdef CONFIG_DVB_LGDT3302 case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q: dev->ts_gen_cntrl = 0x08; { |