Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | |
| 3 | bttv-cards.c |
| 4 | |
| 5 | this file has configuration informations - card-specific stuff |
| 6 | like the big tvcards array for the most part |
| 7 | |
| 8 | Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 9 | & Marcus Metzler (mocm@thp.uni-koeln.de) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | (c) 1999-2001 Gerd Knorr <kraxel@goldbach.in-berlin.de> |
| 11 | |
| 12 | This program is free software; you can redistribute it and/or modify |
| 13 | it under the terms of the GNU General Public License as published by |
| 14 | the Free Software Foundation; either version 2 of the License, or |
| 15 | (at your option) any later version. |
| 16 | |
| 17 | This program is distributed in the hope that it will be useful, |
| 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | GNU General Public License for more details. |
| 21 | |
| 22 | You should have received a copy of the GNU General Public License |
| 23 | along with this program; if not, write to the Free Software |
| 24 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 25 | |
| 26 | */ |
| 27 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | #include <linux/delay.h> |
| 29 | #include <linux/module.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #include <linux/kmod.h> |
| 31 | #include <linux/init.h> |
| 32 | #include <linux/pci.h> |
| 33 | #include <linux/vmalloc.h> |
| 34 | #include <linux/firmware.h> |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 35 | #include <net/checksum.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 37 | #include <asm/unaligned.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | #include <asm/io.h> |
| 39 | |
| 40 | #include "bttvp.h" |
Michael Krufky | 5e453dc | 2006-01-09 15:32:31 -0200 | [diff] [blame] | 41 | #include <media/v4l2-common.h> |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 42 | #include <media/tvaudio.h> |
Mauro Carvalho Chehab | c2806d0 | 2007-10-26 16:54:54 -0300 | [diff] [blame] | 43 | #include "bttv-audio-hook.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | |
| 45 | /* fwd decl */ |
| 46 | static void boot_msp34xx(struct bttv *btv, int pin); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | static void hauppauge_eeprom(struct bttv *btv); |
| 48 | static void avermedia_eeprom(struct bttv *btv); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 49 | static void osprey_eeprom(struct bttv *btv, const u8 ee[256]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | static void modtec_eeprom(struct bttv *btv); |
| 51 | static void init_PXC200(struct bttv *btv); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 52 | static void init_RTV24(struct bttv *btv); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 53 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | static void rv605_muxsel(struct bttv *btv, unsigned int input); |
| 55 | static void eagle_muxsel(struct bttv *btv, unsigned int input); |
| 56 | static void xguard_muxsel(struct bttv *btv, unsigned int input); |
| 57 | static void ivc120_muxsel(struct bttv *btv, unsigned int input); |
| 58 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input); |
| 59 | |
| 60 | static void PXC200_muxsel(struct bttv *btv, unsigned int input); |
| 61 | |
| 62 | static void picolo_tetra_muxsel(struct bttv *btv, unsigned int input); |
| 63 | static void picolo_tetra_init(struct bttv *btv); |
| 64 | |
| 65 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input); |
| 66 | static void tibetCS16_init(struct bttv *btv); |
| 67 | |
| 68 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input); |
| 69 | static void kodicom4400r_init(struct bttv *btv); |
| 70 | |
| 71 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input); |
| 72 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input); |
| 73 | |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 74 | static void geovision_muxsel(struct bttv *btv, unsigned int input); |
| 75 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 76 | static int terratec_active_radio_upgrade(struct bttv *btv); |
| 77 | static int tea5757_read(struct bttv *btv); |
| 78 | static int tea5757_write(struct bttv *btv, int value); |
| 79 | static void identify_by_eeprom(struct bttv *btv, |
| 80 | unsigned char eeprom_data[256]); |
| 81 | static int __devinit pvr_boot(struct bttv *btv); |
| 82 | |
| 83 | /* config variables */ |
Mauro Carvalho Chehab | a5ed425 | 2006-01-13 14:10:19 -0200 | [diff] [blame] | 84 | static unsigned int triton1; |
| 85 | static unsigned int vsfx; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 86 | static unsigned int latency = UNSET; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 87 | int no_overlay=-1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 88 | |
| 89 | static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 90 | static unsigned int pll[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 91 | static unsigned int tuner[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 92 | static unsigned int svhs[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 93 | static unsigned int remote[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 94 | static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL }; |
| 95 | #ifdef MODULE |
| 96 | static unsigned int autoload = 1; |
| 97 | #else |
Mauro Carvalho Chehab | a5ed425 | 2006-01-13 14:10:19 -0200 | [diff] [blame] | 98 | static unsigned int autoload; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 99 | #endif |
| 100 | static unsigned int gpiomask = UNSET; |
| 101 | static unsigned int audioall = UNSET; |
| 102 | static unsigned int audiomux[5] = { [ 0 ... 4 ] = UNSET }; |
| 103 | |
| 104 | /* insmod options */ |
| 105 | module_param(triton1, int, 0444); |
| 106 | module_param(vsfx, int, 0444); |
| 107 | module_param(no_overlay, int, 0444); |
| 108 | module_param(latency, int, 0444); |
| 109 | module_param(gpiomask, int, 0444); |
| 110 | module_param(audioall, int, 0444); |
| 111 | module_param(autoload, int, 0444); |
| 112 | |
| 113 | module_param_array(card, int, NULL, 0444); |
| 114 | module_param_array(pll, int, NULL, 0444); |
| 115 | module_param_array(tuner, int, NULL, 0444); |
| 116 | module_param_array(svhs, int, NULL, 0444); |
| 117 | module_param_array(remote, int, NULL, 0444); |
| 118 | module_param_array(audiomux, int, NULL, 0444); |
| 119 | |
| 120 | MODULE_PARM_DESC(triton1,"set ETBF pci config bit " |
| 121 | "[enable bug compatibility for triton1 + others]"); |
| 122 | MODULE_PARM_DESC(vsfx,"set VSFX pci config bit " |
| 123 | "[yet another chipset flaw workaround]"); |
| 124 | MODULE_PARM_DESC(latency,"pci latency timer"); |
| 125 | MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list"); |
| 126 | MODULE_PARM_DESC(pll,"specify installed crystal (0=none, 28=28 MHz, 35=35 MHz)"); |
| 127 | MODULE_PARM_DESC(tuner,"specify installed tuner type"); |
| 128 | MODULE_PARM_DESC(autoload,"automatically load i2c modules like tuner.o, default is 1 (yes)"); |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 129 | MODULE_PARM_DESC(no_overlay,"allow override overlay default (0 disables, 1 enables)" |
| 130 | " [some VIA/SIS chipsets are known to have problem with overlay]"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 131 | |
| 132 | /* ----------------------------------------------------------------------- */ |
| 133 | /* list of card IDs for bt878+ cards */ |
| 134 | |
| 135 | static struct CARD { |
| 136 | unsigned id; |
| 137 | int cardnr; |
| 138 | char *name; |
| 139 | } cards[] __devinitdata = { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 140 | { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" }, |
| 141 | { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" }, |
| 142 | { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" }, |
| 143 | { 0xff000070, BTTV_BOARD_OSPREY1x0, "Osprey-100" }, |
| 144 | { 0xff010070, BTTV_BOARD_OSPREY2x0_SVID,"Osprey-200" }, |
| 145 | { 0xff020070, BTTV_BOARD_OSPREY500, "Osprey-500" }, |
| 146 | { 0xff030070, BTTV_BOARD_OSPREY2000, "Osprey-2000" }, |
| 147 | { 0xff040070, BTTV_BOARD_OSPREY540, "Osprey-540" }, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 148 | { 0xff070070, BTTV_BOARD_OSPREY440, "Osprey-440" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 149 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 150 | { 0x00011002, BTTV_BOARD_ATI_TVWONDER, "ATI TV Wonder" }, |
| 151 | { 0x00031002, BTTV_BOARD_ATI_TVWONDERVE,"ATI TV Wonder/VE" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 152 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 153 | { 0x6606107d, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 154 | { 0x6607107d, BTTV_BOARD_WINFASTVC100, "Leadtek WinFast VC 100" }, |
| 155 | { 0x6609107d, BTTV_BOARD_WINFAST2000, "Leadtek TV 2000 XP" }, |
| 156 | { 0x263610b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" }, |
| 157 | { 0x264510b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 158 | { 0x402010fc, BTTV_BOARD_GVBCTV3PCI, "I-O Data Co. GV-BCTV3/PCI" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 159 | { 0x405010fc, BTTV_BOARD_GVBCTV4PCI, "I-O Data Co. GV-BCTV4/PCI" }, |
| 160 | { 0x407010fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 161 | { 0xd01810fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 162 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 163 | { 0x001211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 164 | /* some cards ship with byteswapped IDs ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 165 | { 0x1200bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
| 166 | { 0xff00bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 167 | /* this seems to happen as well ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 168 | { 0xff1211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 169 | |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 170 | { 0x3000121a, BTTV_BOARD_VOODOOTV_200, "3Dfx VoodooTV 200" }, |
| 171 | { 0x263710b4, BTTV_BOARD_VOODOOTV_FM, "3Dfx VoodooTV FM" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 172 | { 0x3060121a, BTTV_BOARD_STB2, "3Dfx VoodooTV 100/ STB OEM" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 173 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 174 | { 0x3000144f, BTTV_BOARD_MAGICTVIEW063, "(Askey Magic/others) TView99 CPH06x" }, |
| 175 | { 0xa005144f, BTTV_BOARD_MAGICTVIEW063, "CPH06X TView99-Card" }, |
| 176 | { 0x3002144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH05x" }, |
| 177 | { 0x3005144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH061/06L (T1/LC)" }, |
| 178 | { 0x5000144f, BTTV_BOARD_MAGICTVIEW061, "Askey CPH050" }, |
| 179 | { 0x300014ff, BTTV_BOARD_MAGICTVIEW061, "TView 99 (CPH061)" }, |
| 180 | { 0x300214ff, BTTV_BOARD_PHOEBE_TVMAS, "Phoebe TV Master (CPH060)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 181 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 182 | { 0x00011461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 183 | { 0x00021461, BTTV_BOARD_AVERMEDIA98, "AVermedia TVCapture 98" }, |
| 184 | { 0x00031461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 185 | { 0x00041461, BTTV_BOARD_AVERMEDIA98, "AVerMedia TVCapture 98" }, |
| 186 | { 0x03001461, BTTV_BOARD_AVERMEDIA98, "VDOMATE TV TUNER CARD" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 187 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 188 | { 0x1117153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL B/G)" }, |
| 189 | { 0x1118153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL B/G)" }, |
| 190 | { 0x1119153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL I)" }, |
| 191 | { 0x111a153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL I)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 192 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 193 | { 0x1123153b, BTTV_BOARD_TERRATVRADIO, "Terratec TV Radio+" }, |
| 194 | { 0x1127153b, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.05)" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 195 | /* clashes with FlyVideo |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 196 | *{ 0x18521852, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.10)" }, */ |
| 197 | { 0x1134153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (LR102)" }, |
| 198 | { 0x1135153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* LR102 */ |
| 199 | { 0x5018153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue" }, /* ?? */ |
| 200 | { 0xff3b153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* ?? */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 201 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 202 | { 0x400015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 203 | { 0x400a15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 204 | { 0x400d15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 205 | { 0x401015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 206 | { 0x401615b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 207 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 208 | { 0x1430aa00, BTTV_BOARD_PV143, "Provideo PV143A" }, |
| 209 | { 0x1431aa00, BTTV_BOARD_PV143, "Provideo PV143B" }, |
| 210 | { 0x1432aa00, BTTV_BOARD_PV143, "Provideo PV143C" }, |
| 211 | { 0x1433aa00, BTTV_BOARD_PV143, "Provideo PV143D" }, |
| 212 | { 0x1433aa03, BTTV_BOARD_PV143, "Security Eyes" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 213 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 214 | { 0x1460aa00, BTTV_BOARD_PV150, "Provideo PV150A-1" }, |
| 215 | { 0x1461aa01, BTTV_BOARD_PV150, "Provideo PV150A-2" }, |
| 216 | { 0x1462aa02, BTTV_BOARD_PV150, "Provideo PV150A-3" }, |
| 217 | { 0x1463aa03, BTTV_BOARD_PV150, "Provideo PV150A-4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 218 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 219 | { 0x1464aa04, BTTV_BOARD_PV150, "Provideo PV150B-1" }, |
| 220 | { 0x1465aa05, BTTV_BOARD_PV150, "Provideo PV150B-2" }, |
| 221 | { 0x1466aa06, BTTV_BOARD_PV150, "Provideo PV150B-3" }, |
| 222 | { 0x1467aa07, BTTV_BOARD_PV150, "Provideo PV150B-4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 223 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 224 | { 0xa132ff00, BTTV_BOARD_IVC100, "IVC-100" }, |
| 225 | { 0xa1550000, BTTV_BOARD_IVC200, "IVC-200" }, |
| 226 | { 0xa1550001, BTTV_BOARD_IVC200, "IVC-200" }, |
| 227 | { 0xa1550002, BTTV_BOARD_IVC200, "IVC-200" }, |
| 228 | { 0xa1550003, BTTV_BOARD_IVC200, "IVC-200" }, |
| 229 | { 0xa1550100, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 230 | { 0xa1550101, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 231 | { 0xa1550102, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 232 | { 0xa1550103, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 233 | { 0xa182ff00, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 234 | { 0xa182ff01, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 235 | { 0xa182ff02, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 236 | { 0xa182ff03, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 237 | { 0xa182ff04, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 238 | { 0xa182ff05, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 239 | { 0xa182ff06, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 240 | { 0xa182ff07, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 241 | { 0xa182ff08, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 242 | { 0xa182ff09, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 243 | { 0xa182ff0a, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 244 | { 0xa182ff0b, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 245 | { 0xa182ff0c, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 246 | { 0xa182ff0d, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 247 | { 0xa182ff0e, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 248 | { 0xa182ff0f, BTTV_BOARD_IVC120, "IVC-120G" }, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame^] | 249 | { 0xf0500000, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 250 | { 0xf0500001, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 251 | { 0xf0500002, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 252 | { 0xf0500003, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 253 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 254 | { 0x41424344, BTTV_BOARD_GRANDTEC, "GrandTec Multi Capture" }, |
| 255 | { 0x01020304, BTTV_BOARD_XGUARD, "Grandtec Grand X-Guard" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 256 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 257 | { 0x18501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 258 | { 0xa0501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 259 | { 0x18511851, BTTV_BOARD_FLYVIDEO98EZ, "FlyVideo 98EZ (LR51)/ CyberMail AV" }, |
| 260 | { 0x18521852, BTTV_BOARD_TYPHOON_TVIEW, "FlyVideo 98FM (LR50)/ Typhoon TView TV/FM Tuner" }, |
| 261 | { 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" }, |
| 262 | { 0x18501f7f, BTTV_BOARD_FLYVIDEO_98, "Lifeview Flyvideo 98" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 263 | |
Trent Piepho | 657de3c | 2006-06-20 00:30:57 -0300 | [diff] [blame] | 264 | { 0x010115cb, BTTV_BOARD_GMV1, "AG GMV1" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 265 | { 0x010114c7, BTTV_BOARD_MODTEC_205, "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 266 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 267 | { 0x10b42636, BTTV_BOARD_HAUPPAUGE878, "STB ???" }, |
| 268 | { 0x217d6606, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 269 | { 0xfff6f6ff, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 270 | { 0x03116000, BTTV_BOARD_SENSORAY311, "Sensoray 311" }, |
| 271 | { 0x00790e11, BTTV_BOARD_WINDVR, "Canopus WinDVR PCI" }, |
| 272 | { 0xa0fca1a0, BTTV_BOARD_ZOLTRIX, "Face to Face Tvmax" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 273 | { 0x82b2aa6a, BTTV_BOARD_SIMUS_GVC1100, "SIMUS GVC1100" }, |
| 274 | { 0x146caa0c, BTTV_BOARD_PV951, "ituner spectra8" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 275 | { 0x200a1295, BTTV_BOARD_PXC200, "ImageNation PXC200A" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 276 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 277 | { 0x40111554, BTTV_BOARD_PV_BT878P_9B, "Prolink Pixelview PV-BT" }, |
| 278 | { 0x17de0a01, BTTV_BOARD_KWORLD, "Mecer TV/FM/Video Tuner" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 279 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 280 | { 0x01051805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #1" }, |
| 281 | { 0x01061805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #2" }, |
| 282 | { 0x01071805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #3" }, |
| 283 | { 0x01081805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 284 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 285 | { 0x15409511, BTTV_BOARD_ACORP_Y878F, "Acorp Y878F" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 286 | |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 287 | { 0x53534149, BTTV_BOARD_SSAI_SECURITY, "SSAI Security Video Interface" }, |
| 288 | { 0x5353414a, BTTV_BOARD_SSAI_ULTRASOUND, "SSAI Ultrasound Video Interface" }, |
| 289 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 290 | /* likely broken, vendor id doesn't match the other magic views ... |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 291 | * { 0xa0fca04f, BTTV_BOARD_MAGICTVIEW063, "Guillemot Maxi TV Video 3" }, */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 292 | |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 293 | /* Duplicate PCI ID, reconfigure for this board during the eeprom read. |
| 294 | * { 0x13eb0070, BTTV_BOARD_HAUPPAUGE_IMPACTVCB, "Hauppauge ImpactVCB" }, */ |
| 295 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 296 | /* DVB cards (using pci function .1 for mpeg data xfer) */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 297 | { 0x001c11bd, BTTV_BOARD_PINNACLESAT, "Pinnacle PCTV Sat" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 298 | { 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" }, |
| 299 | { 0x20007063, BTTV_BOARD_PC_HDTV, "pcHDTV HD-2000 TV"}, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 300 | { 0x002611bd, BTTV_BOARD_TWINHAN_DST, "Pinnacle PCTV SAT CI" }, |
| 301 | { 0x00011822, BTTV_BOARD_TWINHAN_DST, "Twinhan VisionPlus DVB" }, |
| 302 | { 0xfc00270f, BTTV_BOARD_TWINHAN_DST, "ChainTech digitop DST-1000 DVB-S" }, |
| 303 | { 0x07711461, BTTV_BOARD_AVDVBT_771, "AVermedia AverTV DVB-T 771" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 304 | { 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 305 | { 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" }, |
Michael Krufky | 19790db | 2007-01-07 22:12:22 -0300 | [diff] [blame] | 306 | { 0xdb1118ac, BTTV_BOARD_DVICO_DVBT_LITE, "Ultraview DVB-T Lite" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 307 | { 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" }, |
Cameron Hutchinson | 442d15d | 2006-06-21 18:45:31 -0300 | [diff] [blame] | 308 | { 0x00261822, BTTV_BOARD_TWINHAN_DST, "DNTV Live! Mini "}, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 309 | { 0xd200dbc0, BTTV_BOARD_DVICO_FUSIONHDTV_2, "DViCO FusionHDTV 2" }, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 310 | { 0x763c008a, BTTV_BOARD_GEOVISION_GV600, "GeoVision GV-600" }, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 311 | { 0x18011000, BTTV_BOARD_ENLTV_FM_2, "Encore ENL TV-FM-2" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 312 | { 0, -1, NULL } |
| 313 | }; |
| 314 | |
| 315 | /* ----------------------------------------------------------------------- */ |
| 316 | /* array with description for bt848 / bt878 tv/grabber cards */ |
| 317 | |
| 318 | struct tvcard bttv_tvcards[] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 319 | /* ---- card 0x00 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 320 | [BTTV_BOARD_UNKNOWN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 321 | .name = " *** UNKNOWN/GENERIC *** ", |
| 322 | .video_inputs = 4, |
| 323 | .audio_inputs = 1, |
| 324 | .tuner = 0, |
| 325 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 326 | .muxsel = { 2, 3, 1, 0 }, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 327 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 328 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 329 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 330 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 331 | [BTTV_BOARD_MIRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 332 | .name = "MIRO PCTV", |
| 333 | .video_inputs = 4, |
| 334 | .audio_inputs = 1, |
| 335 | .tuner = 0, |
| 336 | .svhs = 2, |
| 337 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 338 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 339 | .gpiomux = { 2, 0, 0, 0 }, |
| 340 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 341 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 342 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 343 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 344 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 345 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 346 | [BTTV_BOARD_HAUPPAUGE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 347 | .name = "Hauppauge (bt848)", |
| 348 | .video_inputs = 4, |
| 349 | .audio_inputs = 1, |
| 350 | .tuner = 0, |
| 351 | .svhs = 2, |
| 352 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 353 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 354 | .gpiomux = { 0, 1, 2, 3 }, |
| 355 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 356 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 357 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 358 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 359 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 360 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 361 | [BTTV_BOARD_STB] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 362 | .name = "STB, Gateway P/N 6000699 (bt848)", |
| 363 | .video_inputs = 3, |
| 364 | .audio_inputs = 1, |
| 365 | .tuner = 0, |
| 366 | .svhs = 2, |
| 367 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 368 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 369 | .gpiomux = { 4, 0, 2, 3 }, |
| 370 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 371 | .no_msp34xx = 1, |
| 372 | .needs_tvaudio = 1, |
| 373 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 374 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 375 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 376 | .pll = PLL_28, |
| 377 | .has_radio = 1, |
| 378 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 379 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 380 | /* ---- card 0x04 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 381 | [BTTV_BOARD_INTEL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 382 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 383 | .video_inputs = 4, |
| 384 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 385 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 386 | .svhs = 2, |
| 387 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 388 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 389 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 390 | .needs_tvaudio = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 391 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 392 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 393 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 394 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 395 | [BTTV_BOARD_DIAMOND] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 396 | .name = "Diamond DTV2000", |
| 397 | .video_inputs = 4, |
| 398 | .audio_inputs = 1, |
| 399 | .tuner = 0, |
| 400 | .svhs = 2, |
| 401 | .gpiomask = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 402 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 403 | .gpiomux = { 0, 1, 0, 1 }, |
| 404 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 405 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 406 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 407 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 408 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 409 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 410 | [BTTV_BOARD_AVERMEDIA] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 411 | .name = "AVerMedia TVPhone", |
| 412 | .video_inputs = 3, |
| 413 | .audio_inputs = 1, |
| 414 | .tuner = 0, |
| 415 | .svhs = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 416 | .muxsel = { 2, 3, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 417 | .gpiomask = 0x0f, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 418 | .gpiomux = { 0x0c, 0x04, 0x08, 0x04 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 419 | /* 0x04 for some cards ?? */ |
| 420 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 421 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 422 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 423 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 424 | .audio_mode_gpio= avermedia_tvphone_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 425 | .has_remote = 1, |
| 426 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 427 | [BTTV_BOARD_MATRIX_VISION] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 428 | .name = "MATRIX-Vision MV-Delta", |
| 429 | .video_inputs = 5, |
| 430 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 431 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 432 | .svhs = 3, |
| 433 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 434 | .muxsel = { 2, 3, 1, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 435 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 436 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 437 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 438 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 439 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 440 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 441 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 442 | /* ---- card 0x08 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 443 | [BTTV_BOARD_FLYVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 444 | .name = "Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26", |
| 445 | .video_inputs = 4, |
| 446 | .audio_inputs = 1, |
| 447 | .tuner = 0, |
| 448 | .svhs = 2, |
| 449 | .gpiomask = 0xc00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 450 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 451 | .gpiomux = { 0, 0xc00, 0x800, 0x400 }, |
| 452 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 453 | .needs_tvaudio = 1, |
| 454 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 455 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 456 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 457 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 458 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 459 | [BTTV_BOARD_TURBOTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 460 | .name = "IMS/IXmicro TurboTV", |
| 461 | .video_inputs = 3, |
| 462 | .audio_inputs = 1, |
| 463 | .tuner = 0, |
| 464 | .svhs = 2, |
| 465 | .gpiomask = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 466 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 467 | .gpiomux = { 1, 1, 2, 3 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 468 | .needs_tvaudio = 0, |
| 469 | .pll = PLL_28, |
| 470 | .tuner_type = TUNER_TEMIC_PAL, |
| 471 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 472 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 473 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 474 | [BTTV_BOARD_HAUPPAUGE878] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 475 | .name = "Hauppauge (bt878)", |
| 476 | .video_inputs = 4, |
| 477 | .audio_inputs = 1, |
| 478 | .tuner = 0, |
| 479 | .svhs = 2, |
| 480 | .gpiomask = 0x0f, /* old: 7 */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 481 | .muxsel = { 2, 0, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 482 | .gpiomux = { 0, 1, 2, 3 }, |
| 483 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 484 | .needs_tvaudio = 1, |
| 485 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 486 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 487 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 488 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 489 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 490 | [BTTV_BOARD_MIROPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 491 | .name = "MIRO PCTV pro", |
| 492 | .video_inputs = 3, |
| 493 | .audio_inputs = 1, |
| 494 | .tuner = 0, |
| 495 | .svhs = 2, |
| 496 | .gpiomask = 0x3014f, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 497 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 498 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
| 499 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 500 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 501 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 502 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 503 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 504 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 505 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 506 | /* ---- card 0x0c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 507 | [BTTV_BOARD_ADSTECH_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 508 | .name = "ADS Technologies Channel Surfer TV (bt848)", |
| 509 | .video_inputs = 3, |
| 510 | .audio_inputs = 1, |
| 511 | .tuner = 0, |
| 512 | .svhs = 2, |
| 513 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 514 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 515 | .gpiomux = { 13, 14, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 516 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 517 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 518 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 519 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 520 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 521 | [BTTV_BOARD_AVERMEDIA98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 522 | .name = "AVerMedia TVCapture 98", |
| 523 | .video_inputs = 3, |
| 524 | .audio_inputs = 4, |
| 525 | .tuner = 0, |
| 526 | .svhs = 2, |
| 527 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 528 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 529 | .gpiomux = { 13, 14, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 530 | .needs_tvaudio = 1, |
| 531 | .msp34xx_alt = 1, |
| 532 | .pll = PLL_28, |
| 533 | .tuner_type = TUNER_PHILIPS_PAL, |
| 534 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 535 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 536 | .audio_mode_gpio= avermedia_tv_stereo_audio, |
Ray Cole | a8900fc | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 537 | .no_gpioirq = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 538 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 539 | [BTTV_BOARD_VHX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 540 | .name = "Aimslab Video Highway Xtreme (VHX)", |
| 541 | .video_inputs = 3, |
| 542 | .audio_inputs = 1, |
| 543 | .tuner = 0, |
| 544 | .svhs = 2, |
| 545 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 546 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 547 | .gpiomux = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */ |
| 548 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 549 | .needs_tvaudio = 1, |
| 550 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 551 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 552 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 553 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 554 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 555 | [BTTV_BOARD_ZOLTRIX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 556 | .name = "Zoltrix TV-Max", |
| 557 | .video_inputs = 3, |
| 558 | .audio_inputs = 1, |
| 559 | .tuner = 0, |
| 560 | .svhs = 2, |
| 561 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 562 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 563 | .gpiomux = { 0, 0, 1, 0 }, |
| 564 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 565 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 566 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 567 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 568 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 569 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 570 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 571 | /* ---- card 0x10 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 572 | [BTTV_BOARD_PIXVIEWPLAYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 573 | .name = "Prolink Pixelview PlayTV (bt878)", |
| 574 | .video_inputs = 3, |
| 575 | .audio_inputs = 1, |
| 576 | .tuner = 0, |
| 577 | .svhs = 2, |
| 578 | .gpiomask = 0x01fe00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 579 | .muxsel = { 2, 3, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 580 | /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 581 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 582 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 583 | .needs_tvaudio = 1, |
| 584 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 585 | .tuner_type = UNSET, |
Wojciech Migda | 27dea3e | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 586 | .tuner_addr = ADDR_UNSET, |
| 587 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 588 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 589 | [BTTV_BOARD_WINVIEW_601] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 590 | .name = "Leadtek WinView 601", |
| 591 | .video_inputs = 3, |
| 592 | .audio_inputs = 1, |
| 593 | .tuner = 0, |
| 594 | .svhs = 2, |
| 595 | .gpiomask = 0x8300f8, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 596 | .muxsel = { 2, 3, 1, 1,0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 597 | .gpiomux = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007 }, |
| 598 | .gpiomute = 0xcfa007, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 599 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 600 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 601 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 602 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 603 | .volume_gpio = winview_volume, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 604 | .has_radio = 1, |
| 605 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 606 | [BTTV_BOARD_AVEC_INTERCAP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 607 | .name = "AVEC Intercapture", |
| 608 | .video_inputs = 3, |
| 609 | .audio_inputs = 2, |
| 610 | .tuner = 0, |
| 611 | .svhs = 2, |
| 612 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 613 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 614 | .gpiomux = { 1, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 615 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 616 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 617 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 618 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 619 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 620 | [BTTV_BOARD_LIFE_FLYKIT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 621 | .name = "Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)", |
| 622 | .video_inputs = 4, |
| 623 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 624 | .tuner = UNSET, |
| 625 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 626 | .gpiomask = 0x8dff00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 627 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 628 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 629 | .no_msp34xx = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 630 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 631 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 632 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 633 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 634 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 635 | /* ---- card 0x14 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 636 | [BTTV_BOARD_CEI_RAFFLES] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 637 | .name = "CEI Raffles Card", |
| 638 | .video_inputs = 3, |
| 639 | .audio_inputs = 3, |
| 640 | .tuner = 0, |
| 641 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 642 | .muxsel = { 2, 3, 1, 1 }, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 643 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 644 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 645 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 646 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 647 | [BTTV_BOARD_CONFERENCETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 648 | .name = "Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50", |
| 649 | .video_inputs = 4, |
| 650 | .audio_inputs = 2, /* tuner, line in */ |
| 651 | .tuner = 0, |
| 652 | .svhs = 2, |
| 653 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 654 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 655 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 656 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 657 | .pll = PLL_28, |
| 658 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 659 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 660 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 661 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 662 | [BTTV_BOARD_PHOEBE_TVMAS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 663 | .name = "Askey CPH050/ Phoebe Tv Master + FM", |
| 664 | .video_inputs = 3, |
| 665 | .audio_inputs = 1, |
| 666 | .tuner = 0, |
| 667 | .svhs = 2, |
| 668 | .gpiomask = 0xc00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 669 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 670 | .gpiomux = { 0, 1, 0x800, 0x400 }, |
| 671 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 672 | .needs_tvaudio = 1, |
| 673 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 674 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 675 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 676 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 677 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 678 | [BTTV_BOARD_MODTEC_205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 679 | .name = "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878", |
| 680 | .video_inputs = 3, |
| 681 | .audio_inputs = 1, |
| 682 | .tuner = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 683 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 684 | .gpiomask = 7, |
| 685 | .muxsel = { 2, 3, -1 }, |
| 686 | .digital_mode = DIGITAL_MODE_CAMERA, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 687 | .gpiomux = { 0, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 688 | .no_msp34xx = 1, |
| 689 | .pll = PLL_28, |
| 690 | .tuner_type = TUNER_ALPS_TSBB5_PAL_I, |
| 691 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 692 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 693 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 694 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 695 | /* ---- card 0x18 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 696 | [BTTV_BOARD_MAGICTVIEW061] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 697 | .name = "Askey CPH05X/06X (bt878) [many vendors]", |
| 698 | .video_inputs = 3, |
| 699 | .audio_inputs = 1, |
| 700 | .tuner = 0, |
| 701 | .svhs = 2, |
| 702 | .gpiomask = 0xe00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 703 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 704 | .gpiomux = {0x400, 0x400, 0x400, 0x400 }, |
| 705 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 706 | .needs_tvaudio = 1, |
| 707 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 708 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 709 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 710 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 711 | .has_remote = 1, |
| 712 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 713 | [BTTV_BOARD_VOBIS_BOOSTAR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 714 | .name = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar", |
| 715 | .video_inputs = 3, |
| 716 | .audio_inputs = 1, |
| 717 | .tuner = 0, |
| 718 | .svhs = 2, |
| 719 | .gpiomask = 0x1f0fff, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 720 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 721 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 722 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 723 | .needs_tvaudio = 0, |
| 724 | .tuner_type = TUNER_PHILIPS_PAL, |
| 725 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 726 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 727 | .audio_mode_gpio= terratv_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 728 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 729 | [BTTV_BOARD_HAUPPAUG_WCAM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 730 | .name = "Hauppauge WinCam newer (bt878)", |
| 731 | .video_inputs = 4, |
| 732 | .audio_inputs = 1, |
| 733 | .tuner = 0, |
| 734 | .svhs = 3, |
| 735 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 736 | .muxsel = { 2, 0, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 737 | .gpiomux = { 0, 1, 2, 3 }, |
| 738 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 739 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 740 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 741 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 742 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 743 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 744 | [BTTV_BOARD_MAXI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 745 | .name = "Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50", |
| 746 | .video_inputs = 4, |
| 747 | .audio_inputs = 2, |
| 748 | .tuner = 0, |
| 749 | .svhs = 2, |
| 750 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 751 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 752 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 753 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 754 | .pll = PLL_28, |
| 755 | .tuner_type = TUNER_PHILIPS_SECAM, |
| 756 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 757 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 758 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 759 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 760 | /* ---- card 0x1c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 761 | [BTTV_BOARD_TERRATV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 762 | .name = "Terratec TerraTV+ Version 1.1 (bt878)", |
| 763 | .video_inputs = 3, |
| 764 | .audio_inputs = 1, |
| 765 | .tuner = 0, |
| 766 | .svhs = 2, |
| 767 | .gpiomask = 0x1f0fff, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 768 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 769 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0x00000 }, |
| 770 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 771 | .needs_tvaudio = 0, |
| 772 | .tuner_type = TUNER_PHILIPS_PAL, |
| 773 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 774 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 775 | .audio_mode_gpio= terratv_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 776 | /* GPIO wiring: |
| 777 | External 20 pin connector (for Active Radio Upgrade board) |
| 778 | gpio00: i2c-sda |
| 779 | gpio01: i2c-scl |
| 780 | gpio02: om5610-data |
| 781 | gpio03: om5610-clk |
| 782 | gpio04: om5610-wre |
| 783 | gpio05: om5610-stereo |
| 784 | gpio06: rds6588-davn |
| 785 | gpio07: Pin 7 n.c. |
| 786 | gpio08: nIOW |
| 787 | gpio09+10: nIOR, nSEL ?? (bt878) |
| 788 | gpio09: nIOR (bt848) |
| 789 | gpio10: nSEL (bt848) |
| 790 | Sound Routing: |
| 791 | gpio16: u2-A0 (1st 4052bt) |
| 792 | gpio17: u2-A1 |
| 793 | gpio18: u2-nEN |
| 794 | gpio19: u4-A0 (2nd 4052) |
| 795 | gpio20: u4-A1 |
| 796 | u4-nEN - GND |
| 797 | Btspy: |
| 798 | 00000 : Cdrom (internal audio input) |
| 799 | 10000 : ext. Video audio input |
| 800 | 20000 : TV Mono |
| 801 | a0000 : TV Mono/2 |
| 802 | 1a0000 : TV Stereo |
| 803 | 30000 : Radio |
| 804 | 40000 : Mute |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 805 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 806 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 807 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 808 | [BTTV_BOARD_PXC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 809 | /* Jannik Fritsch <jannik@techfak.uni-bielefeld.de> */ |
| 810 | .name = "Imagenation PXC200", |
| 811 | .video_inputs = 5, |
| 812 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 813 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 814 | .svhs = 1, /* was: 4 */ |
| 815 | .gpiomask = 0, |
| 816 | .muxsel = { 2, 3, 1, 0, 0}, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 817 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 818 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 819 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 820 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 821 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 822 | .muxsel_hook = PXC200_muxsel, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 823 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 824 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 825 | [BTTV_BOARD_FLYVIDEO_98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 826 | .name = "Lifeview FlyVideo 98 LR50", |
| 827 | .video_inputs = 4, |
| 828 | .audio_inputs = 1, |
| 829 | .tuner = 0, |
| 830 | .svhs = 2, |
| 831 | .gpiomask = 0x1800, /* 0x8dfe00 */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 832 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 833 | .gpiomux = { 0, 0x0800, 0x1000, 0x1000 }, |
| 834 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 835 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 836 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 837 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 838 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 839 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 840 | [BTTV_BOARD_IPROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 841 | .name = "Formac iProTV, Formac ProTV I (bt848)", |
| 842 | .video_inputs = 4, |
| 843 | .audio_inputs = 1, |
| 844 | .tuner = 0, |
| 845 | .svhs = 3, |
| 846 | .gpiomask = 1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 847 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 848 | .gpiomux = { 1, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 849 | .pll = PLL_28, |
| 850 | .tuner_type = TUNER_PHILIPS_PAL, |
| 851 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 852 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 853 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 854 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 855 | /* ---- card 0x20 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 856 | [BTTV_BOARD_INTEL_C_S_PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 857 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 858 | .video_inputs = 4, |
| 859 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 860 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 861 | .svhs = 2, |
| 862 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 863 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 864 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 865 | .needs_tvaudio = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 866 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 867 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 868 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 869 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 870 | [BTTV_BOARD_TERRATVALUE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 871 | .name = "Terratec TerraTValue Version Bt878", |
| 872 | .video_inputs = 3, |
| 873 | .audio_inputs = 1, |
| 874 | .tuner = 0, |
| 875 | .svhs = 2, |
| 876 | .gpiomask = 0xffff00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 877 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 878 | .gpiomux = { 0x500, 0, 0x300, 0x900 }, |
| 879 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 880 | .needs_tvaudio = 1, |
| 881 | .pll = PLL_28, |
| 882 | .tuner_type = TUNER_PHILIPS_PAL, |
| 883 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 884 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 885 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 886 | [BTTV_BOARD_WINFAST2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 887 | .name = "Leadtek WinFast 2000/ WinFast 2000 XP", |
| 888 | .video_inputs = 4, |
| 889 | .audio_inputs = 1, |
| 890 | .tuner = 0, |
| 891 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 892 | .muxsel = { 2, 3, 1, 1, 0 }, /* TV, CVid, SVid, CVid over SVid connector */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 893 | /* Alexander Varakin <avarakin@hotmail.com> [stereo version] */ |
| 894 | .gpiomask = 0xb33000, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 895 | .gpiomux = { 0x122000,0x1000,0x0000,0x620000 }, |
| 896 | .gpiomute = 0x800000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 897 | /* Audio Routing for "WinFast 2000 XP" (no tv stereo !) |
| 898 | gpio23 -- hef4052:nEnable (0x800000) |
| 899 | gpio12 -- hef4052:A1 |
| 900 | gpio13 -- hef4052:A0 |
| 901 | 0x0000: external audio |
| 902 | 0x1000: FM |
| 903 | 0x2000: TV |
| 904 | 0x3000: n.c. |
| 905 | Note: There exists another variant "Winfast 2000" with tv stereo !? |
| 906 | Note: eeprom only contains FF and pci subsystem id 107d:6606 |
| 907 | */ |
| 908 | .needs_tvaudio = 0, |
| 909 | .pll = PLL_28, |
| 910 | .has_radio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 911 | .tuner_type = TUNER_PHILIPS_PAL, /* default for now, gpio reads BFFF06 for Pal bg+dk */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 912 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 913 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 914 | .audio_mode_gpio= winfast2000_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 915 | .has_remote = 1, |
| 916 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 917 | [BTTV_BOARD_CHRONOS_VS2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 918 | .name = "Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II", |
| 919 | .video_inputs = 4, |
| 920 | .audio_inputs = 3, |
| 921 | .tuner = 0, |
| 922 | .svhs = 2, |
| 923 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 924 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 925 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 926 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 927 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 928 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 929 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 930 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 931 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 932 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 933 | /* ---- card 0x24 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 934 | [BTTV_BOARD_TYPHOON_TVIEW] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 935 | .name = "Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tuner", |
| 936 | .video_inputs = 4, |
| 937 | .audio_inputs = 3, |
| 938 | .tuner = 0, |
| 939 | .svhs = 2, |
| 940 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 941 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 942 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 943 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 944 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 945 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 946 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 947 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 948 | .has_radio = 1, |
| 949 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 950 | [BTTV_BOARD_PXELVWPLTVPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 951 | .name = "Prolink PixelView PlayTV pro", |
| 952 | .video_inputs = 3, |
| 953 | .audio_inputs = 1, |
| 954 | .tuner = 0, |
| 955 | .svhs = 2, |
| 956 | .gpiomask = 0xff, |
| 957 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 958 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 959 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 960 | .no_msp34xx = 1, |
| 961 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 962 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 963 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 964 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 965 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 966 | [BTTV_BOARD_MAGICTVIEW063] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 967 | .name = "Askey CPH06X TView99", |
| 968 | .video_inputs = 4, |
| 969 | .audio_inputs = 1, |
| 970 | .tuner = 0, |
| 971 | .svhs = 2, |
| 972 | .gpiomask = 0x551e00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 973 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 974 | .gpiomux = { 0x551400, 0x551200, 0, 0 }, |
| 975 | .gpiomute = 0x551c00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 976 | .needs_tvaudio = 1, |
| 977 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 978 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 979 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 980 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 981 | .has_remote = 1, |
| 982 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 983 | [BTTV_BOARD_PINNACLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 984 | .name = "Pinnacle PCTV Studio/Rave", |
| 985 | .video_inputs = 3, |
| 986 | .audio_inputs = 1, |
| 987 | .tuner = 0, |
| 988 | .svhs = 2, |
| 989 | .gpiomask = 0x03000F, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 990 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 991 | .gpiomux = { 2, 0xd0001, 0, 0 }, |
| 992 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 993 | .needs_tvaudio = 0, |
| 994 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 995 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 996 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 997 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 998 | }, |
| 999 | |
| 1000 | /* ---- card 0x28 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1001 | [BTTV_BOARD_STB2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1002 | .name = "STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100", |
| 1003 | .video_inputs = 3, |
| 1004 | .audio_inputs = 1, |
| 1005 | .tuner = 0, |
| 1006 | .svhs = 2, |
| 1007 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1008 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1009 | .gpiomux = { 4, 0, 2, 3 }, |
| 1010 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1011 | .no_msp34xx = 1, |
| 1012 | .needs_tvaudio = 1, |
| 1013 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 1014 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1015 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1016 | .pll = PLL_28, |
| 1017 | .has_radio = 1, |
| 1018 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1019 | [BTTV_BOARD_AVPHONE98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1020 | .name = "AVerMedia TVPhone 98", |
| 1021 | .video_inputs = 3, |
| 1022 | .audio_inputs = 4, |
| 1023 | .tuner = 0, |
| 1024 | .svhs = 2, |
| 1025 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1026 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1027 | .gpiomux = { 13, 4, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1028 | .needs_tvaudio = 1, |
| 1029 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1030 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1031 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1032 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1033 | .has_radio = 1, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1034 | .audio_mode_gpio= avermedia_tvphone_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1035 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1036 | [BTTV_BOARD_PV951] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1037 | .name = "ProVideo PV951", /* pic16c54 */ |
| 1038 | .video_inputs = 3, |
| 1039 | .audio_inputs = 1, |
| 1040 | .tuner = 0, |
| 1041 | .svhs = 2, |
| 1042 | .gpiomask = 0, |
| 1043 | .muxsel = { 2, 3, 1, 1}, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1044 | .gpiomux = { 0, 0, 0, 0}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1045 | .needs_tvaudio = 1, |
| 1046 | .no_msp34xx = 1, |
| 1047 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1048 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1049 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1050 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1051 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1052 | [BTTV_BOARD_ONAIR_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1053 | .name = "Little OnAir TV", |
| 1054 | .video_inputs = 3, |
| 1055 | .audio_inputs = 1, |
| 1056 | .tuner = 0, |
| 1057 | .svhs = 2, |
| 1058 | .gpiomask = 0xe00b, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1059 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1060 | .gpiomux = { 0xff9ff6, 0xff9ff6, 0xff1ff7, 0 }, |
| 1061 | .gpiomute = 0xff3ffc, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1062 | .no_msp34xx = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1063 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1064 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1065 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1066 | }, |
| 1067 | |
| 1068 | /* ---- card 0x2c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1069 | [BTTV_BOARD_SIGMA_TVII_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1070 | .name = "Sigma TVII-FM", |
| 1071 | .video_inputs = 2, |
| 1072 | .audio_inputs = 1, |
| 1073 | .tuner = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1074 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1075 | .gpiomask = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1076 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1077 | .gpiomux = { 1, 1, 0, 2 }, |
| 1078 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1079 | .no_msp34xx = 1, |
| 1080 | .pll = PLL_NONE, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1081 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1082 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1083 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1084 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1085 | [BTTV_BOARD_MATRIX_VISION2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1086 | .name = "MATRIX-Vision MV-Delta 2", |
| 1087 | .video_inputs = 5, |
| 1088 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1089 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1090 | .svhs = 3, |
| 1091 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1092 | .muxsel = { 2, 3, 1, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1093 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1094 | .no_msp34xx = 1, |
| 1095 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1096 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1097 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1098 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1099 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1100 | [BTTV_BOARD_ZOLTRIX_GENIE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1101 | .name = "Zoltrix Genie TV/FM", |
| 1102 | .video_inputs = 3, |
| 1103 | .audio_inputs = 1, |
| 1104 | .tuner = 0, |
| 1105 | .svhs = 2, |
| 1106 | .gpiomask = 0xbcf03f, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1107 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1108 | .gpiomux = { 0xbc803f, 0xbc903f, 0xbcb03f, 0 }, |
| 1109 | .gpiomute = 0xbcb03f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1110 | .no_msp34xx = 1, |
| 1111 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1112 | .tuner_type = TUNER_TEMIC_4039FR5_NTSC, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1113 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1114 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1115 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1116 | [BTTV_BOARD_TERRATVRADIO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1117 | .name = "Terratec TV/Radio+", |
| 1118 | .video_inputs = 3, |
| 1119 | .audio_inputs = 1, |
| 1120 | .tuner = 0, |
| 1121 | .svhs = 2, |
| 1122 | .gpiomask = 0x70000, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1123 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1124 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 1125 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1126 | .needs_tvaudio = 1, |
| 1127 | .no_msp34xx = 1, |
| 1128 | .pll = PLL_35, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1129 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1130 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1131 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1132 | .has_radio = 1, |
| 1133 | }, |
| 1134 | |
| 1135 | /* ---- card 0x30 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1136 | [BTTV_BOARD_DYNALINK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1137 | .name = "Askey CPH03x/ Dynalink Magic TView", |
| 1138 | .video_inputs = 3, |
| 1139 | .audio_inputs = 1, |
| 1140 | .tuner = 0, |
| 1141 | .svhs = 2, |
| 1142 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1143 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1144 | .gpiomux = {2,0,0,0 }, |
| 1145 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1146 | .needs_tvaudio = 1, |
| 1147 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1148 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1149 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1150 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1151 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1152 | [BTTV_BOARD_GVBCTV3PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1153 | .name = "IODATA GV-BCTV3/PCI", |
| 1154 | .video_inputs = 3, |
| 1155 | .audio_inputs = 1, |
| 1156 | .tuner = 0, |
| 1157 | .svhs = 2, |
| 1158 | .gpiomask = 0x010f00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1159 | .muxsel = {2, 3, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1160 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1161 | .no_msp34xx = 1, |
| 1162 | .pll = PLL_28, |
| 1163 | .tuner_type = TUNER_ALPS_TSHC6_NTSC, |
| 1164 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1165 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1166 | .audio_mode_gpio= gvbctv3pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1167 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1168 | [BTTV_BOARD_PXELVWPLTVPAK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1169 | .name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP", |
| 1170 | .video_inputs = 5, |
| 1171 | .audio_inputs = 1, |
| 1172 | .tuner = 0, |
| 1173 | .svhs = 3, |
| 1174 | .gpiomask = 0xAA0000, |
| 1175 | .muxsel = { 2,3,1,1,-1 }, |
| 1176 | .digital_mode = DIGITAL_MODE_CAMERA, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1177 | .gpiomux = { 0x20000, 0, 0x80000, 0x80000 }, |
| 1178 | .gpiomute = 0xa8000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1179 | .no_msp34xx = 1, |
| 1180 | .pll = PLL_28, |
| 1181 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 1182 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1183 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1184 | .has_remote = 1, |
| 1185 | /* GPIO wiring: (different from Rev.4C !) |
| 1186 | GPIO17: U4.A0 (first hef4052bt) |
| 1187 | GPIO19: U4.A1 |
| 1188 | GPIO20: U5.A1 (second hef4052bt) |
| 1189 | GPIO21: U4.nEN |
| 1190 | GPIO22: BT832 Reset Line |
| 1191 | GPIO23: A5,A0, U5,nEN |
| 1192 | Note: At i2c=0x8a is a Bt832 chip, which changes to 0x88 after being reset via GPIO22 |
| 1193 | */ |
| 1194 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1195 | [BTTV_BOARD_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1196 | .name = "Eagle Wireless Capricorn2 (bt878A)", |
| 1197 | .video_inputs = 4, |
| 1198 | .audio_inputs = 1, |
| 1199 | .tuner = 0, |
| 1200 | .svhs = 2, |
| 1201 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1202 | .muxsel = { 2, 0, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1203 | .gpiomux = { 0, 1, 2, 3 }, |
| 1204 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1205 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1206 | .tuner_type = UNSET /* TUNER_ALPS_TMDH2_NTSC */, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1207 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1208 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1209 | }, |
| 1210 | |
| 1211 | /* ---- card 0x34 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1212 | [BTTV_BOARD_PINNACLEPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1213 | /* David Härdeman <david@2gen.com> */ |
| 1214 | .name = "Pinnacle PCTV Studio Pro", |
| 1215 | .video_inputs = 4, |
| 1216 | .audio_inputs = 1, |
| 1217 | .tuner = 0, |
| 1218 | .svhs = 3, |
| 1219 | .gpiomask = 0x03000F, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1220 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1221 | .gpiomux = { 1, 0xd0001, 0, 0 }, |
| 1222 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1223 | /* sound path (5 sources): |
| 1224 | MUX1 (mask 0x03), Enable Pin 0x08 (0=enable, 1=disable) |
| 1225 | 0= ext. Audio IN |
| 1226 | 1= from MUX2 |
| 1227 | 2= Mono TV sound from Tuner |
| 1228 | 3= not connected |
| 1229 | MUX2 (mask 0x30000): |
| 1230 | 0,2,3= from MSP34xx |
| 1231 | 1= FM stereo Radio from Tuner */ |
| 1232 | .needs_tvaudio = 0, |
| 1233 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1234 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1235 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1236 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1237 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1238 | [BTTV_BOARD_TVIEW_RDS_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1239 | /* Claas Langbehn <claas@bigfoot.com>, |
| 1240 | Sven Grothklags <sven@upb.de> */ |
| 1241 | .name = "Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS", |
| 1242 | .video_inputs = 4, |
| 1243 | .audio_inputs = 3, |
| 1244 | .tuner = 0, |
| 1245 | .svhs = 2, |
| 1246 | .gpiomask = 0x1c, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1247 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1248 | .gpiomux = { 0, 0, 0x10, 8 }, |
| 1249 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1250 | .needs_tvaudio = 1, |
| 1251 | .pll = PLL_28, |
| 1252 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1253 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1254 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1255 | .has_radio = 1, |
| 1256 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1257 | [BTTV_BOARD_LIFETEC_9415] = { |
Jan Engelhardt | 96de0e2 | 2007-10-19 23:21:04 +0200 | [diff] [blame] | 1258 | /* Tim Röstermundt <rosterm@uni-muenster.de> |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1259 | in de.comp.os.unix.linux.hardware: |
| 1260 | options bttv card=0 pll=1 radio=1 gpiomask=0x18e0 |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1261 | gpiomux =0x44c71f,0x44d71f,0,0x44d71f,0x44dfff |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1262 | options tuner type=5 */ |
| 1263 | .name = "Lifeview FlyVideo 2000 /FlyVideo A2/ Lifetec LT 9415 TV [LR90]", |
| 1264 | .video_inputs = 4, |
| 1265 | .audio_inputs = 1, |
| 1266 | .tuner = 0, |
| 1267 | .svhs = 2, |
| 1268 | .gpiomask = 0x18e0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1269 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1270 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1271 | .gpiomute = 0x18e0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1272 | /* For cards with tda9820/tda9821: |
| 1273 | 0x0000: Tuner normal stereo |
| 1274 | 0x0080: Tuner A2 SAP (second audio program = Zweikanalton) |
| 1275 | 0x0880: Tuner A2 stereo */ |
| 1276 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1277 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1278 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1279 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1280 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1281 | [BTTV_BOARD_BESTBUY_EASYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1282 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1283 | old Easy TV BT848 version (model CPH031) */ |
| 1284 | .name = "Askey CPH031/ BESTBUY Easy TV", |
| 1285 | .video_inputs = 4, |
| 1286 | .audio_inputs = 1, |
| 1287 | .tuner = 0, |
| 1288 | .svhs = 2, |
| 1289 | .gpiomask = 0xF, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1290 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1291 | .gpiomux = { 2, 0, 0, 0 }, |
| 1292 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1293 | .needs_tvaudio = 0, |
| 1294 | .pll = PLL_28, |
| 1295 | .tuner_type = TUNER_TEMIC_PAL, |
| 1296 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1297 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1298 | }, |
| 1299 | |
| 1300 | /* ---- card 0x38 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1301 | [BTTV_BOARD_FLYVIDEO_98FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1302 | /* Gordon Heydon <gjheydon@bigfoot.com ('98) */ |
| 1303 | .name = "Lifeview FlyVideo 98FM LR50", |
| 1304 | .video_inputs = 4, |
| 1305 | .audio_inputs = 3, |
| 1306 | .tuner = 0, |
| 1307 | .svhs = 2, |
| 1308 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1309 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1310 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 1311 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1312 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1313 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1314 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1315 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1316 | }, |
| 1317 | /* This is the ultimate cheapo capture card |
| 1318 | * just a BT848A on a small PCB! |
| 1319 | * Steve Hosgood <steve@equiinet.com> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1320 | [BTTV_BOARD_GRANDTEC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1321 | .name = "GrandTec 'Grand Video Capture' (Bt848)", |
| 1322 | .video_inputs = 2, |
| 1323 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1324 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1325 | .svhs = 1, |
| 1326 | .gpiomask = 0, |
| 1327 | .muxsel = { 3, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1328 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1329 | .needs_tvaudio = 0, |
| 1330 | .no_msp34xx = 1, |
| 1331 | .pll = PLL_35, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1332 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1333 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1334 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1335 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1336 | [BTTV_BOARD_ASKEY_CPH060] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1337 | /* Daniel Herrington <daniel.herrington@home.com> */ |
| 1338 | .name = "Askey CPH060/ Phoebe TV Master Only (No FM)", |
| 1339 | .video_inputs = 3, |
| 1340 | .audio_inputs = 1, |
| 1341 | .tuner = 0, |
| 1342 | .svhs = 2, |
| 1343 | .gpiomask = 0xe00, |
| 1344 | .muxsel = { 2, 3, 1, 1}, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1345 | .gpiomux = { 0x400, 0x400, 0x400, 0x400 }, |
| 1346 | .gpiomute = 0x800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1347 | .needs_tvaudio = 1, |
| 1348 | .pll = PLL_28, |
| 1349 | .tuner_type = TUNER_TEMIC_4036FY5_NTSC, |
| 1350 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1351 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1352 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1353 | [BTTV_BOARD_ASKEY_CPH03X] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1354 | /* Matti Mottus <mottus@physic.ut.ee> */ |
| 1355 | .name = "Askey CPH03x TV Capturer", |
| 1356 | .video_inputs = 4, |
| 1357 | .audio_inputs = 1, |
| 1358 | .tuner = 0, |
| 1359 | .svhs = 2, |
| 1360 | .gpiomask = 0x03000F, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1361 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1362 | .gpiomux = { 2, 0, 0, 0 }, |
| 1363 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1364 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1365 | .tuner_type = TUNER_TEMIC_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1366 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1367 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1368 | }, |
| 1369 | |
| 1370 | /* ---- card 0x3c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1371 | [BTTV_BOARD_MM100PCTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1372 | /* Philip Blundell <philb@gnu.org> */ |
| 1373 | .name = "Modular Technology MM100PCTV", |
| 1374 | .video_inputs = 2, |
| 1375 | .audio_inputs = 2, |
| 1376 | .tuner = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1377 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1378 | .gpiomask = 11, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1379 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1380 | .gpiomux = { 2, 0, 0, 1 }, |
| 1381 | .gpiomute = 8, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1382 | .pll = PLL_35, |
| 1383 | .tuner_type = TUNER_TEMIC_PAL, |
| 1384 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1385 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1386 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1387 | [BTTV_BOARD_GMV1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1388 | /* Adrian Cox <adrian@humboldt.co.uk */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1389 | .name = "AG Electronics GMV1", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1390 | .video_inputs = 2, |
| 1391 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1392 | .tuner = UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1393 | .svhs = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1394 | .gpiomask = 0xF, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1395 | .muxsel = { 2, 2 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1396 | .gpiomux = { }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1397 | .no_msp34xx = 1, |
| 1398 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1399 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1400 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1401 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1402 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1403 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1404 | [BTTV_BOARD_BESTBUY_EASYTV2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1405 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1406 | new Easy TV BT878 version (model CPH061) |
| 1407 | special thanks to Informatica Mieres for providing the card */ |
| 1408 | .name = "Askey CPH061/ BESTBUY Easy TV (bt878)", |
| 1409 | .video_inputs = 3, |
| 1410 | .audio_inputs = 2, |
| 1411 | .tuner = 0, |
| 1412 | .svhs = 2, |
| 1413 | .gpiomask = 0xFF, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1414 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1415 | .gpiomux = { 1, 0, 4, 4 }, |
| 1416 | .gpiomute = 9, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1417 | .needs_tvaudio = 0, |
| 1418 | .pll = PLL_28, |
| 1419 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1420 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1421 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1422 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1423 | [BTTV_BOARD_ATI_TVWONDER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1424 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1425 | .name = "ATI TV-Wonder", |
| 1426 | .video_inputs = 3, |
| 1427 | .audio_inputs = 1, |
| 1428 | .tuner = 0, |
| 1429 | .svhs = 2, |
| 1430 | .gpiomask = 0xf03f, |
| 1431 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1432 | .gpiomux = { 0xbffe, 0, 0xbfff, 0 }, |
| 1433 | .gpiomute = 0xbffe, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1434 | .pll = PLL_28, |
| 1435 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1436 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1437 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1438 | }, |
| 1439 | |
| 1440 | /* ---- card 0x40 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1441 | [BTTV_BOARD_ATI_TVWONDERVE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1442 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1443 | .name = "ATI TV-Wonder VE", |
| 1444 | .video_inputs = 2, |
| 1445 | .audio_inputs = 1, |
| 1446 | .tuner = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1447 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1448 | .gpiomask = 1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1449 | .muxsel = { 2, 3, 0, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1450 | .gpiomux = { 0, 0, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1451 | .no_msp34xx = 1, |
| 1452 | .pll = PLL_28, |
| 1453 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1454 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1455 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1456 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1457 | [BTTV_BOARD_FLYVIDEO2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1458 | /* DeeJay <deejay@westel900.net (2000S) */ |
| 1459 | .name = "Lifeview FlyVideo 2000S LR90", |
| 1460 | .video_inputs = 3, |
| 1461 | .audio_inputs = 3, |
| 1462 | .tuner = 0, |
| 1463 | .svhs = 2, |
| 1464 | .gpiomask = 0x18e0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1465 | .muxsel = { 2, 3, 0, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1466 | /* Radio changed from 1e80 to 0x800 to make |
| 1467 | FlyVideo2000S in .hu happy (gm)*/ |
| 1468 | /* -dk-???: set mute=0x1800 for tda9874h daughterboard */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1469 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1470 | .gpiomute = 0x1800, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1471 | .audio_mode_gpio= fv2000s_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1472 | .no_msp34xx = 1, |
| 1473 | .no_tda9875 = 1, |
| 1474 | .needs_tvaudio = 1, |
| 1475 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1476 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1477 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1478 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1479 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1480 | [BTTV_BOARD_TERRATVALUER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1481 | .name = "Terratec TValueRadio", |
| 1482 | .video_inputs = 3, |
| 1483 | .audio_inputs = 1, |
| 1484 | .tuner = 0, |
| 1485 | .svhs = 2, |
| 1486 | .gpiomask = 0xffff00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1487 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1488 | .gpiomux = { 0x500, 0x500, 0x300, 0x900 }, |
| 1489 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1490 | .needs_tvaudio = 1, |
| 1491 | .pll = PLL_28, |
| 1492 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1493 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1494 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1495 | .has_radio = 1, |
| 1496 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1497 | [BTTV_BOARD_GVBCTV4PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1498 | /* TANAKA Kei <peg00625@nifty.com> */ |
| 1499 | .name = "IODATA GV-BCTV4/PCI", |
| 1500 | .video_inputs = 3, |
| 1501 | .audio_inputs = 1, |
| 1502 | .tuner = 0, |
| 1503 | .svhs = 2, |
| 1504 | .gpiomask = 0x010f00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1505 | .muxsel = {2, 3, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1506 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1507 | .no_msp34xx = 1, |
| 1508 | .pll = PLL_28, |
| 1509 | .tuner_type = TUNER_SHARP_2U5JF5540_NTSC, |
| 1510 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1511 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1512 | .audio_mode_gpio= gvbctv3pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1513 | }, |
| 1514 | |
| 1515 | /* ---- card 0x44 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1516 | [BTTV_BOARD_VOODOOTV_FM] = { |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1517 | .name = "3Dfx VoodooTV FM (Euro)", |
| 1518 | /* try "insmod msp3400 simple=0" if you have |
| 1519 | * sound problems with this card. */ |
| 1520 | .video_inputs = 4, |
| 1521 | .audio_inputs = 1, |
| 1522 | .tuner = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1523 | .svhs = UNSET, |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1524 | .gpiomask = 0x4f8a00, |
| 1525 | /* 0x100000: 1=MSP enabled (0=disable again) |
| 1526 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ |
| 1527 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
| 1528 | .gpiomute = 0x947fff, |
| 1529 | /* tvtuner, radio, external,internal, mute, stereo |
| 1530 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ |
| 1531 | .muxsel = { 2, 3 ,0 ,1 }, |
| 1532 | .tuner_type = TUNER_MT2032, |
| 1533 | .tuner_addr = ADDR_UNSET, |
| 1534 | .radio_addr = ADDR_UNSET, |
| 1535 | .pll = PLL_28, |
| 1536 | .has_radio = 1, |
| 1537 | }, |
| 1538 | [BTTV_BOARD_VOODOOTV_200] = { |
| 1539 | .name = "VoodooTV 200 (USA)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1540 | /* try "insmod msp3400 simple=0" if you have |
| 1541 | * sound problems with this card. */ |
| 1542 | .video_inputs = 4, |
| 1543 | .audio_inputs = 1, |
| 1544 | .tuner = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1545 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1546 | .gpiomask = 0x4f8a00, |
| 1547 | /* 0x100000: 1=MSP enabled (0=disable again) |
| 1548 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1549 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
| 1550 | .gpiomute = 0x947fff, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1551 | /* tvtuner, radio, external,internal, mute, stereo |
| 1552 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1553 | .muxsel = { 2, 3 ,0 ,1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1554 | .tuner_type = TUNER_MT2032, |
| 1555 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1556 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1557 | .pll = PLL_28, |
| 1558 | .has_radio = 1, |
| 1559 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1560 | [BTTV_BOARD_AIMMS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1561 | /* Philip Blundell <pb@nexus.co.uk> */ |
| 1562 | .name = "Active Imaging AIMMS", |
| 1563 | .video_inputs = 1, |
| 1564 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1565 | .tuner = UNSET, |
| 1566 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1567 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1568 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1569 | .pll = PLL_28, |
| 1570 | .muxsel = { 2 }, |
| 1571 | .gpiomask = 0 |
| 1572 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1573 | [BTTV_BOARD_PV_BT878P_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1574 | /* Tomasz Pyra <hellfire@sedez.iq.pl> */ |
| 1575 | .name = "Prolink Pixelview PV-BT878P+ (Rev.4C,8E)", |
| 1576 | .video_inputs = 3, |
| 1577 | .audio_inputs = 4, |
| 1578 | .tuner = 0, |
| 1579 | .svhs = 2, |
| 1580 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1581 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1582 | .gpiomux = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */ |
| 1583 | .gpiomute = 13, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1584 | .needs_tvaudio = 1, |
| 1585 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1586 | .tuner_type = TUNER_LG_PAL_I_FM, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1587 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1588 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1589 | .has_remote = 1, |
| 1590 | /* GPIO wiring: |
| 1591 | GPIO0: U4.A0 (hef4052bt) |
| 1592 | GPIO1: U4.A1 |
| 1593 | GPIO2: U4.A1 (second hef4052bt) |
| 1594 | GPIO3: U4.nEN, U5.A0, A5.nEN |
| 1595 | GPIO8-15: vrd866b ? |
| 1596 | */ |
| 1597 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1598 | [BTTV_BOARD_FLYVIDEO98EZ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1599 | .name = "Lifeview FlyVideo 98EZ (capture only) LR51", |
| 1600 | .video_inputs = 4, |
| 1601 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1602 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1603 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1604 | .muxsel = { 2, 3, 1, 1 }, /* AV1, AV2, SVHS, CVid adapter on SVHS */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1605 | .pll = PLL_28, |
| 1606 | .no_msp34xx = 1, |
| 1607 | .tuner_type = UNSET, |
| 1608 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1609 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1610 | }, |
| 1611 | |
| 1612 | /* ---- card 0x48 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1613 | [BTTV_BOARD_PV_BT878P_9B] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1614 | /* Dariusz Kowalewski <darekk@automex.pl> */ |
| 1615 | .name = "Prolink Pixelview PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)", |
| 1616 | .video_inputs = 4, |
| 1617 | .audio_inputs = 1, |
| 1618 | .tuner = 0, |
| 1619 | .svhs = 2, |
| 1620 | .gpiomask = 0x3f, |
| 1621 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1622 | .gpiomux = { 0x01, 0x00, 0x03, 0x03 }, |
| 1623 | .gpiomute = 0x09, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1624 | .needs_tvaudio = 1, |
| 1625 | .no_msp34xx = 1, |
| 1626 | .no_tda9875 = 1, |
| 1627 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1628 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1629 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1630 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1631 | .audio_mode_gpio= pvbt878p9b_audio, /* Note: not all cards have stereo */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1632 | .has_radio = 1, /* Note: not all cards have radio */ |
| 1633 | .has_remote = 1, |
| 1634 | /* GPIO wiring: |
| 1635 | GPIO0: A0 hef4052 |
| 1636 | GPIO1: A1 hef4052 |
| 1637 | GPIO3: nEN hef4052 |
| 1638 | GPIO8-15: vrd866b |
| 1639 | GPIO20,22,23: R30,R29,R28 |
| 1640 | */ |
| 1641 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1642 | [BTTV_BOARD_SENSORAY311] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1643 | /* Clay Kunz <ckunz@mail.arc.nasa.gov> */ |
| 1644 | /* you must jumper JP5 for the card to work */ |
| 1645 | .name = "Sensoray 311", |
| 1646 | .video_inputs = 5, |
| 1647 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1648 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1649 | .svhs = 4, |
| 1650 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1651 | .muxsel = { 2, 3, 1, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1652 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1653 | .needs_tvaudio = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1654 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1655 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1656 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1657 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1658 | [BTTV_BOARD_RV605] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1659 | /* Miguel Freitas <miguel@cetuc.puc-rio.br> */ |
| 1660 | .name = "RemoteVision MX (RV605)", |
| 1661 | .video_inputs = 16, |
| 1662 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1663 | .tuner = UNSET, |
| 1664 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1665 | .gpiomask = 0x00, |
| 1666 | .gpiomask2 = 0x07ff, |
| 1667 | .muxsel = { 0x33, 0x13, 0x23, 0x43, 0xf3, 0x73, 0xe3, 0x03, |
| 1668 | 0xd3, 0xb3, 0xc3, 0x63, 0x93, 0x53, 0x83, 0xa3 }, |
| 1669 | .no_msp34xx = 1, |
| 1670 | .no_tda9875 = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1671 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1672 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1673 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1674 | .muxsel_hook = rv605_muxsel, |
| 1675 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1676 | [BTTV_BOARD_POWERCLR_MTV878] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1677 | .name = "Powercolor MTV878/ MTV878R/ MTV878F", |
| 1678 | .video_inputs = 3, |
| 1679 | .audio_inputs = 2, |
| 1680 | .tuner = 0, |
| 1681 | .svhs = 2, |
| 1682 | .gpiomask = 0x1C800F, /* Bit0-2: Audio select, 8-12:remote control 14:remote valid 15:remote reset */ |
| 1683 | .muxsel = { 2, 1, 1, }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1684 | .gpiomux = { 0, 1, 2, 2 }, |
| 1685 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1686 | .needs_tvaudio = 0, |
| 1687 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1688 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1689 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1690 | .pll = PLL_28, |
| 1691 | .has_radio = 1, |
| 1692 | }, |
| 1693 | |
| 1694 | /* ---- card 0x4c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1695 | [BTTV_BOARD_WINDVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1696 | /* Masaki Suzuki <masaki@btree.org> */ |
| 1697 | .name = "Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)", |
| 1698 | .video_inputs = 3, |
| 1699 | .audio_inputs = 1, |
| 1700 | .tuner = 0, |
| 1701 | .svhs = 2, |
| 1702 | .gpiomask = 0x140007, |
| 1703 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1704 | .gpiomux = { 0, 1, 2, 3 }, |
| 1705 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1706 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 1707 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1708 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1709 | .audio_mode_gpio= windvr_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1710 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1711 | [BTTV_BOARD_GRANDTEC_MULTI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1712 | .name = "GrandTec Multi Capture Card (Bt878)", |
| 1713 | .video_inputs = 4, |
| 1714 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1715 | .tuner = UNSET, |
| 1716 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1717 | .gpiomask = 0, |
| 1718 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1719 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1720 | .needs_tvaudio = 0, |
| 1721 | .no_msp34xx = 1, |
| 1722 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1723 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1724 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1725 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1726 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1727 | [BTTV_BOARD_KWORLD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1728 | .name = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF", |
| 1729 | .video_inputs = 4, |
| 1730 | .audio_inputs = 3, |
| 1731 | .tuner = 0, |
| 1732 | .svhs = 2, |
| 1733 | .gpiomask = 7, |
| 1734 | .muxsel = { 2, 3, 1, 1 }, /* Tuner, SVid, SVHS, SVid to SVHS connector */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1735 | .gpiomux = { 0, 0, 4, 4 },/* Yes, this tuner uses the same audio output for TV and FM radio! |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1736 | * This card lacks external Audio In, so we mute it on Ext. & Int. |
| 1737 | * The PCB can take a sbx1637/sbx1673, wiring unknown. |
| 1738 | * This card lacks PCI subsystem ID, sigh. |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1739 | * gpiomux =1: lower volume, 2+3: mute |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1740 | * btwincap uses 0x80000/0x80003 |
| 1741 | */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1742 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1743 | .needs_tvaudio = 0, |
| 1744 | .no_msp34xx = 1, |
| 1745 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1746 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1747 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1748 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1749 | /* Samsung TCPA9095PC27A (BG+DK), philips compatible, w/FM, stereo and |
| 1750 | radio signal strength indicators work fine. */ |
| 1751 | .has_radio = 1, |
| 1752 | /* GPIO Info: |
| 1753 | GPIO0,1: HEF4052 A0,A1 |
| 1754 | GPIO2: HEF4052 nENABLE |
| 1755 | GPIO3-7: n.c. |
| 1756 | GPIO8-13: IRDC357 data0-5 (data6 n.c. ?) [chip not present on my card] |
| 1757 | GPIO14,15: ?? |
| 1758 | GPIO16-21: n.c. |
| 1759 | GPIO22,23: ?? |
| 1760 | ?? : mtu8b56ep microcontroller for IR (GPIO wiring unknown)*/ |
| 1761 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1762 | [BTTV_BOARD_DSP_TCVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1763 | /* Arthur Tetzlaff-Deas, DSP Design Ltd <software@dspdesign.com> */ |
| 1764 | .name = "DSP Design TCVIDEO", |
| 1765 | .video_inputs = 4, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1766 | .svhs = UNSET, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1767 | .muxsel = { 2, 3, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1768 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1769 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1770 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1771 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1772 | }, |
| 1773 | |
| 1774 | /* ---- card 0x50 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1775 | [BTTV_BOARD_HAUPPAUGEPVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1776 | .name = "Hauppauge WinTV PVR", |
| 1777 | .video_inputs = 4, |
| 1778 | .audio_inputs = 1, |
| 1779 | .tuner = 0, |
| 1780 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1781 | .muxsel = { 2, 0, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1782 | .needs_tvaudio = 1, |
| 1783 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1784 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1785 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1786 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1787 | |
| 1788 | .gpiomask = 7, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1789 | .gpiomux = {7}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1790 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1791 | [BTTV_BOARD_GVBCTV5PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1792 | .name = "IODATA GV-BCTV5/PCI", |
| 1793 | .video_inputs = 3, |
| 1794 | .audio_inputs = 1, |
| 1795 | .tuner = 0, |
| 1796 | .svhs = 2, |
| 1797 | .gpiomask = 0x0f0f80, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1798 | .muxsel = {2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1799 | .gpiomux = {0x030000, 0x010000, 0, 0 }, |
| 1800 | .gpiomute = 0x020000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1801 | .no_msp34xx = 1, |
| 1802 | .pll = PLL_28, |
| 1803 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 1804 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1805 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1806 | .audio_mode_gpio= gvbctv5pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1807 | .has_radio = 1, |
| 1808 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1809 | [BTTV_BOARD_OSPREY1x0] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1810 | .name = "Osprey 100/150 (878)", /* 0x1(2|3)-45C6-C1 */ |
| 1811 | .video_inputs = 4, /* id-inputs-clock */ |
| 1812 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1813 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1814 | .svhs = 3, |
| 1815 | .muxsel = { 3, 2, 0, 1 }, |
| 1816 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1817 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1818 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1819 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1820 | .no_msp34xx = 1, |
| 1821 | .no_tda9875 = 1, |
| 1822 | .no_tda7432 = 1, |
| 1823 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1824 | [BTTV_BOARD_OSPREY1x0_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1825 | .name = "Osprey 100/150 (848)", /* 0x04-54C0-C1 & older boards */ |
| 1826 | .video_inputs = 3, |
| 1827 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1828 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1829 | .svhs = 2, |
| 1830 | .muxsel = { 2, 3, 1 }, |
| 1831 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1832 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1833 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1834 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1835 | .no_msp34xx = 1, |
| 1836 | .no_tda9875 = 1, |
| 1837 | .no_tda7432 = 1, |
| 1838 | }, |
| 1839 | |
| 1840 | /* ---- card 0x54 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1841 | [BTTV_BOARD_OSPREY101_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1842 | .name = "Osprey 101 (848)", /* 0x05-40C0-C1 */ |
| 1843 | .video_inputs = 2, |
| 1844 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1845 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1846 | .svhs = 1, |
| 1847 | .muxsel = { 3, 1 }, |
| 1848 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1849 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1850 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1851 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1852 | .no_msp34xx = 1, |
| 1853 | .no_tda9875 = 1, |
| 1854 | .no_tda7432 = 1, |
| 1855 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1856 | [BTTV_BOARD_OSPREY1x1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1857 | .name = "Osprey 101/151", /* 0x1(4|5)-0004-C4 */ |
| 1858 | .video_inputs = 1, |
| 1859 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1860 | .tuner = UNSET, |
| 1861 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1862 | .muxsel = { 0 }, |
| 1863 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1864 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1865 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1866 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1867 | .no_msp34xx = 1, |
| 1868 | .no_tda9875 = 1, |
| 1869 | .no_tda7432 = 1, |
| 1870 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1871 | [BTTV_BOARD_OSPREY1x1_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1872 | .name = "Osprey 101/151 w/ svid", /* 0x(16|17|20)-00C4-C1 */ |
| 1873 | .video_inputs = 2, |
| 1874 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1875 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1876 | .svhs = 1, |
| 1877 | .muxsel = { 0, 1 }, |
| 1878 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1879 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1880 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1881 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1882 | .no_msp34xx = 1, |
| 1883 | .no_tda9875 = 1, |
| 1884 | .no_tda7432 = 1, |
| 1885 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1886 | [BTTV_BOARD_OSPREY2xx] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1887 | .name = "Osprey 200/201/250/251", /* 0x1(8|9|E|F)-0004-C4 */ |
| 1888 | .video_inputs = 1, |
| 1889 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1890 | .tuner = UNSET, |
| 1891 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1892 | .muxsel = { 0 }, |
| 1893 | .pll = PLL_28, |
| 1894 | .tuner_type = UNSET, |
| 1895 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1896 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1897 | .no_msp34xx = 1, |
| 1898 | .no_tda9875 = 1, |
| 1899 | .no_tda7432 = 1, |
| 1900 | }, |
| 1901 | |
| 1902 | /* ---- card 0x58 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1903 | [BTTV_BOARD_OSPREY2x0_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1904 | .name = "Osprey 200/250", /* 0x1(A|B)-00C4-C1 */ |
| 1905 | .video_inputs = 2, |
| 1906 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1907 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1908 | .svhs = 1, |
| 1909 | .muxsel = { 0, 1 }, |
| 1910 | .pll = PLL_28, |
| 1911 | .tuner_type = UNSET, |
| 1912 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1913 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1914 | .no_msp34xx = 1, |
| 1915 | .no_tda9875 = 1, |
| 1916 | .no_tda7432 = 1, |
| 1917 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1918 | [BTTV_BOARD_OSPREY2x0] = { |
Michael Krufky | 52398ef | 2006-05-26 02:13:15 -0300 | [diff] [blame] | 1919 | .name = "Osprey 210/220/230", /* 0x1(A|B)-04C0-C1 */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1920 | .video_inputs = 2, |
| 1921 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1922 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1923 | .svhs = 1, |
| 1924 | .muxsel = { 2, 3 }, |
| 1925 | .pll = PLL_28, |
| 1926 | .tuner_type = UNSET, |
| 1927 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1928 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1929 | .no_msp34xx = 1, |
| 1930 | .no_tda9875 = 1, |
| 1931 | .no_tda7432 = 1, |
| 1932 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1933 | [BTTV_BOARD_OSPREY500] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1934 | .name = "Osprey 500", /* 500 */ |
| 1935 | .video_inputs = 2, |
| 1936 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1937 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1938 | .svhs = 1, |
| 1939 | .muxsel = { 2, 3 }, |
| 1940 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1941 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1942 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1943 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1944 | .no_msp34xx = 1, |
| 1945 | .no_tda9875 = 1, |
| 1946 | .no_tda7432 = 1, |
| 1947 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1948 | [BTTV_BOARD_OSPREY540] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1949 | .name = "Osprey 540", /* 540 */ |
| 1950 | .video_inputs = 4, |
| 1951 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1952 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1953 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1954 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1955 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1956 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1957 | .no_msp34xx = 1, |
| 1958 | .no_tda9875 = 1, |
| 1959 | .no_tda7432 = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1960 | }, |
| 1961 | |
| 1962 | /* ---- card 0x5C ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1963 | [BTTV_BOARD_OSPREY2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1964 | .name = "Osprey 2000", /* 2000 */ |
| 1965 | .video_inputs = 2, |
| 1966 | .audio_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1967 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1968 | .svhs = 1, |
| 1969 | .muxsel = { 2, 3 }, |
| 1970 | .pll = PLL_28, |
| 1971 | .tuner_type = UNSET, |
| 1972 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1973 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1974 | .no_msp34xx = 1, |
| 1975 | .no_tda9875 = 1, |
| 1976 | .no_tda7432 = 1, /* must avoid, conflicts with the bt860 */ |
| 1977 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1978 | [BTTV_BOARD_IDS_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1979 | /* M G Berberich <berberic@forwiss.uni-passau.de> */ |
| 1980 | .name = "IDS Eagle", |
| 1981 | .video_inputs = 4, |
| 1982 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1983 | .tuner = UNSET, |
| 1984 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1985 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1986 | .radio_addr = ADDR_UNSET, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1987 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1988 | .gpiomask = 0, |
| 1989 | .muxsel = { 0, 1, 2, 3 }, |
| 1990 | .muxsel_hook = eagle_muxsel, |
| 1991 | .no_msp34xx = 1, |
| 1992 | .no_tda9875 = 1, |
| 1993 | .pll = PLL_28, |
| 1994 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1995 | [BTTV_BOARD_PINNACLESAT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1996 | .name = "Pinnacle PCTV Sat", |
| 1997 | .video_inputs = 2, |
| 1998 | .audio_inputs = 0, |
| 1999 | .svhs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2000 | .tuner = UNSET, |
| 2001 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2002 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2003 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2004 | .no_msp34xx = 1, |
| 2005 | .no_tda9875 = 1, |
| 2006 | .no_tda7432 = 1, |
Mauro Carvalho Chehab | d2be893 | 2006-10-02 23:52:48 -0300 | [diff] [blame] | 2007 | .muxsel = { 3, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2008 | .pll = PLL_28, |
| 2009 | .no_gpioirq = 1, |
| 2010 | .has_dvb = 1, |
| 2011 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2012 | [BTTV_BOARD_FORMAC_PROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2013 | .name = "Formac ProTV II (bt878)", |
| 2014 | .video_inputs = 4, |
| 2015 | .audio_inputs = 1, |
| 2016 | .tuner = 0, |
| 2017 | .svhs = 3, |
| 2018 | .gpiomask = 2, |
| 2019 | /* TV, Comp1, Composite over SVID con, SVID */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2020 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2021 | .gpiomux = { 2, 2, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2022 | .pll = PLL_28, |
| 2023 | .has_radio = 1, |
| 2024 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2025 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2026 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2027 | /* sound routing: |
| 2028 | GPIO=0x00,0x01,0x03: mute (?) |
| 2029 | 0x02: both TV and radio (tuner: FM1216/I) |
| 2030 | The card has onboard audio connectors labeled "cdrom" and "board", |
| 2031 | not soldered here, though unknown wiring. |
| 2032 | Card lacks: external audio in, pci subsystem id. |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 2033 | */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2034 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2035 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2036 | /* ---- card 0x60 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2037 | [BTTV_BOARD_MACHTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2038 | .name = "MachTV", |
| 2039 | .video_inputs = 3, |
| 2040 | .audio_inputs = 1, |
| 2041 | .tuner = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2042 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2043 | .gpiomask = 7, |
| 2044 | .muxsel = { 2, 3, 1, 1}, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2045 | .gpiomux = { 0, 1, 2, 3}, |
| 2046 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2047 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2048 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2049 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2050 | .radio_addr = ADDR_UNSET, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 2051 | .pll = PLL_28, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2052 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2053 | [BTTV_BOARD_EURESYS_PICOLO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2054 | .name = "Euresys Picolo", |
| 2055 | .video_inputs = 3, |
| 2056 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2057 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2058 | .svhs = 2, |
| 2059 | .gpiomask = 0, |
| 2060 | .no_msp34xx = 1, |
| 2061 | .no_tda9875 = 1, |
| 2062 | .no_tda7432 = 1, |
| 2063 | .muxsel = { 2, 0, 1}, |
| 2064 | .pll = PLL_28, |
| 2065 | .tuner_type = UNSET, |
| 2066 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2067 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2068 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2069 | [BTTV_BOARD_PV150] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2070 | /* Luc Van Hoeylandt <luc@e-magic.be> */ |
| 2071 | .name = "ProVideo PV150", /* 0x4f */ |
| 2072 | .video_inputs = 2, |
| 2073 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2074 | .tuner = UNSET, |
| 2075 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2076 | .gpiomask = 0, |
| 2077 | .muxsel = { 2, 3 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2078 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2079 | .needs_tvaudio = 0, |
| 2080 | .no_msp34xx = 1, |
| 2081 | .pll = PLL_28, |
| 2082 | .tuner_type = UNSET, |
| 2083 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2084 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2085 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2086 | [BTTV_BOARD_AD_TVK503] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2087 | /* Hiroshi Takekawa <sian@big.or.jp> */ |
| 2088 | /* This card lacks subsystem ID */ |
| 2089 | .name = "AD-TVK503", /* 0x63 */ |
| 2090 | .video_inputs = 4, |
| 2091 | .audio_inputs = 1, |
| 2092 | .tuner = 0, |
| 2093 | .svhs = 2, |
| 2094 | .gpiomask = 0x001e8007, |
| 2095 | .muxsel = { 2, 3, 1, 0 }, |
| 2096 | /* Tuner, Radio, external, internal, off, on */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2097 | .gpiomux = { 0x08, 0x0f, 0x0a, 0x08 }, |
| 2098 | .gpiomute = 0x0f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2099 | .needs_tvaudio = 0, |
| 2100 | .no_msp34xx = 1, |
| 2101 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2102 | .tuner_type = TUNER_PHILIPS_NTSC, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2103 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2104 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 2105 | .audio_mode_gpio= adtvk503_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2106 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2107 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2108 | /* ---- card 0x64 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2109 | [BTTV_BOARD_HERCULES_SM_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2110 | .name = "Hercules Smart TV Stereo", |
| 2111 | .video_inputs = 4, |
| 2112 | .audio_inputs = 1, |
| 2113 | .tuner = 0, |
| 2114 | .svhs = 2, |
| 2115 | .gpiomask = 0x00, |
| 2116 | .muxsel = { 2, 3, 1, 1 }, |
| 2117 | .needs_tvaudio = 1, |
| 2118 | .no_msp34xx = 1, |
| 2119 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2120 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2121 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2122 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2123 | /* Notes: |
| 2124 | - card lacks subsystem ID |
| 2125 | - stereo variant w/ daughter board with tda9874a @0xb0 |
| 2126 | - Audio Routing: |
| 2127 | always from tda9874 independent of GPIO (?) |
| 2128 | external line in: unknown |
| 2129 | - Other chips: em78p156elp @ 0x96 (probably IR remote control) |
| 2130 | hef4053 (instead 4052) for unknown function |
| 2131 | */ |
| 2132 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2133 | [BTTV_BOARD_PACETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2134 | .name = "Pace TV & Radio Card", |
| 2135 | .video_inputs = 4, |
| 2136 | .audio_inputs = 1, |
| 2137 | .tuner = 0, |
| 2138 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2139 | .muxsel = { 2, 3, 1, 1 }, /* Tuner, CVid, SVid, CVid over SVid connector */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2140 | .gpiomask = 0, |
| 2141 | .no_tda9875 = 1, |
| 2142 | .no_tda7432 = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2143 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2144 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2145 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2146 | .has_radio = 1, |
| 2147 | .pll = PLL_28, |
| 2148 | /* Bt878, Bt832, FI1246 tuner; no pci subsystem id |
| 2149 | only internal line out: (4pin header) RGGL |
| 2150 | Radio must be decoded by msp3410d (not routed through)*/ |
| 2151 | /* |
| 2152 | .digital_mode = DIGITAL_MODE_CAMERA, todo! |
| 2153 | */ |
| 2154 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2155 | [BTTV_BOARD_IVC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2156 | /* Chris Willing <chris@vislab.usyd.edu.au> */ |
| 2157 | .name = "IVC-200", |
| 2158 | .video_inputs = 1, |
| 2159 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2160 | .tuner = UNSET, |
| 2161 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2162 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2163 | .radio_addr = ADDR_UNSET, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2164 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2165 | .gpiomask = 0xdf, |
| 2166 | .muxsel = { 2 }, |
| 2167 | .pll = PLL_28, |
| 2168 | }, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame^] | 2169 | [BTTV_BOARD_IVCE8784] = { |
| 2170 | .name = "IVCE-8784", |
| 2171 | .video_inputs = 1, |
| 2172 | .audio_inputs = 0, |
| 2173 | .tuner = UNSET, |
| 2174 | .tuner_type = UNSET, |
| 2175 | .tuner_addr = ADDR_UNSET, |
| 2176 | .radio_addr = ADDR_UNSET, |
| 2177 | .svhs = UNSET, |
| 2178 | .gpiomask = 0xdf, |
| 2179 | .muxsel = { 2 }, |
| 2180 | .pll = PLL_28, |
| 2181 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2182 | [BTTV_BOARD_XGUARD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2183 | .name = "Grand X-Guard / Trust 814PCI", |
| 2184 | .video_inputs = 16, |
| 2185 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2186 | .tuner = UNSET, |
| 2187 | .svhs = UNSET, |
| 2188 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2189 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2190 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2191 | .gpiomask2 = 0xff, |
| 2192 | .muxsel = { 2,2,2,2, 3,3,3,3, 1,1,1,1, 0,0,0,0 }, |
| 2193 | .muxsel_hook = xguard_muxsel, |
| 2194 | .no_msp34xx = 1, |
| 2195 | .no_tda9875 = 1, |
| 2196 | .no_tda7432 = 1, |
| 2197 | .pll = PLL_28, |
| 2198 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2199 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2200 | /* ---- card 0x68 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2201 | [BTTV_BOARD_NEBULA_DIGITV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2202 | .name = "Nebula Electronics DigiTV", |
| 2203 | .video_inputs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2204 | .tuner = UNSET, |
| 2205 | .svhs = UNSET, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2206 | .muxsel = { 2, 3, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2207 | .no_msp34xx = 1, |
| 2208 | .no_tda9875 = 1, |
| 2209 | .no_tda7432 = 1, |
| 2210 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2211 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2212 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2213 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2214 | .has_dvb = 1, |
Mark Weaver | 6c6c0b2 | 2005-11-13 16:07:52 -0800 | [diff] [blame] | 2215 | .has_remote = 1, |
| 2216 | .gpiomask = 0x1b, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2217 | .no_gpioirq = 1, |
| 2218 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2219 | [BTTV_BOARD_PV143] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2220 | /* Jorge Boncompte - DTI2 <jorge@dti2.net> */ |
| 2221 | .name = "ProVideo PV143", |
| 2222 | .video_inputs = 4, |
| 2223 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2224 | .tuner = UNSET, |
| 2225 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2226 | .gpiomask = 0, |
| 2227 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2228 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2229 | .needs_tvaudio = 0, |
| 2230 | .no_msp34xx = 1, |
| 2231 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2232 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2233 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2234 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2235 | }, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2236 | [BTTV_BOARD_VD009X1_VD011_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2237 | /* M.Klahr@phytec.de */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2238 | .name = "PHYTEC VD-009-X1 VD-011 MiniDIN (bt878)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2239 | .video_inputs = 4, |
| 2240 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2241 | .tuner = UNSET, /* card has no tuner */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2242 | .svhs = 3, |
| 2243 | .gpiomask = 0x00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2244 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2245 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2246 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2247 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2248 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2249 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2250 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2251 | }, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2252 | [BTTV_BOARD_VD009X1_VD011_COMBI] = { |
| 2253 | .name = "PHYTEC VD-009-X1 VD-011 Combi (bt878)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2254 | .video_inputs = 4, |
| 2255 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2256 | .tuner = UNSET, /* card has no tuner */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2257 | .svhs = 3, |
| 2258 | .gpiomask = 0x00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2259 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2260 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2261 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2262 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2263 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2264 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2265 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2266 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2267 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2268 | /* ---- card 0x6c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2269 | [BTTV_BOARD_VD009_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2270 | .name = "PHYTEC VD-009 MiniDIN (bt878)", |
| 2271 | .video_inputs = 10, |
| 2272 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2273 | .tuner = UNSET, /* card has no tuner */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2274 | .svhs = 9, |
| 2275 | .gpiomask = 0x00, |
| 2276 | .gpiomask2 = 0x03, /* gpiomask2 defines the bits used to switch audio |
| 2277 | via the upper nibble of muxsel. here: used for |
| 2278 | xternal video-mux */ |
| 2279 | .muxsel = { 0x02, 0x12, 0x22, 0x32, 0x03, 0x13, 0x23, 0x33, 0x01, 0x00 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2280 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2281 | .needs_tvaudio = 1, |
| 2282 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2283 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2284 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2285 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2286 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2287 | [BTTV_BOARD_VD009_COMBI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2288 | .name = "PHYTEC VD-009 Combi (bt878)", |
| 2289 | .video_inputs = 10, |
| 2290 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2291 | .tuner = UNSET, /* card has no tuner */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2292 | .svhs = 9, |
| 2293 | .gpiomask = 0x00, |
| 2294 | .gpiomask2 = 0x03, /* gpiomask2 defines the bits used to switch audio |
| 2295 | via the upper nibble of muxsel. here: used for |
| 2296 | xternal video-mux */ |
| 2297 | .muxsel = { 0x02, 0x12, 0x22, 0x32, 0x03, 0x13, 0x23, 0x33, 0x01, 0x01 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2298 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2299 | .needs_tvaudio = 1, |
| 2300 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2301 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2302 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2303 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2304 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2305 | [BTTV_BOARD_IVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2306 | .name = "IVC-100", |
| 2307 | .video_inputs = 4, |
| 2308 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2309 | .tuner = UNSET, |
| 2310 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2311 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2312 | .radio_addr = ADDR_UNSET, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2313 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2314 | .gpiomask = 0xdf, |
| 2315 | .muxsel = { 2, 3, 1, 0 }, |
| 2316 | .pll = PLL_28, |
| 2317 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2318 | [BTTV_BOARD_IVC120] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2319 | /* IVC-120G - Alan Garfield <alan@fromorbit.com> */ |
| 2320 | .name = "IVC-120G", |
| 2321 | .video_inputs = 16, |
| 2322 | .audio_inputs = 0, /* card has no audio */ |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2323 | .tuner = UNSET, /* card has no tuner */ |
| 2324 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2325 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2326 | .radio_addr = ADDR_UNSET, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2327 | .svhs = UNSET, /* card has no svhs */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2328 | .needs_tvaudio = 0, |
| 2329 | .no_msp34xx = 1, |
| 2330 | .no_tda9875 = 1, |
| 2331 | .no_tda7432 = 1, |
| 2332 | .gpiomask = 0x00, |
| 2333 | .muxsel = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, |
| 2334 | 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10 }, |
| 2335 | .muxsel_hook = ivc120_muxsel, |
| 2336 | .pll = PLL_28, |
| 2337 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2338 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2339 | /* ---- card 0x70 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2340 | [BTTV_BOARD_PC_HDTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2341 | .name = "pcHDTV HD-2000 TV", |
| 2342 | .video_inputs = 4, |
| 2343 | .audio_inputs = 1, |
| 2344 | .tuner = 0, |
| 2345 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2346 | .muxsel = { 2, 3, 1, 0 }, |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 2347 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2348 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2349 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2350 | .has_dvb = 1, |
| 2351 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2352 | [BTTV_BOARD_TWINHAN_DST] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2353 | .name = "Twinhan DST + clones", |
| 2354 | .no_msp34xx = 1, |
| 2355 | .no_tda9875 = 1, |
| 2356 | .no_tda7432 = 1, |
| 2357 | .tuner_type = TUNER_ABSENT, |
| 2358 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2359 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2360 | .no_video = 1, |
| 2361 | .has_dvb = 1, |
| 2362 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2363 | [BTTV_BOARD_WINFASTVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2364 | .name = "Winfast VC100", |
| 2365 | .video_inputs = 3, |
| 2366 | .audio_inputs = 0, |
| 2367 | .svhs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2368 | .tuner = UNSET, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2369 | .muxsel = { 3, 1, 1, 3 }, /* Vid In, SVid In, Vid over SVid in connector */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2370 | .no_msp34xx = 1, |
| 2371 | .no_tda9875 = 1, |
| 2372 | .no_tda7432 = 1, |
| 2373 | .tuner_type = TUNER_ABSENT, |
| 2374 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2375 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2376 | .pll = PLL_28, |
| 2377 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2378 | [BTTV_BOARD_TEV560] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2379 | .name = "Teppro TEV-560/InterVision IV-560", |
| 2380 | .video_inputs = 3, |
| 2381 | .audio_inputs = 1, |
| 2382 | .tuner = 0, |
| 2383 | .svhs = 2, |
| 2384 | .gpiomask = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2385 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2386 | .gpiomux = { 1, 1, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2387 | .needs_tvaudio = 1, |
| 2388 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2389 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2390 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2391 | .pll = PLL_35, |
| 2392 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2393 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2394 | /* ---- card 0x74 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2395 | [BTTV_BOARD_SIMUS_GVC1100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2396 | .name = "SIMUS GVC1100", |
| 2397 | .video_inputs = 4, |
| 2398 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2399 | .tuner = UNSET, |
| 2400 | .svhs = UNSET, |
| 2401 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2402 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2403 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2404 | .pll = PLL_28, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2405 | .muxsel = { 2, 2, 2, 2 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2406 | .gpiomask = 0x3F, |
| 2407 | .muxsel_hook = gvc1100_muxsel, |
| 2408 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2409 | [BTTV_BOARD_NGSTV_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2410 | /* Carlos Silva r3pek@r3pek.homelinux.org || card 0x75 */ |
| 2411 | .name = "NGS NGSTV+", |
| 2412 | .video_inputs = 3, |
| 2413 | .tuner = 0, |
| 2414 | .svhs = 2, |
| 2415 | .gpiomask = 0x008007, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2416 | .muxsel = { 2, 3, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2417 | .gpiomux = { 0, 0, 0, 0 }, |
| 2418 | .gpiomute = 0x000003, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2419 | .pll = PLL_28, |
| 2420 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2421 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2422 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2423 | .has_remote = 1, |
| 2424 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2425 | [BTTV_BOARD_LMLBT4] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2426 | /* http://linuxmedialabs.com */ |
| 2427 | .name = "LMLBT4", |
| 2428 | .video_inputs = 4, /* IN1,IN2,IN3,IN4 */ |
| 2429 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2430 | .tuner = UNSET, |
| 2431 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2432 | .muxsel = { 2, 3, 1, 0 }, |
| 2433 | .no_msp34xx = 1, |
| 2434 | .no_tda9875 = 1, |
| 2435 | .no_tda7432 = 1, |
| 2436 | .needs_tvaudio = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2437 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2438 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2439 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2440 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2441 | [BTTV_BOARD_TEKRAM_M205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2442 | /* Helmroos Harri <harri.helmroos@pp.inet.fi> */ |
| 2443 | .name = "Tekram M205 PRO", |
| 2444 | .video_inputs = 3, |
| 2445 | .audio_inputs = 1, |
| 2446 | .tuner = 0, |
| 2447 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2448 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2449 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2450 | .svhs = 2, |
| 2451 | .needs_tvaudio = 0, |
| 2452 | .gpiomask = 0x68, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2453 | .muxsel = { 2, 3, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2454 | .gpiomux = { 0x68, 0x68, 0x61, 0x61 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2455 | .pll = PLL_28, |
| 2456 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2457 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2458 | /* ---- card 0x78 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2459 | [BTTV_BOARD_CONTVFMI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2460 | /* Javier Cendan Ares <jcendan@lycos.es> */ |
| 2461 | /* bt878 TV + FM without subsystem ID */ |
| 2462 | .name = "Conceptronic CONTVFMi", |
| 2463 | .video_inputs = 3, |
| 2464 | .audio_inputs = 1, |
| 2465 | .tuner = 0, |
| 2466 | .svhs = 2, |
| 2467 | .gpiomask = 0x008007, |
| 2468 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2469 | .gpiomux = { 0, 1, 2, 2 }, |
| 2470 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2471 | .needs_tvaudio = 0, |
| 2472 | .pll = PLL_28, |
| 2473 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2474 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2475 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2476 | .has_remote = 1, |
| 2477 | .has_radio = 1, |
| 2478 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2479 | [BTTV_BOARD_PICOLO_TETRA_CHIP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2480 | /*Eric DEBIEF <debief@telemsa.com>*/ |
| 2481 | /*EURESYS Picolo Tetra : 4 Conexant Fusion 878A, no audio, video input set with analog multiplexers GPIO controled*/ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2482 | /* adds picolo_tetra_muxsel(), picolo_tetra_init(), the folowing declaration strucure, and #define BTTV_BOARD_PICOLO_TETRA_CHIP*/ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2483 | /*0x79 in bttv.h*/ |
| 2484 | .name = "Euresys Picolo Tetra", |
| 2485 | .video_inputs = 4, |
| 2486 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2487 | .tuner = UNSET, |
| 2488 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2489 | .gpiomask = 0, |
| 2490 | .gpiomask2 = 0x3C<<16,/*Set the GPIO[18]->GPIO[21] as output pin.==> drive the video inputs through analog multiplexers*/ |
| 2491 | .no_msp34xx = 1, |
| 2492 | .no_tda9875 = 1, |
| 2493 | .no_tda7432 = 1, |
| 2494 | .muxsel = {2,2,2,2},/*878A input is always MUX0, see above.*/ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2495 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2496 | .pll = PLL_28, |
| 2497 | .needs_tvaudio = 0, |
| 2498 | .muxsel_hook = picolo_tetra_muxsel,/*Required as it doesn't follow the classic input selection policy*/ |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2499 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2500 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2501 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2502 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2503 | [BTTV_BOARD_SPIRIT_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2504 | /* Spirit TV Tuner from http://spiritmodems.com.au */ |
| 2505 | /* Stafford Goodsell <surge@goliath.homeunix.org> */ |
| 2506 | .name = "Spirit TV Tuner", |
| 2507 | .video_inputs = 3, |
| 2508 | .audio_inputs = 1, |
| 2509 | .tuner = 0, |
| 2510 | .svhs = 2, |
| 2511 | .gpiomask = 0x0000000f, |
| 2512 | .muxsel = { 2, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2513 | .gpiomux = { 0x02, 0x00, 0x00, 0x00 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2514 | .tuner_type = TUNER_TEMIC_PAL, |
| 2515 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2516 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2517 | .no_msp34xx = 1, |
| 2518 | .no_tda9875 = 1, |
| 2519 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2520 | [BTTV_BOARD_AVDVBT_771] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2521 | /* Wolfram Joost <wojo@frokaschwei.de> */ |
| 2522 | .name = "AVerMedia AVerTV DVB-T 771", |
| 2523 | .video_inputs = 2, |
| 2524 | .svhs = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2525 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2526 | .tuner_type = TUNER_ABSENT, |
| 2527 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2528 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2529 | .muxsel = { 3 , 3 }, |
| 2530 | .no_msp34xx = 1, |
| 2531 | .no_tda9875 = 1, |
| 2532 | .no_tda7432 = 1, |
| 2533 | .pll = PLL_28, |
| 2534 | .has_dvb = 1, |
| 2535 | .no_gpioirq = 1, |
| 2536 | .has_remote = 1, |
| 2537 | }, |
| 2538 | /* ---- card 0x7c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2539 | [BTTV_BOARD_AVDVBT_761] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2540 | /* Matt Jesson <dvb@jesson.eclipse.co.uk> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2541 | /* Based on the Nebula card data - added remote and new card number - BTTV_BOARD_AVDVBT_761, see also ir-kbd-gpio.c */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2542 | .name = "AverMedia AverTV DVB-T 761", |
| 2543 | .video_inputs = 2, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2544 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2545 | .svhs = 1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2546 | .muxsel = { 3, 1, 2, 0 }, /* Comp0, S-Video, ?, ? */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2547 | .no_msp34xx = 1, |
| 2548 | .no_tda9875 = 1, |
| 2549 | .no_tda7432 = 1, |
| 2550 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2551 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2552 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2553 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2554 | .has_dvb = 1, |
| 2555 | .no_gpioirq = 1, |
| 2556 | .has_remote = 1, |
| 2557 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2558 | [BTTV_BOARD_MATRIX_VISIONSQ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2559 | /* andre.schwarz@matrix-vision.de */ |
| 2560 | .name = "MATRIX Vision Sigma-SQ", |
| 2561 | .video_inputs = 16, |
| 2562 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2563 | .tuner = UNSET, |
| 2564 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2565 | .gpiomask = 0x0, |
| 2566 | .muxsel = { 2, 2, 2, 2, 2, 2, 2, 2, |
| 2567 | 3, 3, 3, 3, 3, 3, 3, 3 }, |
| 2568 | .muxsel_hook = sigmaSQ_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2569 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2570 | .no_msp34xx = 1, |
| 2571 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2572 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2573 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2574 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2575 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2576 | [BTTV_BOARD_MATRIX_VISIONSLC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2577 | /* andre.schwarz@matrix-vision.de */ |
| 2578 | .name = "MATRIX Vision Sigma-SLC", |
| 2579 | .video_inputs = 4, |
| 2580 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2581 | .tuner = UNSET, |
| 2582 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2583 | .gpiomask = 0x0, |
| 2584 | .muxsel = { 2, 2, 2, 2 }, |
| 2585 | .muxsel_hook = sigmaSLC_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2586 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2587 | .no_msp34xx = 1, |
| 2588 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2589 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2590 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2591 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2592 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2593 | /* BTTV_BOARD_APAC_VIEWCOMP */ |
| 2594 | [BTTV_BOARD_APAC_VIEWCOMP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2595 | /* Attila Kondoros <attila.kondoros@chello.hu> */ |
| 2596 | /* bt878 TV + FM 0x00000000 subsystem ID */ |
| 2597 | .name = "APAC Viewcomp 878(AMAX)", |
| 2598 | .video_inputs = 2, |
| 2599 | .audio_inputs = 1, |
| 2600 | .tuner = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2601 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2602 | .gpiomask = 0xFF, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2603 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2604 | .gpiomux = { 2, 0, 0, 0 }, |
| 2605 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2606 | .needs_tvaudio = 0, |
| 2607 | .pll = PLL_28, |
| 2608 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2609 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2610 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2611 | .has_remote = 1, /* miniremote works, see ir-kbd-gpio.c */ |
| 2612 | .has_radio = 1, /* not every card has radio */ |
| 2613 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2614 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2615 | /* ---- card 0x80 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2616 | [BTTV_BOARD_DVICO_DVBT_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2617 | /* Chris Pascoe <c.pascoe@itee.uq.edu.au> */ |
| 2618 | .name = "DViCO FusionHDTV DVB-T Lite", |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2619 | .tuner = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2620 | .no_msp34xx = 1, |
| 2621 | .no_tda9875 = 1, |
| 2622 | .no_tda7432 = 1, |
| 2623 | .pll = PLL_28, |
| 2624 | .no_video = 1, |
| 2625 | .has_dvb = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2626 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2627 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2628 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2629 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2630 | [BTTV_BOARD_VGEAR_MYVCD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2631 | /* Steven <photon38@pchome.com.tw> */ |
| 2632 | .name = "V-Gear MyVCD", |
| 2633 | .video_inputs = 3, |
| 2634 | .audio_inputs = 1, |
| 2635 | .tuner = 0, |
| 2636 | .svhs = 2, |
| 2637 | .gpiomask = 0x3f, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2638 | .muxsel = {2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2639 | .gpiomux = {0x31, 0x31, 0x31, 0x31 }, |
| 2640 | .gpiomute = 0x31, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2641 | .no_msp34xx = 1, |
| 2642 | .pll = PLL_28, |
| 2643 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 2644 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2645 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2646 | .has_radio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2647 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2648 | [BTTV_BOARD_SUPER_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2649 | /* Rick C <cryptdragoon@gmail.com> */ |
| 2650 | .name = "Super TV Tuner", |
| 2651 | .video_inputs = 4, |
| 2652 | .audio_inputs = 1, |
| 2653 | .tuner = 0, |
| 2654 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2655 | .muxsel = { 2, 3, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2656 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 2657 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2658 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2659 | .gpiomask = 0x008007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2660 | .gpiomux = { 0, 0x000001,0,0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2661 | .needs_tvaudio = 1, |
| 2662 | .has_radio = 1, |
| 2663 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2664 | [BTTV_BOARD_TIBET_CS16] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2665 | /* Chris Fanning <video4linux@haydon.net> */ |
| 2666 | .name = "Tibet Systems 'Progress DVR' CS16", |
| 2667 | .video_inputs = 16, |
| 2668 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2669 | .tuner = UNSET, |
| 2670 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2671 | .muxsel = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, |
| 2672 | .pll = PLL_28, |
| 2673 | .no_msp34xx = 1, |
| 2674 | .no_tda9875 = 1, |
| 2675 | .no_tda7432 = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2676 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2677 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2678 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2679 | .muxsel_hook = tibetCS16_muxsel, |
| 2680 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2681 | [BTTV_BOARD_KODICOM_4400R] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2682 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2683 | /* |
| 2684 | * Note that, because of the card's wiring, the "master" |
| 2685 | * BT878A chip (i.e. the one which controls the analog switch |
| 2686 | * and must use this card type) is the 2nd one detected. The |
| 2687 | * other 3 chips should use card type 0x85, whose description |
| 2688 | * follows this one. There is a EEPROM on the card (which is |
| 2689 | * connected to the I2C of one of those other chips), but is |
| 2690 | * not currently handled. There is also a facility for a |
| 2691 | * "monitor", which is also not currently implemented. |
| 2692 | */ |
| 2693 | .name = "Kodicom 4400R (master)", |
| 2694 | .video_inputs = 16, |
| 2695 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2696 | .tuner = UNSET, |
| 2697 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2698 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2699 | .radio_addr = ADDR_UNSET, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2700 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2701 | /* GPIO bits 0-9 used for analog switch: |
| 2702 | * 00 - 03: camera selector |
| 2703 | * 04 - 06: channel (controller) selector |
| 2704 | * 07: data (1->on, 0->off) |
| 2705 | * 08: strobe |
| 2706 | * 09: reset |
| 2707 | * bit 16 is input from sync separator for the channel |
| 2708 | */ |
| 2709 | .gpiomask = 0x0003ff, |
| 2710 | .no_gpioirq = 1, |
| 2711 | .muxsel = { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 }, |
| 2712 | .pll = PLL_28, |
| 2713 | .no_msp34xx = 1, |
| 2714 | .no_tda7432 = 1, |
| 2715 | .no_tda9875 = 1, |
| 2716 | .muxsel_hook = kodicom4400r_muxsel, |
| 2717 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2718 | [BTTV_BOARD_KODICOM_4400R_SL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2719 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2720 | /* Note that, for reasons unknown, the "master" BT878A chip (i.e. the |
| 2721 | * one which controls the analog switch, and must use the card type) |
| 2722 | * is the 2nd one detected. The other 3 chips should use this card |
| 2723 | * type |
| 2724 | */ |
| 2725 | .name = "Kodicom 4400R (slave)", |
| 2726 | .video_inputs = 16, |
| 2727 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2728 | .tuner = UNSET, |
| 2729 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2730 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2731 | .radio_addr = ADDR_UNSET, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2732 | .svhs = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2733 | .gpiomask = 0x010000, |
| 2734 | .no_gpioirq = 1, |
| 2735 | .muxsel = { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 }, |
| 2736 | .pll = PLL_28, |
| 2737 | .no_msp34xx = 1, |
| 2738 | .no_tda7432 = 1, |
| 2739 | .no_tda9875 = 1, |
| 2740 | .muxsel_hook = kodicom4400r_muxsel, |
| 2741 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2742 | /* ---- card 0x86---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2743 | [BTTV_BOARD_ADLINK_RTV24] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2744 | /* Michael Henson <mhenson@clarityvi.com> */ |
| 2745 | /* Adlink RTV24 with special unlock codes */ |
| 2746 | .name = "Adlink RTV24", |
| 2747 | .video_inputs = 4, |
| 2748 | .audio_inputs = 1, |
| 2749 | .tuner = 0, |
| 2750 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2751 | .muxsel = { 2, 3, 1, 0 }, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2752 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2753 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2754 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2755 | .pll = PLL_28, |
| 2756 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2757 | /* ---- card 0x87---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2758 | [BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2759 | /* Michael Krufky <mkrufky@m1k.net> */ |
| 2760 | .name = "DViCO FusionHDTV 5 Lite", |
| 2761 | .tuner = 0, |
Michael Krufky | 9c26c8b | 2006-04-27 01:29:17 -0300 | [diff] [blame] | 2762 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2763 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2764 | .radio_addr = ADDR_UNSET, |
Michael Krufky | 4b01741 | 2005-11-08 21:37:06 -0800 | [diff] [blame] | 2765 | .video_inputs = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2766 | .audio_inputs = 1, |
| 2767 | .svhs = 2, |
Michael Krufky | 4b01741 | 2005-11-08 21:37:06 -0800 | [diff] [blame] | 2768 | .muxsel = { 2, 3, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2769 | .gpiomask = 0x00e00007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2770 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
| 2771 | .gpiomute = 0x00c00007, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2772 | .no_msp34xx = 1, |
| 2773 | .no_tda9875 = 1, |
| 2774 | .no_tda7432 = 1, |
| 2775 | .has_dvb = 1, |
| 2776 | }, |
| 2777 | /* ---- card 0x88---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2778 | [BTTV_BOARD_ACORP_Y878F] = { |
Mauro Carvalho Chehab | 2e7c6dc | 2006-04-03 07:53:40 -0300 | [diff] [blame] | 2779 | /* Mauro Carvalho Chehab <mchehab@infradead.org> */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2780 | .name = "Acorp Y878F", |
| 2781 | .video_inputs = 3, |
| 2782 | .audio_inputs = 1, |
| 2783 | .tuner = 0, |
| 2784 | .svhs = 2, |
| 2785 | .gpiomask = 0x01fe00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2786 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2787 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 2788 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2789 | .needs_tvaudio = 1, |
| 2790 | .pll = PLL_28, |
| 2791 | .tuner_type = TUNER_YMEC_TVF66T5_B_DFF, |
| 2792 | .tuner_addr = 0xc1 >>1, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2793 | .radio_addr = 0xc1 >>1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2794 | .has_radio = 1, |
| 2795 | }, |
| 2796 | /* ---- card 0x89 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2797 | [BTTV_BOARD_CONCEPTRONIC_CTVFMI2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2798 | .name = "Conceptronic CTVFMi v2", |
| 2799 | .video_inputs = 3, |
| 2800 | .audio_inputs = 1, |
| 2801 | .tuner = 0, |
| 2802 | .svhs = 2, |
| 2803 | .gpiomask = 0x001c0007, |
| 2804 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2805 | .gpiomux = { 0, 1, 2, 2 }, |
| 2806 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2807 | .needs_tvaudio = 0, |
| 2808 | .pll = PLL_28, |
Ricardo Cerqueira | 24d4122 | 2005-11-08 21:38:21 -0800 | [diff] [blame] | 2809 | .tuner_type = TUNER_TENA_9533_DI, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2810 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2811 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2812 | .has_remote = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2813 | .has_radio = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2814 | }, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2815 | /* ---- card 0x8a ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2816 | [BTTV_BOARD_PV_BT878P_2E] = { |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2817 | .name = "Prolink Pixelview PV-BT878P+ (Rev.2E)", |
| 2818 | .video_inputs = 5, |
| 2819 | .audio_inputs = 1, |
| 2820 | .tuner = 0, |
| 2821 | .svhs = 3, |
| 2822 | .gpiomask = 0x01fe00, |
| 2823 | .muxsel = { 2,3,1,1,-1 }, |
| 2824 | .digital_mode = DIGITAL_MODE_CAMERA, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2825 | .gpiomux = { 0x00400, 0x10400, 0x04400, 0x80000 }, |
| 2826 | .gpiomute = 0x12400, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2827 | .no_msp34xx = 1, |
| 2828 | .pll = PLL_28, |
| 2829 | .tuner_type = TUNER_LG_PAL_FM, |
| 2830 | .tuner_addr = ADDR_UNSET, |
| 2831 | .radio_addr = ADDR_UNSET, |
| 2832 | .has_remote = 1, |
| 2833 | }, |
| 2834 | /* ---- card 0x8b ---------------------------------- */ |
| 2835 | [BTTV_BOARD_PV_M4900] = { |
Jan Engelhardt | 96de0e2 | 2007-10-19 23:21:04 +0200 | [diff] [blame] | 2836 | /* Sérgio Fortier <sergiofortier@yahoo.com.br> */ |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2837 | .name = "Prolink PixelView PlayTV MPEG2 PV-M4900", |
| 2838 | .video_inputs = 3, |
| 2839 | .audio_inputs = 1, |
| 2840 | .tuner = 0, |
| 2841 | .svhs = 2, |
| 2842 | .gpiomask = 0x3f, |
| 2843 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2844 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 2845 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2846 | .no_msp34xx = 1, |
| 2847 | .pll = PLL_28, |
| 2848 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
| 2849 | .tuner_addr = ADDR_UNSET, |
| 2850 | .radio_addr = ADDR_UNSET, |
| 2851 | .has_radio = 1, |
| 2852 | .has_remote = 1, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2853 | }, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 2854 | /* ---- card 0x8c ---------------------------------- */ |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2855 | /* Has four Bt878 chips behind a PCI bridge, each chip has: |
| 2856 | one external BNC composite input (mux 2) |
| 2857 | three internal composite inputs (unknown muxes) |
| 2858 | an 18-bit stereo A/D (CS5331A), which has: |
| 2859 | one external stereo unblanced (RCA) audio connection |
| 2860 | one (or 3?) internal stereo balanced (XLR) audio connection |
| 2861 | input is selected via gpio to a 14052B mux |
| 2862 | (mask=0x300, unbal=0x000, bal=0x100, ??=0x200,0x300) |
| 2863 | gain is controlled via an X9221A chip on the I2C bus @0x28 |
| 2864 | sample rate is controlled via gpio to an MK1413S |
| 2865 | (mask=0x3, 32kHz=0x0, 44.1kHz=0x1, 48kHz=0x2, ??=0x3) |
| 2866 | There is neither a tuner nor an svideo input. */ |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2867 | [BTTV_BOARD_OSPREY440] = { |
| 2868 | .name = "Osprey 440", |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2869 | .video_inputs = 4, |
| 2870 | .audio_inputs = 2, /* this is meaningless */ |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2871 | .tuner = UNSET, |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2872 | .svhs = UNSET, |
| 2873 | .muxsel = { 2, 3, 0, 1 }, /* 3,0,1 are guesses */ |
| 2874 | .gpiomask = 0x303, |
| 2875 | .gpiomute = 0x000, /* int + 32kHz */ |
| 2876 | .gpiomux = { 0, 0, 0x000, 0x100}, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2877 | .pll = PLL_28, |
| 2878 | .tuner_type = UNSET, |
| 2879 | .tuner_addr = ADDR_UNSET, |
| 2880 | .radio_addr = ADDR_UNSET, |
| 2881 | .no_msp34xx = 1, |
| 2882 | .no_tda9875 = 1, |
| 2883 | .no_tda7432 = 1, |
| 2884 | }, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2885 | /* ---- card 0x8d ---------------------------------- */ |
| 2886 | [BTTV_BOARD_ASOUND_SKYEYE] = { |
| 2887 | .name = "Asound Skyeye PCTV", |
| 2888 | .video_inputs = 3, |
| 2889 | .audio_inputs = 1, |
| 2890 | .tuner = 0, |
| 2891 | .svhs = 2, |
| 2892 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2893 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2894 | .gpiomux = { 2, 0, 0, 0 }, |
| 2895 | .gpiomute = 1, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2896 | .needs_tvaudio = 1, |
| 2897 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2898 | .tuner_type = TUNER_PHILIPS_NTSC, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2899 | .tuner_addr = ADDR_UNSET, |
| 2900 | .radio_addr = ADDR_UNSET, |
| 2901 | }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2902 | /* ---- card 0x8e ---------------------------------- */ |
| 2903 | [BTTV_BOARD_SABRENT_TVFM] = { |
| 2904 | .name = "Sabrent TV-FM (bttv version)", |
| 2905 | .video_inputs = 3, |
| 2906 | .audio_inputs = 1, |
| 2907 | .tuner = 0, |
| 2908 | .svhs = 2, |
| 2909 | .gpiomask = 0x108007, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2910 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2911 | .gpiomux = { 100000, 100002, 100002, 100000 }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2912 | .no_msp34xx = 1, |
| 2913 | .no_tda9875 = 1, |
| 2914 | .no_tda7432 = 1, |
| 2915 | .pll = PLL_28, |
| 2916 | .tuner_type = TUNER_TNF_5335MF, |
| 2917 | .tuner_addr = ADDR_UNSET, |
| 2918 | .has_radio = 1, |
| 2919 | }, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2920 | /* ---- card 0x8f ---------------------------------- */ |
| 2921 | [BTTV_BOARD_HAUPPAUGE_IMPACTVCB] = { |
| 2922 | .name = "Hauppauge ImpactVCB (bt878)", |
| 2923 | .video_inputs = 4, |
| 2924 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2925 | .tuner = UNSET, |
| 2926 | .svhs = UNSET, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2927 | .gpiomask = 0x0f, /* old: 7 */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2928 | .muxsel = { 0, 1, 3, 2 }, /* Composite 0-3 */ |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2929 | .no_msp34xx = 1, |
| 2930 | .no_tda9875 = 1, |
| 2931 | .no_tda7432 = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2932 | .tuner_type = UNSET, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2933 | .tuner_addr = ADDR_UNSET, |
| 2934 | .radio_addr = ADDR_UNSET, |
| 2935 | }, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2936 | [BTTV_BOARD_MACHTV_MAGICTV] = { |
| 2937 | /* Julian Calaby <julian.calaby@gmail.com> |
| 2938 | * Slightly different from original MachTV definition (0x60) |
| 2939 | |
| 2940 | * FIXME: RegSpy says gpiomask should be "0x001c800f", but it |
| 2941 | * stuffs up remote chip. Bug is a pin on the jaecs is not set |
| 2942 | * properly (methinks) causing no keyup bits being set */ |
| 2943 | |
| 2944 | .name = "MagicTV", /* rebranded MachTV */ |
| 2945 | .video_inputs = 3, |
| 2946 | .audio_inputs = 1, |
| 2947 | .tuner = 0, |
| 2948 | .svhs = 2, |
| 2949 | .gpiomask = 7, |
| 2950 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2951 | .gpiomux = { 0, 1, 2, 3 }, |
| 2952 | .gpiomute = 4, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2953 | .tuner_type = TUNER_TEMIC_4009FR5_PAL, |
| 2954 | .tuner_addr = ADDR_UNSET, |
| 2955 | .radio_addr = ADDR_UNSET, |
| 2956 | .pll = PLL_28, |
| 2957 | .has_radio = 1, |
| 2958 | .has_remote = 1, |
| 2959 | }, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2960 | [BTTV_BOARD_SSAI_SECURITY] = { |
| 2961 | .name = "SSAI Security Video Interface", |
| 2962 | .video_inputs = 4, |
| 2963 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2964 | .tuner = UNSET, |
| 2965 | .svhs = UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2966 | .muxsel = { 0, 1, 2, 3 }, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2967 | .tuner_type = UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2968 | .tuner_addr = ADDR_UNSET, |
| 2969 | .radio_addr = ADDR_UNSET, |
| 2970 | }, |
| 2971 | [BTTV_BOARD_SSAI_ULTRASOUND] = { |
| 2972 | .name = "SSAI Ultrasound Video Interface", |
| 2973 | .video_inputs = 2, |
| 2974 | .audio_inputs = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2975 | .tuner = UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2976 | .svhs = 1, |
| 2977 | .muxsel = { 2, 0, 1, 3 }, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2978 | .tuner_type = UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2979 | .tuner_addr = ADDR_UNSET, |
| 2980 | .radio_addr = ADDR_UNSET, |
| 2981 | }, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2982 | /* ---- card 0x94---------------------------------- */ |
| 2983 | [BTTV_BOARD_DVICO_FUSIONHDTV_2] = { |
| 2984 | .name = "DViCO FusionHDTV 2", |
| 2985 | .tuner = 0, |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 2986 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2987 | .tuner_addr = ADDR_UNSET, |
| 2988 | .radio_addr = ADDR_UNSET, |
| 2989 | .video_inputs = 3, |
| 2990 | .audio_inputs = 1, |
| 2991 | .svhs = 2, |
| 2992 | .muxsel = { 2, 3, 1 }, |
| 2993 | .gpiomask = 0x00e00007, |
| 2994 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
| 2995 | .gpiomute = 0x00c00007, |
| 2996 | .no_msp34xx = 1, |
| 2997 | .no_tda9875 = 1, |
| 2998 | .no_tda7432 = 1, |
| 2999 | }, |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 3000 | /* ---- card 0x95---------------------------------- */ |
| 3001 | [BTTV_BOARD_TYPHOON_TVTUNERPCI] = { |
| 3002 | .name = "Typhoon TV-Tuner PCI (50684)", |
| 3003 | .video_inputs = 3, |
| 3004 | .audio_inputs = 1, |
| 3005 | .tuner = 0, |
| 3006 | .svhs = 2, |
| 3007 | .gpiomask = 0x3014f, |
| 3008 | .muxsel = { 2, 3, 1, 1 }, |
| 3009 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
| 3010 | .gpiomute = 10, |
| 3011 | .needs_tvaudio = 1, |
| 3012 | .pll = PLL_28, |
| 3013 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 3014 | .tuner_addr = ADDR_UNSET, |
| 3015 | .radio_addr = ADDR_UNSET, |
| 3016 | }, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 3017 | [BTTV_BOARD_GEOVISION_GV600] = { |
| 3018 | /* emhn@usb.ve */ |
| 3019 | .name = "Geovision GV-600", |
| 3020 | .video_inputs = 16, |
| 3021 | .audio_inputs = 0, |
| 3022 | .tuner = UNSET, |
| 3023 | .svhs = UNSET, |
| 3024 | .gpiomask = 0x0, |
| 3025 | .muxsel = { 2, 2, 2, 2, 2, 2, 2, 2, |
| 3026 | 2, 2, 2, 2, 2, 2, 2, 2 }, |
| 3027 | .muxsel_hook = geovision_muxsel, |
| 3028 | .gpiomux = { 0 }, |
| 3029 | .no_msp34xx = 1, |
| 3030 | .pll = PLL_28, |
| 3031 | .tuner_type = UNSET, |
| 3032 | .tuner_addr = ADDR_UNSET, |
| 3033 | .radio_addr = ADDR_UNSET, |
| 3034 | }, |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 3035 | [BTTV_BOARD_KOZUMI_KTV_01C] = { |
| 3036 | /* Mauro Lacy <mauro@lacy.com.ar> |
| 3037 | * Based on MagicTV and Conceptronic CONTVFMi */ |
| 3038 | |
| 3039 | .name = "Kozumi KTV-01C", |
| 3040 | .video_inputs = 3, |
| 3041 | .audio_inputs = 1, |
| 3042 | .tuner = 0, |
| 3043 | .svhs = 2, |
| 3044 | .gpiomask = 0x008007, |
| 3045 | .muxsel = { 2, 3, 1, 1 }, |
| 3046 | .gpiomux = { 0, 1, 2, 2 }, /* CONTVFMi */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 3047 | .gpiomute = 3, /* CONTVFMi */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 3048 | .needs_tvaudio = 0, |
| 3049 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* TCL MK3 */ |
| 3050 | .tuner_addr = ADDR_UNSET, |
| 3051 | .radio_addr = ADDR_UNSET, |
| 3052 | .pll = PLL_28, |
| 3053 | .has_radio = 1, |
| 3054 | .has_remote = 1, |
| 3055 | }, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 3056 | [BTTV_BOARD_ENLTV_FM_2] = { |
| 3057 | /* Encore TV Tuner Pro ENL TV-FM-2 |
| 3058 | Mauro Carvalho Chehab <mchehab@infradead.org */ |
| 3059 | .name = "Encore ENL TV-FM-2", |
| 3060 | .video_inputs = 3, |
| 3061 | .audio_inputs = 1, |
| 3062 | .tuner = 0, |
| 3063 | .svhs = 2, |
| 3064 | /* bit 6 -> IR disabled |
| 3065 | bit 18/17 = 00 -> mute |
| 3066 | 01 -> enable external audio input |
| 3067 | 10 -> internal audio input (mono?) |
| 3068 | 11 -> internal audio input |
| 3069 | */ |
| 3070 | .gpiomask = 0x060040, |
| 3071 | .muxsel = { 2, 3, 3 }, |
| 3072 | .gpiomux = { 0x60000, 0x60000, 0x20000, 0x20000 }, |
| 3073 | .gpiomute = 0, |
| 3074 | .tuner_type = TUNER_TCL_MF02GIP_5N, |
| 3075 | .tuner_addr = ADDR_UNSET, |
| 3076 | .radio_addr = ADDR_UNSET, |
| 3077 | .pll = PLL_28, |
| 3078 | .has_radio = 1, |
| 3079 | .has_remote = 1, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 3080 | }, |
| 3081 | [BTTV_BOARD_VD012] = { |
| 3082 | /* D.Heer@Phytec.de */ |
| 3083 | .name = "PHYTEC VD-012 (bt878)", |
| 3084 | .video_inputs = 4, |
| 3085 | .audio_inputs = 0, |
| 3086 | .tuner = UNSET, /* card has no tuner */ |
| 3087 | .svhs = UNSET, /* card has no s-video */ |
| 3088 | .gpiomask = 0x00, |
| 3089 | .muxsel = { 0, 2, 3, 1 }, |
| 3090 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
| 3091 | .needs_tvaudio = 0, |
| 3092 | .pll = PLL_28, |
| 3093 | .tuner_type = UNSET, |
| 3094 | .tuner_addr = ADDR_UNSET, |
| 3095 | .radio_addr = ADDR_UNSET, |
| 3096 | }, |
| 3097 | [BTTV_BOARD_VD012_X1] = { |
| 3098 | /* D.Heer@Phytec.de */ |
| 3099 | .name = "PHYTEC VD-012-X1 (bt878)", |
| 3100 | .video_inputs = 4, |
| 3101 | .audio_inputs = 0, |
| 3102 | .tuner = UNSET, /* card has no tuner */ |
| 3103 | .svhs = 3, |
| 3104 | .gpiomask = 0x00, |
| 3105 | .muxsel = { 2, 3, 1 }, |
| 3106 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
| 3107 | .needs_tvaudio = 0, |
| 3108 | .pll = PLL_28, |
| 3109 | .tuner_type = UNSET, |
| 3110 | .tuner_addr = ADDR_UNSET, |
| 3111 | .radio_addr = ADDR_UNSET, |
| 3112 | }, |
| 3113 | [BTTV_BOARD_VD012_X2] = { |
| 3114 | /* D.Heer@Phytec.de */ |
| 3115 | .name = "PHYTEC VD-012-X2 (bt878)", |
| 3116 | .video_inputs = 4, |
| 3117 | .audio_inputs = 0, |
| 3118 | .tuner = UNSET, /* card has no tuner */ |
| 3119 | .svhs = 3, |
| 3120 | .gpiomask = 0x00, |
| 3121 | .muxsel = { 3, 2, 1 }, |
| 3122 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
| 3123 | .needs_tvaudio = 0, |
| 3124 | .pll = PLL_28, |
| 3125 | .tuner_type = UNSET, |
| 3126 | .tuner_addr = ADDR_UNSET, |
| 3127 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 3128 | } |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 3129 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3130 | |
| 3131 | static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards); |
| 3132 | |
| 3133 | /* ----------------------------------------------------------------------- */ |
| 3134 | |
| 3135 | static unsigned char eeprom_data[256]; |
| 3136 | |
| 3137 | /* |
| 3138 | * identify card |
| 3139 | */ |
| 3140 | void __devinit bttv_idcard(struct bttv *btv) |
| 3141 | { |
| 3142 | unsigned int gpiobits; |
| 3143 | int i,type; |
| 3144 | unsigned short tmp; |
| 3145 | |
| 3146 | /* read PCI subsystem ID */ |
| 3147 | pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_ID, &tmp); |
| 3148 | btv->cardid = tmp << 16; |
| 3149 | pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_VENDOR_ID, &tmp); |
| 3150 | btv->cardid |= tmp; |
| 3151 | |
| 3152 | if (0 != btv->cardid && 0xffffffff != btv->cardid) { |
| 3153 | /* look for the card */ |
| 3154 | for (type = -1, i = 0; cards[i].id != 0; i++) |
| 3155 | if (cards[i].id == btv->cardid) |
| 3156 | type = i; |
| 3157 | |
| 3158 | if (type != -1) { |
| 3159 | /* found it */ |
| 3160 | printk(KERN_INFO "bttv%d: detected: %s [card=%d], " |
| 3161 | "PCI subsystem ID is %04x:%04x\n", |
| 3162 | btv->c.nr,cards[type].name,cards[type].cardnr, |
| 3163 | btv->cardid & 0xffff, |
| 3164 | (btv->cardid >> 16) & 0xffff); |
| 3165 | btv->c.type = cards[type].cardnr; |
| 3166 | } else { |
| 3167 | /* 404 */ |
| 3168 | printk(KERN_INFO "bttv%d: subsystem: %04x:%04x (UNKNOWN)\n", |
| 3169 | btv->c.nr, btv->cardid & 0xffff, |
| 3170 | (btv->cardid >> 16) & 0xffff); |
| 3171 | printk(KERN_DEBUG "please mail id, board name and " |
Michael Krufky | 2a2d857 | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 3172 | "the correct card= insmod option to video4linux-list@redhat.com\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3173 | } |
| 3174 | } |
| 3175 | |
| 3176 | /* let the user override the autodetected type */ |
| 3177 | if (card[btv->c.nr] < bttv_num_tvcards) |
| 3178 | btv->c.type=card[btv->c.nr]; |
| 3179 | |
| 3180 | /* print which card config we are using */ |
| 3181 | printk(KERN_INFO "bttv%d: using: %s [card=%d,%s]\n",btv->c.nr, |
| 3182 | bttv_tvcards[btv->c.type].name, btv->c.type, |
| 3183 | card[btv->c.nr] < bttv_num_tvcards |
| 3184 | ? "insmod option" : "autodetected"); |
| 3185 | |
| 3186 | /* overwrite gpio stuff ?? */ |
| 3187 | if (UNSET == audioall && UNSET == audiomux[0]) |
| 3188 | return; |
| 3189 | |
| 3190 | if (UNSET != audiomux[0]) { |
| 3191 | gpiobits = 0; |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 3192 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 3193 | bttv_tvcards[btv->c.type].gpiomux[i] = audiomux[i]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3194 | gpiobits |= audiomux[i]; |
| 3195 | } |
| 3196 | } else { |
| 3197 | gpiobits = audioall; |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 3198 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 3199 | bttv_tvcards[btv->c.type].gpiomux[i] = audioall; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3200 | } |
| 3201 | } |
| 3202 | bttv_tvcards[btv->c.type].gpiomask = (UNSET != gpiomask) ? gpiomask : gpiobits; |
| 3203 | printk(KERN_INFO "bttv%d: gpio config override: mask=0x%x, mux=", |
| 3204 | btv->c.nr,bttv_tvcards[btv->c.type].gpiomask); |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 3205 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 3206 | printk("%s0x%x", i ? "," : "", bttv_tvcards[btv->c.type].gpiomux[i]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3207 | } |
| 3208 | printk("\n"); |
| 3209 | } |
| 3210 | |
| 3211 | /* |
| 3212 | * (most) board specific initialisations goes here |
| 3213 | */ |
| 3214 | |
| 3215 | /* Some Modular Technology cards have an eeprom, but no subsystem ID */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 3216 | static void identify_by_eeprom(struct bttv *btv, unsigned char eeprom_data[256]) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3217 | { |
| 3218 | int type = -1; |
| 3219 | |
| 3220 | if (0 == strncmp(eeprom_data,"GET MM20xPCTV",13)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3221 | type = BTTV_BOARD_MODTEC_205; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3222 | else if (0 == strncmp(eeprom_data+20,"Picolo",7)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3223 | type = BTTV_BOARD_EURESYS_PICOLO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3224 | else if (eeprom_data[0] == 0x84 && eeprom_data[2]== 0) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3225 | type = BTTV_BOARD_HAUPPAUGE; /* old bt848 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3226 | |
| 3227 | if (-1 != type) { |
| 3228 | btv->c.type = type; |
| 3229 | printk("bttv%d: detected by eeprom: %s [card=%d]\n", |
| 3230 | btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type); |
| 3231 | } |
| 3232 | } |
| 3233 | |
| 3234 | static void flyvideo_gpio(struct bttv *btv) |
| 3235 | { |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3236 | int gpio, has_remote, has_radio, is_capture_only; |
| 3237 | int is_lr90, has_tda9820_tda9821; |
| 3238 | int tuner_type = UNSET, ttype; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3239 | |
| 3240 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3241 | udelay(8); /* without this we would see the 0x1800 mask */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3242 | gpio = gpio_read(); |
| 3243 | /* FIXME: must restore OUR_EN ??? */ |
| 3244 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3245 | /* all cards provide GPIO info, some have an additional eeprom |
| 3246 | * LR50: GPIO coding can be found lower right CP1 .. CP9 |
| 3247 | * CP9=GPIO23 .. CP1=GPIO15; when OPEN, the corresponding GPIO reads 1. |
| 3248 | * GPIO14-12: n.c. |
| 3249 | * LR90: GP9=GPIO23 .. GP1=GPIO15 (right above the bt878) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3250 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3251 | * lowest 3 bytes are remote control codes (no handshake needed) |
| 3252 | * xxxFFF: No remote control chip soldered |
| 3253 | * xxxF00(LR26/LR50), xxxFE0(LR90): Remote control chip (LVA001 or CF45) soldered |
| 3254 | * Note: Some bits are Audio_Mask ! |
| 3255 | */ |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3256 | ttype = (gpio & 0x0f0000) >> 16; |
| 3257 | switch (ttype) { |
| 3258 | case 0x0: |
| 3259 | tuner_type = 2; /* NTSC, e.g. TPI8NSR11P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3260 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3261 | case 0x2: |
| 3262 | tuner_type = 39; /* LG NTSC (newer TAPC series) TAPC-H701P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3263 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3264 | case 0x4: |
| 3265 | tuner_type = 5; /* Philips PAL TPI8PSB02P, TPI8PSB12P, TPI8PSB12D or FI1216, FM1216 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3266 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3267 | case 0x6: |
| 3268 | tuner_type = 37; /* LG PAL (newer TAPC series) TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3269 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3270 | case 0xC: |
| 3271 | tuner_type = 3; /* Philips SECAM(+PAL) FQ1216ME or FI1216MF */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3272 | break; |
| 3273 | default: |
| 3274 | printk(KERN_INFO "bttv%d: FlyVideo_gpio: unknown tuner type.\n", btv->c.nr); |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3275 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3276 | } |
| 3277 | |
| 3278 | has_remote = gpio & 0x800000; |
| 3279 | has_radio = gpio & 0x400000; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3280 | /* unknown 0x200000; |
| 3281 | * unknown2 0x100000; */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3282 | is_capture_only = !(gpio & 0x008000); /* GPIO15 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3283 | has_tda9820_tda9821 = !(gpio & 0x004000); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3284 | is_lr90 = !(gpio & 0x002000); /* else LR26/LR50 (LR38/LR51 f. capture only) */ |
| 3285 | /* |
| 3286 | * gpio & 0x001000 output bit for audio routing */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3287 | |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3288 | if (is_capture_only) |
| 3289 | tuner_type = TUNER_ABSENT; /* No tuner present */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3290 | |
| 3291 | printk(KERN_INFO "bttv%d: FlyVideo Radio=%s RemoteControl=%s Tuner=%d gpio=0x%06x\n", |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3292 | btv->c.nr, has_radio ? "yes" : "no ", |
| 3293 | has_remote ? "yes" : "no ", tuner_type, gpio); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3294 | printk(KERN_INFO "bttv%d: FlyVideo LR90=%s tda9821/tda9820=%s capture_only=%s\n", |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3295 | btv->c.nr, is_lr90 ? "yes" : "no ", |
| 3296 | has_tda9820_tda9821 ? "yes" : "no ", |
| 3297 | is_capture_only ? "yes" : "no "); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3298 | |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3299 | if (tuner_type != UNSET) /* only set if known tuner autodetected, else let insmod option through */ |
| 3300 | btv->tuner_type = tuner_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3301 | btv->has_radio = has_radio; |
| 3302 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3303 | /* LR90 Audio Routing is done by 2 hef4052, so Audio_Mask has 4 bits: 0x001c80 |
| 3304 | * LR26/LR50 only has 1 hef4052, Audio_Mask 0x000c00 |
| 3305 | * Audio options: from tuner, from tda9821/tda9821(mono,stereo,sap), from tda9874, ext., mute */ |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3306 | if (has_tda9820_tda9821) |
| 3307 | btv->audio_mode_gpio = lt9415_audio; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 3308 | /* todo: if(has_tda9874) btv->audio_mode_gpio = fv2000s_audio; */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3309 | } |
| 3310 | |
| 3311 | static int miro_tunermap[] = { 0,6,2,3, 4,5,6,0, 3,0,4,5, 5,2,16,1, |
| 3312 | 14,2,17,1, 4,1,4,3, 1,2,16,1, 4,4,4,4 }; |
| 3313 | static int miro_fmtuner[] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1, |
| 3314 | 1,1,1,1, 1,1,1,0, 0,0,0,0, 0,1,0,0 }; |
| 3315 | |
| 3316 | static void miro_pinnacle_gpio(struct bttv *btv) |
| 3317 | { |
| 3318 | int id,msp,gpio; |
| 3319 | char *info; |
| 3320 | |
| 3321 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3322 | gpio = gpio_read(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3323 | id = ((gpio>>10) & 63) -1; |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3324 | msp = bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3325 | if (id < 32) { |
| 3326 | btv->tuner_type = miro_tunermap[id]; |
| 3327 | if (0 == (gpio & 0x20)) { |
| 3328 | btv->has_radio = 1; |
| 3329 | if (!miro_fmtuner[id]) { |
| 3330 | btv->has_matchbox = 1; |
| 3331 | btv->mbox_we = (1<<6); |
| 3332 | btv->mbox_most = (1<<7); |
| 3333 | btv->mbox_clk = (1<<8); |
| 3334 | btv->mbox_data = (1<<9); |
| 3335 | btv->mbox_mask = (1<<6)|(1<<7)|(1<<8)|(1<<9); |
| 3336 | } |
| 3337 | } else { |
| 3338 | btv->has_radio = 0; |
| 3339 | } |
| 3340 | if (-1 != msp) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3341 | if (btv->c.type == BTTV_BOARD_MIRO) |
| 3342 | btv->c.type = BTTV_BOARD_MIROPRO; |
| 3343 | if (btv->c.type == BTTV_BOARD_PINNACLE) |
| 3344 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3345 | } |
| 3346 | printk(KERN_INFO |
| 3347 | "bttv%d: miro: id=%d tuner=%d radio=%s stereo=%s\n", |
| 3348 | btv->c.nr, id+1, btv->tuner_type, |
| 3349 | !btv->has_radio ? "no" : |
| 3350 | (btv->has_matchbox ? "matchbox" : "fmtuner"), |
| 3351 | (-1 == msp) ? "no" : "yes"); |
| 3352 | } else { |
| 3353 | /* new cards with microtune tuner */ |
| 3354 | id = 63 - id; |
| 3355 | btv->has_radio = 0; |
| 3356 | switch (id) { |
| 3357 | case 1: |
| 3358 | info = "PAL / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3359 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3360 | break; |
| 3361 | case 2: |
| 3362 | info = "PAL+SECAM / stereo"; |
| 3363 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3364 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3365 | break; |
| 3366 | case 3: |
| 3367 | info = "NTSC / stereo"; |
| 3368 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3369 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3370 | break; |
| 3371 | case 4: |
| 3372 | info = "PAL+SECAM / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3373 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3374 | break; |
| 3375 | case 5: |
| 3376 | info = "NTSC / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3377 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3378 | break; |
| 3379 | case 6: |
| 3380 | info = "NTSC / stereo"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3381 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3382 | break; |
| 3383 | case 7: |
| 3384 | info = "PAL / stereo"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3385 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3386 | break; |
| 3387 | default: |
| 3388 | info = "oops: unknown card"; |
| 3389 | break; |
| 3390 | } |
| 3391 | if (-1 != msp) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3392 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3393 | printk(KERN_INFO |
| 3394 | "bttv%d: pinnacle/mt: id=%d info=\"%s\" radio=%s\n", |
| 3395 | btv->c.nr, id, info, btv->has_radio ? "yes" : "no"); |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3396 | btv->tuner_type = TUNER_MT2032; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3397 | } |
| 3398 | } |
| 3399 | |
| 3400 | /* GPIO21 L: Buffer aktiv, H: Buffer inaktiv */ |
| 3401 | #define LM1882_SYNC_DRIVE 0x200000L |
| 3402 | |
| 3403 | static void init_ids_eagle(struct bttv *btv) |
| 3404 | { |
| 3405 | gpio_inout(0xffffff,0xFFFF37); |
| 3406 | gpio_write(0x200020); |
| 3407 | |
| 3408 | /* flash strobe inverter ?! */ |
| 3409 | gpio_write(0x200024); |
| 3410 | |
| 3411 | /* switch sync drive off */ |
| 3412 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
| 3413 | |
| 3414 | /* set BT848 muxel to 2 */ |
| 3415 | btaor((2)<<5, ~(2<<5), BT848_IFORM); |
| 3416 | } |
| 3417 | |
| 3418 | /* Muxsel helper for the IDS Eagle. |
| 3419 | * the eagles does not use the standard muxsel-bits but |
| 3420 | * has its own multiplexer */ |
| 3421 | static void eagle_muxsel(struct bttv *btv, unsigned int input) |
| 3422 | { |
| 3423 | btaor((2)<<5, ~(3<<5), BT848_IFORM); |
| 3424 | gpio_bits(3,bttv_tvcards[btv->c.type].muxsel[input&7]); |
| 3425 | |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3426 | /* composite */ |
| 3427 | /* set chroma ADC to sleep */ |
| 3428 | btor(BT848_ADC_C_SLEEP, BT848_ADC); |
| 3429 | /* set to composite video */ |
| 3430 | btand(~BT848_CONTROL_COMP, BT848_E_CONTROL); |
| 3431 | btand(~BT848_CONTROL_COMP, BT848_O_CONTROL); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3432 | |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3433 | /* switch sync drive off */ |
| 3434 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3435 | } |
| 3436 | |
| 3437 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input) |
| 3438 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3439 | static const int masks[] = {0x30, 0x01, 0x12, 0x23}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3440 | gpio_write(masks[input%4]); |
| 3441 | } |
| 3442 | |
| 3443 | /* LMLBT4x initialization - to allow access to GPIO bits for sensors input and |
| 3444 | alarms output |
| 3445 | |
| 3446 | GPIObit | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| 3447 | assignment | TI | O3|INx| O2| O1|IN4|IN3|IN2|IN1| | | |
| 3448 | |
| 3449 | IN - sensor inputs, INx - sensor inputs and TI XORed together |
| 3450 | O1,O2,O3 - alarm outputs (relays) |
| 3451 | |
| 3452 | OUT ENABLE 1 1 0 . 1 1 0 0 . 0 0 0 0 = 0x6C0 |
| 3453 | |
| 3454 | */ |
| 3455 | |
| 3456 | static void init_lmlbt4x(struct bttv *btv) |
| 3457 | { |
| 3458 | printk(KERN_DEBUG "LMLBT4x init\n"); |
| 3459 | btwrite(0x000000, BT848_GPIO_REG_INP); |
| 3460 | gpio_inout(0xffffff, 0x0006C0); |
| 3461 | gpio_write(0x000000); |
| 3462 | } |
| 3463 | |
| 3464 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input) |
| 3465 | { |
| 3466 | unsigned int inmux = input % 8; |
| 3467 | gpio_inout( 0xf, 0xf ); |
| 3468 | gpio_bits( 0xf, inmux ); |
| 3469 | } |
| 3470 | |
| 3471 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input) |
| 3472 | { |
| 3473 | unsigned int inmux = input % 4; |
| 3474 | gpio_inout( 3<<9, 3<<9 ); |
| 3475 | gpio_bits( 3<<9, inmux<<9 ); |
| 3476 | } |
| 3477 | |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 3478 | static void geovision_muxsel(struct bttv *btv, unsigned int input) |
| 3479 | { |
| 3480 | unsigned int inmux = input % 16; |
| 3481 | gpio_inout(0xf, 0xf); |
| 3482 | gpio_bits(0xf, inmux); |
| 3483 | } |
| 3484 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3485 | /* ----------------------------------------------------------------------- */ |
| 3486 | |
| 3487 | static void bttv_reset_audio(struct bttv *btv) |
| 3488 | { |
| 3489 | /* |
| 3490 | * BT878A has a audio-reset register. |
| 3491 | * 1. This register is an audio reset function but it is in |
| 3492 | * function-0 (video capture) address space. |
| 3493 | * 2. It is enough to do this once per power-up of the card. |
| 3494 | * 3. There is a typo in the Conexant doc -- it is not at |
| 3495 | * 0x5B, but at 0x058. (B is an odd-number, obviously a typo!). |
| 3496 | * --//Shrikumar 030609 |
| 3497 | */ |
| 3498 | if (btv->id != 878) |
| 3499 | return; |
| 3500 | |
| 3501 | if (bttv_debug) |
| 3502 | printk("bttv%d: BT878A ARESET\n",btv->c.nr); |
| 3503 | btwrite((1<<7), 0x058); |
| 3504 | udelay(10); |
| 3505 | btwrite( 0, 0x058); |
| 3506 | } |
| 3507 | |
| 3508 | /* initialization part one -- before registering i2c bus */ |
| 3509 | void __devinit bttv_init_card1(struct bttv *btv) |
| 3510 | { |
| 3511 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3512 | case BTTV_BOARD_HAUPPAUGE: |
| 3513 | case BTTV_BOARD_HAUPPAUGE878: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3514 | boot_msp34xx(btv,5); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3515 | break; |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 3516 | case BTTV_BOARD_VOODOOTV_200: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3517 | case BTTV_BOARD_VOODOOTV_FM: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3518 | boot_msp34xx(btv,20); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3519 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3520 | case BTTV_BOARD_AVERMEDIA98: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3521 | boot_msp34xx(btv,11); |
| 3522 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3523 | case BTTV_BOARD_HAUPPAUGEPVR: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3524 | pvr_boot(btv); |
| 3525 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3526 | case BTTV_BOARD_TWINHAN_DST: |
| 3527 | case BTTV_BOARD_AVDVBT_771: |
| 3528 | case BTTV_BOARD_PINNACLESAT: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3529 | btv->use_i2c_hw = 1; |
| 3530 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3531 | case BTTV_BOARD_ADLINK_RTV24: |
Michael Krufky | 7c08fb0 | 2005-11-08 21:36:21 -0800 | [diff] [blame] | 3532 | init_RTV24( btv ); |
| 3533 | break; |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 3534 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3535 | } |
| 3536 | if (!bttv_tvcards[btv->c.type].has_dvb) |
| 3537 | bttv_reset_audio(btv); |
| 3538 | } |
| 3539 | |
| 3540 | /* initialization part two -- after registering i2c bus */ |
| 3541 | void __devinit bttv_init_card2(struct bttv *btv) |
| 3542 | { |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3543 | int addr=ADDR_UNSET; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3544 | |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3545 | btv->tuner_type = UNSET; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3546 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3547 | if (BTTV_BOARD_UNKNOWN == btv->c.type) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3548 | bttv_readee(btv,eeprom_data,0xa0); |
| 3549 | identify_by_eeprom(btv,eeprom_data); |
| 3550 | } |
| 3551 | |
| 3552 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3553 | case BTTV_BOARD_MIRO: |
| 3554 | case BTTV_BOARD_MIROPRO: |
| 3555 | case BTTV_BOARD_PINNACLE: |
| 3556 | case BTTV_BOARD_PINNACLEPRO: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3557 | /* miro/pinnacle */ |
| 3558 | miro_pinnacle_gpio(btv); |
| 3559 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3560 | case BTTV_BOARD_FLYVIDEO_98: |
| 3561 | case BTTV_BOARD_MAXI: |
| 3562 | case BTTV_BOARD_LIFE_FLYKIT: |
| 3563 | case BTTV_BOARD_FLYVIDEO: |
| 3564 | case BTTV_BOARD_TYPHOON_TVIEW: |
| 3565 | case BTTV_BOARD_CHRONOS_VS2: |
| 3566 | case BTTV_BOARD_FLYVIDEO_98FM: |
| 3567 | case BTTV_BOARD_FLYVIDEO2000: |
| 3568 | case BTTV_BOARD_FLYVIDEO98EZ: |
| 3569 | case BTTV_BOARD_CONFERENCETV: |
| 3570 | case BTTV_BOARD_LIFETEC_9415: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3571 | flyvideo_gpio(btv); |
| 3572 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3573 | case BTTV_BOARD_HAUPPAUGE: |
| 3574 | case BTTV_BOARD_HAUPPAUGE878: |
| 3575 | case BTTV_BOARD_HAUPPAUGEPVR: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3576 | /* pick up some config infos from the eeprom */ |
| 3577 | bttv_readee(btv,eeprom_data,0xa0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3578 | hauppauge_eeprom(btv); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3579 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3580 | case BTTV_BOARD_AVERMEDIA98: |
| 3581 | case BTTV_BOARD_AVPHONE98: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3582 | bttv_readee(btv,eeprom_data,0xa0); |
| 3583 | avermedia_eeprom(btv); |
| 3584 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3585 | case BTTV_BOARD_PXC200: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3586 | init_PXC200(btv); |
| 3587 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3588 | case BTTV_BOARD_PICOLO_TETRA_CHIP: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3589 | picolo_tetra_init(btv); |
| 3590 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3591 | case BTTV_BOARD_VHX: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3592 | btv->has_radio = 1; |
| 3593 | btv->has_matchbox = 1; |
| 3594 | btv->mbox_we = 0x20; |
| 3595 | btv->mbox_most = 0; |
| 3596 | btv->mbox_clk = 0x08; |
| 3597 | btv->mbox_data = 0x10; |
| 3598 | btv->mbox_mask = 0x38; |
| 3599 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3600 | case BTTV_BOARD_VOBIS_BOOSTAR: |
| 3601 | case BTTV_BOARD_TERRATV: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3602 | terratec_active_radio_upgrade(btv); |
| 3603 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3604 | case BTTV_BOARD_MAGICTVIEW061: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3605 | if (btv->cardid == 0x3002144f) { |
| 3606 | btv->has_radio=1; |
| 3607 | printk("bttv%d: radio detected by subsystem id (CPH05x)\n",btv->c.nr); |
| 3608 | } |
| 3609 | break; |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3610 | case BTTV_BOARD_STB2: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3611 | if (btv->cardid == 0x3060121a) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3612 | /* Fix up entry for 3DFX VoodooTV 100, |
| 3613 | which is an OEM STB card variant. */ |
| 3614 | btv->has_radio=0; |
| 3615 | btv->tuner_type=TUNER_TEMIC_NTSC; |
| 3616 | } |
| 3617 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3618 | case BTTV_BOARD_OSPREY1x0: |
| 3619 | case BTTV_BOARD_OSPREY1x0_848: |
| 3620 | case BTTV_BOARD_OSPREY101_848: |
| 3621 | case BTTV_BOARD_OSPREY1x1: |
| 3622 | case BTTV_BOARD_OSPREY1x1_SVID: |
| 3623 | case BTTV_BOARD_OSPREY2xx: |
| 3624 | case BTTV_BOARD_OSPREY2x0_SVID: |
| 3625 | case BTTV_BOARD_OSPREY2x0: |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3626 | case BTTV_BOARD_OSPREY440: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3627 | case BTTV_BOARD_OSPREY500: |
| 3628 | case BTTV_BOARD_OSPREY540: |
| 3629 | case BTTV_BOARD_OSPREY2000: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3630 | bttv_readee(btv,eeprom_data,0xa0); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3631 | osprey_eeprom(btv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3632 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3633 | case BTTV_BOARD_IDS_EAGLE: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3634 | init_ids_eagle(btv); |
| 3635 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3636 | case BTTV_BOARD_MODTEC_205: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3637 | bttv_readee(btv,eeprom_data,0xa0); |
| 3638 | modtec_eeprom(btv); |
| 3639 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3640 | case BTTV_BOARD_LMLBT4: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3641 | init_lmlbt4x(btv); |
| 3642 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3643 | case BTTV_BOARD_TIBET_CS16: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3644 | tibetCS16_init(btv); |
| 3645 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3646 | case BTTV_BOARD_KODICOM_4400R: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3647 | kodicom4400r_init(btv); |
| 3648 | break; |
| 3649 | } |
| 3650 | |
| 3651 | /* pll configuration */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3652 | if (!(btv->id==848 && btv->revision==0x11)) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3653 | /* defaults from card list */ |
| 3654 | if (PLL_28 == bttv_tvcards[btv->c.type].pll) { |
| 3655 | btv->pll.pll_ifreq=28636363; |
| 3656 | btv->pll.pll_crystal=BT848_IFORM_XT0; |
| 3657 | } |
| 3658 | if (PLL_35 == bttv_tvcards[btv->c.type].pll) { |
| 3659 | btv->pll.pll_ifreq=35468950; |
| 3660 | btv->pll.pll_crystal=BT848_IFORM_XT1; |
| 3661 | } |
| 3662 | /* insmod options can override */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3663 | switch (pll[btv->c.nr]) { |
| 3664 | case 0: /* none */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3665 | btv->pll.pll_crystal = 0; |
| 3666 | btv->pll.pll_ifreq = 0; |
| 3667 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3668 | break; |
| 3669 | case 1: /* 28 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3670 | case 28: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3671 | btv->pll.pll_ifreq = 28636363; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3672 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3673 | btv->pll.pll_crystal = BT848_IFORM_XT0; |
| 3674 | break; |
| 3675 | case 2: /* 35 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3676 | case 35: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3677 | btv->pll.pll_ifreq = 35468950; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3678 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3679 | btv->pll.pll_crystal = BT848_IFORM_XT1; |
| 3680 | break; |
| 3681 | } |
| 3682 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3683 | btv->pll.pll_current = -1; |
| 3684 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3685 | /* tuner configuration (from card list / autodetect / insmod option) */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3686 | if (ADDR_UNSET != bttv_tvcards[btv->c.type].tuner_addr) |
| 3687 | addr = bttv_tvcards[btv->c.type].tuner_addr; |
| 3688 | |
| 3689 | if (UNSET != bttv_tvcards[btv->c.type].tuner_type) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3690 | if(UNSET == btv->tuner_type) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3691 | btv->tuner_type = bttv_tvcards[btv->c.type].tuner_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3692 | if (UNSET != tuner[btv->c.nr]) |
| 3693 | btv->tuner_type = tuner[btv->c.nr]; |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3694 | |
| 3695 | if (btv->tuner_type == TUNER_ABSENT || |
| 3696 | bttv_tvcards[btv->c.type].tuner == UNSET) |
| 3697 | printk(KERN_INFO "bttv%d: tuner absent\n", btv->c.nr); |
| 3698 | else if(btv->tuner_type == UNSET) |
| 3699 | printk(KERN_WARNING "bttv%d: tuner type unset\n", btv->c.nr); |
| 3700 | else |
| 3701 | printk(KERN_INFO "bttv%d: tuner type=%d\n", btv->c.nr, |
| 3702 | btv->tuner_type); |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3703 | |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3704 | if (btv->tuner_type != UNSET) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3705 | struct tuner_setup tun_setup; |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3706 | |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3707 | tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV; |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3708 | tun_setup.type = btv->tuner_type; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3709 | tun_setup.addr = addr; |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3710 | |
| 3711 | bttv_call_i2c_clients(btv, TUNER_SET_TYPE_ADDR, &tun_setup); |
| 3712 | } |
| 3713 | |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3714 | if (btv->tda9887_conf) { |
Mauro Carvalho Chehab | 7f17112 | 2007-10-18 19:56:47 -0300 | [diff] [blame] | 3715 | struct v4l2_priv_tun_config tda9887_cfg; |
| 3716 | |
| 3717 | tda9887_cfg.tuner = TUNER_TDA9887; |
| 3718 | tda9887_cfg.priv = &btv->tda9887_conf; |
| 3719 | |
| 3720 | bttv_call_i2c_clients(btv, TUNER_SET_CONFIG, &tda9887_cfg); |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3721 | } |
| 3722 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3723 | btv->svhs = bttv_tvcards[btv->c.type].svhs; |
| 3724 | if (svhs[btv->c.nr] != UNSET) |
| 3725 | btv->svhs = svhs[btv->c.nr]; |
| 3726 | if (remote[btv->c.nr] != UNSET) |
| 3727 | btv->has_remote = remote[btv->c.nr]; |
| 3728 | |
| 3729 | if (bttv_tvcards[btv->c.type].has_radio) |
| 3730 | btv->has_radio=1; |
| 3731 | if (bttv_tvcards[btv->c.type].has_remote) |
| 3732 | btv->has_remote=1; |
Michael Krufky | 7c08fb0 | 2005-11-08 21:36:21 -0800 | [diff] [blame] | 3733 | if (!bttv_tvcards[btv->c.type].no_gpioirq) |
| 3734 | btv->gpioirq=1; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 3735 | if (bttv_tvcards[btv->c.type].volume_gpio) |
| 3736 | btv->volume_gpio=bttv_tvcards[btv->c.type].volume_gpio; |
| 3737 | if (bttv_tvcards[btv->c.type].audio_mode_gpio) |
| 3738 | btv->audio_mode_gpio=bttv_tvcards[btv->c.type].audio_mode_gpio; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3739 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3740 | if (!autoload) |
| 3741 | return; |
| 3742 | |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3743 | if (bttv_tvcards[btv->c.type].tuner == UNSET) |
| 3744 | return; /* no tuner or related drivers to load */ |
| 3745 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3746 | /* try to detect audio/fader chips */ |
| 3747 | if (!bttv_tvcards[btv->c.type].no_msp34xx && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3748 | bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3749 | request_module("msp3400"); |
| 3750 | |
| 3751 | if (bttv_tvcards[btv->c.type].msp34xx_alt && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3752 | bttv_I2CRead(btv, I2C_ADDR_MSP3400_ALT, "MSP34xx (alternate address)") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3753 | request_module("msp3400"); |
| 3754 | |
| 3755 | if (!bttv_tvcards[btv->c.type].no_tda9875 && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3756 | bttv_I2CRead(btv, I2C_ADDR_TDA9875, "TDA9875") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3757 | request_module("tda9875"); |
| 3758 | |
| 3759 | if (!bttv_tvcards[btv->c.type].no_tda7432 && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3760 | bttv_I2CRead(btv, I2C_ADDR_TDA7432, "TDA7432") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3761 | request_module("tda7432"); |
| 3762 | |
| 3763 | if (bttv_tvcards[btv->c.type].needs_tvaudio) |
| 3764 | request_module("tvaudio"); |
| 3765 | |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3766 | if (btv->tuner_type != UNSET && btv->tuner_type != TUNER_ABSENT) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3767 | request_module("tuner"); |
| 3768 | } |
| 3769 | |
| 3770 | |
| 3771 | /* ----------------------------------------------------------------------- */ |
| 3772 | |
| 3773 | static void modtec_eeprom(struct bttv *btv) |
| 3774 | { |
| 3775 | if( strncmp(&(eeprom_data[0x1e]),"Temic 4066 FY5",14) ==0) { |
| 3776 | btv->tuner_type=TUNER_TEMIC_4066FY5_PAL_I; |
| 3777 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3778 | btv->c.nr,&eeprom_data[0x1e]); |
| 3779 | } else if (strncmp(&(eeprom_data[0x1e]),"Alps TSBB5",10) ==0) { |
| 3780 | btv->tuner_type=TUNER_ALPS_TSBB5_PAL_I; |
| 3781 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3782 | btv->c.nr,&eeprom_data[0x1e]); |
| 3783 | } else if (strncmp(&(eeprom_data[0x1e]),"Philips FM1246",14) ==0) { |
| 3784 | btv->tuner_type=TUNER_PHILIPS_NTSC; |
| 3785 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3786 | btv->c.nr,&eeprom_data[0x1e]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3787 | } else { |
| 3788 | printk("bttv%d: Modtec: Unknown TunerString: %s\n", |
| 3789 | btv->c.nr,&eeprom_data[0x1e]); |
| 3790 | } |
| 3791 | } |
| 3792 | |
| 3793 | static void __devinit hauppauge_eeprom(struct bttv *btv) |
| 3794 | { |
| 3795 | struct tveeprom tv; |
| 3796 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 3797 | tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3798 | btv->tuner_type = tv.tuner_type; |
| 3799 | btv->has_radio = tv.has_radio; |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 3800 | |
| 3801 | printk("bttv%d: Hauppauge eeprom indicates model#%d\n", |
| 3802 | btv->c.nr, tv.model); |
| 3803 | |
| 3804 | /* |
| 3805 | * Some of the 878 boards have duplicate PCI IDs. Switch the board |
| 3806 | * type based on model #. |
| 3807 | */ |
| 3808 | if(tv.model == 64900) { |
| 3809 | printk("bttv%d: Switching board type from %s to %s\n", |
| 3810 | btv->c.nr, |
| 3811 | bttv_tvcards[btv->c.type].name, |
| 3812 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); |
| 3813 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; |
| 3814 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3815 | } |
| 3816 | |
| 3817 | static int terratec_active_radio_upgrade(struct bttv *btv) |
| 3818 | { |
| 3819 | int freq; |
| 3820 | |
| 3821 | btv->has_radio = 1; |
| 3822 | btv->has_matchbox = 1; |
| 3823 | btv->mbox_we = 0x10; |
| 3824 | btv->mbox_most = 0x20; |
| 3825 | btv->mbox_clk = 0x08; |
| 3826 | btv->mbox_data = 0x04; |
| 3827 | btv->mbox_mask = 0x3c; |
| 3828 | |
| 3829 | btv->mbox_iow = 1 << 8; |
| 3830 | btv->mbox_ior = 1 << 9; |
| 3831 | btv->mbox_csel = 1 << 10; |
| 3832 | |
| 3833 | freq=88000/62.5; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3834 | tea5757_write(btv, 5 * freq + 0x358); /* write 0x1ed8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3835 | if (0x1ed8 == tea5757_read(btv)) { |
| 3836 | printk("bttv%d: Terratec Active Radio Upgrade found.\n", |
| 3837 | btv->c.nr); |
| 3838 | btv->has_radio = 1; |
| 3839 | btv->has_matchbox = 1; |
| 3840 | } else { |
| 3841 | btv->has_radio = 0; |
| 3842 | btv->has_matchbox = 0; |
| 3843 | } |
| 3844 | return 0; |
| 3845 | } |
| 3846 | |
| 3847 | |
| 3848 | /* ----------------------------------------------------------------------- */ |
| 3849 | |
| 3850 | /* |
| 3851 | * minimal bootstrap for the WinTV/PVR -- upload altera firmware. |
| 3852 | * |
| 3853 | * The hcwamc.rbf firmware file is on the Hauppauge driver CD. Have |
| 3854 | * a look at Pvr/pvr45xxx.EXE (self-extracting zip archive, can be |
| 3855 | * unpacked with unzip). |
| 3856 | */ |
| 3857 | #define PVR_GPIO_DELAY 10 |
| 3858 | |
| 3859 | #define BTTV_ALT_DATA 0x000001 |
| 3860 | #define BTTV_ALT_DCLK 0x100000 |
| 3861 | #define BTTV_ALT_NCONFIG 0x800000 |
| 3862 | |
David Woodhouse | 4f2a0c3 | 2008-05-24 00:11:44 +0100 | [diff] [blame] | 3863 | static int __devinit pvr_altera_load(struct bttv *btv, const u8 *micro, |
| 3864 | u32 microlen) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3865 | { |
| 3866 | u32 n; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3867 | u8 bits; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3868 | int i; |
| 3869 | |
| 3870 | gpio_inout(0xffffff,BTTV_ALT_DATA|BTTV_ALT_DCLK|BTTV_ALT_NCONFIG); |
| 3871 | gpio_write(0); |
| 3872 | udelay(PVR_GPIO_DELAY); |
| 3873 | |
| 3874 | gpio_write(BTTV_ALT_NCONFIG); |
| 3875 | udelay(PVR_GPIO_DELAY); |
| 3876 | |
| 3877 | for (n = 0; n < microlen; n++) { |
| 3878 | bits = micro[n]; |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 3879 | for (i = 0 ; i < 8 ; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3880 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3881 | if (bits & 0x01) |
| 3882 | gpio_bits(BTTV_ALT_DATA,BTTV_ALT_DATA); |
| 3883 | else |
| 3884 | gpio_bits(BTTV_ALT_DATA,0); |
| 3885 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3886 | bits >>= 1; |
| 3887 | } |
| 3888 | } |
| 3889 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3890 | udelay(PVR_GPIO_DELAY); |
| 3891 | |
| 3892 | /* begin Altera init loop (Not necessary,but doesn't hurt) */ |
| 3893 | for (i = 0 ; i < 30 ; i++) { |
| 3894 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3895 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3896 | } |
| 3897 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3898 | return 0; |
| 3899 | } |
| 3900 | |
| 3901 | static int __devinit pvr_boot(struct bttv *btv) |
| 3902 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3903 | const struct firmware *fw_entry; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3904 | int rc; |
| 3905 | |
| 3906 | rc = request_firmware(&fw_entry, "hcwamc.rbf", &btv->c.pci->dev); |
| 3907 | if (rc != 0) { |
| 3908 | printk(KERN_WARNING "bttv%d: no altera firmware [via hotplug]\n", |
| 3909 | btv->c.nr); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3910 | return rc; |
| 3911 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3912 | rc = pvr_altera_load(btv, fw_entry->data, fw_entry->size); |
| 3913 | printk(KERN_INFO "bttv%d: altera firmware upload %s\n", |
| 3914 | btv->c.nr, (rc < 0) ? "failed" : "ok"); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3915 | release_firmware(fw_entry); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3916 | return rc; |
| 3917 | } |
| 3918 | |
| 3919 | /* ----------------------------------------------------------------------- */ |
| 3920 | /* some osprey specific stuff */ |
| 3921 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3922 | static void __devinit osprey_eeprom(struct bttv *btv, const u8 ee[256]) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3923 | { |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3924 | int i; |
| 3925 | u32 serial = 0; |
| 3926 | int cardid = -1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3927 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3928 | /* This code will nevery actually get called in this case.... */ |
| 3929 | if (btv->c.type == BTTV_BOARD_UNKNOWN) { |
| 3930 | /* this might be an antique... check for MMAC label in eeprom */ |
| 3931 | if (!strncmp(ee, "MMAC", 4)) { |
| 3932 | u8 checksum = 0; |
| 3933 | for (i = 0; i < 21; i++) |
| 3934 | checksum += ee[i]; |
| 3935 | if (checksum != ee[21]) |
| 3936 | return; |
| 3937 | cardid = BTTV_BOARD_OSPREY1x0_848; |
| 3938 | for (i = 12; i < 21; i++) |
| 3939 | serial *= 10, serial += ee[i] - '0'; |
| 3940 | } |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3941 | } else { |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3942 | unsigned short type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3943 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3944 | for (i = 4*16; i < 8*16; i += 16) { |
| 3945 | u16 checksum = ip_compute_csum(ee + i, 16); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3946 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3947 | if ((checksum&0xff) + (checksum>>8) == 0xff) |
| 3948 | break; |
| 3949 | } |
| 3950 | if (i >= 8*16) |
| 3951 | return; |
| 3952 | ee += i; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3953 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3954 | /* found a valid descriptor */ |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 3955 | type = get_unaligned_be16((__be16 *)(ee+4)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3956 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3957 | switch(type) { |
| 3958 | /* 848 based */ |
| 3959 | case 0x0004: |
| 3960 | cardid = BTTV_BOARD_OSPREY1x0_848; |
| 3961 | break; |
| 3962 | case 0x0005: |
| 3963 | cardid = BTTV_BOARD_OSPREY101_848; |
| 3964 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3965 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3966 | /* 878 based */ |
| 3967 | case 0x0012: |
| 3968 | case 0x0013: |
| 3969 | cardid = BTTV_BOARD_OSPREY1x0; |
| 3970 | break; |
| 3971 | case 0x0014: |
| 3972 | case 0x0015: |
| 3973 | cardid = BTTV_BOARD_OSPREY1x1; |
| 3974 | break; |
| 3975 | case 0x0016: |
| 3976 | case 0x0017: |
| 3977 | case 0x0020: |
| 3978 | cardid = BTTV_BOARD_OSPREY1x1_SVID; |
| 3979 | break; |
| 3980 | case 0x0018: |
| 3981 | case 0x0019: |
| 3982 | case 0x001E: |
| 3983 | case 0x001F: |
| 3984 | cardid = BTTV_BOARD_OSPREY2xx; |
| 3985 | break; |
| 3986 | case 0x001A: |
| 3987 | case 0x001B: |
| 3988 | cardid = BTTV_BOARD_OSPREY2x0_SVID; |
| 3989 | break; |
| 3990 | case 0x0040: |
| 3991 | cardid = BTTV_BOARD_OSPREY500; |
| 3992 | break; |
| 3993 | case 0x0050: |
| 3994 | case 0x0056: |
| 3995 | cardid = BTTV_BOARD_OSPREY540; |
| 3996 | /* bttv_osprey_540_init(btv); */ |
| 3997 | break; |
| 3998 | case 0x0060: |
| 3999 | case 0x0070: |
| 4000 | case 0x00A0: |
| 4001 | cardid = BTTV_BOARD_OSPREY2x0; |
| 4002 | /* enable output on select control lines */ |
| 4003 | gpio_inout(0xffffff,0x000303); |
| 4004 | break; |
| 4005 | case 0x00D8: |
| 4006 | cardid = BTTV_BOARD_OSPREY440; |
| 4007 | break; |
| 4008 | default: |
| 4009 | /* unknown...leave generic, but get serial # */ |
| 4010 | printk(KERN_INFO "bttv%d: " |
| 4011 | "osprey eeprom: unknown card type 0x%04x\n", |
| 4012 | btv->c.nr, type); |
| 4013 | break; |
| 4014 | } |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 4015 | serial = get_unaligned_be32((__be32 *)(ee+6)); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 4016 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4017 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 4018 | printk(KERN_INFO "bttv%d: osprey eeprom: card=%d '%s' serial=%u\n", |
| 4019 | btv->c.nr, cardid, |
| 4020 | cardid>0 ? bttv_tvcards[cardid].name : "Unknown", serial); |
| 4021 | |
| 4022 | if (cardid<0 || btv->c.type == cardid) |
| 4023 | return; |
| 4024 | |
| 4025 | /* card type isn't set correctly */ |
| 4026 | if (card[btv->c.nr] < bttv_num_tvcards) { |
| 4027 | printk(KERN_WARNING "bttv%d: osprey eeprom: " |
| 4028 | "Not overriding user specified card type\n", btv->c.nr); |
| 4029 | } else { |
| 4030 | printk(KERN_INFO "bttv%d: osprey eeprom: " |
| 4031 | "Changing card type from %d to %d\n", btv->c.nr, |
| 4032 | btv->c.type, cardid); |
| 4033 | btv->c.type = cardid; |
| 4034 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4035 | } |
| 4036 | |
| 4037 | /* ----------------------------------------------------------------------- */ |
| 4038 | /* AVermedia specific stuff, from bktr_card.c */ |
| 4039 | |
| 4040 | static int tuner_0_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4041 | TUNER_PHILIPS_NTSC, TUNER_PHILIPS_PAL /* PAL-BG*/, |
| 4042 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL /* PAL-I*/, |
| 4043 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL, |
| 4044 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_SECAM, |
| 4045 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4046 | TUNER_PHILIPS_FM1216ME_MK3 }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4047 | |
| 4048 | static int tuner_1_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4049 | TUNER_TEMIC_NTSC, TUNER_TEMIC_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4050 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
| 4051 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4052 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */ |
| 4053 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4054 | |
| 4055 | static void __devinit avermedia_eeprom(struct bttv *btv) |
| 4056 | { |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 4057 | int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4058 | |
| 4059 | tuner_make = (eeprom_data[0x41] & 0x7); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4060 | tuner_tv_fm = (eeprom_data[0x41] & 0x18) >> 3; |
| 4061 | tuner_format = (eeprom_data[0x42] & 0xf0) >> 4; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4062 | btv->has_remote = (eeprom_data[0x42] & 0x01); |
| 4063 | |
| 4064 | if (tuner_make == 0 || tuner_make == 2) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 4065 | if (tuner_format <= 0x0a) |
| 4066 | tuner_type = tuner_0_table[tuner_format]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4067 | if (tuner_make == 1) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 4068 | if (tuner_format <= 9) |
| 4069 | tuner_type = tuner_1_table[tuner_format]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4070 | |
| 4071 | if (tuner_make == 4) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 4072 | if (tuner_format == 0x09) |
| 4073 | tuner_type = TUNER_LG_NTSC_NEW_TAPC; /* TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4074 | |
| 4075 | printk(KERN_INFO "bttv%d: Avermedia eeprom[0x%02x%02x]: tuner=", |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 4076 | btv->c.nr, eeprom_data[0x41], eeprom_data[0x42]); |
| 4077 | if (tuner_type) { |
| 4078 | btv->tuner_type = tuner_type; |
| 4079 | printk(KERN_CONT "%d", tuner_type); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4080 | } else |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 4081 | printk(KERN_CONT "Unknown type"); |
| 4082 | printk(KERN_CONT " radio:%s remote control:%s\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4083 | tuner_tv_fm ? "yes" : "no", |
| 4084 | btv->has_remote ? "yes" : "no"); |
| 4085 | } |
| 4086 | |
| 4087 | /* used on Voodoo TV/FM (Voodoo 200), S0 wired to 0x10000 */ |
| 4088 | void bttv_tda9880_setnorm(struct bttv *btv, int norm) |
| 4089 | { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4090 | /* fix up our card entry */ |
Mauro Carvalho Chehab | c2806d0 | 2007-10-26 16:54:54 -0300 | [diff] [blame] | 4091 | if(norm==V4L2_STD_NTSC) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 4092 | bttv_tvcards[BTTV_BOARD_VOODOOTV_FM].gpiomux[TVAUDIO_INPUT_TUNER]=0x957fff; |
| 4093 | bttv_tvcards[BTTV_BOARD_VOODOOTV_FM].gpiomute=0x957fff; |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 4094 | bttv_tvcards[BTTV_BOARD_VOODOOTV_200].gpiomux[TVAUDIO_INPUT_TUNER]=0x957fff; |
| 4095 | bttv_tvcards[BTTV_BOARD_VOODOOTV_200].gpiomute=0x957fff; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4096 | dprintk("bttv_tda9880_setnorm to NTSC\n"); |
| 4097 | } |
| 4098 | else { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 4099 | bttv_tvcards[BTTV_BOARD_VOODOOTV_FM].gpiomux[TVAUDIO_INPUT_TUNER]=0x947fff; |
| 4100 | bttv_tvcards[BTTV_BOARD_VOODOOTV_FM].gpiomute=0x947fff; |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 4101 | bttv_tvcards[BTTV_BOARD_VOODOOTV_200].gpiomux[TVAUDIO_INPUT_TUNER]=0x947fff; |
| 4102 | bttv_tvcards[BTTV_BOARD_VOODOOTV_200].gpiomute=0x947fff; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4103 | dprintk("bttv_tda9880_setnorm to PAL\n"); |
| 4104 | } |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4105 | /* set GPIO according */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4106 | gpio_bits(bttv_tvcards[btv->c.type].gpiomask, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 4107 | bttv_tvcards[btv->c.type].gpiomux[btv->audio]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4108 | } |
| 4109 | |
| 4110 | |
| 4111 | /* |
| 4112 | * reset/enable the MSP on some Hauppauge cards |
David Woodhouse | 93e960f | 2005-11-08 21:36:46 -0800 | [diff] [blame] | 4113 | * Thanks to Kyösti Mälkki (kmalkki@cc.hut.fi)! |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4114 | * |
| 4115 | * Hauppauge: pin 5 |
| 4116 | * Voodoo: pin 20 |
| 4117 | */ |
| 4118 | static void __devinit boot_msp34xx(struct bttv *btv, int pin) |
| 4119 | { |
| 4120 | int mask = (1 << pin); |
| 4121 | |
| 4122 | gpio_inout(mask,mask); |
| 4123 | gpio_bits(mask,0); |
Thierry MERLE | c4e3fd9 | 2008-09-01 17:32:10 -0300 | [diff] [blame] | 4124 | mdelay(2); |
| 4125 | udelay(500); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4126 | gpio_bits(mask,mask); |
| 4127 | |
| 4128 | if (bttv_gpio) |
| 4129 | bttv_gpio_tracking(btv,"msp34xx"); |
| 4130 | if (bttv_verbose) |
| 4131 | printk(KERN_INFO "bttv%d: Hauppauge/Voodoo msp34xx: reset line " |
| 4132 | "init [%d]\n", btv->c.nr, pin); |
| 4133 | } |
| 4134 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4135 | /* ----------------------------------------------------------------------- */ |
| 4136 | /* Imagenation L-Model PXC200 Framegrabber */ |
| 4137 | /* This is basically the same procedure as |
| 4138 | * used by Alessandro Rubini in his pxc200 |
| 4139 | * driver, but using BTTV functions */ |
| 4140 | |
| 4141 | static void __devinit init_PXC200(struct bttv *btv) |
| 4142 | { |
| 4143 | static int vals[] __devinitdata = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, |
| 4144 | 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, |
| 4145 | 0x00 }; |
| 4146 | unsigned int i; |
| 4147 | int tmp; |
| 4148 | u32 val; |
| 4149 | |
| 4150 | /* Initialise GPIO-connevted stuff */ |
| 4151 | gpio_inout(0xffffff, (1<<13)); |
| 4152 | gpio_write(0); |
| 4153 | udelay(3); |
| 4154 | gpio_write(1<<13); |
| 4155 | /* GPIO inputs are pulled up, so no need to drive |
| 4156 | * reset pin any longer */ |
| 4157 | gpio_bits(0xffffff, 0); |
| 4158 | if (bttv_gpio) |
| 4159 | bttv_gpio_tracking(btv,"pxc200"); |
| 4160 | |
| 4161 | /* we could/should try and reset/control the AD pots? but |
| 4162 | right now we simply turned off the crushing. Without |
| 4163 | this the AGC drifts drifts |
| 4164 | remember the EN is reverse logic --> |
| 4165 | setting BT848_ADC_AGC_EN disable the AGC |
| 4166 | tboult@eecs.lehigh.edu |
| 4167 | */ |
| 4168 | |
| 4169 | btwrite(BT848_ADC_RESERVED|BT848_ADC_AGC_EN, BT848_ADC); |
| 4170 | |
| 4171 | /* Initialise MAX517 DAC */ |
| 4172 | printk(KERN_INFO "Setting DAC reference voltage level ...\n"); |
| 4173 | bttv_I2CWrite(btv,0x5E,0,0x80,1); |
| 4174 | |
| 4175 | /* Initialise 12C508 PIC */ |
| 4176 | /* The I2CWrite and I2CRead commmands are actually to the |
| 4177 | * same chips - but the R/W bit is included in the address |
| 4178 | * argument so the numbers are different */ |
| 4179 | |
| 4180 | |
| 4181 | printk(KERN_INFO "Initialising 12C508 PIC chip ...\n"); |
| 4182 | |
| 4183 | /* First of all, enable the clock line. This is used in the PXC200-F */ |
| 4184 | val = btread(BT848_GPIO_DMA_CTL); |
| 4185 | val |= BT848_GPIO_DMA_CTL_GPCLKMODE; |
| 4186 | btwrite(val, BT848_GPIO_DMA_CTL); |
| 4187 | |
| 4188 | /* Then, push to 0 the reset pin long enough to reset the * |
| 4189 | * device same as above for the reset line, but not the same |
| 4190 | * value sent to the GPIO-connected stuff |
| 4191 | * which one is the good one? */ |
| 4192 | gpio_inout(0xffffff,(1<<2)); |
| 4193 | gpio_write(0); |
| 4194 | udelay(10); |
| 4195 | gpio_write(1<<2); |
| 4196 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4197 | for (i = 0; i < ARRAY_SIZE(vals); i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4198 | tmp=bttv_I2CWrite(btv,0x1E,0,vals[i],1); |
| 4199 | if (tmp != -1) { |
| 4200 | printk(KERN_INFO |
| 4201 | "I2C Write(%2.2x) = %i\nI2C Read () = %2.2x\n\n", |
| 4202 | vals[i],tmp,bttv_I2CRead(btv,0x1F,NULL)); |
| 4203 | } |
| 4204 | } |
| 4205 | |
| 4206 | printk(KERN_INFO "PXC200 Initialised.\n"); |
| 4207 | } |
| 4208 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4209 | |
| 4210 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4211 | /* ----------------------------------------------------------------------- */ |
| 4212 | /* |
| 4213 | * The Adlink RTV-24 (aka Angelo) has some special initialisation to unlock |
| 4214 | * it. This apparently involves the following procedure for each 878 chip: |
| 4215 | * |
| 4216 | * 1) write 0x00C3FEFF to the GPIO_OUT_EN register |
| 4217 | * |
| 4218 | * 2) write to GPIO_DATA |
| 4219 | * - 0x0E |
| 4220 | * - sleep 1ms |
| 4221 | * - 0x10 + 0x0E |
| 4222 | * - sleep 10ms |
| 4223 | * - 0x0E |
| 4224 | * read from GPIO_DATA into buf (uint_32) |
| 4225 | * - if ( data>>18 & 0x01 != 0) || ( buf>>19 & 0x01 != 1 ) |
| 4226 | * error. ERROR_CPLD_Check_Failed stop. |
| 4227 | * |
| 4228 | * 3) write to GPIO_DATA |
| 4229 | * - write 0x4400 + 0x0E |
| 4230 | * - sleep 10ms |
| 4231 | * - write 0x4410 + 0x0E |
| 4232 | * - sleep 1ms |
| 4233 | * - write 0x0E |
| 4234 | * read from GPIO_DATA into buf (uint_32) |
Jean Delvare | fef4fa14 | 2006-11-09 17:25:28 -0300 | [diff] [blame] | 4235 | * - if ( buf>>18 & 0x01 ) || ( buf>>19 & 0x01 != 0 ) |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4236 | * error. ERROR_CPLD_Check_Failed. |
| 4237 | */ |
| 4238 | /* ----------------------------------------------------------------------- */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 4239 | static void |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4240 | init_RTV24 (struct bttv *btv) |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4241 | { |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4242 | uint32_t dataRead = 0; |
| 4243 | long watchdog_value = 0x0E; |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4244 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4245 | printk (KERN_INFO |
| 4246 | "bttv%d: Adlink RTV-24 initialisation in progress ...\n", |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4247 | btv->c.nr); |
| 4248 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4249 | btwrite (0x00c3feff, BT848_GPIO_OUT_EN); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4250 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4251 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
| 4252 | msleep (1); |
| 4253 | btwrite (0x10 + watchdog_value, BT848_GPIO_DATA); |
| 4254 | msleep (10); |
| 4255 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4256 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4257 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4258 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4259 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 1)) { |
| 4260 | printk (KERN_INFO |
| 4261 | "bttv%d: Adlink RTV-24 initialisation(1) ERROR_CPLD_Check_Failed (read %d)\n", |
| 4262 | btv->c.nr, dataRead); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4263 | } |
| 4264 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4265 | btwrite (0x4400 + watchdog_value, BT848_GPIO_DATA); |
| 4266 | msleep (10); |
| 4267 | btwrite (0x4410 + watchdog_value, BT848_GPIO_DATA); |
| 4268 | msleep (1); |
| 4269 | btwrite (watchdog_value, BT848_GPIO_DATA); |
| 4270 | msleep (1); |
| 4271 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4272 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4273 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 0)) { |
| 4274 | printk (KERN_INFO |
| 4275 | "bttv%d: Adlink RTV-24 initialisation(2) ERROR_CPLD_Check_Failed (read %d)\n", |
| 4276 | btv->c.nr, dataRead); |
| 4277 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4278 | return; |
| 4279 | } |
| 4280 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4281 | printk (KERN_INFO |
| 4282 | "bttv%d: Adlink RTV-24 initialisation complete.\n", btv->c.nr); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4283 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4284 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4285 | |
| 4286 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4287 | /* ----------------------------------------------------------------------- */ |
| 4288 | /* Miro Pro radio stuff -- the tea5757 is connected to some GPIO ports */ |
| 4289 | /* |
| 4290 | * Copyright (c) 1999 Csaba Halasz <qgehali@uni-miskolc.hu> |
| 4291 | * This code is placed under the terms of the GNU General Public License |
| 4292 | * |
| 4293 | * Brutally hacked by Dan Sheridan <dan.sheridan@contact.org.uk> djs52 8/3/00 |
| 4294 | */ |
| 4295 | |
| 4296 | static void bus_low(struct bttv *btv, int bit) |
| 4297 | { |
| 4298 | if (btv->mbox_ior) { |
| 4299 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4300 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4301 | udelay(5); |
| 4302 | } |
| 4303 | |
| 4304 | gpio_bits(bit,0); |
| 4305 | udelay(5); |
| 4306 | |
| 4307 | if (btv->mbox_ior) { |
| 4308 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4309 | udelay(5); |
| 4310 | } |
| 4311 | } |
| 4312 | |
| 4313 | static void bus_high(struct bttv *btv, int bit) |
| 4314 | { |
| 4315 | if (btv->mbox_ior) { |
| 4316 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4317 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4318 | udelay(5); |
| 4319 | } |
| 4320 | |
| 4321 | gpio_bits(bit,bit); |
| 4322 | udelay(5); |
| 4323 | |
| 4324 | if (btv->mbox_ior) { |
| 4325 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4326 | udelay(5); |
| 4327 | } |
| 4328 | } |
| 4329 | |
| 4330 | static int bus_in(struct bttv *btv, int bit) |
| 4331 | { |
| 4332 | if (btv->mbox_ior) { |
| 4333 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4334 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4335 | udelay(5); |
| 4336 | |
| 4337 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4338 | udelay(5); |
| 4339 | } |
| 4340 | return gpio_read() & (bit); |
| 4341 | } |
| 4342 | |
| 4343 | /* TEA5757 register bits */ |
| 4344 | #define TEA_FREQ 0:14 |
| 4345 | #define TEA_BUFFER 15:15 |
| 4346 | |
| 4347 | #define TEA_SIGNAL_STRENGTH 16:17 |
| 4348 | |
| 4349 | #define TEA_PORT1 18:18 |
| 4350 | #define TEA_PORT0 19:19 |
| 4351 | |
| 4352 | #define TEA_BAND 20:21 |
| 4353 | #define TEA_BAND_FM 0 |
| 4354 | #define TEA_BAND_MW 1 |
| 4355 | #define TEA_BAND_LW 2 |
| 4356 | #define TEA_BAND_SW 3 |
| 4357 | |
| 4358 | #define TEA_MONO 22:22 |
| 4359 | #define TEA_ALLOW_STEREO 0 |
| 4360 | #define TEA_FORCE_MONO 1 |
| 4361 | |
| 4362 | #define TEA_SEARCH_DIRECTION 23:23 |
| 4363 | #define TEA_SEARCH_DOWN 0 |
| 4364 | #define TEA_SEARCH_UP 1 |
| 4365 | |
| 4366 | #define TEA_STATUS 24:24 |
| 4367 | #define TEA_STATUS_TUNED 0 |
| 4368 | #define TEA_STATUS_SEARCHING 1 |
| 4369 | |
| 4370 | /* Low-level stuff */ |
| 4371 | static int tea5757_read(struct bttv *btv) |
| 4372 | { |
| 4373 | unsigned long timeout; |
| 4374 | int value = 0; |
| 4375 | int i; |
| 4376 | |
| 4377 | /* better safe than sorry */ |
| 4378 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we); |
| 4379 | |
| 4380 | if (btv->mbox_ior) { |
| 4381 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4382 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4383 | udelay(5); |
| 4384 | } |
| 4385 | |
| 4386 | if (bttv_gpio) |
| 4387 | bttv_gpio_tracking(btv,"tea5757 read"); |
| 4388 | |
| 4389 | bus_low(btv,btv->mbox_we); |
| 4390 | bus_low(btv,btv->mbox_clk); |
| 4391 | |
| 4392 | udelay(10); |
Mauro Carvalho Chehab | fe06fe0 | 2007-07-17 16:36:20 -0300 | [diff] [blame] | 4393 | timeout= jiffies + msecs_to_jiffies(1000); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4394 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4395 | /* wait for DATA line to go low; error if it doesn't */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4396 | while (bus_in(btv,btv->mbox_data) && time_before(jiffies, timeout)) |
| 4397 | schedule(); |
| 4398 | if (bus_in(btv,btv->mbox_data)) { |
| 4399 | printk(KERN_WARNING "bttv%d: tea5757: read timeout\n",btv->c.nr); |
| 4400 | return -1; |
| 4401 | } |
| 4402 | |
| 4403 | dprintk("bttv%d: tea5757:",btv->c.nr); |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4404 | for (i = 0; i < 24; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4405 | udelay(5); |
| 4406 | bus_high(btv,btv->mbox_clk); |
| 4407 | udelay(5); |
| 4408 | dprintk("%c",(bus_in(btv,btv->mbox_most) == 0)?'T':'-'); |
| 4409 | bus_low(btv,btv->mbox_clk); |
| 4410 | value <<= 1; |
| 4411 | value |= (bus_in(btv,btv->mbox_data) == 0)?0:1; /* MSB first */ |
| 4412 | dprintk("%c", (bus_in(btv,btv->mbox_most) == 0)?'S':'M'); |
| 4413 | } |
| 4414 | dprintk("\nbttv%d: tea5757: read 0x%X\n", btv->c.nr, value); |
| 4415 | return value; |
| 4416 | } |
| 4417 | |
| 4418 | static int tea5757_write(struct bttv *btv, int value) |
| 4419 | { |
| 4420 | int i; |
| 4421 | int reg = value; |
| 4422 | |
| 4423 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we | btv->mbox_data); |
| 4424 | |
| 4425 | if (btv->mbox_ior) { |
| 4426 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4427 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4428 | udelay(5); |
| 4429 | } |
| 4430 | if (bttv_gpio) |
| 4431 | bttv_gpio_tracking(btv,"tea5757 write"); |
| 4432 | |
| 4433 | dprintk("bttv%d: tea5757: write 0x%X\n", btv->c.nr, value); |
| 4434 | bus_low(btv,btv->mbox_clk); |
| 4435 | bus_high(btv,btv->mbox_we); |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4436 | for (i = 0; i < 25; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4437 | if (reg & 0x1000000) |
| 4438 | bus_high(btv,btv->mbox_data); |
| 4439 | else |
| 4440 | bus_low(btv,btv->mbox_data); |
| 4441 | reg <<= 1; |
| 4442 | bus_high(btv,btv->mbox_clk); |
| 4443 | udelay(10); |
| 4444 | bus_low(btv,btv->mbox_clk); |
| 4445 | udelay(10); |
| 4446 | } |
| 4447 | bus_low(btv,btv->mbox_we); /* unmute !!! */ |
| 4448 | return 0; |
| 4449 | } |
| 4450 | |
| 4451 | void tea5757_set_freq(struct bttv *btv, unsigned short freq) |
| 4452 | { |
| 4453 | dprintk("tea5757_set_freq %d\n",freq); |
| 4454 | tea5757_write(btv, 5 * freq + 0x358); /* add 10.7MHz (see docs) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4455 | } |
| 4456 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4457 | /* RemoteVision MX (rv605) muxsel helper [Miguel Freitas] |
| 4458 | * |
| 4459 | * This is needed because rv605 don't use a normal multiplex, but a crosspoint |
| 4460 | * switch instead (CD22M3494E). This IC can have multiple active connections |
| 4461 | * between Xn (input) and Yn (output) pins. We need to clear any existing |
| 4462 | * connection prior to establish a new one, pulsing the STROBE pin. |
| 4463 | * |
| 4464 | * The board hardwire Y0 (xpoint) to MUX1 and MUXOUT to Yin. |
| 4465 | * GPIO pins are wired as: |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4466 | * GPIO[0:3] - AX[0:3] (xpoint) - P1[0:3] (microcontroller) |
| 4467 | * GPIO[4:6] - AY[0:2] (xpoint) - P1[4:6] (microcontroller) |
| 4468 | * GPIO[7] - DATA (xpoint) - P1[7] (microcontroller) |
| 4469 | * GPIO[8] - - P3[5] (microcontroller) |
| 4470 | * GPIO[9] - RESET (xpoint) - P3[6] (microcontroller) |
| 4471 | * GPIO[10] - STROBE (xpoint) - P3[7] (microcontroller) |
| 4472 | * GPINTR - - P3[4] (microcontroller) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4473 | * |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4474 | * The microcontroller is a 80C32 like. It should be possible to change xpoint |
| 4475 | * configuration either directly (as we are doing) or using the microcontroller |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4476 | * which is also wired to I2C interface. I have no further info on the |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4477 | * microcontroller features, one would need to disassembly the firmware. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4478 | * note: the vendor refused to give any information on this product, all |
| 4479 | * that stuff was found using a multimeter! :) |
| 4480 | */ |
| 4481 | static void rv605_muxsel(struct bttv *btv, unsigned int input) |
| 4482 | { |
| 4483 | /* reset all conections */ |
| 4484 | gpio_bits(0x200,0x200); |
| 4485 | mdelay(1); |
| 4486 | gpio_bits(0x200,0x000); |
| 4487 | mdelay(1); |
| 4488 | |
Joe Perches | c84e603 | 2008-02-03 17:18:59 +0200 | [diff] [blame] | 4489 | /* create a new connection */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4490 | gpio_bits(0x480,0x080); |
| 4491 | gpio_bits(0x480,0x480); |
| 4492 | mdelay(1); |
| 4493 | gpio_bits(0x480,0x080); |
| 4494 | mdelay(1); |
| 4495 | } |
| 4496 | |
| 4497 | /* Tibet Systems 'Progress DVR' CS16 muxsel helper [Chris Fanning] |
| 4498 | * |
| 4499 | * The CS16 (available on eBay cheap) is a PCI board with four Fusion |
| 4500 | * 878A chips, a PCI bridge, an Atmel microcontroller, four sync seperator |
| 4501 | * chips, ten eight input analog multiplexors, a not chip and a few |
| 4502 | * other components. |
| 4503 | * |
| 4504 | * 16 inputs on a secondary bracket are provided and can be selected |
| 4505 | * from each of the four capture chips. Two of the eight input |
| 4506 | * multiplexors are used to select from any of the 16 input signals. |
| 4507 | * |
| 4508 | * Unsupported hardware capabilities: |
| 4509 | * . A video output monitor on the secondary bracket can be selected from |
| 4510 | * one of the 878A chips. |
| 4511 | * . Another passthrough but I haven't spent any time investigating it. |
| 4512 | * . Digital I/O (logic level connected to GPIO) is available from an |
| 4513 | * onboard header. |
| 4514 | * |
| 4515 | * The on chip input mux should always be set to 2. |
| 4516 | * GPIO[16:19] - Video input selection |
| 4517 | * GPIO[0:3] - Video output monitor select (only available from one 878A) |
| 4518 | * GPIO[?:?] - Digital I/O. |
| 4519 | * |
| 4520 | * There is an ATMEL microcontroller with an 8031 core on board. I have not |
| 4521 | * determined what function (if any) it provides. With the microcontroller |
| 4522 | * and sync seperator chips a guess is that it might have to do with video |
| 4523 | * switching and maybe some digital I/O. |
| 4524 | */ |
| 4525 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input) |
| 4526 | { |
| 4527 | /* video mux */ |
| 4528 | gpio_bits(0x0f0000, input << 16); |
| 4529 | } |
| 4530 | |
| 4531 | static void tibetCS16_init(struct bttv *btv) |
| 4532 | { |
| 4533 | /* enable gpio bits, mask obtained via btSpy */ |
| 4534 | gpio_inout(0xffffff, 0x0f7fff); |
| 4535 | gpio_write(0x0f7fff); |
| 4536 | } |
| 4537 | |
| 4538 | /* |
| 4539 | * The following routines for the Kodicom-4400r get a little mind-twisting. |
| 4540 | * There is a "master" controller and three "slave" controllers, together |
| 4541 | * an analog switch which connects any of 16 cameras to any of the BT87A's. |
| 4542 | * The analog switch is controlled by the "master", but the detection order |
| 4543 | * of the four BT878A chips is in an order which I just don't understand. |
| 4544 | * The "master" is actually the second controller to be detected. The |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4545 | * logic on the board uses logical numbers for the 4 controllers, but |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4546 | * those numbers are different from the detection sequence. When working |
| 4547 | * with the analog switch, we need to "map" from the detection sequence |
| 4548 | * over to the board's logical controller number. This mapping sequence |
| 4549 | * is {3, 0, 2, 1}, i.e. the first controller to be detected is logical |
| 4550 | * unit 3, the second (which is the master) is logical unit 0, etc. |
| 4551 | * We need to maintain the status of the analog switch (which of the 16 |
| 4552 | * cameras is connected to which of the 4 controllers). Rather than |
| 4553 | * add to the bttv structure for this, we use the data reserved for |
| 4554 | * the mbox (unused for this card type). |
| 4555 | */ |
| 4556 | |
| 4557 | /* |
| 4558 | * First a routine to set the analog switch, which controls which camera |
| 4559 | * is routed to which controller. The switch comprises an X-address |
| 4560 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a |
| 4561 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). |
| 4562 | * A data value (gpio bit 7) of '1' enables the switch, and '0' disables |
| 4563 | * the switch. A STROBE bit (gpio bit 8) latches the data value into the |
| 4564 | * specified address. The idea is to set the address and data, then bring |
| 4565 | * STROBE high, and finally bring STROBE back to low. |
| 4566 | */ |
| 4567 | static void kodicom4400r_write(struct bttv *btv, |
| 4568 | unsigned char xaddr, |
| 4569 | unsigned char yaddr, |
| 4570 | unsigned char data) { |
| 4571 | unsigned int udata; |
| 4572 | |
| 4573 | udata = (data << 7) | ((yaddr&3) << 4) | (xaddr&0xf); |
| 4574 | gpio_bits(0x1ff, udata); /* write ADDR and DAT */ |
| 4575 | gpio_bits(0x1ff, udata | (1 << 8)); /* strobe high */ |
| 4576 | gpio_bits(0x1ff, udata); /* strobe low */ |
| 4577 | } |
| 4578 | |
| 4579 | /* |
| 4580 | * Next the mux select. Both the "master" and "slave" 'cards' (controllers) |
| 4581 | * use this routine. The routine finds the "master" for the card, maps |
| 4582 | * the controller number from the detected position over to the logical |
| 4583 | * number, writes the appropriate data to the analog switch, and housekeeps |
| 4584 | * the local copy of the switch information. The parameter 'input' is the |
| 4585 | * requested camera number (0 - 15). |
| 4586 | */ |
| 4587 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input) |
| 4588 | { |
| 4589 | char *sw_status; |
| 4590 | int xaddr, yaddr; |
| 4591 | struct bttv *mctlr; |
| 4592 | static unsigned char map[4] = {3, 0, 2, 1}; |
| 4593 | |
| 4594 | mctlr = master[btv->c.nr]; |
| 4595 | if (mctlr == NULL) { /* ignore if master not yet detected */ |
| 4596 | return; |
| 4597 | } |
| 4598 | yaddr = (btv->c.nr - mctlr->c.nr + 1) & 3; /* the '&' is for safety */ |
| 4599 | yaddr = map[yaddr]; |
| 4600 | sw_status = (char *)(&mctlr->mbox_we); |
| 4601 | xaddr = input & 0xf; |
| 4602 | /* Check if the controller/camera pair has changed, else ignore */ |
| 4603 | if (sw_status[yaddr] != xaddr) |
| 4604 | { |
| 4605 | /* "open" the old switch, "close" the new one, save the new */ |
| 4606 | kodicom4400r_write(mctlr, sw_status[yaddr], yaddr, 0); |
| 4607 | sw_status[yaddr] = xaddr; |
| 4608 | kodicom4400r_write(mctlr, xaddr, yaddr, 1); |
| 4609 | } |
| 4610 | } |
| 4611 | |
| 4612 | /* |
| 4613 | * During initialisation, we need to reset the analog switch. We |
| 4614 | * also preset the switch to map the 4 connectors on the card to the |
| 4615 | * *user's* (see above description of kodicom4400r_muxsel) channels |
| 4616 | * 0 through 3 |
| 4617 | */ |
| 4618 | static void kodicom4400r_init(struct bttv *btv) |
| 4619 | { |
| 4620 | char *sw_status = (char *)(&btv->mbox_we); |
| 4621 | int ix; |
| 4622 | |
| 4623 | gpio_inout(0x0003ff, 0x0003ff); |
| 4624 | gpio_write(1 << 9); /* reset MUX */ |
| 4625 | gpio_write(0); |
| 4626 | /* Preset camera 0 to the 4 controllers */ |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4627 | for (ix = 0; ix < 4; ix++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4628 | sw_status[ix] = ix; |
| 4629 | kodicom4400r_write(btv, ix, ix, 1); |
| 4630 | } |
| 4631 | /* |
| 4632 | * Since this is the "master", we need to set up the |
| 4633 | * other three controller chips' pointers to this structure |
| 4634 | * for later use in the muxsel routine. |
| 4635 | */ |
| 4636 | if ((btv->c.nr<1) || (btv->c.nr>BTTV_MAX-3)) |
| 4637 | return; |
| 4638 | master[btv->c.nr-1] = btv; |
| 4639 | master[btv->c.nr] = btv; |
| 4640 | master[btv->c.nr+1] = btv; |
| 4641 | master[btv->c.nr+2] = btv; |
| 4642 | } |
| 4643 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4644 | /* The Grandtec X-Guard framegrabber card uses two Dual 4-channel |
| 4645 | * video multiplexers to provide up to 16 video inputs. These |
| 4646 | * multiplexers are controlled by the lower 8 GPIO pins of the |
| 4647 | * bt878. The multiplexers probably Pericom PI5V331Q or similar. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4648 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4649 | * xxx0 is pin xxx of multiplexer U5, |
| 4650 | * yyy1 is pin yyy of multiplexer U2 |
| 4651 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4652 | #define ENA0 0x01 |
| 4653 | #define ENB0 0x02 |
| 4654 | #define ENA1 0x04 |
| 4655 | #define ENB1 0x08 |
| 4656 | |
| 4657 | #define IN10 0x10 |
| 4658 | #define IN00 0x20 |
| 4659 | #define IN11 0x40 |
| 4660 | #define IN01 0x80 |
| 4661 | |
| 4662 | static void xguard_muxsel(struct bttv *btv, unsigned int input) |
| 4663 | { |
| 4664 | static const int masks[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4665 | ENB0, ENB0|IN00, ENB0|IN10, ENB0|IN00|IN10, |
| 4666 | ENA0, ENA0|IN00, ENA0|IN10, ENA0|IN00|IN10, |
| 4667 | ENB1, ENB1|IN01, ENB1|IN11, ENB1|IN01|IN11, |
| 4668 | ENA1, ENA1|IN01, ENA1|IN11, ENA1|IN01|IN11, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4669 | }; |
| 4670 | gpio_write(masks[input%16]); |
| 4671 | } |
| 4672 | static void picolo_tetra_init(struct bttv *btv) |
| 4673 | { |
| 4674 | /*This is the video input redirection fonctionality : I DID NOT USED IT. */ |
| 4675 | btwrite (0x08<<16,BT848_GPIO_DATA);/*GPIO[19] [==> 4053 B+C] set to 1 */ |
| 4676 | btwrite (0x04<<16,BT848_GPIO_DATA);/*GPIO[18] [==> 4053 A] set to 1*/ |
| 4677 | } |
| 4678 | static void picolo_tetra_muxsel (struct bttv* btv, unsigned int input) |
| 4679 | { |
| 4680 | |
| 4681 | dprintk (KERN_DEBUG "bttv%d : picolo_tetra_muxsel => input = %d\n",btv->c.nr,input); |
| 4682 | /*Just set the right path in the analog multiplexers : channel 1 -> 4 ==> Analog Mux ==> MUX0*/ |
| 4683 | /*GPIO[20]&GPIO[21] used to choose the right input*/ |
| 4684 | btwrite (input<<20,BT848_GPIO_DATA); |
| 4685 | |
| 4686 | } |
| 4687 | |
| 4688 | /* |
| 4689 | * ivc120_muxsel [Added by Alan Garfield <alan@fromorbit.com>] |
| 4690 | * |
| 4691 | * The IVC120G security card has 4 i2c controlled TDA8540 matrix |
| 4692 | * swichers to provide 16 channels to MUX0. The TDA8540's have |
Andreas Mohr | d6e05ed | 2006-06-26 18:35:02 +0200 | [diff] [blame] | 4693 | * 4 independent outputs and as such the IVC120G also has the |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4694 | * optional "Monitor Out" bus. This allows the card to be looking |
| 4695 | * at one input while the monitor is looking at another. |
| 4696 | * |
| 4697 | * Since I've couldn't be bothered figuring out how to add an |
| 4698 | * independant muxsel for the monitor bus, I've just set it to |
| 4699 | * whatever the card is looking at. |
| 4700 | * |
| 4701 | * OUT0 of the TDA8540's is connected to MUX0 (0x03) |
| 4702 | * OUT1 of the TDA8540's is connected to "Monitor Out" (0x0C) |
| 4703 | * |
| 4704 | * TDA8540_ALT3 IN0-3 = Channel 13 - 16 (0x03) |
| 4705 | * TDA8540_ALT4 IN0-3 = Channel 1 - 4 (0x03) |
| 4706 | * TDA8540_ALT5 IN0-3 = Channel 5 - 8 (0x03) |
| 4707 | * TDA8540_ALT6 IN0-3 = Channel 9 - 12 (0x03) |
| 4708 | * |
| 4709 | */ |
| 4710 | |
| 4711 | /* All 7 possible sub-ids for the TDA8540 Matrix Switcher */ |
| 4712 | #define I2C_TDA8540 0x90 |
| 4713 | #define I2C_TDA8540_ALT1 0x92 |
| 4714 | #define I2C_TDA8540_ALT2 0x94 |
| 4715 | #define I2C_TDA8540_ALT3 0x96 |
| 4716 | #define I2C_TDA8540_ALT4 0x98 |
| 4717 | #define I2C_TDA8540_ALT5 0x9a |
| 4718 | #define I2C_TDA8540_ALT6 0x9c |
| 4719 | |
| 4720 | static void ivc120_muxsel(struct bttv *btv, unsigned int input) |
| 4721 | { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4722 | /* Simple maths */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4723 | int key = input % 4; |
| 4724 | int matrix = input / 4; |
| 4725 | |
| 4726 | dprintk("bttv%d: ivc120_muxsel: Input - %02d | TDA - %02d | In - %02d\n", |
| 4727 | btv->c.nr, input, matrix, key); |
| 4728 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4729 | /* Handles the input selection on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4730 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x00, |
| 4731 | ((matrix == 3) ? (key | key << 2) : 0x00), 1); |
| 4732 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x00, |
| 4733 | ((matrix == 0) ? (key | key << 2) : 0x00), 1); |
| 4734 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x00, |
| 4735 | ((matrix == 1) ? (key | key << 2) : 0x00), 1); |
| 4736 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x00, |
| 4737 | ((matrix == 2) ? (key | key << 2) : 0x00), 1); |
| 4738 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4739 | /* Handles the output enables on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4740 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4741 | ((matrix == 3) ? 0x03 : 0x00), 1); /* 13 - 16 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4742 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4743 | ((matrix == 0) ? 0x03 : 0x00), 1); /* 1-4 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4744 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4745 | ((matrix == 1) ? 0x03 : 0x00), 1); /* 5-8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4746 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4747 | ((matrix == 2) ? 0x03 : 0x00), 1); /* 9-12 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4748 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4749 | /* Selects MUX0 for input on the 878 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4750 | btaor((0)<<5, ~(3<<5), BT848_IFORM); |
| 4751 | } |
| 4752 | |
| 4753 | |
| 4754 | /* PXC200 muxsel helper |
| 4755 | * luke@syseng.anu.edu.au |
| 4756 | * another transplant |
| 4757 | * from Alessandro Rubini (rubini@linux.it) |
| 4758 | * |
| 4759 | * There are 4 kinds of cards: |
| 4760 | * PXC200L which is bt848 |
| 4761 | * PXC200F which is bt848 with PIC controlling mux |
| 4762 | * PXC200AL which is bt878 |
| 4763 | * PXC200AF which is bt878 with PIC controlling mux |
| 4764 | */ |
| 4765 | #define PX_CFG_PXC200F 0x01 |
| 4766 | #define PX_FLAG_PXC200A 0x00001000 /* a pxc200A is bt-878 based */ |
| 4767 | #define PX_I2C_PIC 0x0f |
| 4768 | #define PX_PXC200A_CARDID 0x200a1295 |
| 4769 | #define PX_I2C_CMD_CFG 0x00 |
| 4770 | |
| 4771 | static void PXC200_muxsel(struct bttv *btv, unsigned int input) |
| 4772 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4773 | int rc; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4774 | long mux; |
| 4775 | int bitmask; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4776 | unsigned char buf[2]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4777 | |
| 4778 | /* Read PIC config to determine if this is a PXC200F */ |
| 4779 | /* PX_I2C_CMD_CFG*/ |
| 4780 | buf[0]=0; |
| 4781 | buf[1]=0; |
| 4782 | rc=bttv_I2CWrite(btv,(PX_I2C_PIC<<1),buf[0],buf[1],1); |
| 4783 | if (rc) { |
| 4784 | printk(KERN_DEBUG "bttv%d: PXC200_muxsel: pic cfg write failed:%d\n", btv->c.nr,rc); |
| 4785 | /* not PXC ? do nothing */ |
| 4786 | return; |
| 4787 | } |
| 4788 | |
| 4789 | rc=bttv_I2CRead(btv,(PX_I2C_PIC<<1),NULL); |
| 4790 | if (!(rc & PX_CFG_PXC200F)) { |
| 4791 | printk(KERN_DEBUG "bttv%d: PXC200_muxsel: not PXC200F rc:%d \n", btv->c.nr,rc); |
| 4792 | return; |
| 4793 | } |
| 4794 | |
| 4795 | |
| 4796 | /* The multiplexer in the 200F is handled by the GPIO port */ |
| 4797 | /* get correct mapping between inputs */ |
| 4798 | /* mux = bttv_tvcards[btv->type].muxsel[input] & 3; */ |
| 4799 | /* ** not needed!? */ |
| 4800 | mux = input; |
| 4801 | |
| 4802 | /* make sure output pins are enabled */ |
| 4803 | /* bitmask=0x30f; */ |
| 4804 | bitmask=0x302; |
| 4805 | /* check whether we have a PXC200A */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4806 | if (btv->cardid == PX_PXC200A_CARDID) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4807 | bitmask ^= 0x180; /* use 7 and 9, not 8 and 9 */ |
| 4808 | bitmask |= 7<<4; /* the DAC */ |
| 4809 | } |
| 4810 | btwrite(bitmask, BT848_GPIO_OUT_EN); |
| 4811 | |
| 4812 | bitmask = btread(BT848_GPIO_DATA); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4813 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4814 | bitmask = (bitmask & ~0x280) | ((mux & 2) << 8) | ((mux & 1) << 7); |
| 4815 | else /* older device */ |
| 4816 | bitmask = (bitmask & ~0x300) | ((mux & 3) << 8); |
| 4817 | btwrite(bitmask,BT848_GPIO_DATA); |
| 4818 | |
| 4819 | /* |
| 4820 | * Was "to be safe, set the bt848 to input 0" |
| 4821 | * Actually, since it's ok at load time, better not messing |
| 4822 | * with these bits (on PXC200AF you need to set mux 2 here) |
| 4823 | * |
| 4824 | * needed because bttv-driver sets mux before calling this function |
| 4825 | */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4826 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4827 | btaor(2<<5, ~BT848_IFORM_MUXSEL, BT848_IFORM); |
| 4828 | else /* older device */ |
| 4829 | btand(~BT848_IFORM_MUXSEL,BT848_IFORM); |
| 4830 | |
| 4831 | printk(KERN_DEBUG "bttv%d: setting input channel to:%d\n", btv->c.nr,(int)mux); |
| 4832 | } |
| 4833 | |
| 4834 | /* ----------------------------------------------------------------------- */ |
| 4835 | /* motherboard chipset specific stuff */ |
| 4836 | |
Adrian Bunk | 7d44e89 | 2007-12-11 19:23:43 -0300 | [diff] [blame] | 4837 | void __init bttv_check_chipset(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4838 | { |
| 4839 | int pcipci_fail = 0; |
| 4840 | struct pci_dev *dev = NULL; |
| 4841 | |
Alan Cox | 3d265c9 | 2006-09-14 11:53:16 -0300 | [diff] [blame] | 4842 | if (pci_pci_problems & (PCIPCI_FAIL|PCIAGP_FAIL)) /* should check if target is AGP */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4843 | pcipci_fail = 1; |
| 4844 | if (pci_pci_problems & (PCIPCI_TRITON|PCIPCI_NATOMA|PCIPCI_VIAETBF)) |
| 4845 | triton1 = 1; |
| 4846 | if (pci_pci_problems & PCIPCI_VSFX) |
| 4847 | vsfx = 1; |
| 4848 | #ifdef PCIPCI_ALIMAGIK |
| 4849 | if (pci_pci_problems & PCIPCI_ALIMAGIK) |
| 4850 | latency = 0x0A; |
| 4851 | #endif |
| 4852 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4853 | |
| 4854 | /* print warnings about any quirks found */ |
| 4855 | if (triton1) |
| 4856 | printk(KERN_INFO "bttv: Host bridge needs ETBF enabled.\n"); |
| 4857 | if (vsfx) |
| 4858 | printk(KERN_INFO "bttv: Host bridge needs VSFX enabled.\n"); |
| 4859 | if (pcipci_fail) { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 4860 | printk(KERN_INFO "bttv: bttv and your chipset may not work " |
| 4861 | "together.\n"); |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 4862 | if (!no_overlay) { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 4863 | printk(KERN_INFO "bttv: overlay will be disabled.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4864 | no_overlay = 1; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 4865 | } else { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 4866 | printk(KERN_INFO "bttv: overlay forced. Use this " |
| 4867 | "option at your own risk.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4868 | } |
| 4869 | } |
| 4870 | if (UNSET != latency) |
| 4871 | printk(KERN_INFO "bttv: pci latency fixup [%d]\n",latency); |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 4872 | while ((dev = pci_get_device(PCI_VENDOR_ID_INTEL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4873 | PCI_DEVICE_ID_INTEL_82441, dev))) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4874 | unsigned char b; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4875 | pci_read_config_byte(dev, 0x53, &b); |
| 4876 | if (bttv_debug) |
| 4877 | printk(KERN_INFO "bttv: Host bridge: 82441FX Natoma, " |
| 4878 | "bufcon=0x%02x\n",b); |
| 4879 | } |
| 4880 | } |
| 4881 | |
| 4882 | int __devinit bttv_handle_chipset(struct bttv *btv) |
| 4883 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4884 | unsigned char command; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4885 | |
| 4886 | if (!triton1 && !vsfx && UNSET == latency) |
| 4887 | return 0; |
| 4888 | |
| 4889 | if (bttv_verbose) { |
| 4890 | if (triton1) |
| 4891 | printk(KERN_INFO "bttv%d: enabling ETBF (430FX/VP3 compatibilty)\n",btv->c.nr); |
| 4892 | if (vsfx && btv->id >= 878) |
| 4893 | printk(KERN_INFO "bttv%d: enabling VSFX\n",btv->c.nr); |
| 4894 | if (UNSET != latency) |
| 4895 | printk(KERN_INFO "bttv%d: setting pci timer to %d\n", |
| 4896 | btv->c.nr,latency); |
| 4897 | } |
| 4898 | |
| 4899 | if (btv->id < 878) { |
| 4900 | /* bt848 (mis)uses a bit in the irq mask for etbf */ |
| 4901 | if (triton1) |
| 4902 | btv->triton1 = BT848_INT_ETBF; |
| 4903 | } else { |
| 4904 | /* bt878 has a bit in the pci config space for it */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4905 | pci_read_config_byte(btv->c.pci, BT878_DEVCTRL, &command); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4906 | if (triton1) |
| 4907 | command |= BT878_EN_TBFX; |
| 4908 | if (vsfx) |
| 4909 | command |= BT878_EN_VSFX; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4910 | pci_write_config_byte(btv->c.pci, BT878_DEVCTRL, command); |
| 4911 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4912 | if (UNSET != latency) |
| 4913 | pci_write_config_byte(btv->c.pci, PCI_LATENCY_TIMER, latency); |
| 4914 | return 0; |
| 4915 | } |
| 4916 | |
| 4917 | |
| 4918 | /* |
| 4919 | * Local variables: |
| 4920 | * c-basic-offset: 8 |
| 4921 | * End: |
| 4922 | */ |