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 | |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 76 | static void phytec_muxsel(struct bttv *btv, unsigned int input); |
| 77 | |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 78 | static void gv800s_muxsel(struct bttv *btv, unsigned int input); |
| 79 | static void gv800s_init(struct bttv *btv); |
| 80 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 81 | static int terratec_active_radio_upgrade(struct bttv *btv); |
| 82 | static int tea5757_read(struct bttv *btv); |
| 83 | static int tea5757_write(struct bttv *btv, int value); |
| 84 | static void identify_by_eeprom(struct bttv *btv, |
| 85 | unsigned char eeprom_data[256]); |
| 86 | static int __devinit pvr_boot(struct bttv *btv); |
| 87 | |
| 88 | /* config variables */ |
Mauro Carvalho Chehab | a5ed425 | 2006-01-13 14:10:19 -0200 | [diff] [blame] | 89 | static unsigned int triton1; |
| 90 | static unsigned int vsfx; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 91 | static unsigned int latency = UNSET; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 92 | int no_overlay=-1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | |
| 94 | static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 95 | static unsigned int pll[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 96 | static unsigned int tuner[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 97 | static unsigned int svhs[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 98 | static unsigned int remote[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 99 | static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL }; |
| 100 | #ifdef MODULE |
| 101 | static unsigned int autoload = 1; |
| 102 | #else |
Mauro Carvalho Chehab | a5ed425 | 2006-01-13 14:10:19 -0200 | [diff] [blame] | 103 | static unsigned int autoload; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 104 | #endif |
| 105 | static unsigned int gpiomask = UNSET; |
| 106 | static unsigned int audioall = UNSET; |
| 107 | static unsigned int audiomux[5] = { [ 0 ... 4 ] = UNSET }; |
| 108 | |
| 109 | /* insmod options */ |
| 110 | module_param(triton1, int, 0444); |
| 111 | module_param(vsfx, int, 0444); |
| 112 | module_param(no_overlay, int, 0444); |
| 113 | module_param(latency, int, 0444); |
| 114 | module_param(gpiomask, int, 0444); |
| 115 | module_param(audioall, int, 0444); |
| 116 | module_param(autoload, int, 0444); |
| 117 | |
| 118 | module_param_array(card, int, NULL, 0444); |
| 119 | module_param_array(pll, int, NULL, 0444); |
| 120 | module_param_array(tuner, int, NULL, 0444); |
| 121 | module_param_array(svhs, int, NULL, 0444); |
| 122 | module_param_array(remote, int, NULL, 0444); |
| 123 | module_param_array(audiomux, int, NULL, 0444); |
| 124 | |
| 125 | MODULE_PARM_DESC(triton1,"set ETBF pci config bit " |
| 126 | "[enable bug compatibility for triton1 + others]"); |
| 127 | MODULE_PARM_DESC(vsfx,"set VSFX pci config bit " |
| 128 | "[yet another chipset flaw workaround]"); |
| 129 | MODULE_PARM_DESC(latency,"pci latency timer"); |
| 130 | MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list"); |
| 131 | MODULE_PARM_DESC(pll,"specify installed crystal (0=none, 28=28 MHz, 35=35 MHz)"); |
| 132 | MODULE_PARM_DESC(tuner,"specify installed tuner type"); |
| 133 | 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] | 134 | MODULE_PARM_DESC(no_overlay,"allow override overlay default (0 disables, 1 enables)" |
| 135 | " [some VIA/SIS chipsets are known to have problem with overlay]"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 136 | |
| 137 | /* ----------------------------------------------------------------------- */ |
| 138 | /* list of card IDs for bt878+ cards */ |
| 139 | |
| 140 | static struct CARD { |
| 141 | unsigned id; |
| 142 | int cardnr; |
| 143 | char *name; |
| 144 | } cards[] __devinitdata = { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 145 | { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" }, |
| 146 | { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" }, |
| 147 | { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" }, |
| 148 | { 0xff000070, BTTV_BOARD_OSPREY1x0, "Osprey-100" }, |
| 149 | { 0xff010070, BTTV_BOARD_OSPREY2x0_SVID,"Osprey-200" }, |
| 150 | { 0xff020070, BTTV_BOARD_OSPREY500, "Osprey-500" }, |
| 151 | { 0xff030070, BTTV_BOARD_OSPREY2000, "Osprey-2000" }, |
| 152 | { 0xff040070, BTTV_BOARD_OSPREY540, "Osprey-540" }, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 153 | { 0xff070070, BTTV_BOARD_OSPREY440, "Osprey-440" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 154 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 155 | { 0x00011002, BTTV_BOARD_ATI_TVWONDER, "ATI TV Wonder" }, |
| 156 | { 0x00031002, BTTV_BOARD_ATI_TVWONDERVE,"ATI TV Wonder/VE" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 157 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 158 | { 0x6606107d, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 159 | { 0x6607107d, BTTV_BOARD_WINFASTVC100, "Leadtek WinFast VC 100" }, |
| 160 | { 0x6609107d, BTTV_BOARD_WINFAST2000, "Leadtek TV 2000 XP" }, |
| 161 | { 0x263610b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" }, |
| 162 | { 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] | 163 | { 0x402010fc, BTTV_BOARD_GVBCTV3PCI, "I-O Data Co. GV-BCTV3/PCI" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 164 | { 0x405010fc, BTTV_BOARD_GVBCTV4PCI, "I-O Data Co. GV-BCTV4/PCI" }, |
| 165 | { 0x407010fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 166 | { 0xd01810fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 167 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 168 | { 0x001211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 169 | /* some cards ship with byteswapped IDs ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 170 | { 0x1200bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
| 171 | { 0xff00bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 172 | /* this seems to happen as well ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 173 | { 0xff1211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 174 | |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 175 | { 0x3000121a, BTTV_BOARD_VOODOOTV_200, "3Dfx VoodooTV 200" }, |
| 176 | { 0x263710b4, BTTV_BOARD_VOODOOTV_FM, "3Dfx VoodooTV FM" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 177 | { 0x3060121a, BTTV_BOARD_STB2, "3Dfx VoodooTV 100/ STB OEM" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 178 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 179 | { 0x3000144f, BTTV_BOARD_MAGICTVIEW063, "(Askey Magic/others) TView99 CPH06x" }, |
| 180 | { 0xa005144f, BTTV_BOARD_MAGICTVIEW063, "CPH06X TView99-Card" }, |
| 181 | { 0x3002144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH05x" }, |
| 182 | { 0x3005144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH061/06L (T1/LC)" }, |
| 183 | { 0x5000144f, BTTV_BOARD_MAGICTVIEW061, "Askey CPH050" }, |
| 184 | { 0x300014ff, BTTV_BOARD_MAGICTVIEW061, "TView 99 (CPH061)" }, |
| 185 | { 0x300214ff, BTTV_BOARD_PHOEBE_TVMAS, "Phoebe TV Master (CPH060)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 186 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 187 | { 0x00011461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 188 | { 0x00021461, BTTV_BOARD_AVERMEDIA98, "AVermedia TVCapture 98" }, |
| 189 | { 0x00031461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 190 | { 0x00041461, BTTV_BOARD_AVERMEDIA98, "AVerMedia TVCapture 98" }, |
| 191 | { 0x03001461, BTTV_BOARD_AVERMEDIA98, "VDOMATE TV TUNER CARD" }, |
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 | { 0x1117153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL B/G)" }, |
| 194 | { 0x1118153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL B/G)" }, |
| 195 | { 0x1119153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL I)" }, |
| 196 | { 0x111a153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL I)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 197 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 198 | { 0x1123153b, BTTV_BOARD_TERRATVRADIO, "Terratec TV Radio+" }, |
| 199 | { 0x1127153b, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.05)" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 200 | /* clashes with FlyVideo |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 201 | *{ 0x18521852, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.10)" }, */ |
| 202 | { 0x1134153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (LR102)" }, |
| 203 | { 0x1135153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* LR102 */ |
| 204 | { 0x5018153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue" }, /* ?? */ |
| 205 | { 0xff3b153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* ?? */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 206 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 207 | { 0x400015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 208 | { 0x400a15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 209 | { 0x400d15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 210 | { 0x401015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 211 | { 0x401615b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 212 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 213 | { 0x1430aa00, BTTV_BOARD_PV143, "Provideo PV143A" }, |
| 214 | { 0x1431aa00, BTTV_BOARD_PV143, "Provideo PV143B" }, |
| 215 | { 0x1432aa00, BTTV_BOARD_PV143, "Provideo PV143C" }, |
| 216 | { 0x1433aa00, BTTV_BOARD_PV143, "Provideo PV143D" }, |
| 217 | { 0x1433aa03, BTTV_BOARD_PV143, "Security Eyes" }, |
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 | { 0x1460aa00, BTTV_BOARD_PV150, "Provideo PV150A-1" }, |
| 220 | { 0x1461aa01, BTTV_BOARD_PV150, "Provideo PV150A-2" }, |
| 221 | { 0x1462aa02, BTTV_BOARD_PV150, "Provideo PV150A-3" }, |
| 222 | { 0x1463aa03, BTTV_BOARD_PV150, "Provideo PV150A-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 | { 0x1464aa04, BTTV_BOARD_PV150, "Provideo PV150B-1" }, |
| 225 | { 0x1465aa05, BTTV_BOARD_PV150, "Provideo PV150B-2" }, |
| 226 | { 0x1466aa06, BTTV_BOARD_PV150, "Provideo PV150B-3" }, |
| 227 | { 0x1467aa07, BTTV_BOARD_PV150, "Provideo PV150B-4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 228 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 229 | { 0xa132ff00, BTTV_BOARD_IVC100, "IVC-100" }, |
| 230 | { 0xa1550000, BTTV_BOARD_IVC200, "IVC-200" }, |
| 231 | { 0xa1550001, BTTV_BOARD_IVC200, "IVC-200" }, |
| 232 | { 0xa1550002, BTTV_BOARD_IVC200, "IVC-200" }, |
| 233 | { 0xa1550003, BTTV_BOARD_IVC200, "IVC-200" }, |
| 234 | { 0xa1550100, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 235 | { 0xa1550101, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 236 | { 0xa1550102, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 237 | { 0xa1550103, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 238 | { 0xa182ff00, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 239 | { 0xa182ff01, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 240 | { 0xa182ff02, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 241 | { 0xa182ff03, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 242 | { 0xa182ff04, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 243 | { 0xa182ff05, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 244 | { 0xa182ff06, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 245 | { 0xa182ff07, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 246 | { 0xa182ff08, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 247 | { 0xa182ff09, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 248 | { 0xa182ff0a, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 249 | { 0xa182ff0b, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 250 | { 0xa182ff0c, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 251 | { 0xa182ff0d, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 252 | { 0xa182ff0e, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 253 | { 0xa182ff0f, BTTV_BOARD_IVC120, "IVC-120G" }, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 254 | { 0xf0500000, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 255 | { 0xf0500001, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 256 | { 0xf0500002, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 257 | { 0xf0500003, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 258 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 259 | { 0x41424344, BTTV_BOARD_GRANDTEC, "GrandTec Multi Capture" }, |
| 260 | { 0x01020304, BTTV_BOARD_XGUARD, "Grandtec Grand X-Guard" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 261 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 262 | { 0x18501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 263 | { 0xa0501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 264 | { 0x18511851, BTTV_BOARD_FLYVIDEO98EZ, "FlyVideo 98EZ (LR51)/ CyberMail AV" }, |
| 265 | { 0x18521852, BTTV_BOARD_TYPHOON_TVIEW, "FlyVideo 98FM (LR50)/ Typhoon TView TV/FM Tuner" }, |
| 266 | { 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" }, |
| 267 | { 0x18501f7f, BTTV_BOARD_FLYVIDEO_98, "Lifeview Flyvideo 98" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 268 | |
Trent Piepho | 657de3c | 2006-06-20 00:30:57 -0300 | [diff] [blame] | 269 | { 0x010115cb, BTTV_BOARD_GMV1, "AG GMV1" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 270 | { 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] | 271 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 272 | { 0x10b42636, BTTV_BOARD_HAUPPAUGE878, "STB ???" }, |
| 273 | { 0x217d6606, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 274 | { 0xfff6f6ff, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 275 | { 0x03116000, BTTV_BOARD_SENSORAY311, "Sensoray 311" }, |
| 276 | { 0x00790e11, BTTV_BOARD_WINDVR, "Canopus WinDVR PCI" }, |
| 277 | { 0xa0fca1a0, BTTV_BOARD_ZOLTRIX, "Face to Face Tvmax" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 278 | { 0x82b2aa6a, BTTV_BOARD_SIMUS_GVC1100, "SIMUS GVC1100" }, |
| 279 | { 0x146caa0c, BTTV_BOARD_PV951, "ituner spectra8" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 280 | { 0x200a1295, BTTV_BOARD_PXC200, "ImageNation PXC200A" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 281 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 282 | { 0x40111554, BTTV_BOARD_PV_BT878P_9B, "Prolink Pixelview PV-BT" }, |
| 283 | { 0x17de0a01, BTTV_BOARD_KWORLD, "Mecer TV/FM/Video Tuner" }, |
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 | { 0x01051805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #1" }, |
| 286 | { 0x01061805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #2" }, |
| 287 | { 0x01071805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #3" }, |
| 288 | { 0x01081805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 289 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 290 | { 0x15409511, BTTV_BOARD_ACORP_Y878F, "Acorp Y878F" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 291 | |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 292 | { 0x53534149, BTTV_BOARD_SSAI_SECURITY, "SSAI Security Video Interface" }, |
| 293 | { 0x5353414a, BTTV_BOARD_SSAI_ULTRASOUND, "SSAI Ultrasound Video Interface" }, |
| 294 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 295 | /* likely broken, vendor id doesn't match the other magic views ... |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 296 | * { 0xa0fca04f, BTTV_BOARD_MAGICTVIEW063, "Guillemot Maxi TV Video 3" }, */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 297 | |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 298 | /* Duplicate PCI ID, reconfigure for this board during the eeprom read. |
| 299 | * { 0x13eb0070, BTTV_BOARD_HAUPPAUGE_IMPACTVCB, "Hauppauge ImpactVCB" }, */ |
| 300 | |
Robert Millan | 76ecf45 | 2009-03-11 08:18:53 -0300 | [diff] [blame] | 301 | { 0x109e036e, BTTV_BOARD_CONCEPTRONIC_CTVFMI2, "Conceptronic CTVFMi v2"}, |
| 302 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 303 | /* DVB cards (using pci function .1 for mpeg data xfer) */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 304 | { 0x001c11bd, BTTV_BOARD_PINNACLESAT, "Pinnacle PCTV Sat" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 305 | { 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" }, |
| 306 | { 0x20007063, BTTV_BOARD_PC_HDTV, "pcHDTV HD-2000 TV"}, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 307 | { 0x002611bd, BTTV_BOARD_TWINHAN_DST, "Pinnacle PCTV SAT CI" }, |
| 308 | { 0x00011822, BTTV_BOARD_TWINHAN_DST, "Twinhan VisionPlus DVB" }, |
| 309 | { 0xfc00270f, BTTV_BOARD_TWINHAN_DST, "ChainTech digitop DST-1000 DVB-S" }, |
| 310 | { 0x07711461, BTTV_BOARD_AVDVBT_771, "AVermedia AverTV DVB-T 771" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 311 | { 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 312 | { 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" }, |
Michael Krufky | 19790db | 2007-01-07 22:12:22 -0300 | [diff] [blame] | 313 | { 0xdb1118ac, BTTV_BOARD_DVICO_DVBT_LITE, "Ultraview DVB-T Lite" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 314 | { 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" }, |
Cameron Hutchinson | 442d15d | 2006-06-21 18:45:31 -0300 | [diff] [blame] | 315 | { 0x00261822, BTTV_BOARD_TWINHAN_DST, "DNTV Live! Mini "}, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 316 | { 0xd200dbc0, BTTV_BOARD_DVICO_FUSIONHDTV_2, "DViCO FusionHDTV 2" }, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 317 | { 0x763c008a, BTTV_BOARD_GEOVISION_GV600, "GeoVision GV-600" }, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 318 | { 0x18011000, BTTV_BOARD_ENLTV_FM_2, "Encore ENL TV-FM-2" }, |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 319 | { 0x763d800a, BTTV_BOARD_GEOVISION_GV800S, "GeoVision GV-800(S) (master)" }, |
| 320 | { 0x763d800b, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, |
| 321 | { 0x763d800c, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, |
| 322 | { 0x763d800d, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, |
Alan McIvor | dceaddb | 2009-03-12 21:43:34 -0300 | [diff] [blame^] | 323 | |
| 324 | { 0x15401830, BTTV_BOARD_PV183, "Provideo PV183-1" }, |
| 325 | { 0x15401831, BTTV_BOARD_PV183, "Provideo PV183-2" }, |
| 326 | { 0x15401832, BTTV_BOARD_PV183, "Provideo PV183-3" }, |
| 327 | { 0x15401833, BTTV_BOARD_PV183, "Provideo PV183-4" }, |
| 328 | { 0x15401834, BTTV_BOARD_PV183, "Provideo PV183-5" }, |
| 329 | { 0x15401835, BTTV_BOARD_PV183, "Provideo PV183-6" }, |
| 330 | { 0x15401836, BTTV_BOARD_PV183, "Provideo PV183-7" }, |
| 331 | { 0x15401837, BTTV_BOARD_PV183, "Provideo PV183-8" }, |
| 332 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 333 | { 0, -1, NULL } |
| 334 | }; |
| 335 | |
| 336 | /* ----------------------------------------------------------------------- */ |
| 337 | /* array with description for bt848 / bt878 tv/grabber cards */ |
| 338 | |
| 339 | struct tvcard bttv_tvcards[] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 340 | /* ---- card 0x00 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 341 | [BTTV_BOARD_UNKNOWN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 342 | .name = " *** UNKNOWN/GENERIC *** ", |
| 343 | .video_inputs = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 344 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 345 | .muxsel = MUXSEL(2, 3, 1, 0), |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 346 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 347 | .tuner_addr = ADDR_UNSET, |
| 348 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 349 | [BTTV_BOARD_MIRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 350 | .name = "MIRO PCTV", |
| 351 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 352 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 353 | .svhs = 2, |
| 354 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 355 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 356 | .gpiomux = { 2, 0, 0, 0 }, |
| 357 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 358 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 359 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 360 | .tuner_addr = ADDR_UNSET, |
| 361 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 362 | [BTTV_BOARD_HAUPPAUGE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 363 | .name = "Hauppauge (bt848)", |
| 364 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 365 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 366 | .svhs = 2, |
| 367 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 368 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 369 | .gpiomux = { 0, 1, 2, 3 }, |
| 370 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 371 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 372 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 373 | .tuner_addr = ADDR_UNSET, |
| 374 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 375 | [BTTV_BOARD_STB] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 376 | .name = "STB, Gateway P/N 6000699 (bt848)", |
| 377 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 378 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 379 | .svhs = 2, |
| 380 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 381 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 382 | .gpiomux = { 4, 0, 2, 3 }, |
| 383 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 384 | .no_msp34xx = 1, |
| 385 | .needs_tvaudio = 1, |
| 386 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 387 | .tuner_addr = ADDR_UNSET, |
| 388 | .pll = PLL_28, |
| 389 | .has_radio = 1, |
| 390 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 391 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 392 | /* ---- card 0x04 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 393 | [BTTV_BOARD_INTEL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 394 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 395 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 396 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 397 | .svhs = 2, |
| 398 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 399 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 400 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 401 | .needs_tvaudio = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 402 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 403 | .tuner_addr = ADDR_UNSET, |
| 404 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 405 | [BTTV_BOARD_DIAMOND] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 406 | .name = "Diamond DTV2000", |
| 407 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 408 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 409 | .svhs = 2, |
| 410 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 411 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 412 | .gpiomux = { 0, 1, 0, 1 }, |
| 413 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 414 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 415 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 416 | .tuner_addr = ADDR_UNSET, |
| 417 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 418 | [BTTV_BOARD_AVERMEDIA] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 419 | .name = "AVerMedia TVPhone", |
| 420 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 421 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 422 | .svhs = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 423 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 424 | .gpiomask = 0x0f, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 425 | .gpiomux = { 0x0c, 0x04, 0x08, 0x04 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 426 | /* 0x04 for some cards ?? */ |
| 427 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 428 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 429 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 430 | .audio_mode_gpio= avermedia_tvphone_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 431 | .has_remote = 1, |
| 432 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 433 | [BTTV_BOARD_MATRIX_VISION] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 434 | .name = "MATRIX-Vision MV-Delta", |
| 435 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 436 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 437 | .svhs = 3, |
| 438 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 439 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 440 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 441 | .needs_tvaudio = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 442 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 443 | .tuner_addr = ADDR_UNSET, |
| 444 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 445 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 446 | /* ---- card 0x08 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 447 | [BTTV_BOARD_FLYVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 448 | .name = "Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26", |
| 449 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 450 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 451 | .svhs = 2, |
| 452 | .gpiomask = 0xc00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 453 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 454 | .gpiomux = { 0, 0xc00, 0x800, 0x400 }, |
| 455 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 456 | .needs_tvaudio = 1, |
| 457 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 458 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 459 | .tuner_addr = ADDR_UNSET, |
| 460 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 461 | [BTTV_BOARD_TURBOTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 462 | .name = "IMS/IXmicro TurboTV", |
| 463 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 464 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 465 | .svhs = 2, |
| 466 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 467 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 468 | .gpiomux = { 1, 1, 2, 3 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 469 | .needs_tvaudio = 0, |
| 470 | .pll = PLL_28, |
| 471 | .tuner_type = TUNER_TEMIC_PAL, |
| 472 | .tuner_addr = ADDR_UNSET, |
| 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, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 477 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 478 | .svhs = 2, |
| 479 | .gpiomask = 0x0f, /* old: 7 */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 480 | .muxsel = MUXSEL(2, 0, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 481 | .gpiomux = { 0, 1, 2, 3 }, |
| 482 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 483 | .needs_tvaudio = 1, |
| 484 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 485 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 486 | .tuner_addr = ADDR_UNSET, |
| 487 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 488 | [BTTV_BOARD_MIROPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 489 | .name = "MIRO PCTV pro", |
| 490 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 491 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 492 | .svhs = 2, |
| 493 | .gpiomask = 0x3014f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 494 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 495 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
| 496 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 497 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 498 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 499 | .tuner_addr = ADDR_UNSET, |
| 500 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 501 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 502 | /* ---- card 0x0c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 503 | [BTTV_BOARD_ADSTECH_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 504 | .name = "ADS Technologies Channel Surfer TV (bt848)", |
| 505 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 506 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 507 | .svhs = 2, |
| 508 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 509 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 510 | .gpiomux = { 13, 14, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 511 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 512 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 513 | .tuner_addr = ADDR_UNSET, |
| 514 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 515 | [BTTV_BOARD_AVERMEDIA98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 516 | .name = "AVerMedia TVCapture 98", |
| 517 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 518 | /* .audio_inputs= 4, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 519 | .svhs = 2, |
| 520 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 521 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 522 | .gpiomux = { 13, 14, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 523 | .needs_tvaudio = 1, |
| 524 | .msp34xx_alt = 1, |
| 525 | .pll = PLL_28, |
| 526 | .tuner_type = TUNER_PHILIPS_PAL, |
| 527 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 528 | .audio_mode_gpio= avermedia_tv_stereo_audio, |
Ray Cole | a8900fc | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 529 | .no_gpioirq = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 530 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 531 | [BTTV_BOARD_VHX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 532 | .name = "Aimslab Video Highway Xtreme (VHX)", |
| 533 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 534 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 535 | .svhs = 2, |
| 536 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 537 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 538 | .gpiomux = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */ |
| 539 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 540 | .needs_tvaudio = 1, |
| 541 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 542 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 543 | .tuner_addr = ADDR_UNSET, |
| 544 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 545 | [BTTV_BOARD_ZOLTRIX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 546 | .name = "Zoltrix TV-Max", |
| 547 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 548 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 549 | .svhs = 2, |
| 550 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 551 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 552 | .gpiomux = { 0, 0, 1, 0 }, |
| 553 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 554 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 555 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 556 | .tuner_addr = ADDR_UNSET, |
| 557 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 558 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 559 | /* ---- card 0x10 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 560 | [BTTV_BOARD_PIXVIEWPLAYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 561 | .name = "Prolink Pixelview PlayTV (bt878)", |
| 562 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 563 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 564 | .svhs = 2, |
| 565 | .gpiomask = 0x01fe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 566 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 567 | /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 568 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 569 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 570 | .needs_tvaudio = 1, |
| 571 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 572 | .tuner_type = UNSET, |
Wojciech Migda | 27dea3e | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 573 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 574 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 575 | [BTTV_BOARD_WINVIEW_601] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 576 | .name = "Leadtek WinView 601", |
| 577 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 578 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 579 | .svhs = 2, |
| 580 | .gpiomask = 0x8300f8, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 581 | .muxsel = MUXSEL(2, 3, 1, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 582 | .gpiomux = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007 }, |
| 583 | .gpiomute = 0xcfa007, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 584 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 585 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 586 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 587 | .volume_gpio = winview_volume, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 588 | .has_radio = 1, |
| 589 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 590 | [BTTV_BOARD_AVEC_INTERCAP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 591 | .name = "AVEC Intercapture", |
| 592 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 593 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 594 | .svhs = 2, |
| 595 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 596 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 597 | .gpiomux = { 1, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 598 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 599 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 600 | .tuner_addr = ADDR_UNSET, |
| 601 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 602 | [BTTV_BOARD_LIFE_FLYKIT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 603 | .name = "Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)", |
| 604 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 605 | /* .audio_inputs= 1, */ |
| 606 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 607 | .gpiomask = 0x8dff00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 608 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 609 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 610 | .no_msp34xx = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 611 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 612 | .tuner_addr = ADDR_UNSET, |
| 613 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 614 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 615 | /* ---- card 0x14 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 616 | [BTTV_BOARD_CEI_RAFFLES] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 617 | .name = "CEI Raffles Card", |
| 618 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 619 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 620 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 621 | .muxsel = MUXSEL(2, 3, 1, 1), |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 622 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 623 | .tuner_addr = ADDR_UNSET, |
| 624 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 625 | [BTTV_BOARD_CONFERENCETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 626 | .name = "Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50", |
| 627 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 628 | /* .audio_inputs= 2, tuner, line in */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 629 | .svhs = 2, |
| 630 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 631 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 632 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 633 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 634 | .pll = PLL_28, |
| 635 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 636 | .tuner_addr = ADDR_UNSET, |
| 637 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 638 | [BTTV_BOARD_PHOEBE_TVMAS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 639 | .name = "Askey CPH050/ Phoebe Tv Master + FM", |
| 640 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 641 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 642 | .svhs = 2, |
| 643 | .gpiomask = 0xc00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 644 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 645 | .gpiomux = { 0, 1, 0x800, 0x400 }, |
| 646 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 647 | .needs_tvaudio = 1, |
| 648 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 649 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 650 | .tuner_addr = ADDR_UNSET, |
| 651 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 652 | [BTTV_BOARD_MODTEC_205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 653 | .name = "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878", |
| 654 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 655 | /* .audio_inputs= 1, */ |
| 656 | .svhs = NO_SVHS, |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 657 | .has_dig_in = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 658 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 659 | .muxsel = MUXSEL(2, 3, 0), /* input 2 is digital */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 660 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 661 | .gpiomux = { 0, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 662 | .no_msp34xx = 1, |
| 663 | .pll = PLL_28, |
| 664 | .tuner_type = TUNER_ALPS_TSBB5_PAL_I, |
| 665 | .tuner_addr = ADDR_UNSET, |
| 666 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 667 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 668 | /* ---- card 0x18 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 669 | [BTTV_BOARD_MAGICTVIEW061] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 670 | .name = "Askey CPH05X/06X (bt878) [many vendors]", |
| 671 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 672 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 673 | .svhs = 2, |
| 674 | .gpiomask = 0xe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 675 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 676 | .gpiomux = {0x400, 0x400, 0x400, 0x400 }, |
| 677 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 678 | .needs_tvaudio = 1, |
| 679 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 680 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 681 | .tuner_addr = ADDR_UNSET, |
| 682 | .has_remote = 1, |
| 683 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 684 | [BTTV_BOARD_VOBIS_BOOSTAR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 685 | .name = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar", |
| 686 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 687 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 688 | .svhs = 2, |
| 689 | .gpiomask = 0x1f0fff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 690 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 691 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 692 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 693 | .needs_tvaudio = 0, |
| 694 | .tuner_type = TUNER_PHILIPS_PAL, |
| 695 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 696 | .audio_mode_gpio= terratv_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 697 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 698 | [BTTV_BOARD_HAUPPAUG_WCAM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 699 | .name = "Hauppauge WinCam newer (bt878)", |
| 700 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 701 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 702 | .svhs = 3, |
| 703 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 704 | .muxsel = MUXSEL(2, 0, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 705 | .gpiomux = { 0, 1, 2, 3 }, |
| 706 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 707 | .needs_tvaudio = 1, |
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, |
| 710 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 711 | [BTTV_BOARD_MAXI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 712 | .name = "Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50", |
| 713 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 714 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 715 | .svhs = 2, |
| 716 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 717 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 718 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 719 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 720 | .pll = PLL_28, |
| 721 | .tuner_type = TUNER_PHILIPS_SECAM, |
| 722 | .tuner_addr = ADDR_UNSET, |
| 723 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 724 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 725 | /* ---- card 0x1c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 726 | [BTTV_BOARD_TERRATV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 727 | .name = "Terratec TerraTV+ Version 1.1 (bt878)", |
| 728 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 729 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 730 | .svhs = 2, |
| 731 | .gpiomask = 0x1f0fff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 732 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 733 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0x00000 }, |
| 734 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 735 | .needs_tvaudio = 0, |
| 736 | .tuner_type = TUNER_PHILIPS_PAL, |
| 737 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 738 | .audio_mode_gpio= terratv_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 739 | /* GPIO wiring: |
| 740 | External 20 pin connector (for Active Radio Upgrade board) |
| 741 | gpio00: i2c-sda |
| 742 | gpio01: i2c-scl |
| 743 | gpio02: om5610-data |
| 744 | gpio03: om5610-clk |
| 745 | gpio04: om5610-wre |
| 746 | gpio05: om5610-stereo |
| 747 | gpio06: rds6588-davn |
| 748 | gpio07: Pin 7 n.c. |
| 749 | gpio08: nIOW |
| 750 | gpio09+10: nIOR, nSEL ?? (bt878) |
| 751 | gpio09: nIOR (bt848) |
| 752 | gpio10: nSEL (bt848) |
| 753 | Sound Routing: |
| 754 | gpio16: u2-A0 (1st 4052bt) |
| 755 | gpio17: u2-A1 |
| 756 | gpio18: u2-nEN |
| 757 | gpio19: u4-A0 (2nd 4052) |
| 758 | gpio20: u4-A1 |
| 759 | u4-nEN - GND |
| 760 | Btspy: |
| 761 | 00000 : Cdrom (internal audio input) |
| 762 | 10000 : ext. Video audio input |
| 763 | 20000 : TV Mono |
| 764 | a0000 : TV Mono/2 |
| 765 | 1a0000 : TV Stereo |
| 766 | 30000 : Radio |
| 767 | 40000 : Mute |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 768 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 769 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 770 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 771 | [BTTV_BOARD_PXC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 772 | /* Jannik Fritsch <jannik@techfak.uni-bielefeld.de> */ |
| 773 | .name = "Imagenation PXC200", |
| 774 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 775 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 776 | .svhs = 1, /* was: 4 */ |
| 777 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 778 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 779 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 780 | .needs_tvaudio = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 781 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 782 | .tuner_addr = ADDR_UNSET, |
| 783 | .muxsel_hook = PXC200_muxsel, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 784 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 785 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 786 | [BTTV_BOARD_FLYVIDEO_98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 787 | .name = "Lifeview FlyVideo 98 LR50", |
| 788 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 789 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 790 | .svhs = 2, |
| 791 | .gpiomask = 0x1800, /* 0x8dfe00 */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 792 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 793 | .gpiomux = { 0, 0x0800, 0x1000, 0x1000 }, |
| 794 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 795 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 796 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 797 | .tuner_addr = ADDR_UNSET, |
| 798 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 799 | [BTTV_BOARD_IPROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 800 | .name = "Formac iProTV, Formac ProTV I (bt848)", |
| 801 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 802 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 803 | .svhs = 3, |
| 804 | .gpiomask = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 805 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 806 | .gpiomux = { 1, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 807 | .pll = PLL_28, |
| 808 | .tuner_type = TUNER_PHILIPS_PAL, |
| 809 | .tuner_addr = ADDR_UNSET, |
| 810 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 811 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 812 | /* ---- card 0x20 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 813 | [BTTV_BOARD_INTEL_C_S_PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 814 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 815 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 816 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 817 | .svhs = 2, |
| 818 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 819 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 820 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 821 | .needs_tvaudio = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 822 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 823 | .tuner_addr = ADDR_UNSET, |
| 824 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 825 | [BTTV_BOARD_TERRATVALUE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 826 | .name = "Terratec TerraTValue Version Bt878", |
| 827 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 828 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 829 | .svhs = 2, |
| 830 | .gpiomask = 0xffff00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 831 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 832 | .gpiomux = { 0x500, 0, 0x300, 0x900 }, |
| 833 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 834 | .needs_tvaudio = 1, |
| 835 | .pll = PLL_28, |
| 836 | .tuner_type = TUNER_PHILIPS_PAL, |
| 837 | .tuner_addr = ADDR_UNSET, |
| 838 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 839 | [BTTV_BOARD_WINFAST2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 840 | .name = "Leadtek WinFast 2000/ WinFast 2000 XP", |
| 841 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 842 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 843 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 844 | /* TV, CVid, SVid, CVid over SVid connector */ |
| 845 | .muxsel = MUXSEL(2, 3, 1, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 846 | /* Alexander Varakin <avarakin@hotmail.com> [stereo version] */ |
| 847 | .gpiomask = 0xb33000, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 848 | .gpiomux = { 0x122000,0x1000,0x0000,0x620000 }, |
| 849 | .gpiomute = 0x800000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 850 | /* Audio Routing for "WinFast 2000 XP" (no tv stereo !) |
| 851 | gpio23 -- hef4052:nEnable (0x800000) |
| 852 | gpio12 -- hef4052:A1 |
| 853 | gpio13 -- hef4052:A0 |
| 854 | 0x0000: external audio |
| 855 | 0x1000: FM |
| 856 | 0x2000: TV |
| 857 | 0x3000: n.c. |
| 858 | Note: There exists another variant "Winfast 2000" with tv stereo !? |
| 859 | Note: eeprom only contains FF and pci subsystem id 107d:6606 |
| 860 | */ |
| 861 | .needs_tvaudio = 0, |
| 862 | .pll = PLL_28, |
| 863 | .has_radio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 864 | .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] | 865 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 866 | .audio_mode_gpio= winfast2000_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 867 | .has_remote = 1, |
| 868 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 869 | [BTTV_BOARD_CHRONOS_VS2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 870 | .name = "Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II", |
| 871 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 872 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 873 | .svhs = 2, |
| 874 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 875 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 876 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 877 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 878 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 879 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 880 | .tuner_addr = ADDR_UNSET, |
| 881 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 882 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 883 | /* ---- card 0x24 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 884 | [BTTV_BOARD_TYPHOON_TVIEW] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 885 | .name = "Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tuner", |
| 886 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 887 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 888 | .svhs = 2, |
| 889 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 890 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 891 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 892 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 893 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 894 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 895 | .tuner_addr = ADDR_UNSET, |
| 896 | .has_radio = 1, |
| 897 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 898 | [BTTV_BOARD_PXELVWPLTVPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 899 | .name = "Prolink PixelView PlayTV pro", |
| 900 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 901 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 902 | .svhs = 2, |
| 903 | .gpiomask = 0xff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 904 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 905 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 906 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 907 | .no_msp34xx = 1, |
| 908 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 909 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 910 | .tuner_addr = ADDR_UNSET, |
| 911 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 912 | [BTTV_BOARD_MAGICTVIEW063] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 913 | .name = "Askey CPH06X TView99", |
| 914 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 915 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 916 | .svhs = 2, |
| 917 | .gpiomask = 0x551e00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 918 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 919 | .gpiomux = { 0x551400, 0x551200, 0, 0 }, |
| 920 | .gpiomute = 0x551c00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 921 | .needs_tvaudio = 1, |
| 922 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 923 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 924 | .tuner_addr = ADDR_UNSET, |
| 925 | .has_remote = 1, |
| 926 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 927 | [BTTV_BOARD_PINNACLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 928 | .name = "Pinnacle PCTV Studio/Rave", |
| 929 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 930 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 931 | .svhs = 2, |
| 932 | .gpiomask = 0x03000F, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 933 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 934 | .gpiomux = { 2, 0xd0001, 0, 0 }, |
| 935 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 936 | .needs_tvaudio = 0, |
| 937 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 938 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 939 | .tuner_addr = ADDR_UNSET, |
| 940 | }, |
| 941 | |
| 942 | /* ---- card 0x28 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 943 | [BTTV_BOARD_STB2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 944 | .name = "STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100", |
| 945 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 946 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 947 | .svhs = 2, |
| 948 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 949 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 950 | .gpiomux = { 4, 0, 2, 3 }, |
| 951 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 952 | .no_msp34xx = 1, |
| 953 | .needs_tvaudio = 1, |
| 954 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 955 | .tuner_addr = ADDR_UNSET, |
| 956 | .pll = PLL_28, |
| 957 | .has_radio = 1, |
| 958 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 959 | [BTTV_BOARD_AVPHONE98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 960 | .name = "AVerMedia TVPhone 98", |
| 961 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 962 | /* .audio_inputs= 4, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 963 | .svhs = 2, |
| 964 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 965 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 966 | .gpiomux = { 13, 4, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 967 | .needs_tvaudio = 1, |
| 968 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 969 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 970 | .tuner_addr = ADDR_UNSET, |
| 971 | .has_radio = 1, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 972 | .audio_mode_gpio= avermedia_tvphone_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 973 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 974 | [BTTV_BOARD_PV951] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 975 | .name = "ProVideo PV951", /* pic16c54 */ |
| 976 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 977 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 978 | .svhs = 2, |
| 979 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 980 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 981 | .gpiomux = { 0, 0, 0, 0}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 982 | .needs_tvaudio = 1, |
| 983 | .no_msp34xx = 1, |
| 984 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 985 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 986 | .tuner_addr = ADDR_UNSET, |
| 987 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 988 | [BTTV_BOARD_ONAIR_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 989 | .name = "Little OnAir TV", |
| 990 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 991 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 992 | .svhs = 2, |
| 993 | .gpiomask = 0xe00b, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 994 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 995 | .gpiomux = { 0xff9ff6, 0xff9ff6, 0xff1ff7, 0 }, |
| 996 | .gpiomute = 0xff3ffc, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 997 | .no_msp34xx = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 998 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 999 | .tuner_addr = ADDR_UNSET, |
| 1000 | }, |
| 1001 | |
| 1002 | /* ---- card 0x2c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1003 | [BTTV_BOARD_SIGMA_TVII_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1004 | .name = "Sigma TVII-FM", |
| 1005 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1006 | /* .audio_inputs= 1, */ |
| 1007 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1008 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1009 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1010 | .gpiomux = { 1, 1, 0, 2 }, |
| 1011 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1012 | .no_msp34xx = 1, |
| 1013 | .pll = PLL_NONE, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1014 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1015 | .tuner_addr = ADDR_UNSET, |
| 1016 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1017 | [BTTV_BOARD_MATRIX_VISION2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1018 | .name = "MATRIX-Vision MV-Delta 2", |
| 1019 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1020 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1021 | .svhs = 3, |
| 1022 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1023 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1024 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1025 | .no_msp34xx = 1, |
| 1026 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1027 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1028 | .tuner_addr = ADDR_UNSET, |
| 1029 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1030 | [BTTV_BOARD_ZOLTRIX_GENIE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1031 | .name = "Zoltrix Genie TV/FM", |
| 1032 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1033 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1034 | .svhs = 2, |
| 1035 | .gpiomask = 0xbcf03f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1036 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1037 | .gpiomux = { 0xbc803f, 0xbc903f, 0xbcb03f, 0 }, |
| 1038 | .gpiomute = 0xbcb03f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1039 | .no_msp34xx = 1, |
| 1040 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1041 | .tuner_type = TUNER_TEMIC_4039FR5_NTSC, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1042 | .tuner_addr = ADDR_UNSET, |
| 1043 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1044 | [BTTV_BOARD_TERRATVRADIO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1045 | .name = "Terratec TV/Radio+", |
| 1046 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1047 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1048 | .svhs = 2, |
| 1049 | .gpiomask = 0x70000, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1050 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1051 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 1052 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1053 | .needs_tvaudio = 1, |
| 1054 | .no_msp34xx = 1, |
| 1055 | .pll = PLL_35, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1056 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1057 | .tuner_addr = ADDR_UNSET, |
| 1058 | .has_radio = 1, |
| 1059 | }, |
| 1060 | |
| 1061 | /* ---- card 0x30 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1062 | [BTTV_BOARD_DYNALINK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1063 | .name = "Askey CPH03x/ Dynalink Magic TView", |
| 1064 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1065 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1066 | .svhs = 2, |
| 1067 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1068 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1069 | .gpiomux = {2,0,0,0 }, |
| 1070 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1071 | .needs_tvaudio = 1, |
| 1072 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1073 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1074 | .tuner_addr = ADDR_UNSET, |
| 1075 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1076 | [BTTV_BOARD_GVBCTV3PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1077 | .name = "IODATA GV-BCTV3/PCI", |
| 1078 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1079 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1080 | .svhs = 2, |
| 1081 | .gpiomask = 0x010f00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1082 | .muxsel = MUXSEL(2, 3, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1083 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1084 | .no_msp34xx = 1, |
| 1085 | .pll = PLL_28, |
| 1086 | .tuner_type = TUNER_ALPS_TSHC6_NTSC, |
| 1087 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1088 | .audio_mode_gpio= gvbctv3pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1089 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1090 | [BTTV_BOARD_PXELVWPLTVPAK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1091 | .name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP", |
| 1092 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1093 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1094 | .svhs = 3, |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1095 | .has_dig_in = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1096 | .gpiomask = 0xAA0000, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1097 | .muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1098 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1099 | .gpiomux = { 0x20000, 0, 0x80000, 0x80000 }, |
| 1100 | .gpiomute = 0xa8000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1101 | .no_msp34xx = 1, |
| 1102 | .pll = PLL_28, |
| 1103 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 1104 | .tuner_addr = ADDR_UNSET, |
| 1105 | .has_remote = 1, |
| 1106 | /* GPIO wiring: (different from Rev.4C !) |
| 1107 | GPIO17: U4.A0 (first hef4052bt) |
| 1108 | GPIO19: U4.A1 |
| 1109 | GPIO20: U5.A1 (second hef4052bt) |
| 1110 | GPIO21: U4.nEN |
| 1111 | GPIO22: BT832 Reset Line |
| 1112 | GPIO23: A5,A0, U5,nEN |
| 1113 | Note: At i2c=0x8a is a Bt832 chip, which changes to 0x88 after being reset via GPIO22 |
| 1114 | */ |
| 1115 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1116 | [BTTV_BOARD_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1117 | .name = "Eagle Wireless Capricorn2 (bt878A)", |
| 1118 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1119 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1120 | .svhs = 2, |
| 1121 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1122 | .muxsel = MUXSEL(2, 0, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1123 | .gpiomux = { 0, 1, 2, 3 }, |
| 1124 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1125 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1126 | .tuner_type = UNSET /* TUNER_ALPS_TMDH2_NTSC */, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1127 | .tuner_addr = ADDR_UNSET, |
| 1128 | }, |
| 1129 | |
| 1130 | /* ---- card 0x34 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1131 | [BTTV_BOARD_PINNACLEPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1132 | /* David Härdeman <david@2gen.com> */ |
| 1133 | .name = "Pinnacle PCTV Studio Pro", |
| 1134 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1135 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1136 | .svhs = 3, |
| 1137 | .gpiomask = 0x03000F, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1138 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1139 | .gpiomux = { 1, 0xd0001, 0, 0 }, |
| 1140 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1141 | /* sound path (5 sources): |
| 1142 | MUX1 (mask 0x03), Enable Pin 0x08 (0=enable, 1=disable) |
| 1143 | 0= ext. Audio IN |
| 1144 | 1= from MUX2 |
| 1145 | 2= Mono TV sound from Tuner |
| 1146 | 3= not connected |
| 1147 | MUX2 (mask 0x30000): |
| 1148 | 0,2,3= from MSP34xx |
| 1149 | 1= FM stereo Radio from Tuner */ |
| 1150 | .needs_tvaudio = 0, |
| 1151 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1152 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1153 | .tuner_addr = ADDR_UNSET, |
| 1154 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1155 | [BTTV_BOARD_TVIEW_RDS_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1156 | /* Claas Langbehn <claas@bigfoot.com>, |
| 1157 | Sven Grothklags <sven@upb.de> */ |
| 1158 | .name = "Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS", |
| 1159 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1160 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1161 | .svhs = 2, |
| 1162 | .gpiomask = 0x1c, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1163 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1164 | .gpiomux = { 0, 0, 0x10, 8 }, |
| 1165 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1166 | .needs_tvaudio = 1, |
| 1167 | .pll = PLL_28, |
| 1168 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1169 | .tuner_addr = ADDR_UNSET, |
| 1170 | .has_radio = 1, |
| 1171 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1172 | [BTTV_BOARD_LIFETEC_9415] = { |
Jan Engelhardt | 96de0e2 | 2007-10-19 23:21:04 +0200 | [diff] [blame] | 1173 | /* Tim Röstermundt <rosterm@uni-muenster.de> |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1174 | in de.comp.os.unix.linux.hardware: |
| 1175 | options bttv card=0 pll=1 radio=1 gpiomask=0x18e0 |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1176 | gpiomux =0x44c71f,0x44d71f,0,0x44d71f,0x44dfff |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1177 | options tuner type=5 */ |
| 1178 | .name = "Lifeview FlyVideo 2000 /FlyVideo A2/ Lifetec LT 9415 TV [LR90]", |
| 1179 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1180 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1181 | .svhs = 2, |
| 1182 | .gpiomask = 0x18e0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1183 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1184 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1185 | .gpiomute = 0x18e0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1186 | /* For cards with tda9820/tda9821: |
| 1187 | 0x0000: Tuner normal stereo |
| 1188 | 0x0080: Tuner A2 SAP (second audio program = Zweikanalton) |
| 1189 | 0x0880: Tuner A2 stereo */ |
| 1190 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1191 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1192 | .tuner_addr = ADDR_UNSET, |
| 1193 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1194 | [BTTV_BOARD_BESTBUY_EASYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1195 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1196 | old Easy TV BT848 version (model CPH031) */ |
| 1197 | .name = "Askey CPH031/ BESTBUY Easy TV", |
| 1198 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1199 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1200 | .svhs = 2, |
| 1201 | .gpiomask = 0xF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1202 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1203 | .gpiomux = { 2, 0, 0, 0 }, |
| 1204 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1205 | .needs_tvaudio = 0, |
| 1206 | .pll = PLL_28, |
| 1207 | .tuner_type = TUNER_TEMIC_PAL, |
| 1208 | .tuner_addr = ADDR_UNSET, |
| 1209 | }, |
| 1210 | |
| 1211 | /* ---- card 0x38 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1212 | [BTTV_BOARD_FLYVIDEO_98FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1213 | /* Gordon Heydon <gjheydon@bigfoot.com ('98) */ |
| 1214 | .name = "Lifeview FlyVideo 98FM LR50", |
| 1215 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1216 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1217 | .svhs = 2, |
| 1218 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1219 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1220 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 1221 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1222 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1223 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1224 | .tuner_addr = ADDR_UNSET, |
| 1225 | }, |
| 1226 | /* This is the ultimate cheapo capture card |
| 1227 | * just a BT848A on a small PCB! |
| 1228 | * Steve Hosgood <steve@equiinet.com> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1229 | [BTTV_BOARD_GRANDTEC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1230 | .name = "GrandTec 'Grand Video Capture' (Bt848)", |
| 1231 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1232 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1233 | .svhs = 1, |
| 1234 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1235 | .muxsel = MUXSEL(3, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1236 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1237 | .needs_tvaudio = 0, |
| 1238 | .no_msp34xx = 1, |
| 1239 | .pll = PLL_35, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1240 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1241 | .tuner_addr = ADDR_UNSET, |
| 1242 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1243 | [BTTV_BOARD_ASKEY_CPH060] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1244 | /* Daniel Herrington <daniel.herrington@home.com> */ |
| 1245 | .name = "Askey CPH060/ Phoebe TV Master Only (No FM)", |
| 1246 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1247 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1248 | .svhs = 2, |
| 1249 | .gpiomask = 0xe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1250 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1251 | .gpiomux = { 0x400, 0x400, 0x400, 0x400 }, |
| 1252 | .gpiomute = 0x800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1253 | .needs_tvaudio = 1, |
| 1254 | .pll = PLL_28, |
| 1255 | .tuner_type = TUNER_TEMIC_4036FY5_NTSC, |
| 1256 | .tuner_addr = ADDR_UNSET, |
| 1257 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1258 | [BTTV_BOARD_ASKEY_CPH03X] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1259 | /* Matti Mottus <mottus@physic.ut.ee> */ |
| 1260 | .name = "Askey CPH03x TV Capturer", |
| 1261 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1262 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1263 | .svhs = 2, |
| 1264 | .gpiomask = 0x03000F, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1265 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1266 | .gpiomux = { 2, 0, 0, 0 }, |
| 1267 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1268 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1269 | .tuner_type = TUNER_TEMIC_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1270 | .tuner_addr = ADDR_UNSET, |
| 1271 | }, |
| 1272 | |
| 1273 | /* ---- card 0x3c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1274 | [BTTV_BOARD_MM100PCTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1275 | /* Philip Blundell <philb@gnu.org> */ |
| 1276 | .name = "Modular Technology MM100PCTV", |
| 1277 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1278 | /* .audio_inputs= 2, */ |
| 1279 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1280 | .gpiomask = 11, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1281 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1282 | .gpiomux = { 2, 0, 0, 1 }, |
| 1283 | .gpiomute = 8, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1284 | .pll = PLL_35, |
| 1285 | .tuner_type = TUNER_TEMIC_PAL, |
| 1286 | .tuner_addr = ADDR_UNSET, |
| 1287 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1288 | [BTTV_BOARD_GMV1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1289 | /* Adrian Cox <adrian@humboldt.co.uk */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1290 | .name = "AG Electronics GMV1", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1291 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1292 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1293 | .svhs = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1294 | .gpiomask = 0xF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1295 | .muxsel = MUXSEL(2, 2), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1296 | .gpiomux = { }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1297 | .no_msp34xx = 1, |
| 1298 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1299 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1300 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1301 | .tuner_addr = ADDR_UNSET, |
| 1302 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1303 | [BTTV_BOARD_BESTBUY_EASYTV2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1304 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1305 | new Easy TV BT878 version (model CPH061) |
| 1306 | special thanks to Informatica Mieres for providing the card */ |
| 1307 | .name = "Askey CPH061/ BESTBUY Easy TV (bt878)", |
| 1308 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1309 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1310 | .svhs = 2, |
| 1311 | .gpiomask = 0xFF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1312 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1313 | .gpiomux = { 1, 0, 4, 4 }, |
| 1314 | .gpiomute = 9, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1315 | .needs_tvaudio = 0, |
| 1316 | .pll = PLL_28, |
| 1317 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1318 | .tuner_addr = ADDR_UNSET, |
| 1319 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1320 | [BTTV_BOARD_ATI_TVWONDER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1321 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1322 | .name = "ATI TV-Wonder", |
| 1323 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1324 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1325 | .svhs = 2, |
| 1326 | .gpiomask = 0xf03f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1327 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1328 | .gpiomux = { 0xbffe, 0, 0xbfff, 0 }, |
| 1329 | .gpiomute = 0xbffe, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1330 | .pll = PLL_28, |
| 1331 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1332 | .tuner_addr = ADDR_UNSET, |
| 1333 | }, |
| 1334 | |
| 1335 | /* ---- card 0x40 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1336 | [BTTV_BOARD_ATI_TVWONDERVE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1337 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1338 | .name = "ATI TV-Wonder VE", |
| 1339 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1340 | /* .audio_inputs= 1, */ |
| 1341 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1342 | .gpiomask = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1343 | .muxsel = MUXSEL(2, 3, 0, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1344 | .gpiomux = { 0, 0, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1345 | .no_msp34xx = 1, |
| 1346 | .pll = PLL_28, |
| 1347 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1348 | .tuner_addr = ADDR_UNSET, |
| 1349 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1350 | [BTTV_BOARD_FLYVIDEO2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1351 | /* DeeJay <deejay@westel900.net (2000S) */ |
| 1352 | .name = "Lifeview FlyVideo 2000S LR90", |
| 1353 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1354 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1355 | .svhs = 2, |
| 1356 | .gpiomask = 0x18e0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1357 | .muxsel = MUXSEL(2, 3, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1358 | /* Radio changed from 1e80 to 0x800 to make |
| 1359 | FlyVideo2000S in .hu happy (gm)*/ |
| 1360 | /* -dk-???: set mute=0x1800 for tda9874h daughterboard */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1361 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1362 | .gpiomute = 0x1800, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1363 | .audio_mode_gpio= fv2000s_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1364 | .no_msp34xx = 1, |
| 1365 | .no_tda9875 = 1, |
| 1366 | .needs_tvaudio = 1, |
| 1367 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1368 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1369 | .tuner_addr = ADDR_UNSET, |
| 1370 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1371 | [BTTV_BOARD_TERRATVALUER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1372 | .name = "Terratec TValueRadio", |
| 1373 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1374 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1375 | .svhs = 2, |
| 1376 | .gpiomask = 0xffff00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1377 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1378 | .gpiomux = { 0x500, 0x500, 0x300, 0x900 }, |
| 1379 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1380 | .needs_tvaudio = 1, |
| 1381 | .pll = PLL_28, |
| 1382 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1383 | .tuner_addr = ADDR_UNSET, |
| 1384 | .has_radio = 1, |
| 1385 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1386 | [BTTV_BOARD_GVBCTV4PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1387 | /* TANAKA Kei <peg00625@nifty.com> */ |
| 1388 | .name = "IODATA GV-BCTV4/PCI", |
| 1389 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1390 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1391 | .svhs = 2, |
| 1392 | .gpiomask = 0x010f00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1393 | .muxsel = MUXSEL(2, 3, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1394 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1395 | .no_msp34xx = 1, |
| 1396 | .pll = PLL_28, |
| 1397 | .tuner_type = TUNER_SHARP_2U5JF5540_NTSC, |
| 1398 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1399 | .audio_mode_gpio= gvbctv3pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1400 | }, |
| 1401 | |
| 1402 | /* ---- card 0x44 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1403 | [BTTV_BOARD_VOODOOTV_FM] = { |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1404 | .name = "3Dfx VoodooTV FM (Euro)", |
| 1405 | /* try "insmod msp3400 simple=0" if you have |
| 1406 | * sound problems with this card. */ |
| 1407 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1408 | /* .audio_inputs= 1, */ |
| 1409 | .svhs = NO_SVHS, |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1410 | .gpiomask = 0x4f8a00, |
| 1411 | /* 0x100000: 1=MSP enabled (0=disable again) |
| 1412 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ |
| 1413 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
| 1414 | .gpiomute = 0x947fff, |
| 1415 | /* tvtuner, radio, external,internal, mute, stereo |
| 1416 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1417 | .muxsel = MUXSEL(2, 3, 0, 1), |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1418 | .tuner_type = TUNER_MT2032, |
| 1419 | .tuner_addr = ADDR_UNSET, |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1420 | .pll = PLL_28, |
| 1421 | .has_radio = 1, |
| 1422 | }, |
| 1423 | [BTTV_BOARD_VOODOOTV_200] = { |
| 1424 | .name = "VoodooTV 200 (USA)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1425 | /* try "insmod msp3400 simple=0" if you have |
| 1426 | * sound problems with this card. */ |
| 1427 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1428 | /* .audio_inputs= 1, */ |
| 1429 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1430 | .gpiomask = 0x4f8a00, |
| 1431 | /* 0x100000: 1=MSP enabled (0=disable again) |
| 1432 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1433 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
| 1434 | .gpiomute = 0x947fff, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1435 | /* tvtuner, radio, external,internal, mute, stereo |
| 1436 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1437 | .muxsel = MUXSEL(2, 3, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1438 | .tuner_type = TUNER_MT2032, |
| 1439 | .tuner_addr = ADDR_UNSET, |
| 1440 | .pll = PLL_28, |
| 1441 | .has_radio = 1, |
| 1442 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1443 | [BTTV_BOARD_AIMMS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1444 | /* Philip Blundell <pb@nexus.co.uk> */ |
| 1445 | .name = "Active Imaging AIMMS", |
| 1446 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1447 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1448 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1449 | .tuner_addr = ADDR_UNSET, |
| 1450 | .pll = PLL_28, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1451 | .muxsel = MUXSEL(2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1452 | .gpiomask = 0 |
| 1453 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1454 | [BTTV_BOARD_PV_BT878P_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1455 | /* Tomasz Pyra <hellfire@sedez.iq.pl> */ |
| 1456 | .name = "Prolink Pixelview PV-BT878P+ (Rev.4C,8E)", |
| 1457 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1458 | /* .audio_inputs= 4, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1459 | .svhs = 2, |
| 1460 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1461 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1462 | .gpiomux = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */ |
| 1463 | .gpiomute = 13, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1464 | .needs_tvaudio = 1, |
| 1465 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1466 | .tuner_type = TUNER_LG_PAL_I_FM, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1467 | .tuner_addr = ADDR_UNSET, |
| 1468 | .has_remote = 1, |
| 1469 | /* GPIO wiring: |
| 1470 | GPIO0: U4.A0 (hef4052bt) |
| 1471 | GPIO1: U4.A1 |
| 1472 | GPIO2: U4.A1 (second hef4052bt) |
| 1473 | GPIO3: U4.nEN, U5.A0, A5.nEN |
| 1474 | GPIO8-15: vrd866b ? |
| 1475 | */ |
| 1476 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1477 | [BTTV_BOARD_FLYVIDEO98EZ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1478 | .name = "Lifeview FlyVideo 98EZ (capture only) LR51", |
| 1479 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1480 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1481 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1482 | /* AV1, AV2, SVHS, CVid adapter on SVHS */ |
| 1483 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1484 | .pll = PLL_28, |
| 1485 | .no_msp34xx = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1486 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1487 | .tuner_addr = ADDR_UNSET, |
| 1488 | }, |
| 1489 | |
| 1490 | /* ---- card 0x48 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1491 | [BTTV_BOARD_PV_BT878P_9B] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1492 | /* Dariusz Kowalewski <darekk@automex.pl> */ |
| 1493 | .name = "Prolink Pixelview PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)", |
| 1494 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1495 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1496 | .svhs = 2, |
| 1497 | .gpiomask = 0x3f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1498 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1499 | .gpiomux = { 0x01, 0x00, 0x03, 0x03 }, |
| 1500 | .gpiomute = 0x09, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1501 | .needs_tvaudio = 1, |
| 1502 | .no_msp34xx = 1, |
| 1503 | .no_tda9875 = 1, |
| 1504 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1505 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1506 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1507 | .audio_mode_gpio= pvbt878p9b_audio, /* Note: not all cards have stereo */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1508 | .has_radio = 1, /* Note: not all cards have radio */ |
| 1509 | .has_remote = 1, |
| 1510 | /* GPIO wiring: |
| 1511 | GPIO0: A0 hef4052 |
| 1512 | GPIO1: A1 hef4052 |
| 1513 | GPIO3: nEN hef4052 |
| 1514 | GPIO8-15: vrd866b |
| 1515 | GPIO20,22,23: R30,R29,R28 |
| 1516 | */ |
| 1517 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1518 | [BTTV_BOARD_SENSORAY311] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1519 | /* Clay Kunz <ckunz@mail.arc.nasa.gov> */ |
| 1520 | /* you must jumper JP5 for the card to work */ |
| 1521 | .name = "Sensoray 311", |
| 1522 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1523 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1524 | .svhs = 4, |
| 1525 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1526 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1527 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1528 | .needs_tvaudio = 0, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1529 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1530 | .tuner_addr = ADDR_UNSET, |
| 1531 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1532 | [BTTV_BOARD_RV605] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1533 | /* Miguel Freitas <miguel@cetuc.puc-rio.br> */ |
| 1534 | .name = "RemoteVision MX (RV605)", |
| 1535 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1536 | /* .audio_inputs= 0, */ |
| 1537 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1538 | .gpiomask = 0x00, |
| 1539 | .gpiomask2 = 0x07ff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1540 | .muxsel = MUXSEL(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1541 | .no_msp34xx = 1, |
| 1542 | .no_tda9875 = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1543 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1544 | .tuner_addr = ADDR_UNSET, |
| 1545 | .muxsel_hook = rv605_muxsel, |
| 1546 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1547 | [BTTV_BOARD_POWERCLR_MTV878] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1548 | .name = "Powercolor MTV878/ MTV878R/ MTV878F", |
| 1549 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1550 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1551 | .svhs = 2, |
| 1552 | .gpiomask = 0x1C800F, /* Bit0-2: Audio select, 8-12:remote control 14:remote valid 15:remote reset */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1553 | .muxsel = MUXSEL(2, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1554 | .gpiomux = { 0, 1, 2, 2 }, |
| 1555 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1556 | .needs_tvaudio = 0, |
| 1557 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1558 | .tuner_addr = ADDR_UNSET, |
| 1559 | .pll = PLL_28, |
| 1560 | .has_radio = 1, |
| 1561 | }, |
| 1562 | |
| 1563 | /* ---- card 0x4c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1564 | [BTTV_BOARD_WINDVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1565 | /* Masaki Suzuki <masaki@btree.org> */ |
| 1566 | .name = "Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)", |
| 1567 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1568 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1569 | .svhs = 2, |
| 1570 | .gpiomask = 0x140007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1571 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1572 | .gpiomux = { 0, 1, 2, 3 }, |
| 1573 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1574 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 1575 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1576 | .audio_mode_gpio= windvr_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1577 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1578 | [BTTV_BOARD_GRANDTEC_MULTI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1579 | .name = "GrandTec Multi Capture Card (Bt878)", |
| 1580 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1581 | /* .audio_inputs= 0, */ |
| 1582 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1583 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1584 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1585 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1586 | .needs_tvaudio = 0, |
| 1587 | .no_msp34xx = 1, |
| 1588 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1589 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1590 | .tuner_addr = ADDR_UNSET, |
| 1591 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1592 | [BTTV_BOARD_KWORLD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1593 | .name = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF", |
| 1594 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1595 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1596 | .svhs = 2, |
| 1597 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1598 | /* Tuner, SVid, SVHS, SVid to SVHS connector */ |
| 1599 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1600 | .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] | 1601 | * This card lacks external Audio In, so we mute it on Ext. & Int. |
| 1602 | * The PCB can take a sbx1637/sbx1673, wiring unknown. |
| 1603 | * This card lacks PCI subsystem ID, sigh. |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1604 | * gpiomux =1: lower volume, 2+3: mute |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1605 | * btwincap uses 0x80000/0x80003 |
| 1606 | */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1607 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1608 | .needs_tvaudio = 0, |
| 1609 | .no_msp34xx = 1, |
| 1610 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1611 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1612 | .tuner_addr = ADDR_UNSET, |
| 1613 | /* Samsung TCPA9095PC27A (BG+DK), philips compatible, w/FM, stereo and |
| 1614 | radio signal strength indicators work fine. */ |
| 1615 | .has_radio = 1, |
| 1616 | /* GPIO Info: |
| 1617 | GPIO0,1: HEF4052 A0,A1 |
| 1618 | GPIO2: HEF4052 nENABLE |
| 1619 | GPIO3-7: n.c. |
| 1620 | GPIO8-13: IRDC357 data0-5 (data6 n.c. ?) [chip not present on my card] |
| 1621 | GPIO14,15: ?? |
| 1622 | GPIO16-21: n.c. |
| 1623 | GPIO22,23: ?? |
| 1624 | ?? : mtu8b56ep microcontroller for IR (GPIO wiring unknown)*/ |
| 1625 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1626 | [BTTV_BOARD_DSP_TCVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1627 | /* Arthur Tetzlaff-Deas, DSP Design Ltd <software@dspdesign.com> */ |
| 1628 | .name = "DSP Design TCVIDEO", |
| 1629 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1630 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1631 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1632 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1633 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1634 | .tuner_addr = ADDR_UNSET, |
| 1635 | }, |
| 1636 | |
| 1637 | /* ---- card 0x50 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1638 | [BTTV_BOARD_HAUPPAUGEPVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1639 | .name = "Hauppauge WinTV PVR", |
| 1640 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1641 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1642 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1643 | .muxsel = MUXSEL(2, 0, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1644 | .needs_tvaudio = 1, |
| 1645 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1646 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1647 | .tuner_addr = ADDR_UNSET, |
| 1648 | |
| 1649 | .gpiomask = 7, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1650 | .gpiomux = {7}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1651 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1652 | [BTTV_BOARD_GVBCTV5PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1653 | .name = "IODATA GV-BCTV5/PCI", |
| 1654 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1655 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1656 | .svhs = 2, |
| 1657 | .gpiomask = 0x0f0f80, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1658 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1659 | .gpiomux = {0x030000, 0x010000, 0, 0 }, |
| 1660 | .gpiomute = 0x020000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1661 | .no_msp34xx = 1, |
| 1662 | .pll = PLL_28, |
| 1663 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 1664 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1665 | .audio_mode_gpio= gvbctv5pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1666 | .has_radio = 1, |
| 1667 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1668 | [BTTV_BOARD_OSPREY1x0] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1669 | .name = "Osprey 100/150 (878)", /* 0x1(2|3)-45C6-C1 */ |
| 1670 | .video_inputs = 4, /* id-inputs-clock */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1671 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1672 | .svhs = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1673 | .muxsel = MUXSEL(3, 2, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1674 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1675 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1676 | .tuner_addr = ADDR_UNSET, |
| 1677 | .no_msp34xx = 1, |
| 1678 | .no_tda9875 = 1, |
| 1679 | .no_tda7432 = 1, |
| 1680 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1681 | [BTTV_BOARD_OSPREY1x0_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1682 | .name = "Osprey 100/150 (848)", /* 0x04-54C0-C1 & older boards */ |
| 1683 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1684 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1685 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1686 | .muxsel = MUXSEL(2, 3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1687 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1688 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1689 | .tuner_addr = ADDR_UNSET, |
| 1690 | .no_msp34xx = 1, |
| 1691 | .no_tda9875 = 1, |
| 1692 | .no_tda7432 = 1, |
| 1693 | }, |
| 1694 | |
| 1695 | /* ---- card 0x54 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1696 | [BTTV_BOARD_OSPREY101_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1697 | .name = "Osprey 101 (848)", /* 0x05-40C0-C1 */ |
| 1698 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1699 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1700 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1701 | .muxsel = MUXSEL(3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1702 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1703 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1704 | .tuner_addr = ADDR_UNSET, |
| 1705 | .no_msp34xx = 1, |
| 1706 | .no_tda9875 = 1, |
| 1707 | .no_tda7432 = 1, |
| 1708 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1709 | [BTTV_BOARD_OSPREY1x1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1710 | .name = "Osprey 101/151", /* 0x1(4|5)-0004-C4 */ |
| 1711 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1712 | /* .audio_inputs= 0, */ |
| 1713 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1714 | .muxsel = MUXSEL(0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1715 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1716 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1717 | .tuner_addr = ADDR_UNSET, |
| 1718 | .no_msp34xx = 1, |
| 1719 | .no_tda9875 = 1, |
| 1720 | .no_tda7432 = 1, |
| 1721 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1722 | [BTTV_BOARD_OSPREY1x1_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1723 | .name = "Osprey 101/151 w/ svid", /* 0x(16|17|20)-00C4-C1 */ |
| 1724 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1725 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1726 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1727 | .muxsel = MUXSEL(0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1728 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1729 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1730 | .tuner_addr = ADDR_UNSET, |
| 1731 | .no_msp34xx = 1, |
| 1732 | .no_tda9875 = 1, |
| 1733 | .no_tda7432 = 1, |
| 1734 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1735 | [BTTV_BOARD_OSPREY2xx] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1736 | .name = "Osprey 200/201/250/251", /* 0x1(8|9|E|F)-0004-C4 */ |
| 1737 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1738 | /* .audio_inputs= 1, */ |
| 1739 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1740 | .muxsel = MUXSEL(0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1741 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1742 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1743 | .tuner_addr = ADDR_UNSET, |
| 1744 | .no_msp34xx = 1, |
| 1745 | .no_tda9875 = 1, |
| 1746 | .no_tda7432 = 1, |
| 1747 | }, |
| 1748 | |
| 1749 | /* ---- card 0x58 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1750 | [BTTV_BOARD_OSPREY2x0_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1751 | .name = "Osprey 200/250", /* 0x1(A|B)-00C4-C1 */ |
| 1752 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1753 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1754 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1755 | .muxsel = MUXSEL(0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1756 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1757 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1758 | .tuner_addr = ADDR_UNSET, |
| 1759 | .no_msp34xx = 1, |
| 1760 | .no_tda9875 = 1, |
| 1761 | .no_tda7432 = 1, |
| 1762 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1763 | [BTTV_BOARD_OSPREY2x0] = { |
Michael Krufky | 52398ef | 2006-05-26 02:13:15 -0300 | [diff] [blame] | 1764 | .name = "Osprey 210/220/230", /* 0x1(A|B)-04C0-C1 */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1765 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1766 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1767 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1768 | .muxsel = MUXSEL(2, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1769 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1770 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1771 | .tuner_addr = ADDR_UNSET, |
| 1772 | .no_msp34xx = 1, |
| 1773 | .no_tda9875 = 1, |
| 1774 | .no_tda7432 = 1, |
| 1775 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1776 | [BTTV_BOARD_OSPREY500] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1777 | .name = "Osprey 500", /* 500 */ |
| 1778 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1779 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1780 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1781 | .muxsel = MUXSEL(2, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1782 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1783 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1784 | .tuner_addr = ADDR_UNSET, |
| 1785 | .no_msp34xx = 1, |
| 1786 | .no_tda9875 = 1, |
| 1787 | .no_tda7432 = 1, |
| 1788 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1789 | [BTTV_BOARD_OSPREY540] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1790 | .name = "Osprey 540", /* 540 */ |
| 1791 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1792 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1793 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1794 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1795 | .tuner_addr = ADDR_UNSET, |
| 1796 | .no_msp34xx = 1, |
| 1797 | .no_tda9875 = 1, |
| 1798 | .no_tda7432 = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1799 | }, |
| 1800 | |
| 1801 | /* ---- card 0x5C ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1802 | [BTTV_BOARD_OSPREY2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1803 | .name = "Osprey 2000", /* 2000 */ |
| 1804 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1805 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1806 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1807 | .muxsel = MUXSEL(2, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1808 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1809 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1810 | .tuner_addr = ADDR_UNSET, |
| 1811 | .no_msp34xx = 1, |
| 1812 | .no_tda9875 = 1, |
| 1813 | .no_tda7432 = 1, /* must avoid, conflicts with the bt860 */ |
| 1814 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1815 | [BTTV_BOARD_IDS_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1816 | /* M G Berberich <berberic@forwiss.uni-passau.de> */ |
| 1817 | .name = "IDS Eagle", |
| 1818 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1819 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1820 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1821 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1822 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1823 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1824 | .muxsel = MUXSEL(2, 2, 2, 2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1825 | .muxsel_hook = eagle_muxsel, |
| 1826 | .no_msp34xx = 1, |
| 1827 | .no_tda9875 = 1, |
| 1828 | .pll = PLL_28, |
| 1829 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1830 | [BTTV_BOARD_PINNACLESAT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1831 | .name = "Pinnacle PCTV Sat", |
| 1832 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1833 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1834 | .svhs = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1835 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1836 | .tuner_addr = ADDR_UNSET, |
| 1837 | .no_msp34xx = 1, |
| 1838 | .no_tda9875 = 1, |
| 1839 | .no_tda7432 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1840 | .muxsel = MUXSEL(3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1841 | .pll = PLL_28, |
| 1842 | .no_gpioirq = 1, |
| 1843 | .has_dvb = 1, |
| 1844 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1845 | [BTTV_BOARD_FORMAC_PROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1846 | .name = "Formac ProTV II (bt878)", |
| 1847 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1848 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1849 | .svhs = 3, |
| 1850 | .gpiomask = 2, |
| 1851 | /* TV, Comp1, Composite over SVID con, SVID */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1852 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1853 | .gpiomux = { 2, 2, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1854 | .pll = PLL_28, |
| 1855 | .has_radio = 1, |
| 1856 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1857 | .tuner_addr = ADDR_UNSET, |
| 1858 | /* sound routing: |
| 1859 | GPIO=0x00,0x01,0x03: mute (?) |
| 1860 | 0x02: both TV and radio (tuner: FM1216/I) |
| 1861 | The card has onboard audio connectors labeled "cdrom" and "board", |
| 1862 | not soldered here, though unknown wiring. |
| 1863 | Card lacks: external audio in, pci subsystem id. |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 1864 | */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1865 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1866 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1867 | /* ---- card 0x60 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1868 | [BTTV_BOARD_MACHTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1869 | .name = "MachTV", |
| 1870 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1871 | /* .audio_inputs= 1, */ |
| 1872 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1873 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1874 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1875 | .gpiomux = { 0, 1, 2, 3}, |
| 1876 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1877 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1878 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1879 | .tuner_addr = ADDR_UNSET, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 1880 | .pll = PLL_28, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1881 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1882 | [BTTV_BOARD_EURESYS_PICOLO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1883 | .name = "Euresys Picolo", |
| 1884 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1885 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1886 | .svhs = 2, |
| 1887 | .gpiomask = 0, |
| 1888 | .no_msp34xx = 1, |
| 1889 | .no_tda9875 = 1, |
| 1890 | .no_tda7432 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1891 | .muxsel = MUXSEL(2, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1892 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1893 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1894 | .tuner_addr = ADDR_UNSET, |
| 1895 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1896 | [BTTV_BOARD_PV150] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1897 | /* Luc Van Hoeylandt <luc@e-magic.be> */ |
| 1898 | .name = "ProVideo PV150", /* 0x4f */ |
| 1899 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1900 | /* .audio_inputs= 0, */ |
| 1901 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1902 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1903 | .muxsel = MUXSEL(2, 3), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1904 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1905 | .needs_tvaudio = 0, |
| 1906 | .no_msp34xx = 1, |
| 1907 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1908 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1909 | .tuner_addr = ADDR_UNSET, |
| 1910 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1911 | [BTTV_BOARD_AD_TVK503] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1912 | /* Hiroshi Takekawa <sian@big.or.jp> */ |
| 1913 | /* This card lacks subsystem ID */ |
| 1914 | .name = "AD-TVK503", /* 0x63 */ |
| 1915 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1916 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1917 | .svhs = 2, |
| 1918 | .gpiomask = 0x001e8007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1919 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1920 | /* Tuner, Radio, external, internal, off, on */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1921 | .gpiomux = { 0x08, 0x0f, 0x0a, 0x08 }, |
| 1922 | .gpiomute = 0x0f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1923 | .needs_tvaudio = 0, |
| 1924 | .no_msp34xx = 1, |
| 1925 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1926 | .tuner_type = TUNER_PHILIPS_NTSC, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1927 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1928 | .audio_mode_gpio= adtvk503_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1929 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1930 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1931 | /* ---- card 0x64 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1932 | [BTTV_BOARD_HERCULES_SM_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1933 | .name = "Hercules Smart TV Stereo", |
| 1934 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1935 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1936 | .svhs = 2, |
| 1937 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1938 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1939 | .needs_tvaudio = 1, |
| 1940 | .no_msp34xx = 1, |
| 1941 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1942 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1943 | .tuner_addr = ADDR_UNSET, |
| 1944 | /* Notes: |
| 1945 | - card lacks subsystem ID |
| 1946 | - stereo variant w/ daughter board with tda9874a @0xb0 |
| 1947 | - Audio Routing: |
| 1948 | always from tda9874 independent of GPIO (?) |
| 1949 | external line in: unknown |
| 1950 | - Other chips: em78p156elp @ 0x96 (probably IR remote control) |
| 1951 | hef4053 (instead 4052) for unknown function |
| 1952 | */ |
| 1953 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1954 | [BTTV_BOARD_PACETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1955 | .name = "Pace TV & Radio Card", |
| 1956 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1957 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1958 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1959 | /* Tuner, CVid, SVid, CVid over SVid connector */ |
| 1960 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1961 | .gpiomask = 0, |
| 1962 | .no_tda9875 = 1, |
| 1963 | .no_tda7432 = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1964 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1965 | .tuner_addr = ADDR_UNSET, |
| 1966 | .has_radio = 1, |
| 1967 | .pll = PLL_28, |
| 1968 | /* Bt878, Bt832, FI1246 tuner; no pci subsystem id |
| 1969 | only internal line out: (4pin header) RGGL |
| 1970 | Radio must be decoded by msp3410d (not routed through)*/ |
| 1971 | /* |
| 1972 | .digital_mode = DIGITAL_MODE_CAMERA, todo! |
| 1973 | */ |
| 1974 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1975 | [BTTV_BOARD_IVC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1976 | /* Chris Willing <chris@vislab.usyd.edu.au> */ |
| 1977 | .name = "IVC-200", |
| 1978 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1979 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1980 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1981 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1982 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1983 | .gpiomask = 0xdf, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1984 | .muxsel = MUXSEL(2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1985 | .pll = PLL_28, |
| 1986 | }, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1987 | [BTTV_BOARD_IVCE8784] = { |
| 1988 | .name = "IVCE-8784", |
| 1989 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1990 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1991 | .tuner_type = TUNER_ABSENT, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1992 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1993 | .svhs = NO_SVHS, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1994 | .gpiomask = 0xdf, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1995 | .muxsel = MUXSEL(2), |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1996 | .pll = PLL_28, |
| 1997 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1998 | [BTTV_BOARD_XGUARD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1999 | .name = "Grand X-Guard / Trust 814PCI", |
| 2000 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2001 | /* .audio_inputs= 0, */ |
| 2002 | .svhs = NO_SVHS, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2003 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2004 | .tuner_addr = ADDR_UNSET, |
| 2005 | .gpiomask2 = 0xff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2006 | .muxsel = MUXSEL(2,2,2,2, 3,3,3,3, 1,1,1,1, 0,0,0,0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2007 | .muxsel_hook = xguard_muxsel, |
| 2008 | .no_msp34xx = 1, |
| 2009 | .no_tda9875 = 1, |
| 2010 | .no_tda7432 = 1, |
| 2011 | .pll = PLL_28, |
| 2012 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2013 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2014 | /* ---- card 0x68 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2015 | [BTTV_BOARD_NEBULA_DIGITV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2016 | .name = "Nebula Electronics DigiTV", |
| 2017 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2018 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2019 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2020 | .no_msp34xx = 1, |
| 2021 | .no_tda9875 = 1, |
| 2022 | .no_tda7432 = 1, |
| 2023 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2024 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2025 | .tuner_addr = ADDR_UNSET, |
| 2026 | .has_dvb = 1, |
Mark Weaver | 6c6c0b2 | 2005-11-13 16:07:52 -0800 | [diff] [blame] | 2027 | .has_remote = 1, |
| 2028 | .gpiomask = 0x1b, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2029 | .no_gpioirq = 1, |
| 2030 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2031 | [BTTV_BOARD_PV143] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2032 | /* Jorge Boncompte - DTI2 <jorge@dti2.net> */ |
| 2033 | .name = "ProVideo PV143", |
| 2034 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2035 | /* .audio_inputs= 0, */ |
| 2036 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2037 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2038 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2039 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2040 | .needs_tvaudio = 0, |
| 2041 | .no_msp34xx = 1, |
| 2042 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2043 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2044 | .tuner_addr = ADDR_UNSET, |
| 2045 | }, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2046 | [BTTV_BOARD_VD009X1_VD011_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2047 | /* M.Klahr@phytec.de */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2048 | .name = "PHYTEC VD-009-X1 VD-011 MiniDIN (bt878)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2049 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2050 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2051 | .svhs = 3, |
| 2052 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2053 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2054 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2055 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2056 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2057 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2058 | .tuner_addr = ADDR_UNSET, |
| 2059 | }, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2060 | [BTTV_BOARD_VD009X1_VD011_COMBI] = { |
| 2061 | .name = "PHYTEC VD-009-X1 VD-011 Combi (bt878)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2062 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2063 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2064 | .svhs = 3, |
| 2065 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2066 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2067 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2068 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2069 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2070 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2071 | .tuner_addr = ADDR_UNSET, |
| 2072 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2073 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2074 | /* ---- card 0x6c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2075 | [BTTV_BOARD_VD009_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2076 | .name = "PHYTEC VD-009 MiniDIN (bt878)", |
| 2077 | .video_inputs = 10, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2078 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2079 | .svhs = 9, |
| 2080 | .gpiomask = 0x00, |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2081 | .gpiomask2 = 0x03, /* used for external vodeo mux */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2082 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 0), |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2083 | .muxsel_hook = phytec_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2084 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2085 | .needs_tvaudio = 1, |
| 2086 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2087 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2088 | .tuner_addr = ADDR_UNSET, |
| 2089 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2090 | [BTTV_BOARD_VD009_COMBI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2091 | .name = "PHYTEC VD-009 Combi (bt878)", |
| 2092 | .video_inputs = 10, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2093 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2094 | .svhs = 9, |
| 2095 | .gpiomask = 0x00, |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2096 | .gpiomask2 = 0x03, /* used for external vodeo mux */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2097 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1), |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2098 | .muxsel_hook = phytec_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2099 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2100 | .needs_tvaudio = 1, |
| 2101 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2102 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2103 | .tuner_addr = ADDR_UNSET, |
| 2104 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2105 | [BTTV_BOARD_IVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2106 | .name = "IVC-100", |
| 2107 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2108 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2109 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2110 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2111 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2112 | .gpiomask = 0xdf, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2113 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2114 | .pll = PLL_28, |
| 2115 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2116 | [BTTV_BOARD_IVC120] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2117 | /* IVC-120G - Alan Garfield <alan@fromorbit.com> */ |
| 2118 | .name = "IVC-120G", |
| 2119 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2120 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2121 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2122 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2123 | .svhs = NO_SVHS, /* card has no svhs */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2124 | .needs_tvaudio = 0, |
| 2125 | .no_msp34xx = 1, |
| 2126 | .no_tda9875 = 1, |
| 2127 | .no_tda7432 = 1, |
| 2128 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2129 | .muxsel = MUXSEL(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2130 | .muxsel_hook = ivc120_muxsel, |
| 2131 | .pll = PLL_28, |
| 2132 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2133 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2134 | /* ---- card 0x70 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2135 | [BTTV_BOARD_PC_HDTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2136 | .name = "pcHDTV HD-2000 TV", |
| 2137 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2138 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2139 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2140 | .muxsel = MUXSEL(2, 3, 1, 0), |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 2141 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2142 | .tuner_addr = ADDR_UNSET, |
| 2143 | .has_dvb = 1, |
| 2144 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2145 | [BTTV_BOARD_TWINHAN_DST] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2146 | .name = "Twinhan DST + clones", |
| 2147 | .no_msp34xx = 1, |
| 2148 | .no_tda9875 = 1, |
| 2149 | .no_tda7432 = 1, |
| 2150 | .tuner_type = TUNER_ABSENT, |
| 2151 | .tuner_addr = ADDR_UNSET, |
| 2152 | .no_video = 1, |
| 2153 | .has_dvb = 1, |
| 2154 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2155 | [BTTV_BOARD_WINFASTVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2156 | .name = "Winfast VC100", |
| 2157 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2158 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2159 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2160 | /* Vid In, SVid In, Vid over SVid in connector */ |
| 2161 | .muxsel = MUXSEL(3, 1, 1, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2162 | .no_msp34xx = 1, |
| 2163 | .no_tda9875 = 1, |
| 2164 | .no_tda7432 = 1, |
| 2165 | .tuner_type = TUNER_ABSENT, |
| 2166 | .tuner_addr = ADDR_UNSET, |
| 2167 | .pll = PLL_28, |
| 2168 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2169 | [BTTV_BOARD_TEV560] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2170 | .name = "Teppro TEV-560/InterVision IV-560", |
| 2171 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2172 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2173 | .svhs = 2, |
| 2174 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2175 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2176 | .gpiomux = { 1, 1, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2177 | .needs_tvaudio = 1, |
| 2178 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2179 | .tuner_addr = ADDR_UNSET, |
| 2180 | .pll = PLL_35, |
| 2181 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2182 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2183 | /* ---- card 0x74 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2184 | [BTTV_BOARD_SIMUS_GVC1100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2185 | .name = "SIMUS GVC1100", |
| 2186 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2187 | /* .audio_inputs= 0, */ |
| 2188 | .svhs = NO_SVHS, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2189 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2190 | .tuner_addr = ADDR_UNSET, |
| 2191 | .pll = PLL_28, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2192 | .muxsel = MUXSEL(2, 2, 2, 2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2193 | .gpiomask = 0x3F, |
| 2194 | .muxsel_hook = gvc1100_muxsel, |
| 2195 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2196 | [BTTV_BOARD_NGSTV_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2197 | /* Carlos Silva r3pek@r3pek.homelinux.org || card 0x75 */ |
| 2198 | .name = "NGS NGSTV+", |
| 2199 | .video_inputs = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2200 | .svhs = 2, |
| 2201 | .gpiomask = 0x008007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2202 | .muxsel = MUXSEL(2, 3, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2203 | .gpiomux = { 0, 0, 0, 0 }, |
| 2204 | .gpiomute = 0x000003, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2205 | .pll = PLL_28, |
| 2206 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2207 | .tuner_addr = ADDR_UNSET, |
| 2208 | .has_remote = 1, |
| 2209 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2210 | [BTTV_BOARD_LMLBT4] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2211 | /* http://linuxmedialabs.com */ |
| 2212 | .name = "LMLBT4", |
| 2213 | .video_inputs = 4, /* IN1,IN2,IN3,IN4 */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2214 | /* .audio_inputs= 0, */ |
| 2215 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2216 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2217 | .no_msp34xx = 1, |
| 2218 | .no_tda9875 = 1, |
| 2219 | .no_tda7432 = 1, |
| 2220 | .needs_tvaudio = 0, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2221 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2222 | .tuner_addr = ADDR_UNSET, |
| 2223 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2224 | [BTTV_BOARD_TEKRAM_M205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2225 | /* Helmroos Harri <harri.helmroos@pp.inet.fi> */ |
| 2226 | .name = "Tekram M205 PRO", |
| 2227 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2228 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2229 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2230 | .tuner_addr = ADDR_UNSET, |
| 2231 | .svhs = 2, |
| 2232 | .needs_tvaudio = 0, |
| 2233 | .gpiomask = 0x68, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2234 | .muxsel = MUXSEL(2, 3, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2235 | .gpiomux = { 0x68, 0x68, 0x61, 0x61 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2236 | .pll = PLL_28, |
| 2237 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2238 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2239 | /* ---- card 0x78 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2240 | [BTTV_BOARD_CONTVFMI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2241 | /* Javier Cendan Ares <jcendan@lycos.es> */ |
| 2242 | /* bt878 TV + FM without subsystem ID */ |
| 2243 | .name = "Conceptronic CONTVFMi", |
| 2244 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2245 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2246 | .svhs = 2, |
| 2247 | .gpiomask = 0x008007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2248 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2249 | .gpiomux = { 0, 1, 2, 2 }, |
| 2250 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2251 | .needs_tvaudio = 0, |
| 2252 | .pll = PLL_28, |
| 2253 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2254 | .tuner_addr = ADDR_UNSET, |
| 2255 | .has_remote = 1, |
| 2256 | .has_radio = 1, |
| 2257 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2258 | [BTTV_BOARD_PICOLO_TETRA_CHIP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2259 | /*Eric DEBIEF <debief@telemsa.com>*/ |
| 2260 | /*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] | 2261 | /* 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] | 2262 | /*0x79 in bttv.h*/ |
| 2263 | .name = "Euresys Picolo Tetra", |
| 2264 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2265 | /* .audio_inputs= 0, */ |
| 2266 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2267 | .gpiomask = 0, |
| 2268 | .gpiomask2 = 0x3C<<16,/*Set the GPIO[18]->GPIO[21] as output pin.==> drive the video inputs through analog multiplexers*/ |
| 2269 | .no_msp34xx = 1, |
| 2270 | .no_tda9875 = 1, |
| 2271 | .no_tda7432 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2272 | /*878A input is always MUX0, see above.*/ |
| 2273 | .muxsel = MUXSEL(2, 2, 2, 2), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2274 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2275 | .pll = PLL_28, |
| 2276 | .needs_tvaudio = 0, |
| 2277 | .muxsel_hook = picolo_tetra_muxsel,/*Required as it doesn't follow the classic input selection policy*/ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2278 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2279 | .tuner_addr = ADDR_UNSET, |
| 2280 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2281 | [BTTV_BOARD_SPIRIT_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2282 | /* Spirit TV Tuner from http://spiritmodems.com.au */ |
| 2283 | /* Stafford Goodsell <surge@goliath.homeunix.org> */ |
| 2284 | .name = "Spirit TV Tuner", |
| 2285 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2286 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2287 | .svhs = 2, |
| 2288 | .gpiomask = 0x0000000f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2289 | .muxsel = MUXSEL(2, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2290 | .gpiomux = { 0x02, 0x00, 0x00, 0x00 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2291 | .tuner_type = TUNER_TEMIC_PAL, |
| 2292 | .tuner_addr = ADDR_UNSET, |
| 2293 | .no_msp34xx = 1, |
| 2294 | .no_tda9875 = 1, |
| 2295 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2296 | [BTTV_BOARD_AVDVBT_771] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2297 | /* Wolfram Joost <wojo@frokaschwei.de> */ |
| 2298 | .name = "AVerMedia AVerTV DVB-T 771", |
| 2299 | .video_inputs = 2, |
| 2300 | .svhs = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2301 | .tuner_type = TUNER_ABSENT, |
| 2302 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2303 | .muxsel = MUXSEL(3, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2304 | .no_msp34xx = 1, |
| 2305 | .no_tda9875 = 1, |
| 2306 | .no_tda7432 = 1, |
| 2307 | .pll = PLL_28, |
| 2308 | .has_dvb = 1, |
| 2309 | .no_gpioirq = 1, |
| 2310 | .has_remote = 1, |
| 2311 | }, |
| 2312 | /* ---- card 0x7c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2313 | [BTTV_BOARD_AVDVBT_761] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2314 | /* Matt Jesson <dvb@jesson.eclipse.co.uk> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2315 | /* 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] | 2316 | .name = "AverMedia AverTV DVB-T 761", |
| 2317 | .video_inputs = 2, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2318 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2319 | .muxsel = MUXSEL(3, 1, 2, 0), /* Comp0, S-Video, ?, ? */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2320 | .no_msp34xx = 1, |
| 2321 | .no_tda9875 = 1, |
| 2322 | .no_tda7432 = 1, |
| 2323 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2324 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2325 | .tuner_addr = ADDR_UNSET, |
| 2326 | .has_dvb = 1, |
| 2327 | .no_gpioirq = 1, |
| 2328 | .has_remote = 1, |
| 2329 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2330 | [BTTV_BOARD_MATRIX_VISIONSQ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2331 | /* andre.schwarz@matrix-vision.de */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2332 | .name = "MATRIX Vision Sigma-SQ", |
| 2333 | .video_inputs = 16, |
| 2334 | /* .audio_inputs= 0, */ |
| 2335 | .svhs = NO_SVHS, |
| 2336 | .gpiomask = 0x0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2337 | .muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3), |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2338 | .muxsel_hook = sigmaSQ_muxsel, |
| 2339 | .gpiomux = { 0 }, |
| 2340 | .no_msp34xx = 1, |
| 2341 | .pll = PLL_28, |
| 2342 | .tuner_type = TUNER_ABSENT, |
| 2343 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2344 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2345 | [BTTV_BOARD_MATRIX_VISIONSLC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2346 | /* andre.schwarz@matrix-vision.de */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2347 | .name = "MATRIX Vision Sigma-SLC", |
| 2348 | .video_inputs = 4, |
| 2349 | /* .audio_inputs= 0, */ |
| 2350 | .svhs = NO_SVHS, |
| 2351 | .gpiomask = 0x0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2352 | .muxsel = MUXSEL(2, 2, 2, 2), |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2353 | .muxsel_hook = sigmaSLC_muxsel, |
| 2354 | .gpiomux = { 0 }, |
| 2355 | .no_msp34xx = 1, |
| 2356 | .pll = PLL_28, |
| 2357 | .tuner_type = TUNER_ABSENT, |
| 2358 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2359 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2360 | /* BTTV_BOARD_APAC_VIEWCOMP */ |
| 2361 | [BTTV_BOARD_APAC_VIEWCOMP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2362 | /* Attila Kondoros <attila.kondoros@chello.hu> */ |
| 2363 | /* bt878 TV + FM 0x00000000 subsystem ID */ |
| 2364 | .name = "APAC Viewcomp 878(AMAX)", |
| 2365 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2366 | /* .audio_inputs= 1, */ |
| 2367 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2368 | .gpiomask = 0xFF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2369 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2370 | .gpiomux = { 2, 0, 0, 0 }, |
| 2371 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2372 | .needs_tvaudio = 0, |
| 2373 | .pll = PLL_28, |
| 2374 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2375 | .tuner_addr = ADDR_UNSET, |
| 2376 | .has_remote = 1, /* miniremote works, see ir-kbd-gpio.c */ |
| 2377 | .has_radio = 1, /* not every card has radio */ |
| 2378 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2379 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2380 | /* ---- card 0x80 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2381 | [BTTV_BOARD_DVICO_DVBT_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2382 | /* Chris Pascoe <c.pascoe@itee.uq.edu.au> */ |
| 2383 | .name = "DViCO FusionHDTV DVB-T Lite", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2384 | .no_msp34xx = 1, |
| 2385 | .no_tda9875 = 1, |
| 2386 | .no_tda7432 = 1, |
| 2387 | .pll = PLL_28, |
| 2388 | .no_video = 1, |
| 2389 | .has_dvb = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2390 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2391 | .tuner_addr = ADDR_UNSET, |
| 2392 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2393 | [BTTV_BOARD_VGEAR_MYVCD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2394 | /* Steven <photon38@pchome.com.tw> */ |
| 2395 | .name = "V-Gear MyVCD", |
| 2396 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2397 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2398 | .svhs = 2, |
| 2399 | .gpiomask = 0x3f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2400 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2401 | .gpiomux = {0x31, 0x31, 0x31, 0x31 }, |
| 2402 | .gpiomute = 0x31, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2403 | .no_msp34xx = 1, |
| 2404 | .pll = PLL_28, |
| 2405 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 2406 | .tuner_addr = ADDR_UNSET, |
| 2407 | .has_radio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2408 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2409 | [BTTV_BOARD_SUPER_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2410 | /* Rick C <cryptdragoon@gmail.com> */ |
| 2411 | .name = "Super TV Tuner", |
| 2412 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2413 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2414 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2415 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2416 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 2417 | .tuner_addr = ADDR_UNSET, |
| 2418 | .gpiomask = 0x008007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2419 | .gpiomux = { 0, 0x000001,0,0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2420 | .needs_tvaudio = 1, |
| 2421 | .has_radio = 1, |
| 2422 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2423 | [BTTV_BOARD_TIBET_CS16] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2424 | /* Chris Fanning <video4linux@haydon.net> */ |
| 2425 | .name = "Tibet Systems 'Progress DVR' CS16", |
| 2426 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2427 | /* .audio_inputs= 0, */ |
| 2428 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2429 | .muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2430 | .pll = PLL_28, |
| 2431 | .no_msp34xx = 1, |
| 2432 | .no_tda9875 = 1, |
| 2433 | .no_tda7432 = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2434 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2435 | .tuner_addr = ADDR_UNSET, |
| 2436 | .muxsel_hook = tibetCS16_muxsel, |
| 2437 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2438 | [BTTV_BOARD_KODICOM_4400R] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2439 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2440 | /* |
| 2441 | * Note that, because of the card's wiring, the "master" |
| 2442 | * BT878A chip (i.e. the one which controls the analog switch |
| 2443 | * and must use this card type) is the 2nd one detected. The |
| 2444 | * other 3 chips should use card type 0x85, whose description |
| 2445 | * follows this one. There is a EEPROM on the card (which is |
| 2446 | * connected to the I2C of one of those other chips), but is |
| 2447 | * not currently handled. There is also a facility for a |
| 2448 | * "monitor", which is also not currently implemented. |
| 2449 | */ |
| 2450 | .name = "Kodicom 4400R (master)", |
| 2451 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2452 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2453 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2454 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2455 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2456 | /* GPIO bits 0-9 used for analog switch: |
| 2457 | * 00 - 03: camera selector |
| 2458 | * 04 - 06: channel (controller) selector |
| 2459 | * 07: data (1->on, 0->off) |
| 2460 | * 08: strobe |
| 2461 | * 09: reset |
| 2462 | * bit 16 is input from sync separator for the channel |
| 2463 | */ |
| 2464 | .gpiomask = 0x0003ff, |
| 2465 | .no_gpioirq = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2466 | .muxsel = MUXSEL(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2467 | .pll = PLL_28, |
| 2468 | .no_msp34xx = 1, |
| 2469 | .no_tda7432 = 1, |
| 2470 | .no_tda9875 = 1, |
| 2471 | .muxsel_hook = kodicom4400r_muxsel, |
| 2472 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2473 | [BTTV_BOARD_KODICOM_4400R_SL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2474 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2475 | /* Note that, for reasons unknown, the "master" BT878A chip (i.e. the |
| 2476 | * one which controls the analog switch, and must use the card type) |
| 2477 | * is the 2nd one detected. The other 3 chips should use this card |
| 2478 | * type |
| 2479 | */ |
| 2480 | .name = "Kodicom 4400R (slave)", |
| 2481 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2482 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2483 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2484 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2485 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2486 | .gpiomask = 0x010000, |
| 2487 | .no_gpioirq = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2488 | .muxsel = MUXSEL(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2489 | .pll = PLL_28, |
| 2490 | .no_msp34xx = 1, |
| 2491 | .no_tda7432 = 1, |
| 2492 | .no_tda9875 = 1, |
| 2493 | .muxsel_hook = kodicom4400r_muxsel, |
| 2494 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2495 | /* ---- card 0x86---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2496 | [BTTV_BOARD_ADLINK_RTV24] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2497 | /* Michael Henson <mhenson@clarityvi.com> */ |
| 2498 | /* Adlink RTV24 with special unlock codes */ |
| 2499 | .name = "Adlink RTV24", |
| 2500 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2501 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2502 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2503 | .muxsel = MUXSEL(2, 3, 1, 0), |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2504 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2505 | .tuner_addr = ADDR_UNSET, |
| 2506 | .pll = PLL_28, |
| 2507 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2508 | /* ---- card 0x87---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2509 | [BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2510 | /* Michael Krufky <mkrufky@m1k.net> */ |
| 2511 | .name = "DViCO FusionHDTV 5 Lite", |
Michael Krufky | 9c26c8b | 2006-04-27 01:29:17 -0300 | [diff] [blame] | 2512 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2513 | .tuner_addr = ADDR_UNSET, |
Michael Krufky | 4b01741 | 2005-11-08 21:37:06 -0800 | [diff] [blame] | 2514 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2515 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2516 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2517 | .muxsel = MUXSEL(2, 3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2518 | .gpiomask = 0x00e00007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2519 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
| 2520 | .gpiomute = 0x00c00007, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2521 | .no_msp34xx = 1, |
| 2522 | .no_tda9875 = 1, |
| 2523 | .no_tda7432 = 1, |
| 2524 | .has_dvb = 1, |
| 2525 | }, |
| 2526 | /* ---- card 0x88---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2527 | [BTTV_BOARD_ACORP_Y878F] = { |
Mauro Carvalho Chehab | 2e7c6dc | 2006-04-03 07:53:40 -0300 | [diff] [blame] | 2528 | /* Mauro Carvalho Chehab <mchehab@infradead.org> */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2529 | .name = "Acorp Y878F", |
| 2530 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2531 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2532 | .svhs = 2, |
| 2533 | .gpiomask = 0x01fe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2534 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2535 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 2536 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2537 | .needs_tvaudio = 1, |
| 2538 | .pll = PLL_28, |
| 2539 | .tuner_type = TUNER_YMEC_TVF66T5_B_DFF, |
| 2540 | .tuner_addr = 0xc1 >>1, |
| 2541 | .has_radio = 1, |
| 2542 | }, |
| 2543 | /* ---- card 0x89 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2544 | [BTTV_BOARD_CONCEPTRONIC_CTVFMI2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2545 | .name = "Conceptronic CTVFMi v2", |
| 2546 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2547 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2548 | .svhs = 2, |
| 2549 | .gpiomask = 0x001c0007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2550 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2551 | .gpiomux = { 0, 1, 2, 2 }, |
| 2552 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2553 | .needs_tvaudio = 0, |
| 2554 | .pll = PLL_28, |
Ricardo Cerqueira | 24d4122 | 2005-11-08 21:38:21 -0800 | [diff] [blame] | 2555 | .tuner_type = TUNER_TENA_9533_DI, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2556 | .tuner_addr = ADDR_UNSET, |
| 2557 | .has_remote = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2558 | .has_radio = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2559 | }, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2560 | /* ---- card 0x8a ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2561 | [BTTV_BOARD_PV_BT878P_2E] = { |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2562 | .name = "Prolink Pixelview PV-BT878P+ (Rev.2E)", |
| 2563 | .video_inputs = 5, |
| 2564 | /* .audio_inputs= 1, */ |
| 2565 | .svhs = 3, |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2566 | .has_dig_in = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2567 | .gpiomask = 0x01fe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2568 | .muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2569 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
| 2570 | .gpiomux = { 0x00400, 0x10400, 0x04400, 0x80000 }, |
| 2571 | .gpiomute = 0x12400, |
| 2572 | .no_msp34xx = 1, |
| 2573 | .pll = PLL_28, |
| 2574 | .tuner_type = TUNER_LG_PAL_FM, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2575 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2576 | .has_remote = 1, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2577 | }, |
| 2578 | /* ---- card 0x8b ---------------------------------- */ |
| 2579 | [BTTV_BOARD_PV_M4900] = { |
Jan Engelhardt | 96de0e2 | 2007-10-19 23:21:04 +0200 | [diff] [blame] | 2580 | /* Sérgio Fortier <sergiofortier@yahoo.com.br> */ |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2581 | .name = "Prolink PixelView PlayTV MPEG2 PV-M4900", |
| 2582 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2583 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2584 | .svhs = 2, |
| 2585 | .gpiomask = 0x3f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2586 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2587 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 2588 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2589 | .no_msp34xx = 1, |
| 2590 | .pll = PLL_28, |
| 2591 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
| 2592 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2593 | .has_radio = 1, |
| 2594 | .has_remote = 1, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2595 | }, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 2596 | /* ---- card 0x8c ---------------------------------- */ |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2597 | /* Has four Bt878 chips behind a PCI bridge, each chip has: |
| 2598 | one external BNC composite input (mux 2) |
| 2599 | three internal composite inputs (unknown muxes) |
| 2600 | an 18-bit stereo A/D (CS5331A), which has: |
| 2601 | one external stereo unblanced (RCA) audio connection |
| 2602 | one (or 3?) internal stereo balanced (XLR) audio connection |
| 2603 | input is selected via gpio to a 14052B mux |
| 2604 | (mask=0x300, unbal=0x000, bal=0x100, ??=0x200,0x300) |
| 2605 | gain is controlled via an X9221A chip on the I2C bus @0x28 |
| 2606 | sample rate is controlled via gpio to an MK1413S |
| 2607 | (mask=0x3, 32kHz=0x0, 44.1kHz=0x1, 48kHz=0x2, ??=0x3) |
| 2608 | There is neither a tuner nor an svideo input. */ |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2609 | [BTTV_BOARD_OSPREY440] = { |
| 2610 | .name = "Osprey 440", |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2611 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2612 | /* .audio_inputs= 2, */ |
| 2613 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2614 | .muxsel = MUXSEL(2, 3, 0, 1), /* 3,0,1 are guesses */ |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2615 | .gpiomask = 0x303, |
| 2616 | .gpiomute = 0x000, /* int + 32kHz */ |
| 2617 | .gpiomux = { 0, 0, 0x000, 0x100}, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2618 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2619 | .tuner_type = TUNER_ABSENT, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2620 | .tuner_addr = ADDR_UNSET, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2621 | .no_msp34xx = 1, |
| 2622 | .no_tda9875 = 1, |
| 2623 | .no_tda7432 = 1, |
| 2624 | }, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2625 | /* ---- card 0x8d ---------------------------------- */ |
| 2626 | [BTTV_BOARD_ASOUND_SKYEYE] = { |
| 2627 | .name = "Asound Skyeye PCTV", |
| 2628 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2629 | /* .audio_inputs= 1, */ |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2630 | .svhs = 2, |
| 2631 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2632 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2633 | .gpiomux = { 2, 0, 0, 0 }, |
| 2634 | .gpiomute = 1, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2635 | .needs_tvaudio = 1, |
| 2636 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2637 | .tuner_type = TUNER_PHILIPS_NTSC, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2638 | .tuner_addr = ADDR_UNSET, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2639 | }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2640 | /* ---- card 0x8e ---------------------------------- */ |
| 2641 | [BTTV_BOARD_SABRENT_TVFM] = { |
| 2642 | .name = "Sabrent TV-FM (bttv version)", |
| 2643 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2644 | /* .audio_inputs= 1, */ |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2645 | .svhs = 2, |
| 2646 | .gpiomask = 0x108007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2647 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2648 | .gpiomux = { 100000, 100002, 100002, 100000 }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2649 | .no_msp34xx = 1, |
| 2650 | .no_tda9875 = 1, |
| 2651 | .no_tda7432 = 1, |
| 2652 | .pll = PLL_28, |
| 2653 | .tuner_type = TUNER_TNF_5335MF, |
| 2654 | .tuner_addr = ADDR_UNSET, |
| 2655 | .has_radio = 1, |
| 2656 | }, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2657 | /* ---- card 0x8f ---------------------------------- */ |
| 2658 | [BTTV_BOARD_HAUPPAUGE_IMPACTVCB] = { |
| 2659 | .name = "Hauppauge ImpactVCB (bt878)", |
| 2660 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2661 | /* .audio_inputs= 0, */ |
| 2662 | .svhs = NO_SVHS, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2663 | .gpiomask = 0x0f, /* old: 7 */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2664 | .muxsel = MUXSEL(0, 1, 3, 2), /* Composite 0-3 */ |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2665 | .no_msp34xx = 1, |
| 2666 | .no_tda9875 = 1, |
| 2667 | .no_tda7432 = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2668 | .tuner_type = TUNER_ABSENT, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2669 | .tuner_addr = ADDR_UNSET, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2670 | }, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2671 | [BTTV_BOARD_MACHTV_MAGICTV] = { |
| 2672 | /* Julian Calaby <julian.calaby@gmail.com> |
| 2673 | * Slightly different from original MachTV definition (0x60) |
| 2674 | |
| 2675 | * FIXME: RegSpy says gpiomask should be "0x001c800f", but it |
| 2676 | * stuffs up remote chip. Bug is a pin on the jaecs is not set |
| 2677 | * properly (methinks) causing no keyup bits being set */ |
| 2678 | |
| 2679 | .name = "MagicTV", /* rebranded MachTV */ |
| 2680 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2681 | /* .audio_inputs= 1, */ |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2682 | .svhs = 2, |
| 2683 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2684 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2685 | .gpiomux = { 0, 1, 2, 3 }, |
| 2686 | .gpiomute = 4, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2687 | .tuner_type = TUNER_TEMIC_4009FR5_PAL, |
| 2688 | .tuner_addr = ADDR_UNSET, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2689 | .pll = PLL_28, |
| 2690 | .has_radio = 1, |
| 2691 | .has_remote = 1, |
| 2692 | }, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2693 | [BTTV_BOARD_SSAI_SECURITY] = { |
| 2694 | .name = "SSAI Security Video Interface", |
| 2695 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2696 | /* .audio_inputs= 0, */ |
| 2697 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2698 | .muxsel = MUXSEL(0, 1, 2, 3), |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2699 | .tuner_type = TUNER_ABSENT, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2700 | .tuner_addr = ADDR_UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2701 | }, |
| 2702 | [BTTV_BOARD_SSAI_ULTRASOUND] = { |
| 2703 | .name = "SSAI Ultrasound Video Interface", |
| 2704 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2705 | /* .audio_inputs= 0, */ |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2706 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2707 | .muxsel = MUXSEL(2, 0, 1, 3), |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2708 | .tuner_type = TUNER_ABSENT, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2709 | .tuner_addr = ADDR_UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2710 | }, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2711 | /* ---- card 0x94---------------------------------- */ |
| 2712 | [BTTV_BOARD_DVICO_FUSIONHDTV_2] = { |
| 2713 | .name = "DViCO FusionHDTV 2", |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 2714 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2715 | .tuner_addr = ADDR_UNSET, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2716 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2717 | /* .audio_inputs= 1, */ |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2718 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2719 | .muxsel = MUXSEL(2, 3, 1), |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2720 | .gpiomask = 0x00e00007, |
| 2721 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
| 2722 | .gpiomute = 0x00c00007, |
| 2723 | .no_msp34xx = 1, |
| 2724 | .no_tda9875 = 1, |
| 2725 | .no_tda7432 = 1, |
| 2726 | }, |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2727 | /* ---- card 0x95---------------------------------- */ |
| 2728 | [BTTV_BOARD_TYPHOON_TVTUNERPCI] = { |
| 2729 | .name = "Typhoon TV-Tuner PCI (50684)", |
| 2730 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2731 | /* .audio_inputs= 1, */ |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2732 | .svhs = 2, |
| 2733 | .gpiomask = 0x3014f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2734 | .muxsel = MUXSEL(2, 3, 1, 1), |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2735 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
| 2736 | .gpiomute = 10, |
| 2737 | .needs_tvaudio = 1, |
| 2738 | .pll = PLL_28, |
| 2739 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 2740 | .tuner_addr = ADDR_UNSET, |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2741 | }, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2742 | [BTTV_BOARD_GEOVISION_GV600] = { |
| 2743 | /* emhn@usb.ve */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2744 | .name = "Geovision GV-600", |
| 2745 | .video_inputs = 16, |
| 2746 | /* .audio_inputs= 0, */ |
| 2747 | .svhs = NO_SVHS, |
| 2748 | .gpiomask = 0x0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2749 | .muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2), |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2750 | .muxsel_hook = geovision_muxsel, |
| 2751 | .gpiomux = { 0 }, |
| 2752 | .no_msp34xx = 1, |
| 2753 | .pll = PLL_28, |
| 2754 | .tuner_type = TUNER_ABSENT, |
| 2755 | .tuner_addr = ADDR_UNSET, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2756 | }, |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2757 | [BTTV_BOARD_KOZUMI_KTV_01C] = { |
| 2758 | /* Mauro Lacy <mauro@lacy.com.ar> |
| 2759 | * Based on MagicTV and Conceptronic CONTVFMi */ |
| 2760 | |
| 2761 | .name = "Kozumi KTV-01C", |
| 2762 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2763 | /* .audio_inputs= 1, */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2764 | .svhs = 2, |
| 2765 | .gpiomask = 0x008007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2766 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2767 | .gpiomux = { 0, 1, 2, 2 }, /* CONTVFMi */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2768 | .gpiomute = 3, /* CONTVFMi */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2769 | .needs_tvaudio = 0, |
| 2770 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* TCL MK3 */ |
| 2771 | .tuner_addr = ADDR_UNSET, |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2772 | .pll = PLL_28, |
| 2773 | .has_radio = 1, |
| 2774 | .has_remote = 1, |
| 2775 | }, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2776 | [BTTV_BOARD_ENLTV_FM_2] = { |
| 2777 | /* Encore TV Tuner Pro ENL TV-FM-2 |
| 2778 | Mauro Carvalho Chehab <mchehab@infradead.org */ |
| 2779 | .name = "Encore ENL TV-FM-2", |
| 2780 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2781 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2782 | .svhs = 2, |
| 2783 | /* bit 6 -> IR disabled |
| 2784 | bit 18/17 = 00 -> mute |
| 2785 | 01 -> enable external audio input |
| 2786 | 10 -> internal audio input (mono?) |
| 2787 | 11 -> internal audio input |
| 2788 | */ |
| 2789 | .gpiomask = 0x060040, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2790 | .muxsel = MUXSEL(2, 3, 3), |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2791 | .gpiomux = { 0x60000, 0x60000, 0x20000, 0x20000 }, |
| 2792 | .gpiomute = 0, |
| 2793 | .tuner_type = TUNER_TCL_MF02GIP_5N, |
| 2794 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2795 | .pll = PLL_28, |
| 2796 | .has_radio = 1, |
| 2797 | .has_remote = 1, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2798 | }, |
| 2799 | [BTTV_BOARD_VD012] = { |
| 2800 | /* D.Heer@Phytec.de */ |
| 2801 | .name = "PHYTEC VD-012 (bt878)", |
| 2802 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2803 | /* .audio_inputs= 0, */ |
| 2804 | .svhs = NO_SVHS, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2805 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2806 | .muxsel = MUXSEL(0, 2, 3, 1), |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2807 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
| 2808 | .needs_tvaudio = 0, |
| 2809 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2810 | .tuner_type = TUNER_ABSENT, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2811 | .tuner_addr = ADDR_UNSET, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2812 | }, |
| 2813 | [BTTV_BOARD_VD012_X1] = { |
| 2814 | /* D.Heer@Phytec.de */ |
| 2815 | .name = "PHYTEC VD-012-X1 (bt878)", |
| 2816 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2817 | /* .audio_inputs= 0, */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2818 | .svhs = 3, |
| 2819 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2820 | .muxsel = MUXSEL(2, 3, 1), |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2821 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
| 2822 | .needs_tvaudio = 0, |
| 2823 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2824 | .tuner_type = TUNER_ABSENT, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2825 | .tuner_addr = ADDR_UNSET, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2826 | }, |
| 2827 | [BTTV_BOARD_VD012_X2] = { |
| 2828 | /* D.Heer@Phytec.de */ |
| 2829 | .name = "PHYTEC VD-012-X2 (bt878)", |
| 2830 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2831 | /* .audio_inputs= 0, */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2832 | .svhs = 3, |
| 2833 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2834 | .muxsel = MUXSEL(3, 2, 1), |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2835 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
| 2836 | .needs_tvaudio = 0, |
| 2837 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2838 | .tuner_type = TUNER_ABSENT, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2839 | .tuner_addr = ADDR_UNSET, |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 2840 | }, |
| 2841 | [BTTV_BOARD_GEOVISION_GV800S] = { |
| 2842 | /* Bruno Christo <bchristo@inf.ufsm.br> |
| 2843 | * |
| 2844 | * GeoVision GV-800(S) has 4 Conexant Fusion 878A: |
| 2845 | * 1 audio input per BT878A = 4 audio inputs |
| 2846 | * 4 video inputs per BT878A = 16 video inputs |
| 2847 | * This is the first BT878A chip of the GV-800(S). It's the |
| 2848 | * "master" chip and it controls the video inputs through an |
| 2849 | * analog multiplexer (a CD22M3494) via some GPIO pins. The |
| 2850 | * slaves should use card type 0x9e (following this one). |
| 2851 | * There is a EEPROM on the card which is currently not handled. |
| 2852 | * The audio input is not working yet. |
| 2853 | */ |
| 2854 | .name = "Geovision GV-800(S) (master)", |
| 2855 | .video_inputs = 4, |
| 2856 | /* .audio_inputs= 1, */ |
| 2857 | .tuner_type = TUNER_ABSENT, |
| 2858 | .tuner_addr = ADDR_UNSET, |
| 2859 | .svhs = NO_SVHS, |
| 2860 | .gpiomask = 0xf107f, |
| 2861 | .no_gpioirq = 1, |
| 2862 | .muxsel = MUXSEL(2, 2, 2, 2), |
| 2863 | .pll = PLL_28, |
| 2864 | .no_msp34xx = 1, |
| 2865 | .no_tda7432 = 1, |
| 2866 | .no_tda9875 = 1, |
| 2867 | .muxsel_hook = gv800s_muxsel, |
| 2868 | }, |
| 2869 | [BTTV_BOARD_GEOVISION_GV800S_SL] = { |
| 2870 | /* Bruno Christo <bchristo@inf.ufsm.br> |
| 2871 | * |
| 2872 | * GeoVision GV-800(S) has 4 Conexant Fusion 878A: |
| 2873 | * 1 audio input per BT878A = 4 audio inputs |
| 2874 | * 4 video inputs per BT878A = 16 video inputs |
| 2875 | * The 3 other BT878A chips are "slave" chips of the GV-800(S) |
| 2876 | * and should use this card type. |
| 2877 | * The audio input is not working yet. |
| 2878 | */ |
| 2879 | .name = "Geovision GV-800(S) (slave)", |
| 2880 | .video_inputs = 4, |
| 2881 | /* .audio_inputs= 1, */ |
| 2882 | .tuner_type = TUNER_ABSENT, |
| 2883 | .tuner_addr = ADDR_UNSET, |
| 2884 | .svhs = NO_SVHS, |
| 2885 | .gpiomask = 0x00, |
| 2886 | .no_gpioirq = 1, |
| 2887 | .muxsel = MUXSEL(2, 2, 2, 2), |
| 2888 | .pll = PLL_28, |
| 2889 | .no_msp34xx = 1, |
| 2890 | .no_tda7432 = 1, |
| 2891 | .no_tda9875 = 1, |
| 2892 | .muxsel_hook = gv800s_muxsel, |
| 2893 | }, |
Alan McIvor | dceaddb | 2009-03-12 21:43:34 -0300 | [diff] [blame^] | 2894 | [BTTV_BOARD_PV183] = { |
| 2895 | .name = "ProVideo PV183", /* 0x9f */ |
| 2896 | .video_inputs = 2, |
| 2897 | /* .audio_inputs= 0, */ |
| 2898 | .svhs = NO_SVHS, |
| 2899 | .gpiomask = 0, |
| 2900 | .muxsel = MUXSEL(2, 3), |
| 2901 | .gpiomux = { 0 }, |
| 2902 | .needs_tvaudio = 0, |
| 2903 | .no_msp34xx = 1, |
| 2904 | .pll = PLL_28, |
| 2905 | .tuner_type = TUNER_ABSENT, |
| 2906 | .tuner_addr = ADDR_UNSET, |
| 2907 | }, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2908 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2909 | |
| 2910 | static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards); |
| 2911 | |
| 2912 | /* ----------------------------------------------------------------------- */ |
| 2913 | |
| 2914 | static unsigned char eeprom_data[256]; |
| 2915 | |
| 2916 | /* |
| 2917 | * identify card |
| 2918 | */ |
| 2919 | void __devinit bttv_idcard(struct bttv *btv) |
| 2920 | { |
| 2921 | unsigned int gpiobits; |
| 2922 | int i,type; |
| 2923 | unsigned short tmp; |
| 2924 | |
| 2925 | /* read PCI subsystem ID */ |
| 2926 | pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_ID, &tmp); |
| 2927 | btv->cardid = tmp << 16; |
| 2928 | pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_VENDOR_ID, &tmp); |
| 2929 | btv->cardid |= tmp; |
| 2930 | |
| 2931 | if (0 != btv->cardid && 0xffffffff != btv->cardid) { |
| 2932 | /* look for the card */ |
| 2933 | for (type = -1, i = 0; cards[i].id != 0; i++) |
| 2934 | if (cards[i].id == btv->cardid) |
| 2935 | type = i; |
| 2936 | |
| 2937 | if (type != -1) { |
| 2938 | /* found it */ |
| 2939 | printk(KERN_INFO "bttv%d: detected: %s [card=%d], " |
| 2940 | "PCI subsystem ID is %04x:%04x\n", |
| 2941 | btv->c.nr,cards[type].name,cards[type].cardnr, |
| 2942 | btv->cardid & 0xffff, |
| 2943 | (btv->cardid >> 16) & 0xffff); |
| 2944 | btv->c.type = cards[type].cardnr; |
| 2945 | } else { |
| 2946 | /* 404 */ |
| 2947 | printk(KERN_INFO "bttv%d: subsystem: %04x:%04x (UNKNOWN)\n", |
| 2948 | btv->c.nr, btv->cardid & 0xffff, |
| 2949 | (btv->cardid >> 16) & 0xffff); |
| 2950 | printk(KERN_DEBUG "please mail id, board name and " |
Hans Verkuil | 15965f0 | 2009-03-14 15:06:08 -0300 | [diff] [blame] | 2951 | "the correct card= insmod option to linux-media@vger.kernel.org\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2952 | } |
| 2953 | } |
| 2954 | |
| 2955 | /* let the user override the autodetected type */ |
| 2956 | if (card[btv->c.nr] < bttv_num_tvcards) |
| 2957 | btv->c.type=card[btv->c.nr]; |
| 2958 | |
| 2959 | /* print which card config we are using */ |
| 2960 | printk(KERN_INFO "bttv%d: using: %s [card=%d,%s]\n",btv->c.nr, |
| 2961 | bttv_tvcards[btv->c.type].name, btv->c.type, |
| 2962 | card[btv->c.nr] < bttv_num_tvcards |
| 2963 | ? "insmod option" : "autodetected"); |
| 2964 | |
| 2965 | /* overwrite gpio stuff ?? */ |
| 2966 | if (UNSET == audioall && UNSET == audiomux[0]) |
| 2967 | return; |
| 2968 | |
| 2969 | if (UNSET != audiomux[0]) { |
| 2970 | gpiobits = 0; |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 2971 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2972 | bttv_tvcards[btv->c.type].gpiomux[i] = audiomux[i]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2973 | gpiobits |= audiomux[i]; |
| 2974 | } |
| 2975 | } else { |
| 2976 | gpiobits = audioall; |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 2977 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2978 | bttv_tvcards[btv->c.type].gpiomux[i] = audioall; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2979 | } |
| 2980 | } |
| 2981 | bttv_tvcards[btv->c.type].gpiomask = (UNSET != gpiomask) ? gpiomask : gpiobits; |
| 2982 | printk(KERN_INFO "bttv%d: gpio config override: mask=0x%x, mux=", |
| 2983 | btv->c.nr,bttv_tvcards[btv->c.type].gpiomask); |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 2984 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2985 | printk("%s0x%x", i ? "," : "", bttv_tvcards[btv->c.type].gpiomux[i]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2986 | } |
| 2987 | printk("\n"); |
| 2988 | } |
| 2989 | |
| 2990 | /* |
| 2991 | * (most) board specific initialisations goes here |
| 2992 | */ |
| 2993 | |
| 2994 | /* Some Modular Technology cards have an eeprom, but no subsystem ID */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 2995 | 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] | 2996 | { |
| 2997 | int type = -1; |
| 2998 | |
| 2999 | if (0 == strncmp(eeprom_data,"GET MM20xPCTV",13)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3000 | type = BTTV_BOARD_MODTEC_205; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3001 | else if (0 == strncmp(eeprom_data+20,"Picolo",7)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3002 | type = BTTV_BOARD_EURESYS_PICOLO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3003 | else if (eeprom_data[0] == 0x84 && eeprom_data[2]== 0) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3004 | type = BTTV_BOARD_HAUPPAUGE; /* old bt848 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3005 | |
| 3006 | if (-1 != type) { |
| 3007 | btv->c.type = type; |
| 3008 | printk("bttv%d: detected by eeprom: %s [card=%d]\n", |
| 3009 | btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type); |
| 3010 | } |
| 3011 | } |
| 3012 | |
| 3013 | static void flyvideo_gpio(struct bttv *btv) |
| 3014 | { |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3015 | int gpio, has_remote, has_radio, is_capture_only; |
| 3016 | int is_lr90, has_tda9820_tda9821; |
| 3017 | int tuner_type = UNSET, ttype; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3018 | |
| 3019 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3020 | udelay(8); /* without this we would see the 0x1800 mask */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3021 | gpio = gpio_read(); |
| 3022 | /* FIXME: must restore OUR_EN ??? */ |
| 3023 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3024 | /* all cards provide GPIO info, some have an additional eeprom |
| 3025 | * LR50: GPIO coding can be found lower right CP1 .. CP9 |
| 3026 | * CP9=GPIO23 .. CP1=GPIO15; when OPEN, the corresponding GPIO reads 1. |
| 3027 | * GPIO14-12: n.c. |
| 3028 | * LR90: GP9=GPIO23 .. GP1=GPIO15 (right above the bt878) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3029 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3030 | * lowest 3 bytes are remote control codes (no handshake needed) |
| 3031 | * xxxFFF: No remote control chip soldered |
| 3032 | * xxxF00(LR26/LR50), xxxFE0(LR90): Remote control chip (LVA001 or CF45) soldered |
| 3033 | * Note: Some bits are Audio_Mask ! |
| 3034 | */ |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3035 | ttype = (gpio & 0x0f0000) >> 16; |
| 3036 | switch (ttype) { |
| 3037 | case 0x0: |
| 3038 | tuner_type = 2; /* NTSC, e.g. TPI8NSR11P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3039 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3040 | case 0x2: |
| 3041 | tuner_type = 39; /* LG NTSC (newer TAPC series) TAPC-H701P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3042 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3043 | case 0x4: |
| 3044 | tuner_type = 5; /* Philips PAL TPI8PSB02P, TPI8PSB12P, TPI8PSB12D or FI1216, FM1216 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3045 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3046 | case 0x6: |
| 3047 | tuner_type = 37; /* LG PAL (newer TAPC series) TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3048 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3049 | case 0xC: |
| 3050 | tuner_type = 3; /* Philips SECAM(+PAL) FQ1216ME or FI1216MF */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3051 | break; |
| 3052 | default: |
| 3053 | 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] | 3054 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3055 | } |
| 3056 | |
| 3057 | has_remote = gpio & 0x800000; |
| 3058 | has_radio = gpio & 0x400000; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3059 | /* unknown 0x200000; |
| 3060 | * unknown2 0x100000; */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3061 | is_capture_only = !(gpio & 0x008000); /* GPIO15 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3062 | has_tda9820_tda9821 = !(gpio & 0x004000); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3063 | is_lr90 = !(gpio & 0x002000); /* else LR26/LR50 (LR38/LR51 f. capture only) */ |
| 3064 | /* |
| 3065 | * gpio & 0x001000 output bit for audio routing */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3066 | |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3067 | if (is_capture_only) |
| 3068 | tuner_type = TUNER_ABSENT; /* No tuner present */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3069 | |
| 3070 | 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] | 3071 | btv->c.nr, has_radio ? "yes" : "no ", |
| 3072 | has_remote ? "yes" : "no ", tuner_type, gpio); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3073 | 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] | 3074 | btv->c.nr, is_lr90 ? "yes" : "no ", |
| 3075 | has_tda9820_tda9821 ? "yes" : "no ", |
| 3076 | is_capture_only ? "yes" : "no "); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3077 | |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3078 | if (tuner_type != UNSET) /* only set if known tuner autodetected, else let insmod option through */ |
| 3079 | btv->tuner_type = tuner_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3080 | btv->has_radio = has_radio; |
| 3081 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3082 | /* LR90 Audio Routing is done by 2 hef4052, so Audio_Mask has 4 bits: 0x001c80 |
| 3083 | * LR26/LR50 only has 1 hef4052, Audio_Mask 0x000c00 |
| 3084 | * 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] | 3085 | if (has_tda9820_tda9821) |
| 3086 | btv->audio_mode_gpio = lt9415_audio; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 3087 | /* todo: if(has_tda9874) btv->audio_mode_gpio = fv2000s_audio; */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3088 | } |
| 3089 | |
| 3090 | static int miro_tunermap[] = { 0,6,2,3, 4,5,6,0, 3,0,4,5, 5,2,16,1, |
| 3091 | 14,2,17,1, 4,1,4,3, 1,2,16,1, 4,4,4,4 }; |
| 3092 | static int miro_fmtuner[] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1, |
| 3093 | 1,1,1,1, 1,1,1,0, 0,0,0,0, 0,1,0,0 }; |
| 3094 | |
| 3095 | static void miro_pinnacle_gpio(struct bttv *btv) |
| 3096 | { |
| 3097 | int id,msp,gpio; |
| 3098 | char *info; |
| 3099 | |
| 3100 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3101 | gpio = gpio_read(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3102 | id = ((gpio>>10) & 63) -1; |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3103 | msp = bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3104 | if (id < 32) { |
| 3105 | btv->tuner_type = miro_tunermap[id]; |
| 3106 | if (0 == (gpio & 0x20)) { |
| 3107 | btv->has_radio = 1; |
| 3108 | if (!miro_fmtuner[id]) { |
| 3109 | btv->has_matchbox = 1; |
| 3110 | btv->mbox_we = (1<<6); |
| 3111 | btv->mbox_most = (1<<7); |
| 3112 | btv->mbox_clk = (1<<8); |
| 3113 | btv->mbox_data = (1<<9); |
| 3114 | btv->mbox_mask = (1<<6)|(1<<7)|(1<<8)|(1<<9); |
| 3115 | } |
| 3116 | } else { |
| 3117 | btv->has_radio = 0; |
| 3118 | } |
| 3119 | if (-1 != msp) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3120 | if (btv->c.type == BTTV_BOARD_MIRO) |
| 3121 | btv->c.type = BTTV_BOARD_MIROPRO; |
| 3122 | if (btv->c.type == BTTV_BOARD_PINNACLE) |
| 3123 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3124 | } |
| 3125 | printk(KERN_INFO |
| 3126 | "bttv%d: miro: id=%d tuner=%d radio=%s stereo=%s\n", |
| 3127 | btv->c.nr, id+1, btv->tuner_type, |
| 3128 | !btv->has_radio ? "no" : |
| 3129 | (btv->has_matchbox ? "matchbox" : "fmtuner"), |
| 3130 | (-1 == msp) ? "no" : "yes"); |
| 3131 | } else { |
| 3132 | /* new cards with microtune tuner */ |
| 3133 | id = 63 - id; |
| 3134 | btv->has_radio = 0; |
| 3135 | switch (id) { |
| 3136 | case 1: |
| 3137 | info = "PAL / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3138 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3139 | break; |
| 3140 | case 2: |
| 3141 | info = "PAL+SECAM / stereo"; |
| 3142 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3143 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3144 | break; |
| 3145 | case 3: |
| 3146 | info = "NTSC / stereo"; |
| 3147 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3148 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3149 | break; |
| 3150 | case 4: |
| 3151 | info = "PAL+SECAM / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3152 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3153 | break; |
| 3154 | case 5: |
| 3155 | info = "NTSC / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3156 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3157 | break; |
| 3158 | case 6: |
| 3159 | info = "NTSC / stereo"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3160 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3161 | break; |
| 3162 | case 7: |
| 3163 | info = "PAL / stereo"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3164 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3165 | break; |
| 3166 | default: |
| 3167 | info = "oops: unknown card"; |
| 3168 | break; |
| 3169 | } |
| 3170 | if (-1 != msp) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3171 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3172 | printk(KERN_INFO |
| 3173 | "bttv%d: pinnacle/mt: id=%d info=\"%s\" radio=%s\n", |
| 3174 | btv->c.nr, id, info, btv->has_radio ? "yes" : "no"); |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3175 | btv->tuner_type = TUNER_MT2032; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3176 | } |
| 3177 | } |
| 3178 | |
| 3179 | /* GPIO21 L: Buffer aktiv, H: Buffer inaktiv */ |
| 3180 | #define LM1882_SYNC_DRIVE 0x200000L |
| 3181 | |
| 3182 | static void init_ids_eagle(struct bttv *btv) |
| 3183 | { |
| 3184 | gpio_inout(0xffffff,0xFFFF37); |
| 3185 | gpio_write(0x200020); |
| 3186 | |
| 3187 | /* flash strobe inverter ?! */ |
| 3188 | gpio_write(0x200024); |
| 3189 | |
| 3190 | /* switch sync drive off */ |
| 3191 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
| 3192 | |
| 3193 | /* set BT848 muxel to 2 */ |
| 3194 | btaor((2)<<5, ~(2<<5), BT848_IFORM); |
| 3195 | } |
| 3196 | |
| 3197 | /* Muxsel helper for the IDS Eagle. |
| 3198 | * the eagles does not use the standard muxsel-bits but |
| 3199 | * has its own multiplexer */ |
| 3200 | static void eagle_muxsel(struct bttv *btv, unsigned int input) |
| 3201 | { |
Trent Piepho | 430390e | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3202 | gpio_bits(3, input & 3); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3203 | |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3204 | /* composite */ |
| 3205 | /* set chroma ADC to sleep */ |
| 3206 | btor(BT848_ADC_C_SLEEP, BT848_ADC); |
| 3207 | /* set to composite video */ |
| 3208 | btand(~BT848_CONTROL_COMP, BT848_E_CONTROL); |
| 3209 | btand(~BT848_CONTROL_COMP, BT848_O_CONTROL); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3210 | |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3211 | /* switch sync drive off */ |
| 3212 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3213 | } |
| 3214 | |
| 3215 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input) |
| 3216 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3217 | static const int masks[] = {0x30, 0x01, 0x12, 0x23}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3218 | gpio_write(masks[input%4]); |
| 3219 | } |
| 3220 | |
| 3221 | /* LMLBT4x initialization - to allow access to GPIO bits for sensors input and |
| 3222 | alarms output |
| 3223 | |
| 3224 | GPIObit | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| 3225 | assignment | TI | O3|INx| O2| O1|IN4|IN3|IN2|IN1| | | |
| 3226 | |
| 3227 | IN - sensor inputs, INx - sensor inputs and TI XORed together |
| 3228 | O1,O2,O3 - alarm outputs (relays) |
| 3229 | |
| 3230 | OUT ENABLE 1 1 0 . 1 1 0 0 . 0 0 0 0 = 0x6C0 |
| 3231 | |
| 3232 | */ |
| 3233 | |
| 3234 | static void init_lmlbt4x(struct bttv *btv) |
| 3235 | { |
| 3236 | printk(KERN_DEBUG "LMLBT4x init\n"); |
| 3237 | btwrite(0x000000, BT848_GPIO_REG_INP); |
| 3238 | gpio_inout(0xffffff, 0x0006C0); |
| 3239 | gpio_write(0x000000); |
| 3240 | } |
| 3241 | |
| 3242 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input) |
| 3243 | { |
| 3244 | unsigned int inmux = input % 8; |
| 3245 | gpio_inout( 0xf, 0xf ); |
| 3246 | gpio_bits( 0xf, inmux ); |
| 3247 | } |
| 3248 | |
| 3249 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input) |
| 3250 | { |
| 3251 | unsigned int inmux = input % 4; |
| 3252 | gpio_inout( 3<<9, 3<<9 ); |
| 3253 | gpio_bits( 3<<9, inmux<<9 ); |
| 3254 | } |
| 3255 | |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 3256 | static void geovision_muxsel(struct bttv *btv, unsigned int input) |
| 3257 | { |
| 3258 | unsigned int inmux = input % 16; |
| 3259 | gpio_inout(0xf, 0xf); |
| 3260 | gpio_bits(0xf, inmux); |
| 3261 | } |
| 3262 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3263 | /* ----------------------------------------------------------------------- */ |
| 3264 | |
| 3265 | static void bttv_reset_audio(struct bttv *btv) |
| 3266 | { |
| 3267 | /* |
| 3268 | * BT878A has a audio-reset register. |
| 3269 | * 1. This register is an audio reset function but it is in |
| 3270 | * function-0 (video capture) address space. |
| 3271 | * 2. It is enough to do this once per power-up of the card. |
| 3272 | * 3. There is a typo in the Conexant doc -- it is not at |
| 3273 | * 0x5B, but at 0x058. (B is an odd-number, obviously a typo!). |
| 3274 | * --//Shrikumar 030609 |
| 3275 | */ |
| 3276 | if (btv->id != 878) |
| 3277 | return; |
| 3278 | |
| 3279 | if (bttv_debug) |
| 3280 | printk("bttv%d: BT878A ARESET\n",btv->c.nr); |
| 3281 | btwrite((1<<7), 0x058); |
| 3282 | udelay(10); |
| 3283 | btwrite( 0, 0x058); |
| 3284 | } |
| 3285 | |
| 3286 | /* initialization part one -- before registering i2c bus */ |
| 3287 | void __devinit bttv_init_card1(struct bttv *btv) |
| 3288 | { |
| 3289 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3290 | case BTTV_BOARD_HAUPPAUGE: |
| 3291 | case BTTV_BOARD_HAUPPAUGE878: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3292 | boot_msp34xx(btv,5); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3293 | break; |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 3294 | case BTTV_BOARD_VOODOOTV_200: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3295 | case BTTV_BOARD_VOODOOTV_FM: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3296 | boot_msp34xx(btv,20); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3297 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3298 | case BTTV_BOARD_AVERMEDIA98: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3299 | boot_msp34xx(btv,11); |
| 3300 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3301 | case BTTV_BOARD_HAUPPAUGEPVR: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3302 | pvr_boot(btv); |
| 3303 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3304 | case BTTV_BOARD_TWINHAN_DST: |
| 3305 | case BTTV_BOARD_AVDVBT_771: |
| 3306 | case BTTV_BOARD_PINNACLESAT: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3307 | btv->use_i2c_hw = 1; |
| 3308 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3309 | case BTTV_BOARD_ADLINK_RTV24: |
Michael Krufky | 7c08fb0 | 2005-11-08 21:36:21 -0800 | [diff] [blame] | 3310 | init_RTV24( btv ); |
| 3311 | break; |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 3312 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3313 | } |
| 3314 | if (!bttv_tvcards[btv->c.type].has_dvb) |
| 3315 | bttv_reset_audio(btv); |
| 3316 | } |
| 3317 | |
| 3318 | /* initialization part two -- after registering i2c bus */ |
| 3319 | void __devinit bttv_init_card2(struct bttv *btv) |
| 3320 | { |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3321 | int addr=ADDR_UNSET; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3322 | |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3323 | btv->tuner_type = UNSET; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3324 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3325 | if (BTTV_BOARD_UNKNOWN == btv->c.type) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3326 | bttv_readee(btv,eeprom_data,0xa0); |
| 3327 | identify_by_eeprom(btv,eeprom_data); |
| 3328 | } |
| 3329 | |
| 3330 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3331 | case BTTV_BOARD_MIRO: |
| 3332 | case BTTV_BOARD_MIROPRO: |
| 3333 | case BTTV_BOARD_PINNACLE: |
| 3334 | case BTTV_BOARD_PINNACLEPRO: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3335 | /* miro/pinnacle */ |
| 3336 | miro_pinnacle_gpio(btv); |
| 3337 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3338 | case BTTV_BOARD_FLYVIDEO_98: |
| 3339 | case BTTV_BOARD_MAXI: |
| 3340 | case BTTV_BOARD_LIFE_FLYKIT: |
| 3341 | case BTTV_BOARD_FLYVIDEO: |
| 3342 | case BTTV_BOARD_TYPHOON_TVIEW: |
| 3343 | case BTTV_BOARD_CHRONOS_VS2: |
| 3344 | case BTTV_BOARD_FLYVIDEO_98FM: |
| 3345 | case BTTV_BOARD_FLYVIDEO2000: |
| 3346 | case BTTV_BOARD_FLYVIDEO98EZ: |
| 3347 | case BTTV_BOARD_CONFERENCETV: |
| 3348 | case BTTV_BOARD_LIFETEC_9415: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3349 | flyvideo_gpio(btv); |
| 3350 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3351 | case BTTV_BOARD_HAUPPAUGE: |
| 3352 | case BTTV_BOARD_HAUPPAUGE878: |
| 3353 | case BTTV_BOARD_HAUPPAUGEPVR: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3354 | /* pick up some config infos from the eeprom */ |
| 3355 | bttv_readee(btv,eeprom_data,0xa0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3356 | hauppauge_eeprom(btv); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3357 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3358 | case BTTV_BOARD_AVERMEDIA98: |
| 3359 | case BTTV_BOARD_AVPHONE98: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3360 | bttv_readee(btv,eeprom_data,0xa0); |
| 3361 | avermedia_eeprom(btv); |
| 3362 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3363 | case BTTV_BOARD_PXC200: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3364 | init_PXC200(btv); |
| 3365 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3366 | case BTTV_BOARD_PICOLO_TETRA_CHIP: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3367 | picolo_tetra_init(btv); |
| 3368 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3369 | case BTTV_BOARD_VHX: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3370 | btv->has_radio = 1; |
| 3371 | btv->has_matchbox = 1; |
| 3372 | btv->mbox_we = 0x20; |
| 3373 | btv->mbox_most = 0; |
| 3374 | btv->mbox_clk = 0x08; |
| 3375 | btv->mbox_data = 0x10; |
| 3376 | btv->mbox_mask = 0x38; |
| 3377 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3378 | case BTTV_BOARD_VOBIS_BOOSTAR: |
| 3379 | case BTTV_BOARD_TERRATV: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3380 | terratec_active_radio_upgrade(btv); |
| 3381 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3382 | case BTTV_BOARD_MAGICTVIEW061: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3383 | if (btv->cardid == 0x3002144f) { |
| 3384 | btv->has_radio=1; |
| 3385 | printk("bttv%d: radio detected by subsystem id (CPH05x)\n",btv->c.nr); |
| 3386 | } |
| 3387 | break; |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3388 | case BTTV_BOARD_STB2: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3389 | if (btv->cardid == 0x3060121a) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3390 | /* Fix up entry for 3DFX VoodooTV 100, |
| 3391 | which is an OEM STB card variant. */ |
| 3392 | btv->has_radio=0; |
| 3393 | btv->tuner_type=TUNER_TEMIC_NTSC; |
| 3394 | } |
| 3395 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3396 | case BTTV_BOARD_OSPREY1x0: |
| 3397 | case BTTV_BOARD_OSPREY1x0_848: |
| 3398 | case BTTV_BOARD_OSPREY101_848: |
| 3399 | case BTTV_BOARD_OSPREY1x1: |
| 3400 | case BTTV_BOARD_OSPREY1x1_SVID: |
| 3401 | case BTTV_BOARD_OSPREY2xx: |
| 3402 | case BTTV_BOARD_OSPREY2x0_SVID: |
| 3403 | case BTTV_BOARD_OSPREY2x0: |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3404 | case BTTV_BOARD_OSPREY440: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3405 | case BTTV_BOARD_OSPREY500: |
| 3406 | case BTTV_BOARD_OSPREY540: |
| 3407 | case BTTV_BOARD_OSPREY2000: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3408 | bttv_readee(btv,eeprom_data,0xa0); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3409 | osprey_eeprom(btv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3410 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3411 | case BTTV_BOARD_IDS_EAGLE: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3412 | init_ids_eagle(btv); |
| 3413 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3414 | case BTTV_BOARD_MODTEC_205: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3415 | bttv_readee(btv,eeprom_data,0xa0); |
| 3416 | modtec_eeprom(btv); |
| 3417 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3418 | case BTTV_BOARD_LMLBT4: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3419 | init_lmlbt4x(btv); |
| 3420 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3421 | case BTTV_BOARD_TIBET_CS16: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3422 | tibetCS16_init(btv); |
| 3423 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3424 | case BTTV_BOARD_KODICOM_4400R: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3425 | kodicom4400r_init(btv); |
| 3426 | break; |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 3427 | case BTTV_BOARD_GEOVISION_GV800S: |
| 3428 | gv800s_init(btv); |
| 3429 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3430 | } |
| 3431 | |
| 3432 | /* pll configuration */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3433 | if (!(btv->id==848 && btv->revision==0x11)) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3434 | /* defaults from card list */ |
| 3435 | if (PLL_28 == bttv_tvcards[btv->c.type].pll) { |
| 3436 | btv->pll.pll_ifreq=28636363; |
| 3437 | btv->pll.pll_crystal=BT848_IFORM_XT0; |
| 3438 | } |
| 3439 | if (PLL_35 == bttv_tvcards[btv->c.type].pll) { |
| 3440 | btv->pll.pll_ifreq=35468950; |
| 3441 | btv->pll.pll_crystal=BT848_IFORM_XT1; |
| 3442 | } |
| 3443 | /* insmod options can override */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3444 | switch (pll[btv->c.nr]) { |
| 3445 | case 0: /* none */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3446 | btv->pll.pll_crystal = 0; |
| 3447 | btv->pll.pll_ifreq = 0; |
| 3448 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3449 | break; |
| 3450 | case 1: /* 28 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3451 | case 28: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3452 | btv->pll.pll_ifreq = 28636363; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3453 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3454 | btv->pll.pll_crystal = BT848_IFORM_XT0; |
| 3455 | break; |
| 3456 | case 2: /* 35 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3457 | case 35: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3458 | btv->pll.pll_ifreq = 35468950; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3459 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3460 | btv->pll.pll_crystal = BT848_IFORM_XT1; |
| 3461 | break; |
| 3462 | } |
| 3463 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3464 | btv->pll.pll_current = -1; |
| 3465 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3466 | /* tuner configuration (from card list / autodetect / insmod option) */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3467 | if (ADDR_UNSET != bttv_tvcards[btv->c.type].tuner_addr) |
| 3468 | addr = bttv_tvcards[btv->c.type].tuner_addr; |
| 3469 | |
| 3470 | if (UNSET != bttv_tvcards[btv->c.type].tuner_type) |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3471 | if (UNSET == btv->tuner_type) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3472 | btv->tuner_type = bttv_tvcards[btv->c.type].tuner_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3473 | if (UNSET != tuner[btv->c.nr]) |
| 3474 | btv->tuner_type = tuner[btv->c.nr]; |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3475 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3476 | if (btv->tuner_type == TUNER_ABSENT) |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3477 | printk(KERN_INFO "bttv%d: tuner absent\n", btv->c.nr); |
| 3478 | else if(btv->tuner_type == UNSET) |
| 3479 | printk(KERN_WARNING "bttv%d: tuner type unset\n", btv->c.nr); |
| 3480 | else |
| 3481 | printk(KERN_INFO "bttv%d: tuner type=%d\n", btv->c.nr, |
| 3482 | btv->tuner_type); |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3483 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3484 | if (UNSET == btv->tuner_type) |
| 3485 | btv->tuner_type = TUNER_ABSENT; |
| 3486 | |
| 3487 | if (btv->tuner_type != TUNER_ABSENT) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3488 | struct tuner_setup tun_setup; |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3489 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3490 | /* Load tuner module before issuing tuner config call! */ |
| 3491 | if (autoload) |
| 3492 | request_module("tuner"); |
| 3493 | |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3494 | tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV; |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3495 | tun_setup.type = btv->tuner_type; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3496 | tun_setup.addr = addr; |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3497 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3498 | if (bttv_tvcards[btv->c.type].has_radio) |
| 3499 | tun_setup.mode_mask |= T_RADIO; |
| 3500 | |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3501 | bttv_call_i2c_clients(btv, TUNER_SET_TYPE_ADDR, &tun_setup); |
| 3502 | } |
| 3503 | |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3504 | if (btv->tda9887_conf) { |
Mauro Carvalho Chehab | 7f17112 | 2007-10-18 19:56:47 -0300 | [diff] [blame] | 3505 | struct v4l2_priv_tun_config tda9887_cfg; |
| 3506 | |
| 3507 | tda9887_cfg.tuner = TUNER_TDA9887; |
| 3508 | tda9887_cfg.priv = &btv->tda9887_conf; |
| 3509 | |
| 3510 | bttv_call_i2c_clients(btv, TUNER_SET_CONFIG, &tda9887_cfg); |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3511 | } |
| 3512 | |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3513 | btv->dig = bttv_tvcards[btv->c.type].has_dig_in ? |
| 3514 | bttv_tvcards[btv->c.type].video_inputs - 1 : UNSET; |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3515 | btv->svhs = bttv_tvcards[btv->c.type].svhs == NO_SVHS ? |
| 3516 | UNSET : bttv_tvcards[btv->c.type].svhs; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3517 | if (svhs[btv->c.nr] != UNSET) |
| 3518 | btv->svhs = svhs[btv->c.nr]; |
| 3519 | if (remote[btv->c.nr] != UNSET) |
| 3520 | btv->has_remote = remote[btv->c.nr]; |
| 3521 | |
| 3522 | if (bttv_tvcards[btv->c.type].has_radio) |
| 3523 | btv->has_radio=1; |
| 3524 | if (bttv_tvcards[btv->c.type].has_remote) |
| 3525 | btv->has_remote=1; |
Michael Krufky | 7c08fb0 | 2005-11-08 21:36:21 -0800 | [diff] [blame] | 3526 | if (!bttv_tvcards[btv->c.type].no_gpioirq) |
| 3527 | btv->gpioirq=1; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 3528 | if (bttv_tvcards[btv->c.type].volume_gpio) |
| 3529 | btv->volume_gpio=bttv_tvcards[btv->c.type].volume_gpio; |
| 3530 | if (bttv_tvcards[btv->c.type].audio_mode_gpio) |
| 3531 | btv->audio_mode_gpio=bttv_tvcards[btv->c.type].audio_mode_gpio; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3532 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3533 | if (!autoload) |
| 3534 | return; |
| 3535 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3536 | if (btv->tuner_type == TUNER_ABSENT) |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3537 | return; /* no tuner or related drivers to load */ |
| 3538 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3539 | /* try to detect audio/fader chips */ |
| 3540 | if (!bttv_tvcards[btv->c.type].no_msp34xx && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3541 | bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3542 | request_module("msp3400"); |
| 3543 | |
| 3544 | if (bttv_tvcards[btv->c.type].msp34xx_alt && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3545 | bttv_I2CRead(btv, I2C_ADDR_MSP3400_ALT, "MSP34xx (alternate address)") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3546 | request_module("msp3400"); |
| 3547 | |
| 3548 | if (!bttv_tvcards[btv->c.type].no_tda9875 && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3549 | bttv_I2CRead(btv, I2C_ADDR_TDA9875, "TDA9875") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3550 | request_module("tda9875"); |
| 3551 | |
| 3552 | if (!bttv_tvcards[btv->c.type].no_tda7432 && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3553 | bttv_I2CRead(btv, I2C_ADDR_TDA7432, "TDA7432") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3554 | request_module("tda7432"); |
| 3555 | |
| 3556 | if (bttv_tvcards[btv->c.type].needs_tvaudio) |
| 3557 | request_module("tvaudio"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3558 | } |
| 3559 | |
| 3560 | |
| 3561 | /* ----------------------------------------------------------------------- */ |
| 3562 | |
| 3563 | static void modtec_eeprom(struct bttv *btv) |
| 3564 | { |
| 3565 | if( strncmp(&(eeprom_data[0x1e]),"Temic 4066 FY5",14) ==0) { |
| 3566 | btv->tuner_type=TUNER_TEMIC_4066FY5_PAL_I; |
| 3567 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3568 | btv->c.nr,&eeprom_data[0x1e]); |
| 3569 | } else if (strncmp(&(eeprom_data[0x1e]),"Alps TSBB5",10) ==0) { |
| 3570 | btv->tuner_type=TUNER_ALPS_TSBB5_PAL_I; |
| 3571 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3572 | btv->c.nr,&eeprom_data[0x1e]); |
| 3573 | } else if (strncmp(&(eeprom_data[0x1e]),"Philips FM1246",14) ==0) { |
| 3574 | btv->tuner_type=TUNER_PHILIPS_NTSC; |
| 3575 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3576 | btv->c.nr,&eeprom_data[0x1e]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3577 | } else { |
| 3578 | printk("bttv%d: Modtec: Unknown TunerString: %s\n", |
| 3579 | btv->c.nr,&eeprom_data[0x1e]); |
| 3580 | } |
| 3581 | } |
| 3582 | |
| 3583 | static void __devinit hauppauge_eeprom(struct bttv *btv) |
| 3584 | { |
| 3585 | struct tveeprom tv; |
| 3586 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 3587 | tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3588 | btv->tuner_type = tv.tuner_type; |
| 3589 | btv->has_radio = tv.has_radio; |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 3590 | |
| 3591 | printk("bttv%d: Hauppauge eeprom indicates model#%d\n", |
| 3592 | btv->c.nr, tv.model); |
| 3593 | |
| 3594 | /* |
| 3595 | * Some of the 878 boards have duplicate PCI IDs. Switch the board |
| 3596 | * type based on model #. |
| 3597 | */ |
| 3598 | if(tv.model == 64900) { |
| 3599 | printk("bttv%d: Switching board type from %s to %s\n", |
| 3600 | btv->c.nr, |
| 3601 | bttv_tvcards[btv->c.type].name, |
| 3602 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); |
| 3603 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; |
| 3604 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3605 | } |
| 3606 | |
| 3607 | static int terratec_active_radio_upgrade(struct bttv *btv) |
| 3608 | { |
| 3609 | int freq; |
| 3610 | |
| 3611 | btv->has_radio = 1; |
| 3612 | btv->has_matchbox = 1; |
| 3613 | btv->mbox_we = 0x10; |
| 3614 | btv->mbox_most = 0x20; |
| 3615 | btv->mbox_clk = 0x08; |
| 3616 | btv->mbox_data = 0x04; |
| 3617 | btv->mbox_mask = 0x3c; |
| 3618 | |
| 3619 | btv->mbox_iow = 1 << 8; |
| 3620 | btv->mbox_ior = 1 << 9; |
| 3621 | btv->mbox_csel = 1 << 10; |
| 3622 | |
| 3623 | freq=88000/62.5; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3624 | tea5757_write(btv, 5 * freq + 0x358); /* write 0x1ed8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3625 | if (0x1ed8 == tea5757_read(btv)) { |
| 3626 | printk("bttv%d: Terratec Active Radio Upgrade found.\n", |
| 3627 | btv->c.nr); |
| 3628 | btv->has_radio = 1; |
| 3629 | btv->has_matchbox = 1; |
| 3630 | } else { |
| 3631 | btv->has_radio = 0; |
| 3632 | btv->has_matchbox = 0; |
| 3633 | } |
| 3634 | return 0; |
| 3635 | } |
| 3636 | |
| 3637 | |
| 3638 | /* ----------------------------------------------------------------------- */ |
| 3639 | |
| 3640 | /* |
| 3641 | * minimal bootstrap for the WinTV/PVR -- upload altera firmware. |
| 3642 | * |
| 3643 | * The hcwamc.rbf firmware file is on the Hauppauge driver CD. Have |
| 3644 | * a look at Pvr/pvr45xxx.EXE (self-extracting zip archive, can be |
| 3645 | * unpacked with unzip). |
| 3646 | */ |
| 3647 | #define PVR_GPIO_DELAY 10 |
| 3648 | |
| 3649 | #define BTTV_ALT_DATA 0x000001 |
| 3650 | #define BTTV_ALT_DCLK 0x100000 |
| 3651 | #define BTTV_ALT_NCONFIG 0x800000 |
| 3652 | |
David Woodhouse | 4f2a0c3 | 2008-05-24 00:11:44 +0100 | [diff] [blame] | 3653 | static int __devinit pvr_altera_load(struct bttv *btv, const u8 *micro, |
| 3654 | u32 microlen) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3655 | { |
| 3656 | u32 n; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3657 | u8 bits; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3658 | int i; |
| 3659 | |
| 3660 | gpio_inout(0xffffff,BTTV_ALT_DATA|BTTV_ALT_DCLK|BTTV_ALT_NCONFIG); |
| 3661 | gpio_write(0); |
| 3662 | udelay(PVR_GPIO_DELAY); |
| 3663 | |
| 3664 | gpio_write(BTTV_ALT_NCONFIG); |
| 3665 | udelay(PVR_GPIO_DELAY); |
| 3666 | |
| 3667 | for (n = 0; n < microlen; n++) { |
| 3668 | bits = micro[n]; |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 3669 | for (i = 0 ; i < 8 ; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3670 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3671 | if (bits & 0x01) |
| 3672 | gpio_bits(BTTV_ALT_DATA,BTTV_ALT_DATA); |
| 3673 | else |
| 3674 | gpio_bits(BTTV_ALT_DATA,0); |
| 3675 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3676 | bits >>= 1; |
| 3677 | } |
| 3678 | } |
| 3679 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3680 | udelay(PVR_GPIO_DELAY); |
| 3681 | |
| 3682 | /* begin Altera init loop (Not necessary,but doesn't hurt) */ |
| 3683 | for (i = 0 ; i < 30 ; i++) { |
| 3684 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3685 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3686 | } |
| 3687 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3688 | return 0; |
| 3689 | } |
| 3690 | |
| 3691 | static int __devinit pvr_boot(struct bttv *btv) |
| 3692 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3693 | const struct firmware *fw_entry; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3694 | int rc; |
| 3695 | |
| 3696 | rc = request_firmware(&fw_entry, "hcwamc.rbf", &btv->c.pci->dev); |
| 3697 | if (rc != 0) { |
| 3698 | printk(KERN_WARNING "bttv%d: no altera firmware [via hotplug]\n", |
| 3699 | btv->c.nr); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3700 | return rc; |
| 3701 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3702 | rc = pvr_altera_load(btv, fw_entry->data, fw_entry->size); |
| 3703 | printk(KERN_INFO "bttv%d: altera firmware upload %s\n", |
| 3704 | btv->c.nr, (rc < 0) ? "failed" : "ok"); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3705 | release_firmware(fw_entry); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3706 | return rc; |
| 3707 | } |
| 3708 | |
| 3709 | /* ----------------------------------------------------------------------- */ |
| 3710 | /* some osprey specific stuff */ |
| 3711 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3712 | static void __devinit osprey_eeprom(struct bttv *btv, const u8 ee[256]) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3713 | { |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3714 | int i; |
| 3715 | u32 serial = 0; |
| 3716 | int cardid = -1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3717 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3718 | /* This code will nevery actually get called in this case.... */ |
| 3719 | if (btv->c.type == BTTV_BOARD_UNKNOWN) { |
| 3720 | /* this might be an antique... check for MMAC label in eeprom */ |
| 3721 | if (!strncmp(ee, "MMAC", 4)) { |
| 3722 | u8 checksum = 0; |
| 3723 | for (i = 0; i < 21; i++) |
| 3724 | checksum += ee[i]; |
| 3725 | if (checksum != ee[21]) |
| 3726 | return; |
| 3727 | cardid = BTTV_BOARD_OSPREY1x0_848; |
| 3728 | for (i = 12; i < 21; i++) |
| 3729 | serial *= 10, serial += ee[i] - '0'; |
| 3730 | } |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3731 | } else { |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3732 | unsigned short type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3733 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3734 | for (i = 4*16; i < 8*16; i += 16) { |
| 3735 | u16 checksum = ip_compute_csum(ee + i, 16); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3736 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3737 | if ((checksum&0xff) + (checksum>>8) == 0xff) |
| 3738 | break; |
| 3739 | } |
| 3740 | if (i >= 8*16) |
| 3741 | return; |
| 3742 | ee += i; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3743 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3744 | /* found a valid descriptor */ |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 3745 | type = get_unaligned_be16((__be16 *)(ee+4)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3746 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3747 | switch(type) { |
| 3748 | /* 848 based */ |
| 3749 | case 0x0004: |
| 3750 | cardid = BTTV_BOARD_OSPREY1x0_848; |
| 3751 | break; |
| 3752 | case 0x0005: |
| 3753 | cardid = BTTV_BOARD_OSPREY101_848; |
| 3754 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3755 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3756 | /* 878 based */ |
| 3757 | case 0x0012: |
| 3758 | case 0x0013: |
| 3759 | cardid = BTTV_BOARD_OSPREY1x0; |
| 3760 | break; |
| 3761 | case 0x0014: |
| 3762 | case 0x0015: |
| 3763 | cardid = BTTV_BOARD_OSPREY1x1; |
| 3764 | break; |
| 3765 | case 0x0016: |
| 3766 | case 0x0017: |
| 3767 | case 0x0020: |
| 3768 | cardid = BTTV_BOARD_OSPREY1x1_SVID; |
| 3769 | break; |
| 3770 | case 0x0018: |
| 3771 | case 0x0019: |
| 3772 | case 0x001E: |
| 3773 | case 0x001F: |
| 3774 | cardid = BTTV_BOARD_OSPREY2xx; |
| 3775 | break; |
| 3776 | case 0x001A: |
| 3777 | case 0x001B: |
| 3778 | cardid = BTTV_BOARD_OSPREY2x0_SVID; |
| 3779 | break; |
| 3780 | case 0x0040: |
| 3781 | cardid = BTTV_BOARD_OSPREY500; |
| 3782 | break; |
| 3783 | case 0x0050: |
| 3784 | case 0x0056: |
| 3785 | cardid = BTTV_BOARD_OSPREY540; |
| 3786 | /* bttv_osprey_540_init(btv); */ |
| 3787 | break; |
| 3788 | case 0x0060: |
| 3789 | case 0x0070: |
| 3790 | case 0x00A0: |
| 3791 | cardid = BTTV_BOARD_OSPREY2x0; |
| 3792 | /* enable output on select control lines */ |
| 3793 | gpio_inout(0xffffff,0x000303); |
| 3794 | break; |
| 3795 | case 0x00D8: |
| 3796 | cardid = BTTV_BOARD_OSPREY440; |
| 3797 | break; |
| 3798 | default: |
| 3799 | /* unknown...leave generic, but get serial # */ |
| 3800 | printk(KERN_INFO "bttv%d: " |
| 3801 | "osprey eeprom: unknown card type 0x%04x\n", |
| 3802 | btv->c.nr, type); |
| 3803 | break; |
| 3804 | } |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 3805 | serial = get_unaligned_be32((__be32 *)(ee+6)); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3806 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3807 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3808 | printk(KERN_INFO "bttv%d: osprey eeprom: card=%d '%s' serial=%u\n", |
| 3809 | btv->c.nr, cardid, |
| 3810 | cardid>0 ? bttv_tvcards[cardid].name : "Unknown", serial); |
| 3811 | |
| 3812 | if (cardid<0 || btv->c.type == cardid) |
| 3813 | return; |
| 3814 | |
| 3815 | /* card type isn't set correctly */ |
| 3816 | if (card[btv->c.nr] < bttv_num_tvcards) { |
| 3817 | printk(KERN_WARNING "bttv%d: osprey eeprom: " |
| 3818 | "Not overriding user specified card type\n", btv->c.nr); |
| 3819 | } else { |
| 3820 | printk(KERN_INFO "bttv%d: osprey eeprom: " |
| 3821 | "Changing card type from %d to %d\n", btv->c.nr, |
| 3822 | btv->c.type, cardid); |
| 3823 | btv->c.type = cardid; |
| 3824 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3825 | } |
| 3826 | |
| 3827 | /* ----------------------------------------------------------------------- */ |
| 3828 | /* AVermedia specific stuff, from bktr_card.c */ |
| 3829 | |
| 3830 | static int tuner_0_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3831 | TUNER_PHILIPS_NTSC, TUNER_PHILIPS_PAL /* PAL-BG*/, |
| 3832 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL /* PAL-I*/, |
| 3833 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL, |
| 3834 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_SECAM, |
| 3835 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3836 | TUNER_PHILIPS_FM1216ME_MK3 }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3837 | |
| 3838 | static int tuner_1_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3839 | TUNER_TEMIC_NTSC, TUNER_TEMIC_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3840 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
| 3841 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3842 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */ |
| 3843 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3844 | |
| 3845 | static void __devinit avermedia_eeprom(struct bttv *btv) |
| 3846 | { |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3847 | int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3848 | |
| 3849 | tuner_make = (eeprom_data[0x41] & 0x7); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3850 | tuner_tv_fm = (eeprom_data[0x41] & 0x18) >> 3; |
| 3851 | tuner_format = (eeprom_data[0x42] & 0xf0) >> 4; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3852 | btv->has_remote = (eeprom_data[0x42] & 0x01); |
| 3853 | |
| 3854 | if (tuner_make == 0 || tuner_make == 2) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3855 | if (tuner_format <= 0x0a) |
| 3856 | tuner_type = tuner_0_table[tuner_format]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3857 | if (tuner_make == 1) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3858 | if (tuner_format <= 9) |
| 3859 | tuner_type = tuner_1_table[tuner_format]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3860 | |
| 3861 | if (tuner_make == 4) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3862 | if (tuner_format == 0x09) |
| 3863 | tuner_type = TUNER_LG_NTSC_NEW_TAPC; /* TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3864 | |
| 3865 | printk(KERN_INFO "bttv%d: Avermedia eeprom[0x%02x%02x]: tuner=", |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3866 | btv->c.nr, eeprom_data[0x41], eeprom_data[0x42]); |
| 3867 | if (tuner_type) { |
| 3868 | btv->tuner_type = tuner_type; |
| 3869 | printk(KERN_CONT "%d", tuner_type); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3870 | } else |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3871 | printk(KERN_CONT "Unknown type"); |
| 3872 | printk(KERN_CONT " radio:%s remote control:%s\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3873 | tuner_tv_fm ? "yes" : "no", |
| 3874 | btv->has_remote ? "yes" : "no"); |
| 3875 | } |
| 3876 | |
Trent Piepho | 72134a6 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3877 | /* |
| 3878 | * For Voodoo TV/FM and Voodoo 200. These cards' tuners use a TDA9880 |
| 3879 | * analog demod, which is not I2C controlled like the newer and more common |
| 3880 | * TDA9887 series. Instead is has two tri-state input pins, S0 and S1, |
| 3881 | * that control the IF for the video and audio. Apparently, bttv GPIO |
| 3882 | * 0x10000 is connected to S0. S0 low selects a 38.9 MHz VIF for B/G/D/K/I |
| 3883 | * (i.e., PAL) while high selects 45.75 MHz for M/N (i.e., NTSC). |
| 3884 | */ |
| 3885 | u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3886 | { |
Trent Piepho | 72134a6 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3887 | |
| 3888 | if (btv->audio == TVAUDIO_INPUT_TUNER) { |
| 3889 | if (bttv_tvnorms[btv->tvnorm].v4l2_id & V4L2_STD_MN) |
| 3890 | gpiobits |= 0x10000; |
| 3891 | else |
| 3892 | gpiobits &= ~0x10000; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3893 | } |
Trent Piepho | 72134a6 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3894 | |
| 3895 | gpio_bits(bttv_tvcards[btv->c.type].gpiomask, gpiobits); |
| 3896 | return gpiobits; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3897 | } |
| 3898 | |
| 3899 | |
| 3900 | /* |
| 3901 | * reset/enable the MSP on some Hauppauge cards |
David Woodhouse | 93e960f | 2005-11-08 21:36:46 -0800 | [diff] [blame] | 3902 | * Thanks to Kyösti Mälkki (kmalkki@cc.hut.fi)! |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3903 | * |
| 3904 | * Hauppauge: pin 5 |
| 3905 | * Voodoo: pin 20 |
| 3906 | */ |
| 3907 | static void __devinit boot_msp34xx(struct bttv *btv, int pin) |
| 3908 | { |
| 3909 | int mask = (1 << pin); |
| 3910 | |
| 3911 | gpio_inout(mask,mask); |
| 3912 | gpio_bits(mask,0); |
Thierry MERLE | c4e3fd9 | 2008-09-01 17:32:10 -0300 | [diff] [blame] | 3913 | mdelay(2); |
| 3914 | udelay(500); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3915 | gpio_bits(mask,mask); |
| 3916 | |
| 3917 | if (bttv_gpio) |
| 3918 | bttv_gpio_tracking(btv,"msp34xx"); |
| 3919 | if (bttv_verbose) |
| 3920 | printk(KERN_INFO "bttv%d: Hauppauge/Voodoo msp34xx: reset line " |
| 3921 | "init [%d]\n", btv->c.nr, pin); |
| 3922 | } |
| 3923 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3924 | /* ----------------------------------------------------------------------- */ |
| 3925 | /* Imagenation L-Model PXC200 Framegrabber */ |
| 3926 | /* This is basically the same procedure as |
| 3927 | * used by Alessandro Rubini in his pxc200 |
| 3928 | * driver, but using BTTV functions */ |
| 3929 | |
| 3930 | static void __devinit init_PXC200(struct bttv *btv) |
| 3931 | { |
| 3932 | static int vals[] __devinitdata = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, |
| 3933 | 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, |
| 3934 | 0x00 }; |
| 3935 | unsigned int i; |
| 3936 | int tmp; |
| 3937 | u32 val; |
| 3938 | |
| 3939 | /* Initialise GPIO-connevted stuff */ |
| 3940 | gpio_inout(0xffffff, (1<<13)); |
| 3941 | gpio_write(0); |
| 3942 | udelay(3); |
| 3943 | gpio_write(1<<13); |
| 3944 | /* GPIO inputs are pulled up, so no need to drive |
| 3945 | * reset pin any longer */ |
| 3946 | gpio_bits(0xffffff, 0); |
| 3947 | if (bttv_gpio) |
| 3948 | bttv_gpio_tracking(btv,"pxc200"); |
| 3949 | |
| 3950 | /* we could/should try and reset/control the AD pots? but |
| 3951 | right now we simply turned off the crushing. Without |
| 3952 | this the AGC drifts drifts |
| 3953 | remember the EN is reverse logic --> |
| 3954 | setting BT848_ADC_AGC_EN disable the AGC |
| 3955 | tboult@eecs.lehigh.edu |
| 3956 | */ |
| 3957 | |
| 3958 | btwrite(BT848_ADC_RESERVED|BT848_ADC_AGC_EN, BT848_ADC); |
| 3959 | |
| 3960 | /* Initialise MAX517 DAC */ |
| 3961 | printk(KERN_INFO "Setting DAC reference voltage level ...\n"); |
| 3962 | bttv_I2CWrite(btv,0x5E,0,0x80,1); |
| 3963 | |
| 3964 | /* Initialise 12C508 PIC */ |
| 3965 | /* The I2CWrite and I2CRead commmands are actually to the |
| 3966 | * same chips - but the R/W bit is included in the address |
| 3967 | * argument so the numbers are different */ |
| 3968 | |
| 3969 | |
| 3970 | printk(KERN_INFO "Initialising 12C508 PIC chip ...\n"); |
| 3971 | |
| 3972 | /* First of all, enable the clock line. This is used in the PXC200-F */ |
| 3973 | val = btread(BT848_GPIO_DMA_CTL); |
| 3974 | val |= BT848_GPIO_DMA_CTL_GPCLKMODE; |
| 3975 | btwrite(val, BT848_GPIO_DMA_CTL); |
| 3976 | |
| 3977 | /* Then, push to 0 the reset pin long enough to reset the * |
| 3978 | * device same as above for the reset line, but not the same |
| 3979 | * value sent to the GPIO-connected stuff |
| 3980 | * which one is the good one? */ |
| 3981 | gpio_inout(0xffffff,(1<<2)); |
| 3982 | gpio_write(0); |
| 3983 | udelay(10); |
| 3984 | gpio_write(1<<2); |
| 3985 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3986 | for (i = 0; i < ARRAY_SIZE(vals); i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3987 | tmp=bttv_I2CWrite(btv,0x1E,0,vals[i],1); |
| 3988 | if (tmp != -1) { |
| 3989 | printk(KERN_INFO |
| 3990 | "I2C Write(%2.2x) = %i\nI2C Read () = %2.2x\n\n", |
| 3991 | vals[i],tmp,bttv_I2CRead(btv,0x1F,NULL)); |
| 3992 | } |
| 3993 | } |
| 3994 | |
| 3995 | printk(KERN_INFO "PXC200 Initialised.\n"); |
| 3996 | } |
| 3997 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 3998 | |
| 3999 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4000 | /* ----------------------------------------------------------------------- */ |
| 4001 | /* |
| 4002 | * The Adlink RTV-24 (aka Angelo) has some special initialisation to unlock |
| 4003 | * it. This apparently involves the following procedure for each 878 chip: |
| 4004 | * |
| 4005 | * 1) write 0x00C3FEFF to the GPIO_OUT_EN register |
| 4006 | * |
| 4007 | * 2) write to GPIO_DATA |
| 4008 | * - 0x0E |
| 4009 | * - sleep 1ms |
| 4010 | * - 0x10 + 0x0E |
| 4011 | * - sleep 10ms |
| 4012 | * - 0x0E |
| 4013 | * read from GPIO_DATA into buf (uint_32) |
| 4014 | * - if ( data>>18 & 0x01 != 0) || ( buf>>19 & 0x01 != 1 ) |
| 4015 | * error. ERROR_CPLD_Check_Failed stop. |
| 4016 | * |
| 4017 | * 3) write to GPIO_DATA |
| 4018 | * - write 0x4400 + 0x0E |
| 4019 | * - sleep 10ms |
| 4020 | * - write 0x4410 + 0x0E |
| 4021 | * - sleep 1ms |
| 4022 | * - write 0x0E |
| 4023 | * read from GPIO_DATA into buf (uint_32) |
Jean Delvare | fef4fa14 | 2006-11-09 17:25:28 -0300 | [diff] [blame] | 4024 | * - if ( buf>>18 & 0x01 ) || ( buf>>19 & 0x01 != 0 ) |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4025 | * error. ERROR_CPLD_Check_Failed. |
| 4026 | */ |
| 4027 | /* ----------------------------------------------------------------------- */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 4028 | static void |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4029 | init_RTV24 (struct bttv *btv) |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4030 | { |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4031 | uint32_t dataRead = 0; |
| 4032 | long watchdog_value = 0x0E; |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4033 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4034 | printk (KERN_INFO |
| 4035 | "bttv%d: Adlink RTV-24 initialisation in progress ...\n", |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4036 | btv->c.nr); |
| 4037 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4038 | btwrite (0x00c3feff, BT848_GPIO_OUT_EN); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4039 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4040 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
| 4041 | msleep (1); |
| 4042 | btwrite (0x10 + watchdog_value, BT848_GPIO_DATA); |
| 4043 | msleep (10); |
| 4044 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4045 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4046 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4047 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4048 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 1)) { |
| 4049 | printk (KERN_INFO |
| 4050 | "bttv%d: Adlink RTV-24 initialisation(1) ERROR_CPLD_Check_Failed (read %d)\n", |
| 4051 | btv->c.nr, dataRead); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4052 | } |
| 4053 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4054 | btwrite (0x4400 + watchdog_value, BT848_GPIO_DATA); |
| 4055 | msleep (10); |
| 4056 | btwrite (0x4410 + watchdog_value, BT848_GPIO_DATA); |
| 4057 | msleep (1); |
| 4058 | btwrite (watchdog_value, BT848_GPIO_DATA); |
| 4059 | msleep (1); |
| 4060 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4061 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4062 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 0)) { |
| 4063 | printk (KERN_INFO |
| 4064 | "bttv%d: Adlink RTV-24 initialisation(2) ERROR_CPLD_Check_Failed (read %d)\n", |
| 4065 | btv->c.nr, dataRead); |
| 4066 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4067 | return; |
| 4068 | } |
| 4069 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4070 | printk (KERN_INFO |
| 4071 | "bttv%d: Adlink RTV-24 initialisation complete.\n", btv->c.nr); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4072 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4073 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4074 | |
| 4075 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4076 | /* ----------------------------------------------------------------------- */ |
| 4077 | /* Miro Pro radio stuff -- the tea5757 is connected to some GPIO ports */ |
| 4078 | /* |
| 4079 | * Copyright (c) 1999 Csaba Halasz <qgehali@uni-miskolc.hu> |
| 4080 | * This code is placed under the terms of the GNU General Public License |
| 4081 | * |
| 4082 | * Brutally hacked by Dan Sheridan <dan.sheridan@contact.org.uk> djs52 8/3/00 |
| 4083 | */ |
| 4084 | |
| 4085 | static void bus_low(struct bttv *btv, int bit) |
| 4086 | { |
| 4087 | if (btv->mbox_ior) { |
| 4088 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4089 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4090 | udelay(5); |
| 4091 | } |
| 4092 | |
| 4093 | gpio_bits(bit,0); |
| 4094 | udelay(5); |
| 4095 | |
| 4096 | if (btv->mbox_ior) { |
| 4097 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4098 | udelay(5); |
| 4099 | } |
| 4100 | } |
| 4101 | |
| 4102 | static void bus_high(struct bttv *btv, int bit) |
| 4103 | { |
| 4104 | if (btv->mbox_ior) { |
| 4105 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4106 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4107 | udelay(5); |
| 4108 | } |
| 4109 | |
| 4110 | gpio_bits(bit,bit); |
| 4111 | udelay(5); |
| 4112 | |
| 4113 | if (btv->mbox_ior) { |
| 4114 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4115 | udelay(5); |
| 4116 | } |
| 4117 | } |
| 4118 | |
| 4119 | static int bus_in(struct bttv *btv, int bit) |
| 4120 | { |
| 4121 | if (btv->mbox_ior) { |
| 4122 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4123 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4124 | udelay(5); |
| 4125 | |
| 4126 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4127 | udelay(5); |
| 4128 | } |
| 4129 | return gpio_read() & (bit); |
| 4130 | } |
| 4131 | |
| 4132 | /* TEA5757 register bits */ |
| 4133 | #define TEA_FREQ 0:14 |
| 4134 | #define TEA_BUFFER 15:15 |
| 4135 | |
| 4136 | #define TEA_SIGNAL_STRENGTH 16:17 |
| 4137 | |
| 4138 | #define TEA_PORT1 18:18 |
| 4139 | #define TEA_PORT0 19:19 |
| 4140 | |
| 4141 | #define TEA_BAND 20:21 |
| 4142 | #define TEA_BAND_FM 0 |
| 4143 | #define TEA_BAND_MW 1 |
| 4144 | #define TEA_BAND_LW 2 |
| 4145 | #define TEA_BAND_SW 3 |
| 4146 | |
| 4147 | #define TEA_MONO 22:22 |
| 4148 | #define TEA_ALLOW_STEREO 0 |
| 4149 | #define TEA_FORCE_MONO 1 |
| 4150 | |
| 4151 | #define TEA_SEARCH_DIRECTION 23:23 |
| 4152 | #define TEA_SEARCH_DOWN 0 |
| 4153 | #define TEA_SEARCH_UP 1 |
| 4154 | |
| 4155 | #define TEA_STATUS 24:24 |
| 4156 | #define TEA_STATUS_TUNED 0 |
| 4157 | #define TEA_STATUS_SEARCHING 1 |
| 4158 | |
| 4159 | /* Low-level stuff */ |
| 4160 | static int tea5757_read(struct bttv *btv) |
| 4161 | { |
| 4162 | unsigned long timeout; |
| 4163 | int value = 0; |
| 4164 | int i; |
| 4165 | |
| 4166 | /* better safe than sorry */ |
| 4167 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we); |
| 4168 | |
| 4169 | if (btv->mbox_ior) { |
| 4170 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4171 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4172 | udelay(5); |
| 4173 | } |
| 4174 | |
| 4175 | if (bttv_gpio) |
| 4176 | bttv_gpio_tracking(btv,"tea5757 read"); |
| 4177 | |
| 4178 | bus_low(btv,btv->mbox_we); |
| 4179 | bus_low(btv,btv->mbox_clk); |
| 4180 | |
| 4181 | udelay(10); |
Mauro Carvalho Chehab | fe06fe0 | 2007-07-17 16:36:20 -0300 | [diff] [blame] | 4182 | timeout= jiffies + msecs_to_jiffies(1000); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4183 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4184 | /* wait for DATA line to go low; error if it doesn't */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4185 | while (bus_in(btv,btv->mbox_data) && time_before(jiffies, timeout)) |
| 4186 | schedule(); |
| 4187 | if (bus_in(btv,btv->mbox_data)) { |
| 4188 | printk(KERN_WARNING "bttv%d: tea5757: read timeout\n",btv->c.nr); |
| 4189 | return -1; |
| 4190 | } |
| 4191 | |
| 4192 | dprintk("bttv%d: tea5757:",btv->c.nr); |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4193 | for (i = 0; i < 24; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4194 | udelay(5); |
| 4195 | bus_high(btv,btv->mbox_clk); |
| 4196 | udelay(5); |
| 4197 | dprintk("%c",(bus_in(btv,btv->mbox_most) == 0)?'T':'-'); |
| 4198 | bus_low(btv,btv->mbox_clk); |
| 4199 | value <<= 1; |
| 4200 | value |= (bus_in(btv,btv->mbox_data) == 0)?0:1; /* MSB first */ |
| 4201 | dprintk("%c", (bus_in(btv,btv->mbox_most) == 0)?'S':'M'); |
| 4202 | } |
| 4203 | dprintk("\nbttv%d: tea5757: read 0x%X\n", btv->c.nr, value); |
| 4204 | return value; |
| 4205 | } |
| 4206 | |
| 4207 | static int tea5757_write(struct bttv *btv, int value) |
| 4208 | { |
| 4209 | int i; |
| 4210 | int reg = value; |
| 4211 | |
| 4212 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we | btv->mbox_data); |
| 4213 | |
| 4214 | if (btv->mbox_ior) { |
| 4215 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4216 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4217 | udelay(5); |
| 4218 | } |
| 4219 | if (bttv_gpio) |
| 4220 | bttv_gpio_tracking(btv,"tea5757 write"); |
| 4221 | |
| 4222 | dprintk("bttv%d: tea5757: write 0x%X\n", btv->c.nr, value); |
| 4223 | bus_low(btv,btv->mbox_clk); |
| 4224 | bus_high(btv,btv->mbox_we); |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4225 | for (i = 0; i < 25; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4226 | if (reg & 0x1000000) |
| 4227 | bus_high(btv,btv->mbox_data); |
| 4228 | else |
| 4229 | bus_low(btv,btv->mbox_data); |
| 4230 | reg <<= 1; |
| 4231 | bus_high(btv,btv->mbox_clk); |
| 4232 | udelay(10); |
| 4233 | bus_low(btv,btv->mbox_clk); |
| 4234 | udelay(10); |
| 4235 | } |
| 4236 | bus_low(btv,btv->mbox_we); /* unmute !!! */ |
| 4237 | return 0; |
| 4238 | } |
| 4239 | |
| 4240 | void tea5757_set_freq(struct bttv *btv, unsigned short freq) |
| 4241 | { |
| 4242 | dprintk("tea5757_set_freq %d\n",freq); |
| 4243 | tea5757_write(btv, 5 * freq + 0x358); /* add 10.7MHz (see docs) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4244 | } |
| 4245 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4246 | /* RemoteVision MX (rv605) muxsel helper [Miguel Freitas] |
| 4247 | * |
| 4248 | * This is needed because rv605 don't use a normal multiplex, but a crosspoint |
| 4249 | * switch instead (CD22M3494E). This IC can have multiple active connections |
| 4250 | * between Xn (input) and Yn (output) pins. We need to clear any existing |
| 4251 | * connection prior to establish a new one, pulsing the STROBE pin. |
| 4252 | * |
| 4253 | * The board hardwire Y0 (xpoint) to MUX1 and MUXOUT to Yin. |
| 4254 | * GPIO pins are wired as: |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4255 | * GPIO[0:3] - AX[0:3] (xpoint) - P1[0:3] (microcontroller) |
| 4256 | * GPIO[4:6] - AY[0:2] (xpoint) - P1[4:6] (microcontroller) |
| 4257 | * GPIO[7] - DATA (xpoint) - P1[7] (microcontroller) |
| 4258 | * GPIO[8] - - P3[5] (microcontroller) |
| 4259 | * GPIO[9] - RESET (xpoint) - P3[6] (microcontroller) |
| 4260 | * GPIO[10] - STROBE (xpoint) - P3[7] (microcontroller) |
| 4261 | * GPINTR - - P3[4] (microcontroller) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4262 | * |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4263 | * The microcontroller is a 80C32 like. It should be possible to change xpoint |
| 4264 | * configuration either directly (as we are doing) or using the microcontroller |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4265 | * 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] | 4266 | * microcontroller features, one would need to disassembly the firmware. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4267 | * note: the vendor refused to give any information on this product, all |
| 4268 | * that stuff was found using a multimeter! :) |
| 4269 | */ |
| 4270 | static void rv605_muxsel(struct bttv *btv, unsigned int input) |
| 4271 | { |
Trent Piepho | 13afaef | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4272 | static const u8 muxgpio[] = { 0x3, 0x1, 0x2, 0x4, 0xf, 0x7, 0xe, 0x0, |
| 4273 | 0xd, 0xb, 0xc, 0x6, 0x9, 0x5, 0x8, 0xa }; |
| 4274 | |
| 4275 | gpio_bits(0x07f, muxgpio[input]); |
| 4276 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4277 | /* reset all conections */ |
| 4278 | gpio_bits(0x200,0x200); |
| 4279 | mdelay(1); |
| 4280 | gpio_bits(0x200,0x000); |
| 4281 | mdelay(1); |
| 4282 | |
Joe Perches | c84e603 | 2008-02-03 17:18:59 +0200 | [diff] [blame] | 4283 | /* create a new connection */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4284 | gpio_bits(0x480,0x480); |
| 4285 | mdelay(1); |
| 4286 | gpio_bits(0x480,0x080); |
| 4287 | mdelay(1); |
| 4288 | } |
| 4289 | |
| 4290 | /* Tibet Systems 'Progress DVR' CS16 muxsel helper [Chris Fanning] |
| 4291 | * |
| 4292 | * The CS16 (available on eBay cheap) is a PCI board with four Fusion |
| 4293 | * 878A chips, a PCI bridge, an Atmel microcontroller, four sync seperator |
| 4294 | * chips, ten eight input analog multiplexors, a not chip and a few |
| 4295 | * other components. |
| 4296 | * |
| 4297 | * 16 inputs on a secondary bracket are provided and can be selected |
| 4298 | * from each of the four capture chips. Two of the eight input |
| 4299 | * multiplexors are used to select from any of the 16 input signals. |
| 4300 | * |
| 4301 | * Unsupported hardware capabilities: |
| 4302 | * . A video output monitor on the secondary bracket can be selected from |
| 4303 | * one of the 878A chips. |
| 4304 | * . Another passthrough but I haven't spent any time investigating it. |
| 4305 | * . Digital I/O (logic level connected to GPIO) is available from an |
| 4306 | * onboard header. |
| 4307 | * |
| 4308 | * The on chip input mux should always be set to 2. |
| 4309 | * GPIO[16:19] - Video input selection |
| 4310 | * GPIO[0:3] - Video output monitor select (only available from one 878A) |
| 4311 | * GPIO[?:?] - Digital I/O. |
| 4312 | * |
| 4313 | * There is an ATMEL microcontroller with an 8031 core on board. I have not |
| 4314 | * determined what function (if any) it provides. With the microcontroller |
| 4315 | * and sync seperator chips a guess is that it might have to do with video |
| 4316 | * switching and maybe some digital I/O. |
| 4317 | */ |
| 4318 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input) |
| 4319 | { |
| 4320 | /* video mux */ |
| 4321 | gpio_bits(0x0f0000, input << 16); |
| 4322 | } |
| 4323 | |
| 4324 | static void tibetCS16_init(struct bttv *btv) |
| 4325 | { |
| 4326 | /* enable gpio bits, mask obtained via btSpy */ |
| 4327 | gpio_inout(0xffffff, 0x0f7fff); |
| 4328 | gpio_write(0x0f7fff); |
| 4329 | } |
| 4330 | |
| 4331 | /* |
| 4332 | * The following routines for the Kodicom-4400r get a little mind-twisting. |
| 4333 | * There is a "master" controller and three "slave" controllers, together |
| 4334 | * an analog switch which connects any of 16 cameras to any of the BT87A's. |
| 4335 | * The analog switch is controlled by the "master", but the detection order |
| 4336 | * of the four BT878A chips is in an order which I just don't understand. |
| 4337 | * 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] | 4338 | * logic on the board uses logical numbers for the 4 controllers, but |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4339 | * those numbers are different from the detection sequence. When working |
| 4340 | * with the analog switch, we need to "map" from the detection sequence |
| 4341 | * over to the board's logical controller number. This mapping sequence |
| 4342 | * is {3, 0, 2, 1}, i.e. the first controller to be detected is logical |
| 4343 | * unit 3, the second (which is the master) is logical unit 0, etc. |
| 4344 | * We need to maintain the status of the analog switch (which of the 16 |
| 4345 | * cameras is connected to which of the 4 controllers). Rather than |
| 4346 | * add to the bttv structure for this, we use the data reserved for |
| 4347 | * the mbox (unused for this card type). |
| 4348 | */ |
| 4349 | |
| 4350 | /* |
| 4351 | * First a routine to set the analog switch, which controls which camera |
| 4352 | * is routed to which controller. The switch comprises an X-address |
| 4353 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a |
| 4354 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). |
| 4355 | * A data value (gpio bit 7) of '1' enables the switch, and '0' disables |
| 4356 | * the switch. A STROBE bit (gpio bit 8) latches the data value into the |
| 4357 | * specified address. The idea is to set the address and data, then bring |
| 4358 | * STROBE high, and finally bring STROBE back to low. |
| 4359 | */ |
| 4360 | static void kodicom4400r_write(struct bttv *btv, |
| 4361 | unsigned char xaddr, |
| 4362 | unsigned char yaddr, |
| 4363 | unsigned char data) { |
| 4364 | unsigned int udata; |
| 4365 | |
| 4366 | udata = (data << 7) | ((yaddr&3) << 4) | (xaddr&0xf); |
| 4367 | gpio_bits(0x1ff, udata); /* write ADDR and DAT */ |
| 4368 | gpio_bits(0x1ff, udata | (1 << 8)); /* strobe high */ |
| 4369 | gpio_bits(0x1ff, udata); /* strobe low */ |
| 4370 | } |
| 4371 | |
| 4372 | /* |
| 4373 | * Next the mux select. Both the "master" and "slave" 'cards' (controllers) |
| 4374 | * use this routine. The routine finds the "master" for the card, maps |
| 4375 | * the controller number from the detected position over to the logical |
| 4376 | * number, writes the appropriate data to the analog switch, and housekeeps |
| 4377 | * the local copy of the switch information. The parameter 'input' is the |
| 4378 | * requested camera number (0 - 15). |
| 4379 | */ |
| 4380 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input) |
| 4381 | { |
| 4382 | char *sw_status; |
| 4383 | int xaddr, yaddr; |
| 4384 | struct bttv *mctlr; |
| 4385 | static unsigned char map[4] = {3, 0, 2, 1}; |
| 4386 | |
| 4387 | mctlr = master[btv->c.nr]; |
| 4388 | if (mctlr == NULL) { /* ignore if master not yet detected */ |
| 4389 | return; |
| 4390 | } |
| 4391 | yaddr = (btv->c.nr - mctlr->c.nr + 1) & 3; /* the '&' is for safety */ |
| 4392 | yaddr = map[yaddr]; |
| 4393 | sw_status = (char *)(&mctlr->mbox_we); |
| 4394 | xaddr = input & 0xf; |
| 4395 | /* Check if the controller/camera pair has changed, else ignore */ |
| 4396 | if (sw_status[yaddr] != xaddr) |
| 4397 | { |
| 4398 | /* "open" the old switch, "close" the new one, save the new */ |
| 4399 | kodicom4400r_write(mctlr, sw_status[yaddr], yaddr, 0); |
| 4400 | sw_status[yaddr] = xaddr; |
| 4401 | kodicom4400r_write(mctlr, xaddr, yaddr, 1); |
| 4402 | } |
| 4403 | } |
| 4404 | |
| 4405 | /* |
| 4406 | * During initialisation, we need to reset the analog switch. We |
| 4407 | * also preset the switch to map the 4 connectors on the card to the |
| 4408 | * *user's* (see above description of kodicom4400r_muxsel) channels |
| 4409 | * 0 through 3 |
| 4410 | */ |
| 4411 | static void kodicom4400r_init(struct bttv *btv) |
| 4412 | { |
| 4413 | char *sw_status = (char *)(&btv->mbox_we); |
| 4414 | int ix; |
| 4415 | |
| 4416 | gpio_inout(0x0003ff, 0x0003ff); |
| 4417 | gpio_write(1 << 9); /* reset MUX */ |
| 4418 | gpio_write(0); |
| 4419 | /* Preset camera 0 to the 4 controllers */ |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4420 | for (ix = 0; ix < 4; ix++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4421 | sw_status[ix] = ix; |
| 4422 | kodicom4400r_write(btv, ix, ix, 1); |
| 4423 | } |
| 4424 | /* |
| 4425 | * Since this is the "master", we need to set up the |
| 4426 | * other three controller chips' pointers to this structure |
| 4427 | * for later use in the muxsel routine. |
| 4428 | */ |
| 4429 | if ((btv->c.nr<1) || (btv->c.nr>BTTV_MAX-3)) |
| 4430 | return; |
| 4431 | master[btv->c.nr-1] = btv; |
| 4432 | master[btv->c.nr] = btv; |
| 4433 | master[btv->c.nr+1] = btv; |
| 4434 | master[btv->c.nr+2] = btv; |
| 4435 | } |
| 4436 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4437 | /* The Grandtec X-Guard framegrabber card uses two Dual 4-channel |
| 4438 | * video multiplexers to provide up to 16 video inputs. These |
| 4439 | * multiplexers are controlled by the lower 8 GPIO pins of the |
| 4440 | * bt878. The multiplexers probably Pericom PI5V331Q or similar. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4441 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4442 | * xxx0 is pin xxx of multiplexer U5, |
| 4443 | * yyy1 is pin yyy of multiplexer U2 |
| 4444 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4445 | #define ENA0 0x01 |
| 4446 | #define ENB0 0x02 |
| 4447 | #define ENA1 0x04 |
| 4448 | #define ENB1 0x08 |
| 4449 | |
| 4450 | #define IN10 0x10 |
| 4451 | #define IN00 0x20 |
| 4452 | #define IN11 0x40 |
| 4453 | #define IN01 0x80 |
| 4454 | |
| 4455 | static void xguard_muxsel(struct bttv *btv, unsigned int input) |
| 4456 | { |
| 4457 | static const int masks[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4458 | ENB0, ENB0|IN00, ENB0|IN10, ENB0|IN00|IN10, |
| 4459 | ENA0, ENA0|IN00, ENA0|IN10, ENA0|IN00|IN10, |
| 4460 | ENB1, ENB1|IN01, ENB1|IN11, ENB1|IN01|IN11, |
| 4461 | ENA1, ENA1|IN01, ENA1|IN11, ENA1|IN01|IN11, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4462 | }; |
| 4463 | gpio_write(masks[input%16]); |
| 4464 | } |
| 4465 | static void picolo_tetra_init(struct bttv *btv) |
| 4466 | { |
| 4467 | /*This is the video input redirection fonctionality : I DID NOT USED IT. */ |
| 4468 | btwrite (0x08<<16,BT848_GPIO_DATA);/*GPIO[19] [==> 4053 B+C] set to 1 */ |
| 4469 | btwrite (0x04<<16,BT848_GPIO_DATA);/*GPIO[18] [==> 4053 A] set to 1*/ |
| 4470 | } |
| 4471 | static void picolo_tetra_muxsel (struct bttv* btv, unsigned int input) |
| 4472 | { |
| 4473 | |
| 4474 | dprintk (KERN_DEBUG "bttv%d : picolo_tetra_muxsel => input = %d\n",btv->c.nr,input); |
| 4475 | /*Just set the right path in the analog multiplexers : channel 1 -> 4 ==> Analog Mux ==> MUX0*/ |
| 4476 | /*GPIO[20]&GPIO[21] used to choose the right input*/ |
| 4477 | btwrite (input<<20,BT848_GPIO_DATA); |
| 4478 | |
| 4479 | } |
| 4480 | |
| 4481 | /* |
| 4482 | * ivc120_muxsel [Added by Alan Garfield <alan@fromorbit.com>] |
| 4483 | * |
| 4484 | * The IVC120G security card has 4 i2c controlled TDA8540 matrix |
| 4485 | * swichers to provide 16 channels to MUX0. The TDA8540's have |
Andreas Mohr | d6e05ed | 2006-06-26 18:35:02 +0200 | [diff] [blame] | 4486 | * 4 independent outputs and as such the IVC120G also has the |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4487 | * optional "Monitor Out" bus. This allows the card to be looking |
| 4488 | * at one input while the monitor is looking at another. |
| 4489 | * |
| 4490 | * Since I've couldn't be bothered figuring out how to add an |
| 4491 | * independant muxsel for the monitor bus, I've just set it to |
| 4492 | * whatever the card is looking at. |
| 4493 | * |
| 4494 | * OUT0 of the TDA8540's is connected to MUX0 (0x03) |
| 4495 | * OUT1 of the TDA8540's is connected to "Monitor Out" (0x0C) |
| 4496 | * |
| 4497 | * TDA8540_ALT3 IN0-3 = Channel 13 - 16 (0x03) |
| 4498 | * TDA8540_ALT4 IN0-3 = Channel 1 - 4 (0x03) |
| 4499 | * TDA8540_ALT5 IN0-3 = Channel 5 - 8 (0x03) |
| 4500 | * TDA8540_ALT6 IN0-3 = Channel 9 - 12 (0x03) |
| 4501 | * |
| 4502 | */ |
| 4503 | |
| 4504 | /* All 7 possible sub-ids for the TDA8540 Matrix Switcher */ |
| 4505 | #define I2C_TDA8540 0x90 |
| 4506 | #define I2C_TDA8540_ALT1 0x92 |
| 4507 | #define I2C_TDA8540_ALT2 0x94 |
| 4508 | #define I2C_TDA8540_ALT3 0x96 |
| 4509 | #define I2C_TDA8540_ALT4 0x98 |
| 4510 | #define I2C_TDA8540_ALT5 0x9a |
| 4511 | #define I2C_TDA8540_ALT6 0x9c |
| 4512 | |
| 4513 | static void ivc120_muxsel(struct bttv *btv, unsigned int input) |
| 4514 | { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4515 | /* Simple maths */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4516 | int key = input % 4; |
| 4517 | int matrix = input / 4; |
| 4518 | |
| 4519 | dprintk("bttv%d: ivc120_muxsel: Input - %02d | TDA - %02d | In - %02d\n", |
| 4520 | btv->c.nr, input, matrix, key); |
| 4521 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4522 | /* Handles the input selection on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4523 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x00, |
| 4524 | ((matrix == 3) ? (key | key << 2) : 0x00), 1); |
| 4525 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x00, |
| 4526 | ((matrix == 0) ? (key | key << 2) : 0x00), 1); |
| 4527 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x00, |
| 4528 | ((matrix == 1) ? (key | key << 2) : 0x00), 1); |
| 4529 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x00, |
| 4530 | ((matrix == 2) ? (key | key << 2) : 0x00), 1); |
| 4531 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4532 | /* Handles the output enables on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4533 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4534 | ((matrix == 3) ? 0x03 : 0x00), 1); /* 13 - 16 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4535 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4536 | ((matrix == 0) ? 0x03 : 0x00), 1); /* 1-4 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4537 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4538 | ((matrix == 1) ? 0x03 : 0x00), 1); /* 5-8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4539 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4540 | ((matrix == 2) ? 0x03 : 0x00), 1); /* 9-12 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4541 | |
Trent Piepho | fb5deb1 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4542 | /* 878's MUX0 is already selected for input via muxsel values */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4543 | } |
| 4544 | |
| 4545 | |
| 4546 | /* PXC200 muxsel helper |
| 4547 | * luke@syseng.anu.edu.au |
| 4548 | * another transplant |
| 4549 | * from Alessandro Rubini (rubini@linux.it) |
| 4550 | * |
| 4551 | * There are 4 kinds of cards: |
| 4552 | * PXC200L which is bt848 |
| 4553 | * PXC200F which is bt848 with PIC controlling mux |
| 4554 | * PXC200AL which is bt878 |
| 4555 | * PXC200AF which is bt878 with PIC controlling mux |
| 4556 | */ |
| 4557 | #define PX_CFG_PXC200F 0x01 |
| 4558 | #define PX_FLAG_PXC200A 0x00001000 /* a pxc200A is bt-878 based */ |
| 4559 | #define PX_I2C_PIC 0x0f |
| 4560 | #define PX_PXC200A_CARDID 0x200a1295 |
| 4561 | #define PX_I2C_CMD_CFG 0x00 |
| 4562 | |
| 4563 | static void PXC200_muxsel(struct bttv *btv, unsigned int input) |
| 4564 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4565 | int rc; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4566 | long mux; |
| 4567 | int bitmask; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4568 | unsigned char buf[2]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4569 | |
| 4570 | /* Read PIC config to determine if this is a PXC200F */ |
| 4571 | /* PX_I2C_CMD_CFG*/ |
| 4572 | buf[0]=0; |
| 4573 | buf[1]=0; |
| 4574 | rc=bttv_I2CWrite(btv,(PX_I2C_PIC<<1),buf[0],buf[1],1); |
| 4575 | if (rc) { |
| 4576 | printk(KERN_DEBUG "bttv%d: PXC200_muxsel: pic cfg write failed:%d\n", btv->c.nr,rc); |
| 4577 | /* not PXC ? do nothing */ |
| 4578 | return; |
| 4579 | } |
| 4580 | |
| 4581 | rc=bttv_I2CRead(btv,(PX_I2C_PIC<<1),NULL); |
| 4582 | if (!(rc & PX_CFG_PXC200F)) { |
| 4583 | printk(KERN_DEBUG "bttv%d: PXC200_muxsel: not PXC200F rc:%d \n", btv->c.nr,rc); |
| 4584 | return; |
| 4585 | } |
| 4586 | |
| 4587 | |
| 4588 | /* The multiplexer in the 200F is handled by the GPIO port */ |
| 4589 | /* get correct mapping between inputs */ |
| 4590 | /* mux = bttv_tvcards[btv->type].muxsel[input] & 3; */ |
| 4591 | /* ** not needed!? */ |
| 4592 | mux = input; |
| 4593 | |
| 4594 | /* make sure output pins are enabled */ |
| 4595 | /* bitmask=0x30f; */ |
| 4596 | bitmask=0x302; |
| 4597 | /* check whether we have a PXC200A */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4598 | if (btv->cardid == PX_PXC200A_CARDID) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4599 | bitmask ^= 0x180; /* use 7 and 9, not 8 and 9 */ |
| 4600 | bitmask |= 7<<4; /* the DAC */ |
| 4601 | } |
| 4602 | btwrite(bitmask, BT848_GPIO_OUT_EN); |
| 4603 | |
| 4604 | bitmask = btread(BT848_GPIO_DATA); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4605 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4606 | bitmask = (bitmask & ~0x280) | ((mux & 2) << 8) | ((mux & 1) << 7); |
| 4607 | else /* older device */ |
| 4608 | bitmask = (bitmask & ~0x300) | ((mux & 3) << 8); |
| 4609 | btwrite(bitmask,BT848_GPIO_DATA); |
| 4610 | |
| 4611 | /* |
| 4612 | * Was "to be safe, set the bt848 to input 0" |
| 4613 | * Actually, since it's ok at load time, better not messing |
| 4614 | * with these bits (on PXC200AF you need to set mux 2 here) |
| 4615 | * |
| 4616 | * needed because bttv-driver sets mux before calling this function |
| 4617 | */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4618 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4619 | btaor(2<<5, ~BT848_IFORM_MUXSEL, BT848_IFORM); |
| 4620 | else /* older device */ |
| 4621 | btand(~BT848_IFORM_MUXSEL,BT848_IFORM); |
| 4622 | |
| 4623 | printk(KERN_DEBUG "bttv%d: setting input channel to:%d\n", btv->c.nr,(int)mux); |
| 4624 | } |
| 4625 | |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4626 | static void phytec_muxsel(struct bttv *btv, unsigned int input) |
| 4627 | { |
| 4628 | unsigned int mux = input % 4; |
| 4629 | |
| 4630 | if (input == btv->svhs) |
| 4631 | mux = 0; |
| 4632 | |
| 4633 | gpio_bits(0x3, mux); |
| 4634 | } |
| 4635 | |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 4636 | /* |
| 4637 | * GeoVision GV-800(S) functions |
| 4638 | * Bruno Christo <bchristo@inf.ufsm.br> |
| 4639 | */ |
| 4640 | |
| 4641 | /* This is a function to control the analog switch, which determines which |
| 4642 | * camera is routed to which controller. The switch comprises an X-address |
| 4643 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a |
| 4644 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). |
| 4645 | * A data value (gpio bit 18) of '1' enables the switch, and '0' disables |
| 4646 | * the switch. A STROBE bit (gpio bit 17) latches the data value into the |
| 4647 | * specified address. There is also a chip select (gpio bit 16). |
| 4648 | * The idea is to set the address and chip select together, bring |
| 4649 | * STROBE high, write the data, and finally bring STROBE back to low. |
| 4650 | */ |
| 4651 | static void gv800s_write(struct bttv *btv, |
| 4652 | unsigned char xaddr, |
| 4653 | unsigned char yaddr, |
| 4654 | unsigned char data) { |
| 4655 | /* On the "master" 878A: |
| 4656 | * GPIO bits 0-9 are used for the analog switch: |
| 4657 | * 00 - 03: camera selector |
| 4658 | * 04 - 06: 878A (controller) selector |
| 4659 | * 16: cselect |
| 4660 | * 17: strobe |
| 4661 | * 18: data (1->on, 0->off) |
| 4662 | * 19: reset |
| 4663 | */ |
| 4664 | const u32 ADDRESS = ((xaddr&0xf) | (yaddr&3)<<4); |
| 4665 | const u32 CSELECT = 1<<16; |
| 4666 | const u32 STROBE = 1<<17; |
| 4667 | const u32 DATA = data<<18; |
| 4668 | |
| 4669 | gpio_bits(0x1007f, ADDRESS | CSELECT); /* write ADDRESS and CSELECT */ |
| 4670 | gpio_bits(0x20000, STROBE); /* STROBE high */ |
| 4671 | gpio_bits(0x40000, DATA); /* write DATA */ |
| 4672 | gpio_bits(0x20000, ~STROBE); /* STROBE low */ |
| 4673 | } |
| 4674 | |
| 4675 | /* |
| 4676 | * GeoVision GV-800(S) muxsel |
| 4677 | * |
| 4678 | * Each of the 4 cards (controllers) use this function. |
| 4679 | * The controller using this function selects the input through the GPIO pins |
| 4680 | * of the "master" card. A pointer to this card is stored in master[btv->c.nr]. |
| 4681 | * |
| 4682 | * The parameter 'input' is the requested camera number (0-4) on the controller. |
| 4683 | * The map array has the address of each input. Note that the addresses in the |
| 4684 | * array are in the sequence the original GeoVision driver uses, that is, set |
| 4685 | * every controller to input 0, then to input 1, 2, 3, repeat. This means that |
| 4686 | * the physical "camera 1" connector corresponds to controller 0 input 0, |
| 4687 | * "camera 2" corresponds to controller 1 input 0, and so on. |
| 4688 | * |
| 4689 | * After getting the input address, the function then writes the appropriate |
| 4690 | * data to the analog switch, and housekeeps the local copy of the switch |
| 4691 | * information. |
| 4692 | */ |
| 4693 | static void gv800s_muxsel(struct bttv *btv, unsigned int input) |
| 4694 | { |
| 4695 | struct bttv *mctlr; |
| 4696 | char *sw_status; |
| 4697 | int xaddr, yaddr; |
| 4698 | static unsigned int map[4][4] = { { 0x0, 0x4, 0xa, 0x6 }, |
| 4699 | { 0x1, 0x5, 0xb, 0x7 }, |
| 4700 | { 0x2, 0x8, 0xc, 0xe }, |
| 4701 | { 0x3, 0x9, 0xd, 0xf } }; |
| 4702 | input = input%4; |
| 4703 | mctlr = master[btv->c.nr]; |
| 4704 | if (mctlr == NULL) { |
| 4705 | /* do nothing until the "master" is detected */ |
| 4706 | return; |
| 4707 | } |
| 4708 | yaddr = (btv->c.nr - mctlr->c.nr) & 3; |
| 4709 | sw_status = (char *)(&mctlr->mbox_we); |
| 4710 | xaddr = map[yaddr][input] & 0xf; |
| 4711 | |
| 4712 | /* Check if the controller/camera pair has changed, ignore otherwise */ |
| 4713 | if (sw_status[yaddr] != xaddr) { |
| 4714 | /* disable the old switch, enable the new one and save status */ |
| 4715 | gv800s_write(mctlr, sw_status[yaddr], yaddr, 0); |
| 4716 | sw_status[yaddr] = xaddr; |
| 4717 | gv800s_write(mctlr, xaddr, yaddr, 1); |
| 4718 | } |
| 4719 | } |
| 4720 | |
| 4721 | /* GeoVision GV-800(S) "master" chip init */ |
| 4722 | static void gv800s_init(struct bttv *btv) |
| 4723 | { |
| 4724 | char *sw_status = (char *)(&btv->mbox_we); |
| 4725 | int ix; |
| 4726 | |
| 4727 | gpio_inout(0xf107f, 0xf107f); |
| 4728 | gpio_write(1<<19); /* reset the analog MUX */ |
| 4729 | gpio_write(0); |
| 4730 | |
| 4731 | /* Preset camera 0 to the 4 controllers */ |
| 4732 | for (ix = 0; ix < 4; ix++) { |
| 4733 | sw_status[ix] = ix; |
| 4734 | gv800s_write(btv, ix, ix, 1); |
| 4735 | } |
| 4736 | |
| 4737 | /* Inputs on the "master" controller need this brightness fix */ |
| 4738 | bttv_I2CWrite(btv, 0x18, 0x5, 0x90, 1); |
| 4739 | |
| 4740 | if (btv->c.nr > BTTV_MAX-4) |
| 4741 | return; |
| 4742 | /* |
| 4743 | * Store the "master" controller pointer in the master |
| 4744 | * array for later use in the muxsel function. |
| 4745 | */ |
| 4746 | master[btv->c.nr] = btv; |
| 4747 | master[btv->c.nr+1] = btv; |
| 4748 | master[btv->c.nr+2] = btv; |
| 4749 | master[btv->c.nr+3] = btv; |
| 4750 | } |
| 4751 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4752 | /* ----------------------------------------------------------------------- */ |
| 4753 | /* motherboard chipset specific stuff */ |
| 4754 | |
Adrian Bunk | 7d44e89 | 2007-12-11 19:23:43 -0300 | [diff] [blame] | 4755 | void __init bttv_check_chipset(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4756 | { |
| 4757 | int pcipci_fail = 0; |
| 4758 | struct pci_dev *dev = NULL; |
| 4759 | |
Alan Cox | 3d265c9 | 2006-09-14 11:53:16 -0300 | [diff] [blame] | 4760 | 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] | 4761 | pcipci_fail = 1; |
| 4762 | if (pci_pci_problems & (PCIPCI_TRITON|PCIPCI_NATOMA|PCIPCI_VIAETBF)) |
| 4763 | triton1 = 1; |
| 4764 | if (pci_pci_problems & PCIPCI_VSFX) |
| 4765 | vsfx = 1; |
| 4766 | #ifdef PCIPCI_ALIMAGIK |
| 4767 | if (pci_pci_problems & PCIPCI_ALIMAGIK) |
| 4768 | latency = 0x0A; |
| 4769 | #endif |
| 4770 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4771 | |
| 4772 | /* print warnings about any quirks found */ |
| 4773 | if (triton1) |
| 4774 | printk(KERN_INFO "bttv: Host bridge needs ETBF enabled.\n"); |
| 4775 | if (vsfx) |
| 4776 | printk(KERN_INFO "bttv: Host bridge needs VSFX enabled.\n"); |
| 4777 | if (pcipci_fail) { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 4778 | printk(KERN_INFO "bttv: bttv and your chipset may not work " |
| 4779 | "together.\n"); |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 4780 | if (!no_overlay) { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 4781 | printk(KERN_INFO "bttv: overlay will be disabled.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4782 | no_overlay = 1; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 4783 | } else { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 4784 | printk(KERN_INFO "bttv: overlay forced. Use this " |
| 4785 | "option at your own risk.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4786 | } |
| 4787 | } |
| 4788 | if (UNSET != latency) |
| 4789 | printk(KERN_INFO "bttv: pci latency fixup [%d]\n",latency); |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 4790 | while ((dev = pci_get_device(PCI_VENDOR_ID_INTEL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4791 | PCI_DEVICE_ID_INTEL_82441, dev))) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4792 | unsigned char b; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4793 | pci_read_config_byte(dev, 0x53, &b); |
| 4794 | if (bttv_debug) |
| 4795 | printk(KERN_INFO "bttv: Host bridge: 82441FX Natoma, " |
| 4796 | "bufcon=0x%02x\n",b); |
| 4797 | } |
| 4798 | } |
| 4799 | |
| 4800 | int __devinit bttv_handle_chipset(struct bttv *btv) |
| 4801 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4802 | unsigned char command; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4803 | |
| 4804 | if (!triton1 && !vsfx && UNSET == latency) |
| 4805 | return 0; |
| 4806 | |
| 4807 | if (bttv_verbose) { |
| 4808 | if (triton1) |
| 4809 | printk(KERN_INFO "bttv%d: enabling ETBF (430FX/VP3 compatibilty)\n",btv->c.nr); |
| 4810 | if (vsfx && btv->id >= 878) |
| 4811 | printk(KERN_INFO "bttv%d: enabling VSFX\n",btv->c.nr); |
| 4812 | if (UNSET != latency) |
| 4813 | printk(KERN_INFO "bttv%d: setting pci timer to %d\n", |
| 4814 | btv->c.nr,latency); |
| 4815 | } |
| 4816 | |
| 4817 | if (btv->id < 878) { |
| 4818 | /* bt848 (mis)uses a bit in the irq mask for etbf */ |
| 4819 | if (triton1) |
| 4820 | btv->triton1 = BT848_INT_ETBF; |
| 4821 | } else { |
| 4822 | /* bt878 has a bit in the pci config space for it */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4823 | pci_read_config_byte(btv->c.pci, BT878_DEVCTRL, &command); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4824 | if (triton1) |
| 4825 | command |= BT878_EN_TBFX; |
| 4826 | if (vsfx) |
| 4827 | command |= BT878_EN_VSFX; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4828 | pci_write_config_byte(btv->c.pci, BT878_DEVCTRL, command); |
| 4829 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4830 | if (UNSET != latency) |
| 4831 | pci_write_config_byte(btv->c.pci, PCI_LATENCY_TIMER, latency); |
| 4832 | return 0; |
| 4833 | } |
| 4834 | |
| 4835 | |
| 4836 | /* |
| 4837 | * Local variables: |
| 4838 | * c-basic-offset: 8 |
| 4839 | * End: |
| 4840 | */ |