diff options
author | Nickolay V. Shmyrev <devnull@localhost> | 2005-06-13 08:42:51 +0000 |
---|---|---|
committer | Nickolay V. Shmyrev <devnull@localhost> | 2005-06-13 08:42:51 +0000 |
commit | 0af51ffc2ed8d050f422fcf1b1cf43dc71902731 (patch) | |
tree | ecd6add1d8388596eec08e790de363081ed6d8fb /linux/drivers | |
parent | 5363fbc6988c7298a1ff0d1e17bf802e64b61379 (diff) | |
download | mediapointer-dvb-s2-0af51ffc2ed8d050f422fcf1b1cf43dc71902731.tar.gz mediapointer-dvb-s2-0af51ffc2ed8d050f422fcf1b1cf43dc71902731.tar.bz2 |
* saa7134-cards.c, saa7134-dvb.c, saa7134.h:
- Add new Typhoon DVB-T Cardbus. Thanks to
Juergen Orschiedt <jorschiedt@web.de>
cx88-core.c:
- Fix compilation with gcc4.0
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-core.c | 4 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-cards.c | 46 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-dvb.c | 8 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134.h | 14 |
4 files changed, 56 insertions, 16 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-core.c b/linux/drivers/media/video/cx88/cx88-core.c index 2bf20707a..342233e09 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.28 2005/06/12 04:19:19 mchehab Exp $ + * $Id: cx88-core.c,v 1.29 2005/06/13 08:42:51 nsh Exp $ * * device driver for Conexant 2388x based TV cards * driver core @@ -552,7 +552,7 @@ void cx88_sram_channel_dump(struct cx88_core *core, core->name,cx_read(ch->cnt2_reg)); } -static char *cx88_pci_irqs[32] = { +char *cx88_pci_irqs[32] = { "vid", "aud", "ts", "vip", "hst", "5", "6", "tm1", "src_dma", "dst_dma", "risc_rd_err", "risc_wr_err", "brdg_err", "src_dma_err", "dst_dma_err", "ipb_dma_err", diff --git a/linux/drivers/media/video/saa7134/saa7134-cards.c b/linux/drivers/media/video/saa7134/saa7134-cards.c index 715aef4d1..7c4a8ed97 100644 --- a/linux/drivers/media/video/saa7134/saa7134-cards.c +++ b/linux/drivers/media/video/saa7134/saa7134-cards.c @@ -1,6 +1,6 @@ /* - * $Id: saa7134-cards.c,v 1.59 2005/06/12 23:19:08 nsh Exp $ + * $Id: saa7134-cards.c,v 1.60 2005/06/13 08:42:51 nsh Exp $ * * device driver for philips saa7134 based TV cards * card-specific stuff. @@ -1647,6 +1647,43 @@ struct saa7134_board saa7134_boards[] = { .gpio = 0x100, }, }, + [SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS] = { + .name = "Typhoon DVB-T Duo Digital/Analog Cardbus", + .audio_clock = 0x00200000, + .tuner_type = TUNER_PHILIPS_TDA8290, + .mpeg = SAA7134_MPEG_DVB, + /* .gpiomask = 0xe000, */ + .inputs = {{ + .name = name_tv, + .vmux = 1, + .amux = TV, + /* .gpio = 0x0000, */ + .tv = 1, + },{ + .name = name_comp1, /* Composite signal on S-Video input */ + .vmux = 0, + .amux = LINE2, + /* .gpio = 0x4000, */ + },{ + .name = name_comp2, /* Composite input */ + .vmux = 3, + .amux = LINE2, + /* .gpio = 0x4000, */ + },{ + .name = name_svideo, /* S-Video signal on S-Video input */ + .vmux = 8, + .amux = LINE2, + /* .gpio = 0x4000, */ + }}, + .radio = { + .name = name_radio, + .amux = LINE2, + }, + .mute = { + .name = name_mute, + .amux = LINE1, + }, + }, }; const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards); @@ -1973,6 +2010,13 @@ struct pci_device_id saa7134_pci_tbl[] = { .subdevice = 0x0370, /* cardbus version */ .driver_data = SAA7134_BOARD_ADS_INSTANT_TV, + },{ /* Typhoon DVB-T Duo Digital/Analog Cardbus */ + .vendor = PCI_VENDOR_ID_PHILIPS, + .device = PCI_DEVICE_ID_PHILIPS_SAA7133, + .subvendor = 0x4e42, + .subdevice = 0x0502, + .driver_data = SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS, + },{ /* --- boards without eeprom + subsystem ID --- */ .vendor = PCI_VENDOR_ID_PHILIPS, diff --git a/linux/drivers/media/video/saa7134/saa7134-dvb.c b/linux/drivers/media/video/saa7134/saa7134-dvb.c index 7d5531883..7057162da 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.13 2005/06/12 04:19:19 mchehab Exp $ + * $Id: saa7134-dvb.c,v 1.14 2005/06/13 08:42:51 nsh Exp $ * * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] * @@ -209,6 +209,12 @@ static int dvb_init(struct saa7134_dev *dev) printk("%s: Hmm, looks like this is the old MD7134 " "version without DVB-T support\n",dev->name); break; + case SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS: + printk("%s: Trying to attach to tda10046", dev->name); + dev->dvb.frontend = tda10046_attach(&medion_cardbus, + &dev->i2c_adap); + break; + default: printk("%s: Huh? unknown DVB card?\n",dev->name); break; diff --git a/linux/drivers/media/video/saa7134/saa7134.h b/linux/drivers/media/video/saa7134/saa7134.h index d9219de3e..cdfb6a5e5 100644 --- a/linux/drivers/media/video/saa7134/saa7134.h +++ b/linux/drivers/media/video/saa7134/saa7134.h @@ -1,5 +1,5 @@ /* - * $Id: saa7134.h,v 1.41 2005/06/07 18:02:26 nsh Exp $ + * $Id: saa7134.h,v 1.42 2005/06/13 08:42:51 nsh Exp $ * * v4l2 device driver for philips saa7134 based TV cards * @@ -56,17 +56,6 @@ #endif #define UNSET (-1U) -/* 2.4 / 2.5 driver compatibility stuff */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18) -# define minor(x) MINOR(x) -#endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) -# define need_resched() (current->need_resched) -#endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,19) -# define BUG_ON(condition) do { if ((condition)!=0) BUG(); } while(0) -#endif - /* ----------------------------------------------------------- */ /* enums */ @@ -202,6 +191,7 @@ struct saa7134_format { #define SAA7134_BOARD_AVERMEDIA_GO_007_FM 57 #define SAA7134_BOARD_ADS_INSTANT_TV 58 #define SAA7134_BOARD_KWORLD_VSTREAM_XPERT 59 +#define SAA7134_BOARD_THYPHOON_DVBT_DUO_CARDBUS 60 #define SAA7134_MAXBOARDS 8 #define SAA7134_INPUT_MAX 8 |