diff options
author | Gerd Knorr <devnull@localhost> | 2004-12-10 12:33:39 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-12-10 12:33:39 +0000 |
commit | 0b35334a57bea3250daaab02ee3b1f5e70d46bfb (patch) | |
tree | cfeb0f72b2627e1dca96110f7c99e07faab24876 | |
parent | 6208c1bac3644cd9e3dbdee0aa7418b2d9bb02dc (diff) | |
download | mediapointer-dvb-s2-0b35334a57bea3250daaab02ee3b1f5e70d46bfb.tar.gz mediapointer-dvb-s2-0b35334a57bea3250daaab02ee3b1f5e70d46bfb.tar.bz2 |
- add moduleparam.h include to many files.
- some pinnacle 300i progress (can talk to mt352 now, not working yet
through).
- misc minor stuff.
33 files changed, 86 insertions, 67 deletions
diff --git a/linux/drivers/media/common/ir-common.c b/linux/drivers/media/common/ir-common.c index 10e608a9d..a640cf2a9 100644 --- a/linux/drivers/media/common/ir-common.c +++ b/linux/drivers/media/common/ir-common.c @@ -1,5 +1,5 @@ /* - * $Id: ir-common.c,v 1.5 2004/11/07 13:17:15 kraxel Exp $ + * $Id: ir-common.c,v 1.6 2004/12/10 12:33:39 kraxel Exp $ * * some common structs and functions to handle infrared remotes via * input layer ... @@ -22,6 +22,7 @@ */ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/version.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) diff --git a/linux/drivers/media/video/btcx-risc.c b/linux/drivers/media/video/btcx-risc.c index ab5dfcbac..b51e4599b 100644 --- a/linux/drivers/media/video/btcx-risc.c +++ b/linux/drivers/media/video/btcx-risc.c @@ -1,5 +1,5 @@ /* - $Id: btcx-risc.c,v 1.4 2004/11/07 13:17:14 kraxel Exp $ + $Id: btcx-risc.c,v 1.5 2004/12/10 12:33:39 kraxel Exp $ btcx-risc.c @@ -25,6 +25,7 @@ #include <linux/version.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/init.h> #include <linux/pci.h> #include <linux/interrupt.h> diff --git a/linux/drivers/media/video/bttv-cards.c b/linux/drivers/media/video/bttv-cards.c index 0ccd77fc8..f4c7b1a01 100644 --- a/linux/drivers/media/video/bttv-cards.c +++ b/linux/drivers/media/video/bttv-cards.c @@ -1,5 +1,5 @@ /* - $Id: bttv-cards.c,v 1.37 2004/12/09 12:51:35 kraxel Exp $ + $Id: bttv-cards.c,v 1.38 2004/12/10 12:33:39 kraxel Exp $ bttv-cards.c @@ -29,6 +29,7 @@ #include <linux/config.h> #include <linux/delay.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kmod.h> #include <linux/init.h> #include <linux/pci.h> diff --git a/linux/drivers/media/video/bttv-driver.c b/linux/drivers/media/video/bttv-driver.c index 1f389d33a..3339a101a 100644 --- a/linux/drivers/media/video/bttv-driver.c +++ b/linux/drivers/media/video/bttv-driver.c @@ -1,5 +1,5 @@ /* - $Id: bttv-driver.c,v 1.31 2004/12/02 14:23:54 kraxel Exp $ + $Id: bttv-driver.c,v 1.32 2004/12/10 12:33:39 kraxel Exp $ bttv - Bt848 frame grabber driver @@ -27,6 +27,7 @@ #include <linux/init.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/fs.h> diff --git a/linux/drivers/media/video/bttv-i2c.c b/linux/drivers/media/video/bttv-i2c.c index 97bc453d2..230127822 100644 --- a/linux/drivers/media/video/bttv-i2c.c +++ b/linux/drivers/media/video/bttv-i2c.c @@ -1,5 +1,5 @@ /* - $Id: bttv-i2c.c,v 1.15 2004/11/19 18:07:12 kraxel Exp $ + $Id: bttv-i2c.c,v 1.16 2004/12/10 12:33:39 kraxel Exp $ bttv-i2c.c -- all the i2c code is here @@ -26,6 +26,7 @@ */ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/init.h> #include <linux/delay.h> #include <asm/io.h> diff --git a/linux/drivers/media/video/bttv-vbi.c b/linux/drivers/media/video/bttv-vbi.c index ecdd9bfd6..a53a73f7e 100644 --- a/linux/drivers/media/video/bttv-vbi.c +++ b/linux/drivers/media/video/bttv-vbi.c @@ -1,5 +1,5 @@ /* - $Id: bttv-vbi.c,v 1.7 2004/11/07 13:17:15 kraxel Exp $ + $Id: bttv-vbi.c,v 1.8 2004/12/10 12:33:39 kraxel Exp $ bttv - Bt848 frame grabber driver vbi interface @@ -22,6 +22,7 @@ */ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/errno.h> #include <linux/fs.h> #include <linux/kernel.h> diff --git a/linux/drivers/media/video/cx88/cx88-blackbird.c b/linux/drivers/media/video/cx88/cx88-blackbird.c index 85c8897be..f70fdf4d4 100644 --- a/linux/drivers/media/video/cx88/cx88-blackbird.c +++ b/linux/drivers/media/video/cx88/cx88-blackbird.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-blackbird.c,v 1.22 2004/12/07 13:17:57 kraxel Exp $ + * $Id: cx88-blackbird.c,v 1.23 2004/12/10 12:33:39 kraxel Exp $ * * Support for a cx23416 mpeg encoder via cx2388x host port. * "blackbird" reference design. @@ -25,6 +25,7 @@ */ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/init.h> #include <linux/fs.h> #include <linux/delay.h> diff --git a/linux/drivers/media/video/cx88/cx88-core.c b/linux/drivers/media/video/cx88/cx88-core.c index e12b480f0..2e246e8c7 100644 --- a/linux/drivers/media/video/cx88/cx88-core.c +++ b/linux/drivers/media/video/cx88/cx88-core.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-core.c,v 1.20 2004/12/07 13:17:57 kraxel Exp $ + * $Id: cx88-core.c,v 1.21 2004/12/10 12:33:39 kraxel Exp $ * * device driver for Conexant 2388x based TV cards * driver core @@ -24,6 +24,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/kmod.h> diff --git a/linux/drivers/media/video/cx88/cx88-i2c.c b/linux/drivers/media/video/cx88/cx88-i2c.c index 866bf4463..def26d334 100644 --- a/linux/drivers/media/video/cx88/cx88-i2c.c +++ b/linux/drivers/media/video/cx88/cx88-i2c.c @@ -1,5 +1,5 @@ /* - $Id: cx88-i2c.c,v 1.18 2004/10/13 10:39:00 kraxel Exp $ + $Id: cx88-i2c.c,v 1.19 2004/12/10 12:33:39 kraxel Exp $ cx88-i2c.c -- all the i2c code is here @@ -25,6 +25,7 @@ */ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/init.h> #include <asm/io.h> diff --git a/linux/drivers/media/video/cx88/cx88-input.c b/linux/drivers/media/video/cx88/cx88-input.c index 63e61748a..3a7179961 100644 --- a/linux/drivers/media/video/cx88/cx88-input.c +++ b/linux/drivers/media/video/cx88/cx88-input.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-input.c,v 1.2 2004/12/01 15:10:26 kraxel Exp $ + * $Id: cx88-input.c,v 1.3 2004/12/10 12:33:39 kraxel Exp $ * * Device driver for GPIO attached remote control interfaces * on Conexant 2388x based TV/DVB cards. @@ -27,6 +27,8 @@ #include <linux/delay.h> #include <linux/input.h> #include <linux/pci.h> +#include <linux/module.h> +#include <linux/moduleparam.h> #include <media/ir-common.h> diff --git a/linux/drivers/media/video/cx88/cx88-mpeg.c b/linux/drivers/media/video/cx88/cx88-mpeg.c index 3ae413e8a..863e1272f 100644 --- a/linux/drivers/media/video/cx88/cx88-mpeg.c +++ b/linux/drivers/media/video/cx88/cx88-mpeg.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-mpeg.c,v 1.15 2004/11/30 17:00:13 kraxel Exp $ + * $Id: cx88-mpeg.c,v 1.16 2004/12/10 12:33:39 kraxel Exp $ * * Support for the mpeg transport stream transfers * PCI function #2 of the cx2388x. @@ -24,6 +24,7 @@ */ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/init.h> #include <linux/device.h> #include <linux/interrupt.h> diff --git a/linux/drivers/media/video/cx88/cx88-tvaudio.c b/linux/drivers/media/video/cx88/cx88-tvaudio.c index ed80391a1..a9be4d041 100644 --- a/linux/drivers/media/video/cx88/cx88-tvaudio.c +++ b/linux/drivers/media/video/cx88/cx88-tvaudio.c @@ -1,5 +1,5 @@ /* - $Id: cx88-tvaudio.c,v 1.25 2004/11/19 18:07:12 kraxel Exp $ + $Id: cx88-tvaudio.c,v 1.26 2004/12/10 12:33:39 kraxel Exp $ cx88x-audio.c - Conexant CX23880/23881 audio downstream driver driver @@ -37,6 +37,7 @@ */ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/slab.h> diff --git a/linux/drivers/media/video/cx88/cx88-vbi.c b/linux/drivers/media/video/cx88/cx88-vbi.c index 078c5057f..471e508b0 100644 --- a/linux/drivers/media/video/cx88/cx88-vbi.c +++ b/linux/drivers/media/video/cx88/cx88-vbi.c @@ -1,8 +1,9 @@ /* - * $Id: cx88-vbi.c,v 1.15 2004/11/30 17:00:13 kraxel Exp $ + * $Id: cx88-vbi.c,v 1.16 2004/12/10 12:33:39 kraxel Exp $ */ #include <linux/kernel.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/init.h> #include <linux/slab.h> diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c index 1671f8616..1c9ced363 100644 --- a/linux/drivers/media/video/cx88/cx88-video.c +++ b/linux/drivers/media/video/cx88/cx88-video.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-video.c,v 1.49 2004/12/02 14:23:54 kraxel Exp $ + * $Id: cx88-video.c,v 1.50 2004/12/10 12:33:39 kraxel Exp $ * * device driver for Conexant 2388x based TV cards * video4linux video interface @@ -24,6 +24,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kmod.h> #include <linux/kernel.h> #include <linux/slab.h> diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 5c4433cf5..b9b7dc238 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -36,6 +36,7 @@ #include <linux/config.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/string.h> diff --git a/linux/drivers/media/video/msp3400.c b/linux/drivers/media/video/msp3400.c index 5c4433cf5..b9b7dc238 100644 --- a/linux/drivers/media/video/msp3400.c +++ b/linux/drivers/media/video/msp3400.c @@ -36,6 +36,7 @@ #include <linux/config.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/string.h> diff --git a/linux/drivers/media/video/saa7134/saa7134-core.c b/linux/drivers/media/video/saa7134/saa7134-core.c index 87190a5e0..a24d3f379 100644 --- a/linux/drivers/media/video/saa7134/saa7134-core.c +++ b/linux/drivers/media/video/saa7134/saa7134-core.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-core.c,v 1.21 2004/11/26 12:59:23 kraxel Exp $ + * $Id: saa7134-core.c,v 1.22 2004/12/10 12:33:39 kraxel Exp $ * * device driver for philips saa7134 based TV cards * driver core @@ -24,6 +24,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/kmod.h> diff --git a/linux/drivers/media/video/saa7134/saa7134-dvb.c b/linux/drivers/media/video/saa7134/saa7134-dvb.c index b2cbaee4c..b6cb37003 100644 --- a/linux/drivers/media/video/saa7134/saa7134-dvb.c +++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-dvb.c,v 1.5 2004/12/09 12:51:35 kraxel Exp $ + * $Id: saa7134-dvb.c,v 1.6 2004/12/10 12:33:39 kraxel Exp $ * * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] * @@ -41,13 +41,13 @@ MODULE_LICENSE("GPL"); static int mt352_init(struct dvb_frontend* fe) { - static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 }; - static u8 reset [] = { RESET, 0x80 }; + static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 }; // check + static u8 reset [] = { RESET, 0x80 }; // ok + static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; // ok #if 0 - static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 }; - static u8 agc_cfg [] = { AGC_TARGET, 0x24, 0x20 }; - static u8 gpp_ctl_cfg [] = { GPP_CTL, 0x33 }; - static u8 capt_range_cfg[] = { CAPT_RANGE, 0x32 }; + static u8 agc_cfg [] = { AGC_TARGET, 0x28, 0x20 }; // check + static u8 gpp_ctl_cfg [] = { GPP_CTL, 0x33 }; // ??? + static u8 capt_range_cfg[] = { CAPT_RANGE, 0x32 }; // ??? #endif struct saa7134_dev *dev= fe->dvb->priv; @@ -56,9 +56,9 @@ static int mt352_init(struct dvb_frontend* fe) mt352_write(fe, clock_config, sizeof(clock_config)); udelay(200); mt352_write(fe, reset, sizeof(reset)); -#if 0 mt352_write(fe, adc_ctl_1_cfg, sizeof(adc_ctl_1_cfg)); +#if 0 mt352_write(fe, agc_cfg, sizeof(agc_cfg)); mt352_write(fe, gpp_ctl_cfg, sizeof(gpp_ctl_cfg)); mt352_write(fe, capt_range_cfg, sizeof(capt_range_cfg)); @@ -80,7 +80,6 @@ static int mt352_pll_set(struct dvb_frontend* fe, static struct mt352_config pinnacle_300i = { .demod_address = 0x3c >> 1, -// .demod_address = 0x1e >> 1, .demod_init = mt352_init, .pll_set = mt352_pll_set, }; @@ -101,14 +100,6 @@ static int dvb_init(struct saa7134_dev *dev) switch (dev->board) { case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL: printk("%s: pinnacle 300i dvb setup\n",dev->name); - { - u8 buf[16]; - dev->i2c_client.addr = 0x3c >> 1; - memset(buf,0,sizeof(buf)); - buf[0] = CHIP_ID; - i2c_master_send(&dev->i2c_client,buf,1); - i2c_master_recv(&dev->i2c_client,buf,1); - } dev->dvb.frontend = mt352_attach(&pinnacle_300i, &dev->i2c_adap); break; diff --git a/linux/drivers/media/video/saa7134/saa7134-empress.c b/linux/drivers/media/video/saa7134/saa7134-empress.c index 08c2d58a0..a7c38745b 100644 --- a/linux/drivers/media/video/saa7134/saa7134-empress.c +++ b/linux/drivers/media/video/saa7134/saa7134-empress.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-empress.c,v 1.8 2004/12/02 14:23:54 kraxel Exp $ + * $Id: saa7134-empress.c,v 1.9 2004/12/10 12:33:39 kraxel Exp $ * * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] * @@ -21,6 +21,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/delay.h> diff --git a/linux/drivers/media/video/saa7134/saa7134-i2c.c b/linux/drivers/media/video/saa7134/saa7134-i2c.c index 78c07db8a..8979b0a32 100644 --- a/linux/drivers/media/video/saa7134/saa7134-i2c.c +++ b/linux/drivers/media/video/saa7134/saa7134-i2c.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-i2c.c,v 1.8 2004/12/09 12:51:35 kraxel Exp $ + * $Id: saa7134-i2c.c,v 1.9 2004/12/10 12:33:39 kraxel Exp $ * * device driver for philips saa7134 based TV cards * i2c interface support @@ -24,6 +24,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/delay.h> @@ -214,13 +215,6 @@ static inline int i2c_send_byte(struct saa7134_dev *dev, if (!i2c_is_busy_wait(dev)) return -EIO; status = i2c_get_status(dev); -#if 1 /* debug */ - if (DONE_READ == status) { - unsigned char data = saa_readb(SAA7134_I2C_DATA); - d2printk(KERN_DEBUG "%s: i2c data <= 0x%x\n",dev->name,data); - d1printk(" [%02x]",data); - } -#endif if (i2c_is_error(status)) return -EIO; return 0; @@ -264,6 +258,15 @@ static int saa7134_i2c_xfer(struct i2c_adapter *i2c_adap, addr = msgs[i].addr << 1; if (msgs[i].flags & I2C_M_RD) addr |= 1; + if (i > 0 && msgs[i].flags & I2C_M_RD) { + /* workaround for a saa7134 i2c bug + * needed to talk to the mt352 demux + * thanks to pinnacle for the hint */ + int quirk = 0xfd; + d1printk(" [%02x quirk]",quirk); + i2c_send_byte(dev,START,quirk); + i2c_recv_byte(dev); + } d1printk(" < %02x", addr); rc = i2c_send_byte(dev,START,addr); if (rc < 0) diff --git a/linux/drivers/media/video/saa7134/saa7134-input.c b/linux/drivers/media/video/saa7134/saa7134-input.c index 980db6fe1..dcf0fd724 100644 --- a/linux/drivers/media/video/saa7134/saa7134-input.c +++ b/linux/drivers/media/video/saa7134/saa7134-input.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-input.c,v 1.15 2004/11/30 11:26:38 kraxel Exp $ + * $Id: saa7134-input.c,v 1.16 2004/12/10 12:33:39 kraxel Exp $ * * handle saa7134 IR remotes via linux kernel input layer. * @@ -20,6 +20,7 @@ */ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/init.h> #include <linux/delay.h> #include <linux/sched.h> diff --git a/linux/drivers/media/video/saa7134/saa7134-oss.c b/linux/drivers/media/video/saa7134/saa7134-oss.c index 0a737fdf8..6b6a643bf 100644 --- a/linux/drivers/media/video/saa7134/saa7134-oss.c +++ b/linux/drivers/media/video/saa7134/saa7134-oss.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-oss.c,v 1.12 2004/11/30 11:26:38 kraxel Exp $ + * $Id: saa7134-oss.c,v 1.13 2004/12/10 12:33:39 kraxel Exp $ * * device driver for philips saa7134 based TV cards * oss dsp interface @@ -24,6 +24,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/soundcard.h> diff --git a/linux/drivers/media/video/saa7134/saa7134-ts.c b/linux/drivers/media/video/saa7134/saa7134-ts.c index ed73f71a4..888e15c96 100644 --- a/linux/drivers/media/video/saa7134/saa7134-ts.c +++ b/linux/drivers/media/video/saa7134/saa7134-ts.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-ts.c,v 1.12 2004/11/07 13:17:15 kraxel Exp $ + * $Id: saa7134-ts.c,v 1.13 2004/12/10 12:33:39 kraxel Exp $ * * device driver for philips saa7134 based TV cards * video4linux video interface @@ -24,6 +24,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/delay.h> diff --git a/linux/drivers/media/video/saa7134/saa7134-tvaudio.c b/linux/drivers/media/video/saa7134/saa7134-tvaudio.c index ddd5302c0..5a0bbb6ed 100644 --- a/linux/drivers/media/video/saa7134/saa7134-tvaudio.c +++ b/linux/drivers/media/video/saa7134/saa7134-tvaudio.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-tvaudio.c,v 1.20 2004/11/30 11:26:38 kraxel Exp $ + * $Id: saa7134-tvaudio.c,v 1.21 2004/12/10 12:33:39 kraxel Exp $ * * device driver for philips saa7134 based TV cards * tv audio decoder (fm stereo, nicam, ...) @@ -24,6 +24,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/delay.h> diff --git a/linux/drivers/media/video/saa7134/saa7134-vbi.c b/linux/drivers/media/video/saa7134/saa7134-vbi.c index 5707e9021..86954cc7c 100644 --- a/linux/drivers/media/video/saa7134/saa7134-vbi.c +++ b/linux/drivers/media/video/saa7134/saa7134-vbi.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-vbi.c,v 1.5 2004/11/07 13:17:15 kraxel Exp $ + * $Id: saa7134-vbi.c,v 1.6 2004/12/10 12:33:39 kraxel Exp $ * * device driver for philips saa7134 based TV cards * video4linux video interface @@ -24,6 +24,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/slab.h> diff --git a/linux/drivers/media/video/saa7134/saa7134-video.c b/linux/drivers/media/video/saa7134/saa7134-video.c index c3164350b..b313709c7 100644 --- a/linux/drivers/media/video/saa7134/saa7134-video.c +++ b/linux/drivers/media/video/saa7134/saa7134-video.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-video.c,v 1.24 2004/12/09 12:51:35 kraxel Exp $ + * $Id: saa7134-video.c,v 1.25 2004/12/10 12:33:39 kraxel Exp $ * * device driver for philips saa7134 based TV cards * video4linux video interface @@ -24,6 +24,7 @@ #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/slab.h> diff --git a/linux/drivers/media/video/tda9887.c b/linux/drivers/media/video/tda9887.c index d63e466b4..39850d9b3 100644 --- a/linux/drivers/media/video/tda9887.c +++ b/linux/drivers/media/video/tda9887.c @@ -1,4 +1,5 @@ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/i2c.h> #include <linux/types.h> diff --git a/linux/drivers/media/video/tvaudio.c b/linux/drivers/media/video/tvaudio.c index cf22ef6f8..b89ba67c8 100644 --- a/linux/drivers/media/video/tvaudio.c +++ b/linux/drivers/media/video/tvaudio.c @@ -16,6 +16,7 @@ #include <linux/config.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/string.h> diff --git a/linux/drivers/media/video/tvmixer.c b/linux/drivers/media/video/tvmixer.c index 18e7811b8..c1250cdad 100644 --- a/linux/drivers/media/video/tvmixer.c +++ b/linux/drivers/media/video/tvmixer.c @@ -1,4 +1,5 @@ #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/string.h> diff --git a/linux/drivers/media/video/v4l1-compat.c b/linux/drivers/media/video/v4l1-compat.c index 0c2f4db46..871b5673f 100644 --- a/linux/drivers/media/video/v4l1-compat.c +++ b/linux/drivers/media/video/v4l1-compat.c @@ -15,15 +15,12 @@ * */ -#ifndef __KERNEL__ -#define __KERNEL__ -#endif - #include <linux/config.h> #include <linux/version.h> #include <linux/init.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/types.h> #include <linux/kernel.h> #include <linux/sched.h> diff --git a/linux/drivers/media/video/video-buf.c b/linux/drivers/media/video/video-buf.c index 33740d57b..58352a563 100644 --- a/linux/drivers/media/video/video-buf.c +++ b/linux/drivers/media/video/video-buf.c @@ -1,5 +1,5 @@ /* - * $Id: video-buf.c,v 1.16 2004/12/02 14:23:54 kraxel Exp $ + * $Id: video-buf.c,v 1.17 2004/12/10 12:33:40 kraxel Exp $ * * generic helper functions for video4linux capture buffers, to handle * memory management and PCI DMA. Right now bttv + saa7134 use it. @@ -21,6 +21,7 @@ #include <linux/version.h> #include <linux/init.h> #include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/vmalloc.h> #include <linux/pagemap.h> #include <linux/slab.h> diff --git a/v4l/mt352.c b/v4l/mt352.c index e41a31107..4638207be 100644 --- a/v4l/mt352.c +++ b/v4l/mt352.c @@ -94,17 +94,6 @@ static u8 mt352_read_register(struct mt352_state* state, u8 reg) return b1[0]; } - - - - - - - - - - - static int mt352_sleep(struct dvb_frontend* fe) { static u8 mt352_softdown[] = { CLOCK_CTL, 0x20, 0x08 }; @@ -259,11 +248,15 @@ static int mt352_set_parameters(struct dvb_frontend* fe, /* Only send the tuning request if the tuner doesn't have the requested * parameters already set. Enhances tuning time and prevents stream * breakup when retuning the same transponder. */ - for (i = 1; i < 13; i++) + for (i = 1; i < 13; i++) { if (buf[i] != mt352_read_register(state, i + 0x50)) { mt352_write(fe, buf, sizeof(buf)); break; } + if (8 == i && 0 == buf[i]) + /* no tuner address given => skip that part */ + break; + } return 0; } @@ -565,3 +558,9 @@ MODULE_LICENSE("GPL"); EXPORT_SYMBOL(mt352_attach); EXPORT_SYMBOL(mt352_write); +/* + * Local variables: + * c-basic-offset: 8 + * compile-command: "make DVB=1" + * End: + */ diff --git a/v4l/scripts/update b/v4l/scripts/update index d2a64d716..47f0f23d5 100644 --- a/v4l/scripts/update +++ b/v4l/scripts/update @@ -63,17 +63,17 @@ sync; sleep 1; # common v4l2basic -xrmmod video-buf -xinsmod video-buf debug=0 +#xrmmod video-buf +#xinsmod video-buf debug=0 #xrmmod v4l1-compat #xinsmod v4l1-compat debug=1 +xinsmod dvb-pll debug=0 xinsmod btcx-risc debug=0 xinsmod ir-common debug=1 repeat=0 xinsmod tuner debug=0 xinsmod tda9887 debug=0 port2=0 xinsmod msp3400 debug=0 -xinsmod dvb-pll debug=0 # bttv xinsmod ir-kbd-i2c debug=0 |