diff options
author | Gerd Knorr <devnull@localhost> | 2005-01-24 17:37:23 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2005-01-24 17:37:23 +0000 |
commit | 588d0f9cc7aa0863fe8e84e16aa98e847e6d214d (patch) | |
tree | 998678a36f1672304670bfc08d4d9dd625a5f5aa /linux/drivers/media/video | |
parent | 798aea71fd4046e8f2673d896b058eb0cac8298c (diff) | |
download | mediapointer-dvb-s2-588d0f9cc7aa0863fe8e84e16aa98e847e6d214d.tar.gz mediapointer-dvb-s2-588d0f9cc7aa0863fe8e84e16aa98e847e6d214d.tar.bz2 |
- sync with 2.6.11-rc2 & latest dvb cvs.
- misc card-specific tweaks.
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/bttv-driver.c | 12 | ||||
-rw-r--r-- | linux/drivers/media/video/bttv.h | 3 | ||||
-rw-r--r-- | linux/drivers/media/video/bttvp.h | 5 | ||||
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-cards.c | 5 | ||||
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-tvaudio.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-core.c | 11 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-dvb.c | 4 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-i2c.c | 5 |
8 files changed, 32 insertions, 19 deletions
diff --git a/linux/drivers/media/video/bttv-driver.c b/linux/drivers/media/video/bttv-driver.c index 7c9765702..2845649f6 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.34 2005/01/07 13:11:19 kraxel Exp $ + $Id: bttv-driver.c,v 1.35 2005/01/24 17:37:23 kraxel Exp $ bttv - Bt848 frame grabber driver @@ -322,12 +322,12 @@ const struct bttv_tvnorm bttv_tvnorms[] = { .sram = -1, } }; -const unsigned int BTTV_TVNORMS = ARRAY_SIZE(bttv_tvnorms); +static const unsigned int BTTV_TVNORMS = ARRAY_SIZE(bttv_tvnorms); /* ----------------------------------------------------------------------- */ /* bttv format list packed pixel formats must come first */ -const struct bttv_format bttv_formats[] = { +static const struct bttv_format bttv_formats[] = { { .name = "8 bpp, gray", .palette = VIDEO_PALETTE_GREY, @@ -479,7 +479,7 @@ const struct bttv_format bttv_formats[] = { .flags = FORMAT_FLAGS_RAW, } }; -const unsigned int BTTV_FORMATS = ARRAY_SIZE(bttv_formats); +static const unsigned int BTTV_FORMATS = ARRAY_SIZE(bttv_formats); /* ----------------------------------------------------------------------- */ @@ -3970,7 +3970,7 @@ static int bttv_suspend(struct pci_dev *pci_dev, u32 state) #else pci_save_state(pci_dev); #endif - if (0 != pci_set_power_state(pci_dev, state)) { + if (0 != pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state))) { pci_disable_device(pci_dev); btv->state.disabled = 1; } @@ -3989,7 +3989,7 @@ static int bttv_resume(struct pci_dev *pci_dev) pci_enable_device(pci_dev); btv->state.disabled = 0; } - pci_set_power_state(pci_dev, 0); + pci_set_power_state(pci_dev, PCI_D0); #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) pci_restore_state(pci_dev, btv->state.pci_cfg); #else diff --git a/linux/drivers/media/video/bttv.h b/linux/drivers/media/video/bttv.h index a01d3bed1..586b3c32c 100644 --- a/linux/drivers/media/video/bttv.h +++ b/linux/drivers/media/video/bttv.h @@ -1,5 +1,5 @@ /* - * $Id: bttv.h,v 1.14 2005/01/07 13:11:19 kraxel Exp $ + * $Id: bttv.h,v 1.15 2005/01/24 17:37:23 kraxel Exp $ * * bttv - Bt848 frame grabber driver * @@ -220,7 +220,6 @@ struct tvcard }; extern struct tvcard bttv_tvcards[]; -extern const unsigned int bttv_num_tvcards; /* identification / initialization of the card */ extern void bttv_idcard(struct bttv *btv); diff --git a/linux/drivers/media/video/bttvp.h b/linux/drivers/media/video/bttvp.h index 2f336db3c..5ae21acfb 100644 --- a/linux/drivers/media/video/bttvp.h +++ b/linux/drivers/media/video/bttvp.h @@ -1,5 +1,5 @@ /* - $Id: bttvp.h,v 1.15 2004/12/14 15:33:30 kraxel Exp $ + $Id: bttvp.h,v 1.16 2005/01/24 17:37:23 kraxel Exp $ bttv - Bt848 frame grabber driver @@ -100,7 +100,6 @@ struct bttv_tvnorm { int sram; }; extern const struct bttv_tvnorm bttv_tvnorms[]; -extern const unsigned int BTTV_TVNORMS; struct bttv_format { char *name; @@ -112,8 +111,6 @@ struct bttv_format { int flags; int hshift,vshift; /* for planar modes */ }; -extern const struct bttv_format bttv_formats[]; -extern const unsigned int BTTV_FORMATS; /* ---------------------------------------------------------- */ diff --git a/linux/drivers/media/video/cx88/cx88-cards.c b/linux/drivers/media/video/cx88/cx88-cards.c index ea8410687..be82751dc 100644 --- a/linux/drivers/media/video/cx88/cx88-cards.c +++ b/linux/drivers/media/video/cx88/cx88-cards.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-cards.c,v 1.56 2005/01/13 17:22:33 kraxel Exp $ + * $Id: cx88-cards.c,v 1.57 2005/01/24 17:37:23 kraxel Exp $ * * device driver for Conexant 2388x based TV cards * card-specific stuff. @@ -60,6 +60,7 @@ struct cx88_board cx88_boards[] = { [CX88_BOARD_HAUPPAUGE] = { .name = "Hauppauge WinTV 34xxx models", .tuner_type = UNSET, + .tda9887_conf = TDA9887_PRESENT, .input = {{ .type = CX88_VMUX_TELEVISION, .vmux = 0, @@ -645,7 +646,7 @@ static int hauppauge_eeprom_dvb(struct cx88_core *core, u8 *ee) /* Make sure we support the tuner */ tuner = ee[0x2d]; switch(tuner) { - case 0x4B: /* ddt 7595 */ + case 0x4B: /* dtt 7595 */ case 0x4C: /* dtt 7592 */ core->pll_desc = &dvb_pll_thomson_dtt759x; break; diff --git a/linux/drivers/media/video/cx88/cx88-tvaudio.c b/linux/drivers/media/video/cx88/cx88-tvaudio.c index 846baae3e..21dc3c0fe 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.28 2005/01/20 12:54:46 kraxel Exp $ + $Id: cx88-tvaudio.c,v 1.29 2005/01/24 17:37:23 kraxel Exp $ cx88x-audio.c - Conexant CX23880/23881 audio downstream driver driver @@ -520,6 +520,10 @@ static void set_audio_standard_A2(struct cx88_core *core) static const struct rlist a2_pal_i_mono[] = { // PAL-I (differences from dscaler CX2388xCard_Audio.cpp 1.30) + { AUD_ERRLOGPERIOD_R, 0x00000064}, + { AUD_ERRINTRPTTHSHLD1_R, 0x00000fff}, + { AUD_ERRINTRPTTHSHLD2_R, 0x0000001f}, + { AUD_ERRINTRPTTHSHLD3_R, 0x0000000f}, { AUD_PHACC_FREQ_8MSB, 0x3a }, { AUD_PHACC_FREQ_8LSB, 0x93 }, { AAGC_HYST, 0x0000000a }, diff --git a/linux/drivers/media/video/saa7134/saa7134-core.c b/linux/drivers/media/video/saa7134/saa7134-core.c index 0acbfb094..80f33e987 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.23 2004/12/17 14:18:49 kraxel Exp $ + * $Id: saa7134-core.c,v 1.24 2005/01/24 17:37:23 kraxel Exp $ * * device driver for philips saa7134 based TV cards * driver core @@ -21,6 +21,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/config.h> #include <linux/init.h> #include <linux/list.h> #include <linux/module.h> @@ -237,6 +238,8 @@ static void dump_statusregs(struct saa7134_dev *dev) /* ----------------------------------------------------------- */ /* delayed request_module */ +#ifdef CONFIG_MODULES + static int need_empress; static int need_dvb; @@ -277,6 +280,12 @@ static void request_module_depend(char *name, int *flag) } } +#else + +static inline void request_module_depend(char *name, int *flag) {} + +#endif /* CONFIG_MODULES */ + /* ------------------------------------------------------------------ */ /* nr of (saa7134-)pages for the given buffer size */ diff --git a/linux/drivers/media/video/saa7134/saa7134-dvb.c b/linux/drivers/media/video/saa7134/saa7134-dvb.c index 2f1393589..07a98e3eb 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.10 2005/01/14 16:40:20 kraxel Exp $ + * $Id: saa7134-dvb.c,v 1.11 2005/01/24 17:37:23 kraxel Exp $ * * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] * @@ -81,6 +81,7 @@ static int mt352_pinnacle_init(struct dvb_frontend* fe) static u8 fsm_ctl_cfg[] = { 0x7b, 0x04 }; static u8 gpp_ctl_cfg [] = { GPP_CTL, 0x0f }; static u8 scan_ctl_cfg [] = { SCAN_CTL, 0x0d }; + static u8 irq_cfg [] = { INTERRUPT_EN_0, 0x00, 0x00, 0x00, 0x00 }; struct saa7134_dev *dev= fe->dvb->priv; printk("%s: %s called\n",dev->name,__FUNCTION__); @@ -95,6 +96,7 @@ static int mt352_pinnacle_init(struct dvb_frontend* fe) mt352_write(fe, fsm_ctl_cfg, sizeof(fsm_ctl_cfg)); mt352_write(fe, scan_ctl_cfg, sizeof(scan_ctl_cfg)); + mt352_write(fe, irq_cfg, sizeof(irq_cfg)); return 0; } diff --git a/linux/drivers/media/video/saa7134/saa7134-i2c.c b/linux/drivers/media/video/saa7134/saa7134-i2c.c index 8979b0a32..084d8c023 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.9 2004/12/10 12:33:39 kraxel Exp $ + * $Id: saa7134-i2c.c,v 1.10 2005/01/24 17:37:23 kraxel Exp $ * * device driver for philips saa7134 based TV cards * i2c interface support @@ -206,7 +206,8 @@ static inline int i2c_send_byte(struct saa7134_dev *dev, dword &= 0x0f; dword |= (attr << 6); dword |= ((__u32)data << 8); - dword |= 0x00 << 16; + dword |= 0x00 << 16; /* 100 kHz */ +// dword |= 0x40 << 16; /* 400 kHz */ dword |= 0xf0 << 24; saa_writel(SAA7134_I2C_ATTR_STATUS >> 2, dword); #endif |