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 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 29 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #include <linux/delay.h> |
| 31 | #include <linux/module.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | #include <linux/kmod.h> |
| 33 | #include <linux/init.h> |
| 34 | #include <linux/pci.h> |
| 35 | #include <linux/vmalloc.h> |
| 36 | #include <linux/firmware.h> |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 37 | #include <net/checksum.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 39 | #include <asm/unaligned.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | #include <asm/io.h> |
| 41 | |
| 42 | #include "bttvp.h" |
Michael Krufky | 5e453dc | 2006-01-09 15:32:31 -0200 | [diff] [blame] | 43 | #include <media/v4l2-common.h> |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 44 | #include <media/tvaudio.h> |
Mauro Carvalho Chehab | c2806d0 | 2007-10-26 16:54:54 -0300 | [diff] [blame] | 45 | #include "bttv-audio-hook.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | |
| 47 | /* fwd decl */ |
| 48 | static void boot_msp34xx(struct bttv *btv, int pin); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | static void hauppauge_eeprom(struct bttv *btv); |
| 50 | static void avermedia_eeprom(struct bttv *btv); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 51 | static void osprey_eeprom(struct bttv *btv, const u8 ee[256]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | static void modtec_eeprom(struct bttv *btv); |
| 53 | static void init_PXC200(struct bttv *btv); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 54 | static void init_RTV24(struct bttv *btv); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 55 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 56 | static void rv605_muxsel(struct bttv *btv, unsigned int input); |
| 57 | static void eagle_muxsel(struct bttv *btv, unsigned int input); |
| 58 | static void xguard_muxsel(struct bttv *btv, unsigned int input); |
| 59 | static void ivc120_muxsel(struct bttv *btv, unsigned int input); |
| 60 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input); |
| 61 | |
| 62 | static void PXC200_muxsel(struct bttv *btv, unsigned int input); |
| 63 | |
| 64 | static void picolo_tetra_muxsel(struct bttv *btv, unsigned int input); |
| 65 | static void picolo_tetra_init(struct bttv *btv); |
| 66 | |
| 67 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input); |
| 68 | static void tibetCS16_init(struct bttv *btv); |
| 69 | |
| 70 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input); |
| 71 | static void kodicom4400r_init(struct bttv *btv); |
| 72 | |
| 73 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input); |
| 74 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input); |
| 75 | |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 76 | static void geovision_muxsel(struct bttv *btv, unsigned int input); |
| 77 | |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 78 | static void phytec_muxsel(struct bttv *btv, unsigned int input); |
| 79 | |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 80 | static void gv800s_muxsel(struct bttv *btv, unsigned int input); |
| 81 | static void gv800s_init(struct bttv *btv); |
| 82 | |
Peter De Schrijver | de2843b | 2011-11-06 10:15:47 -0300 | [diff] [blame] | 83 | static void td3116_muxsel(struct bttv *btv, unsigned int input); |
| 84 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 85 | static int terratec_active_radio_upgrade(struct bttv *btv); |
| 86 | static int tea5757_read(struct bttv *btv); |
| 87 | static int tea5757_write(struct bttv *btv, int value); |
| 88 | static void identify_by_eeprom(struct bttv *btv, |
| 89 | unsigned char eeprom_data[256]); |
| 90 | static int __devinit pvr_boot(struct bttv *btv); |
| 91 | |
| 92 | /* config variables */ |
Mauro Carvalho Chehab | a5ed425 | 2006-01-13 14:10:19 -0200 | [diff] [blame] | 93 | static unsigned int triton1; |
| 94 | static unsigned int vsfx; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 95 | static unsigned int latency = UNSET; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 96 | int no_overlay=-1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | |
| 98 | static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 99 | static unsigned int pll[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 100 | static unsigned int tuner[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 101 | static unsigned int svhs[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 102 | static unsigned int remote[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 103 | static unsigned int audiodev[BTTV_MAX]; |
| 104 | static unsigned int saa6588[BTTV_MAX]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 105 | static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL }; |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 106 | static unsigned int autoload = UNSET; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 107 | static unsigned int gpiomask = UNSET; |
| 108 | static unsigned int audioall = UNSET; |
| 109 | static unsigned int audiomux[5] = { [ 0 ... 4 ] = UNSET }; |
| 110 | |
| 111 | /* insmod options */ |
| 112 | module_param(triton1, int, 0444); |
| 113 | module_param(vsfx, int, 0444); |
| 114 | module_param(no_overlay, int, 0444); |
| 115 | module_param(latency, int, 0444); |
| 116 | module_param(gpiomask, int, 0444); |
| 117 | module_param(audioall, int, 0444); |
| 118 | module_param(autoload, int, 0444); |
| 119 | |
| 120 | module_param_array(card, int, NULL, 0444); |
| 121 | module_param_array(pll, int, NULL, 0444); |
| 122 | module_param_array(tuner, int, NULL, 0444); |
| 123 | module_param_array(svhs, int, NULL, 0444); |
| 124 | module_param_array(remote, int, NULL, 0444); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 125 | module_param_array(audiodev, int, NULL, 0444); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 126 | module_param_array(audiomux, int, NULL, 0444); |
| 127 | |
| 128 | MODULE_PARM_DESC(triton1,"set ETBF pci config bit " |
| 129 | "[enable bug compatibility for triton1 + others]"); |
| 130 | MODULE_PARM_DESC(vsfx,"set VSFX pci config bit " |
| 131 | "[yet another chipset flaw workaround]"); |
| 132 | MODULE_PARM_DESC(latency,"pci latency timer"); |
| 133 | MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list"); |
| 134 | MODULE_PARM_DESC(pll,"specify installed crystal (0=none, 28=28 MHz, 35=35 MHz)"); |
| 135 | MODULE_PARM_DESC(tuner,"specify installed tuner type"); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 136 | MODULE_PARM_DESC(autoload, "obsolete option, please do not use anymore"); |
| 137 | MODULE_PARM_DESC(audiodev, "specify audio device:\n" |
| 138 | "\t\t-1 = no audio\n" |
| 139 | "\t\t 0 = autodetect (default)\n" |
| 140 | "\t\t 1 = msp3400\n" |
| 141 | "\t\t 2 = tda7432\n" |
| 142 | "\t\t 3 = tvaudio"); |
| 143 | MODULE_PARM_DESC(saa6588, "if 1, then load the saa6588 RDS module, default (0) is to use the card definition."); |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 144 | MODULE_PARM_DESC(no_overlay,"allow override overlay default (0 disables, 1 enables)" |
| 145 | " [some VIA/SIS chipsets are known to have problem with overlay]"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 146 | |
| 147 | /* ----------------------------------------------------------------------- */ |
| 148 | /* list of card IDs for bt878+ cards */ |
| 149 | |
| 150 | static struct CARD { |
| 151 | unsigned id; |
| 152 | int cardnr; |
| 153 | char *name; |
| 154 | } cards[] __devinitdata = { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 155 | { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" }, |
| 156 | { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" }, |
| 157 | { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" }, |
| 158 | { 0xff000070, BTTV_BOARD_OSPREY1x0, "Osprey-100" }, |
| 159 | { 0xff010070, BTTV_BOARD_OSPREY2x0_SVID,"Osprey-200" }, |
| 160 | { 0xff020070, BTTV_BOARD_OSPREY500, "Osprey-500" }, |
| 161 | { 0xff030070, BTTV_BOARD_OSPREY2000, "Osprey-2000" }, |
| 162 | { 0xff040070, BTTV_BOARD_OSPREY540, "Osprey-540" }, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 163 | { 0xff070070, BTTV_BOARD_OSPREY440, "Osprey-440" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 164 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 165 | { 0x00011002, BTTV_BOARD_ATI_TVWONDER, "ATI TV Wonder" }, |
| 166 | { 0x00031002, BTTV_BOARD_ATI_TVWONDERVE,"ATI TV Wonder/VE" }, |
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 | { 0x6606107d, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 169 | { 0x6607107d, BTTV_BOARD_WINFASTVC100, "Leadtek WinFast VC 100" }, |
| 170 | { 0x6609107d, BTTV_BOARD_WINFAST2000, "Leadtek TV 2000 XP" }, |
| 171 | { 0x263610b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" }, |
| 172 | { 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] | 173 | { 0x402010fc, BTTV_BOARD_GVBCTV3PCI, "I-O Data Co. GV-BCTV3/PCI" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 174 | { 0x405010fc, BTTV_BOARD_GVBCTV4PCI, "I-O Data Co. GV-BCTV4/PCI" }, |
| 175 | { 0x407010fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 176 | { 0xd01810fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 177 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 178 | { 0x001211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 179 | /* some cards ship with byteswapped IDs ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 180 | { 0x1200bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
| 181 | { 0xff00bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 182 | /* this seems to happen as well ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 183 | { 0xff1211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 184 | |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 185 | { 0x3000121a, BTTV_BOARD_VOODOOTV_200, "3Dfx VoodooTV 200" }, |
| 186 | { 0x263710b4, BTTV_BOARD_VOODOOTV_FM, "3Dfx VoodooTV FM" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 187 | { 0x3060121a, BTTV_BOARD_STB2, "3Dfx VoodooTV 100/ STB OEM" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 188 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 189 | { 0x3000144f, BTTV_BOARD_MAGICTVIEW063, "(Askey Magic/others) TView99 CPH06x" }, |
| 190 | { 0xa005144f, BTTV_BOARD_MAGICTVIEW063, "CPH06X TView99-Card" }, |
| 191 | { 0x3002144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH05x" }, |
| 192 | { 0x3005144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH061/06L (T1/LC)" }, |
| 193 | { 0x5000144f, BTTV_BOARD_MAGICTVIEW061, "Askey CPH050" }, |
| 194 | { 0x300014ff, BTTV_BOARD_MAGICTVIEW061, "TView 99 (CPH061)" }, |
| 195 | { 0x300214ff, BTTV_BOARD_PHOEBE_TVMAS, "Phoebe TV Master (CPH060)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 196 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 197 | { 0x00011461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 198 | { 0x00021461, BTTV_BOARD_AVERMEDIA98, "AVermedia TVCapture 98" }, |
| 199 | { 0x00031461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 200 | { 0x00041461, BTTV_BOARD_AVERMEDIA98, "AVerMedia TVCapture 98" }, |
| 201 | { 0x03001461, BTTV_BOARD_AVERMEDIA98, "VDOMATE TV TUNER CARD" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 202 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 203 | { 0x1117153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL B/G)" }, |
| 204 | { 0x1118153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL B/G)" }, |
| 205 | { 0x1119153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL I)" }, |
| 206 | { 0x111a153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL I)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 207 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 208 | { 0x1123153b, BTTV_BOARD_TERRATVRADIO, "Terratec TV Radio+" }, |
| 209 | { 0x1127153b, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.05)" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 210 | /* clashes with FlyVideo |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 211 | *{ 0x18521852, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.10)" }, */ |
| 212 | { 0x1134153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (LR102)" }, |
| 213 | { 0x1135153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* LR102 */ |
| 214 | { 0x5018153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue" }, /* ?? */ |
| 215 | { 0xff3b153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* ?? */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 216 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 217 | { 0x400015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 218 | { 0x400a15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 219 | { 0x400d15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 220 | { 0x401015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 221 | { 0x401615b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 222 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 223 | { 0x1430aa00, BTTV_BOARD_PV143, "Provideo PV143A" }, |
| 224 | { 0x1431aa00, BTTV_BOARD_PV143, "Provideo PV143B" }, |
| 225 | { 0x1432aa00, BTTV_BOARD_PV143, "Provideo PV143C" }, |
| 226 | { 0x1433aa00, BTTV_BOARD_PV143, "Provideo PV143D" }, |
| 227 | { 0x1433aa03, BTTV_BOARD_PV143, "Security Eyes" }, |
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 | { 0x1460aa00, BTTV_BOARD_PV150, "Provideo PV150A-1" }, |
| 230 | { 0x1461aa01, BTTV_BOARD_PV150, "Provideo PV150A-2" }, |
| 231 | { 0x1462aa02, BTTV_BOARD_PV150, "Provideo PV150A-3" }, |
| 232 | { 0x1463aa03, BTTV_BOARD_PV150, "Provideo PV150A-4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 233 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 234 | { 0x1464aa04, BTTV_BOARD_PV150, "Provideo PV150B-1" }, |
| 235 | { 0x1465aa05, BTTV_BOARD_PV150, "Provideo PV150B-2" }, |
| 236 | { 0x1466aa06, BTTV_BOARD_PV150, "Provideo PV150B-3" }, |
| 237 | { 0x1467aa07, BTTV_BOARD_PV150, "Provideo PV150B-4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 238 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 239 | { 0xa132ff00, BTTV_BOARD_IVC100, "IVC-100" }, |
| 240 | { 0xa1550000, BTTV_BOARD_IVC200, "IVC-200" }, |
| 241 | { 0xa1550001, BTTV_BOARD_IVC200, "IVC-200" }, |
| 242 | { 0xa1550002, BTTV_BOARD_IVC200, "IVC-200" }, |
| 243 | { 0xa1550003, BTTV_BOARD_IVC200, "IVC-200" }, |
| 244 | { 0xa1550100, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 245 | { 0xa1550101, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 246 | { 0xa1550102, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 247 | { 0xa1550103, BTTV_BOARD_IVC200, "IVC-200G" }, |
Kirill Smelkov | b7589ac | 2010-04-27 13:17:51 -0300 | [diff] [blame] | 248 | { 0xa1550800, BTTV_BOARD_IVC200, "IVC-200" }, |
| 249 | { 0xa1550801, BTTV_BOARD_IVC200, "IVC-200" }, |
| 250 | { 0xa1550802, BTTV_BOARD_IVC200, "IVC-200" }, |
| 251 | { 0xa1550803, BTTV_BOARD_IVC200, "IVC-200" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 252 | { 0xa182ff00, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 253 | { 0xa182ff01, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 254 | { 0xa182ff02, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 255 | { 0xa182ff03, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 256 | { 0xa182ff04, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 257 | { 0xa182ff05, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 258 | { 0xa182ff06, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 259 | { 0xa182ff07, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 260 | { 0xa182ff08, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 261 | { 0xa182ff09, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 262 | { 0xa182ff0a, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 263 | { 0xa182ff0b, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 264 | { 0xa182ff0c, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 265 | { 0xa182ff0d, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 266 | { 0xa182ff0e, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 267 | { 0xa182ff0f, BTTV_BOARD_IVC120, "IVC-120G" }, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 268 | { 0xf0500000, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 269 | { 0xf0500001, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 270 | { 0xf0500002, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 271 | { 0xf0500003, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 272 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 273 | { 0x41424344, BTTV_BOARD_GRANDTEC, "GrandTec Multi Capture" }, |
| 274 | { 0x01020304, BTTV_BOARD_XGUARD, "Grandtec Grand X-Guard" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 275 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 276 | { 0x18501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 277 | { 0xa0501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 278 | { 0x18511851, BTTV_BOARD_FLYVIDEO98EZ, "FlyVideo 98EZ (LR51)/ CyberMail AV" }, |
| 279 | { 0x18521852, BTTV_BOARD_TYPHOON_TVIEW, "FlyVideo 98FM (LR50)/ Typhoon TView TV/FM Tuner" }, |
| 280 | { 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" }, |
| 281 | { 0x18501f7f, BTTV_BOARD_FLYVIDEO_98, "Lifeview Flyvideo 98" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 282 | |
Trent Piepho | 657de3c | 2006-06-20 00:30:57 -0300 | [diff] [blame] | 283 | { 0x010115cb, BTTV_BOARD_GMV1, "AG GMV1" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 284 | { 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] | 285 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 286 | { 0x10b42636, BTTV_BOARD_HAUPPAUGE878, "STB ???" }, |
| 287 | { 0x217d6606, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 288 | { 0xfff6f6ff, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
sensoray-dev | 57437c1 | 2011-10-25 19:43:55 -0300 | [diff] [blame] | 289 | { 0x03116000, BTTV_BOARD_SENSORAY311_611, "Sensoray 311" }, |
| 290 | { 0x06116000, BTTV_BOARD_SENSORAY311_611, "Sensoray 611" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 291 | { 0x00790e11, BTTV_BOARD_WINDVR, "Canopus WinDVR PCI" }, |
| 292 | { 0xa0fca1a0, BTTV_BOARD_ZOLTRIX, "Face to Face Tvmax" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 293 | { 0x82b2aa6a, BTTV_BOARD_SIMUS_GVC1100, "SIMUS GVC1100" }, |
| 294 | { 0x146caa0c, BTTV_BOARD_PV951, "ituner spectra8" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 295 | { 0x200a1295, BTTV_BOARD_PXC200, "ImageNation PXC200A" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 296 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 297 | { 0x40111554, BTTV_BOARD_PV_BT878P_9B, "Prolink Pixelview PV-BT" }, |
| 298 | { 0x17de0a01, BTTV_BOARD_KWORLD, "Mecer TV/FM/Video Tuner" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 299 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 300 | { 0x01051805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #1" }, |
| 301 | { 0x01061805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #2" }, |
| 302 | { 0x01071805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #3" }, |
| 303 | { 0x01081805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 304 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 305 | { 0x15409511, BTTV_BOARD_ACORP_Y878F, "Acorp Y878F" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 306 | |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 307 | { 0x53534149, BTTV_BOARD_SSAI_SECURITY, "SSAI Security Video Interface" }, |
| 308 | { 0x5353414a, BTTV_BOARD_SSAI_ULTRASOUND, "SSAI Ultrasound Video Interface" }, |
| 309 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 310 | /* likely broken, vendor id doesn't match the other magic views ... |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 311 | * { 0xa0fca04f, BTTV_BOARD_MAGICTVIEW063, "Guillemot Maxi TV Video 3" }, */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 312 | |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 313 | /* Duplicate PCI ID, reconfigure for this board during the eeprom read. |
| 314 | * { 0x13eb0070, BTTV_BOARD_HAUPPAUGE_IMPACTVCB, "Hauppauge ImpactVCB" }, */ |
| 315 | |
Robert Millan | 76ecf45 | 2009-03-11 08:18:53 -0300 | [diff] [blame] | 316 | { 0x109e036e, BTTV_BOARD_CONCEPTRONIC_CTVFMI2, "Conceptronic CTVFMi v2"}, |
| 317 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 318 | /* DVB cards (using pci function .1 for mpeg data xfer) */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 319 | { 0x001c11bd, BTTV_BOARD_PINNACLESAT, "Pinnacle PCTV Sat" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 320 | { 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" }, |
| 321 | { 0x20007063, BTTV_BOARD_PC_HDTV, "pcHDTV HD-2000 TV"}, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 322 | { 0x002611bd, BTTV_BOARD_TWINHAN_DST, "Pinnacle PCTV SAT CI" }, |
| 323 | { 0x00011822, BTTV_BOARD_TWINHAN_DST, "Twinhan VisionPlus DVB" }, |
| 324 | { 0xfc00270f, BTTV_BOARD_TWINHAN_DST, "ChainTech digitop DST-1000 DVB-S" }, |
| 325 | { 0x07711461, BTTV_BOARD_AVDVBT_771, "AVermedia AverTV DVB-T 771" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 326 | { 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 327 | { 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" }, |
Michael Krufky | 19790db | 2007-01-07 22:12:22 -0300 | [diff] [blame] | 328 | { 0xdb1118ac, BTTV_BOARD_DVICO_DVBT_LITE, "Ultraview DVB-T Lite" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 329 | { 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" }, |
Cameron Hutchinson | 442d15d | 2006-06-21 18:45:31 -0300 | [diff] [blame] | 330 | { 0x00261822, BTTV_BOARD_TWINHAN_DST, "DNTV Live! Mini "}, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 331 | { 0xd200dbc0, BTTV_BOARD_DVICO_FUSIONHDTV_2, "DViCO FusionHDTV 2" }, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 332 | { 0x763c008a, BTTV_BOARD_GEOVISION_GV600, "GeoVision GV-600" }, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 333 | { 0x18011000, BTTV_BOARD_ENLTV_FM_2, "Encore ENL TV-FM-2" }, |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 334 | { 0x763d800a, BTTV_BOARD_GEOVISION_GV800S, "GeoVision GV-800(S) (master)" }, |
| 335 | { 0x763d800b, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, |
| 336 | { 0x763d800c, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, |
| 337 | { 0x763d800d, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, |
Alan McIvor | dceaddb | 2009-03-12 21:43:34 -0300 | [diff] [blame] | 338 | |
| 339 | { 0x15401830, BTTV_BOARD_PV183, "Provideo PV183-1" }, |
| 340 | { 0x15401831, BTTV_BOARD_PV183, "Provideo PV183-2" }, |
| 341 | { 0x15401832, BTTV_BOARD_PV183, "Provideo PV183-3" }, |
| 342 | { 0x15401833, BTTV_BOARD_PV183, "Provideo PV183-4" }, |
| 343 | { 0x15401834, BTTV_BOARD_PV183, "Provideo PV183-5" }, |
| 344 | { 0x15401835, BTTV_BOARD_PV183, "Provideo PV183-6" }, |
| 345 | { 0x15401836, BTTV_BOARD_PV183, "Provideo PV183-7" }, |
| 346 | { 0x15401837, BTTV_BOARD_PV183, "Provideo PV183-8" }, |
Peter De Schrijver | de2843b | 2011-11-06 10:15:47 -0300 | [diff] [blame] | 347 | { 0x3116f200, BTTV_BOARD_TVT_TD3116, "Tongwei Video Technology TD-3116" }, |
Alan McIvor | dceaddb | 2009-03-12 21:43:34 -0300 | [diff] [blame] | 348 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 349 | { 0, -1, NULL } |
| 350 | }; |
| 351 | |
| 352 | /* ----------------------------------------------------------------------- */ |
| 353 | /* array with description for bt848 / bt878 tv/grabber cards */ |
| 354 | |
| 355 | struct tvcard bttv_tvcards[] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 356 | /* ---- card 0x00 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 357 | [BTTV_BOARD_UNKNOWN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 358 | .name = " *** UNKNOWN/GENERIC *** ", |
| 359 | .video_inputs = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 360 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 361 | .muxsel = MUXSEL(2, 3, 1, 0), |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 362 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 363 | .tuner_addr = ADDR_UNSET, |
| 364 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 365 | [BTTV_BOARD_MIRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 366 | .name = "MIRO PCTV", |
| 367 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 368 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 369 | .svhs = 2, |
| 370 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 371 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 372 | .gpiomux = { 2, 0, 0, 0 }, |
| 373 | .gpiomute = 10, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 374 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 375 | .tuner_addr = ADDR_UNSET, |
| 376 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 377 | [BTTV_BOARD_HAUPPAUGE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 378 | .name = "Hauppauge (bt848)", |
| 379 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 380 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 381 | .svhs = 2, |
| 382 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 383 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 384 | .gpiomux = { 0, 1, 2, 3 }, |
| 385 | .gpiomute = 4, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 386 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 387 | .tuner_addr = ADDR_UNSET, |
| 388 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 389 | [BTTV_BOARD_STB] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 390 | .name = "STB, Gateway P/N 6000699 (bt848)", |
| 391 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 392 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 393 | .svhs = 2, |
| 394 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 395 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 396 | .gpiomux = { 4, 0, 2, 3 }, |
| 397 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 398 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 399 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 400 | .tuner_addr = ADDR_UNSET, |
| 401 | .pll = PLL_28, |
| 402 | .has_radio = 1, |
| 403 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 404 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 405 | /* ---- card 0x04 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 406 | [BTTV_BOARD_INTEL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 407 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 408 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 409 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 410 | .svhs = 2, |
| 411 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 412 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 413 | .gpiomux = { 0 }, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 414 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 415 | .tuner_addr = ADDR_UNSET, |
| 416 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 417 | [BTTV_BOARD_DIAMOND] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 418 | .name = "Diamond DTV2000", |
| 419 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 420 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 421 | .svhs = 2, |
| 422 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 423 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 424 | .gpiomux = { 0, 1, 0, 1 }, |
| 425 | .gpiomute = 3, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 426 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 427 | .tuner_addr = ADDR_UNSET, |
| 428 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 429 | [BTTV_BOARD_AVERMEDIA] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 430 | .name = "AVerMedia TVPhone", |
| 431 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 432 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 433 | .svhs = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 434 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 435 | .gpiomask = 0x0f, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 436 | .gpiomux = { 0x0c, 0x04, 0x08, 0x04 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 437 | /* 0x04 for some cards ?? */ |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 438 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 439 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 440 | .audio_mode_gpio= avermedia_tvphone_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 441 | .has_remote = 1, |
| 442 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 443 | [BTTV_BOARD_MATRIX_VISION] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 444 | .name = "MATRIX-Vision MV-Delta", |
| 445 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 446 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 447 | .svhs = 3, |
| 448 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 449 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 450 | .gpiomux = { 0 }, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 451 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 452 | .tuner_addr = ADDR_UNSET, |
| 453 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 454 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 455 | /* ---- card 0x08 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 456 | [BTTV_BOARD_FLYVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 457 | .name = "Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26", |
| 458 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 459 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 460 | .svhs = 2, |
| 461 | .gpiomask = 0xc00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 462 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 463 | .gpiomux = { 0, 0xc00, 0x800, 0x400 }, |
| 464 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 465 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 466 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 467 | .tuner_addr = ADDR_UNSET, |
| 468 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 469 | [BTTV_BOARD_TURBOTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 470 | .name = "IMS/IXmicro TurboTV", |
| 471 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 472 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 473 | .svhs = 2, |
| 474 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 475 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 476 | .gpiomux = { 1, 1, 2, 3 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 477 | .pll = PLL_28, |
| 478 | .tuner_type = TUNER_TEMIC_PAL, |
| 479 | .tuner_addr = ADDR_UNSET, |
| 480 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 481 | [BTTV_BOARD_HAUPPAUGE878] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 482 | .name = "Hauppauge (bt878)", |
| 483 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 484 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 485 | .svhs = 2, |
| 486 | .gpiomask = 0x0f, /* old: 7 */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 487 | .muxsel = MUXSEL(2, 0, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 488 | .gpiomux = { 0, 1, 2, 3 }, |
| 489 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 490 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 491 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 492 | .tuner_addr = ADDR_UNSET, |
| 493 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 494 | [BTTV_BOARD_MIROPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 495 | .name = "MIRO PCTV pro", |
| 496 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 497 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 498 | .svhs = 2, |
| 499 | .gpiomask = 0x3014f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 500 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 501 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
| 502 | .gpiomute = 10, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 503 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 504 | .tuner_addr = ADDR_UNSET, |
| 505 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 506 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 507 | /* ---- card 0x0c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 508 | [BTTV_BOARD_ADSTECH_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 509 | .name = "ADS Technologies Channel Surfer TV (bt848)", |
| 510 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 511 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 512 | .svhs = 2, |
| 513 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 514 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 515 | .gpiomux = { 13, 14, 11, 7 }, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 516 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 517 | .tuner_addr = ADDR_UNSET, |
| 518 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 519 | [BTTV_BOARD_AVERMEDIA98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 520 | .name = "AVerMedia TVCapture 98", |
| 521 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 522 | /* .audio_inputs= 4, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 523 | .svhs = 2, |
| 524 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 525 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 526 | .gpiomux = { 13, 14, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 527 | .msp34xx_alt = 1, |
| 528 | .pll = PLL_28, |
| 529 | .tuner_type = TUNER_PHILIPS_PAL, |
| 530 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 531 | .audio_mode_gpio= avermedia_tv_stereo_audio, |
Ray Cole | a8900fc | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 532 | .no_gpioirq = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 533 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 534 | [BTTV_BOARD_VHX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 535 | .name = "Aimslab Video Highway Xtreme (VHX)", |
| 536 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 537 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 538 | .svhs = 2, |
| 539 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 540 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 541 | .gpiomux = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */ |
| 542 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 543 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 544 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 545 | .tuner_addr = ADDR_UNSET, |
| 546 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 547 | [BTTV_BOARD_ZOLTRIX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 548 | .name = "Zoltrix TV-Max", |
| 549 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 550 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 551 | .svhs = 2, |
| 552 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 553 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 554 | .gpiomux = { 0, 0, 1, 0 }, |
| 555 | .gpiomute = 10, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 556 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 557 | .tuner_addr = ADDR_UNSET, |
| 558 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 559 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 560 | /* ---- card 0x10 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 561 | [BTTV_BOARD_PIXVIEWPLAYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 562 | .name = "Prolink Pixelview PlayTV (bt878)", |
| 563 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 564 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 565 | .svhs = 2, |
| 566 | .gpiomask = 0x01fe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 567 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 568 | /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 569 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 570 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 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, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 584 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 585 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 586 | .volume_gpio = winview_volume, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 587 | .has_radio = 1, |
| 588 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 589 | [BTTV_BOARD_AVEC_INTERCAP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 590 | .name = "AVEC Intercapture", |
| 591 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 592 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 593 | .svhs = 2, |
| 594 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 595 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 596 | .gpiomux = { 1, 0, 0, 0 }, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 597 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 598 | .tuner_addr = ADDR_UNSET, |
| 599 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 600 | [BTTV_BOARD_LIFE_FLYKIT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 601 | .name = "Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)", |
| 602 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 603 | /* .audio_inputs= 1, */ |
| 604 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 605 | .gpiomask = 0x8dff00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 606 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 607 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 608 | .no_msp34xx = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 609 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 610 | .tuner_addr = ADDR_UNSET, |
| 611 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 612 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 613 | /* ---- card 0x14 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 614 | [BTTV_BOARD_CEI_RAFFLES] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 615 | .name = "CEI Raffles Card", |
| 616 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 617 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 618 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 619 | .muxsel = MUXSEL(2, 3, 1, 1), |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 620 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 621 | .tuner_addr = ADDR_UNSET, |
| 622 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 623 | [BTTV_BOARD_CONFERENCETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 624 | .name = "Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50", |
| 625 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 626 | /* .audio_inputs= 2, tuner, line in */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 627 | .svhs = 2, |
| 628 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 629 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 630 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 631 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 632 | .pll = PLL_28, |
| 633 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 634 | .tuner_addr = ADDR_UNSET, |
| 635 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 636 | [BTTV_BOARD_PHOEBE_TVMAS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 637 | .name = "Askey CPH050/ Phoebe Tv Master + FM", |
| 638 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 639 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 640 | .svhs = 2, |
| 641 | .gpiomask = 0xc00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 642 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 643 | .gpiomux = { 0, 1, 0x800, 0x400 }, |
| 644 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 645 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 646 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 647 | .tuner_addr = ADDR_UNSET, |
| 648 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 649 | [BTTV_BOARD_MODTEC_205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 650 | .name = "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878", |
| 651 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 652 | /* .audio_inputs= 1, */ |
| 653 | .svhs = NO_SVHS, |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 654 | .has_dig_in = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 655 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 656 | .muxsel = MUXSEL(2, 3, 0), /* input 2 is digital */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 657 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 658 | .gpiomux = { 0, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 659 | .no_msp34xx = 1, |
| 660 | .pll = PLL_28, |
| 661 | .tuner_type = TUNER_ALPS_TSBB5_PAL_I, |
| 662 | .tuner_addr = ADDR_UNSET, |
| 663 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 664 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 665 | /* ---- card 0x18 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 666 | [BTTV_BOARD_MAGICTVIEW061] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 667 | .name = "Askey CPH05X/06X (bt878) [many vendors]", |
| 668 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 669 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 670 | .svhs = 2, |
| 671 | .gpiomask = 0xe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 672 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 673 | .gpiomux = {0x400, 0x400, 0x400, 0x400 }, |
| 674 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 675 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 676 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 677 | .tuner_addr = ADDR_UNSET, |
| 678 | .has_remote = 1, |
| 679 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 680 | [BTTV_BOARD_VOBIS_BOOSTAR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 681 | .name = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar", |
| 682 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 683 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 684 | .svhs = 2, |
| 685 | .gpiomask = 0x1f0fff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 686 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 687 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 688 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 689 | .tuner_type = TUNER_PHILIPS_PAL, |
| 690 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 691 | .audio_mode_gpio= terratv_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 692 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 693 | [BTTV_BOARD_HAUPPAUG_WCAM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 694 | .name = "Hauppauge WinCam newer (bt878)", |
| 695 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 696 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 697 | .svhs = 3, |
| 698 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 699 | .muxsel = MUXSEL(2, 0, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 700 | .gpiomux = { 0, 1, 2, 3 }, |
| 701 | .gpiomute = 4, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 702 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 703 | .tuner_addr = ADDR_UNSET, |
| 704 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 705 | [BTTV_BOARD_MAXI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 706 | .name = "Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50", |
| 707 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 708 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 709 | .svhs = 2, |
| 710 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 711 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 712 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 713 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 714 | .pll = PLL_28, |
| 715 | .tuner_type = TUNER_PHILIPS_SECAM, |
| 716 | .tuner_addr = ADDR_UNSET, |
| 717 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 718 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 719 | /* ---- card 0x1c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 720 | [BTTV_BOARD_TERRATV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 721 | .name = "Terratec TerraTV+ Version 1.1 (bt878)", |
| 722 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 723 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 724 | .svhs = 2, |
| 725 | .gpiomask = 0x1f0fff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 726 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 727 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0x00000 }, |
| 728 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 729 | .tuner_type = TUNER_PHILIPS_PAL, |
| 730 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 731 | .audio_mode_gpio= terratv_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 732 | /* GPIO wiring: |
| 733 | External 20 pin connector (for Active Radio Upgrade board) |
| 734 | gpio00: i2c-sda |
| 735 | gpio01: i2c-scl |
| 736 | gpio02: om5610-data |
| 737 | gpio03: om5610-clk |
| 738 | gpio04: om5610-wre |
| 739 | gpio05: om5610-stereo |
| 740 | gpio06: rds6588-davn |
| 741 | gpio07: Pin 7 n.c. |
| 742 | gpio08: nIOW |
| 743 | gpio09+10: nIOR, nSEL ?? (bt878) |
| 744 | gpio09: nIOR (bt848) |
| 745 | gpio10: nSEL (bt848) |
| 746 | Sound Routing: |
| 747 | gpio16: u2-A0 (1st 4052bt) |
| 748 | gpio17: u2-A1 |
| 749 | gpio18: u2-nEN |
| 750 | gpio19: u4-A0 (2nd 4052) |
| 751 | gpio20: u4-A1 |
| 752 | u4-nEN - GND |
| 753 | Btspy: |
| 754 | 00000 : Cdrom (internal audio input) |
| 755 | 10000 : ext. Video audio input |
| 756 | 20000 : TV Mono |
| 757 | a0000 : TV Mono/2 |
| 758 | 1a0000 : TV Stereo |
| 759 | 30000 : Radio |
| 760 | 40000 : Mute |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 761 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 762 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 763 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 764 | [BTTV_BOARD_PXC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 765 | /* Jannik Fritsch <jannik@techfak.uni-bielefeld.de> */ |
| 766 | .name = "Imagenation PXC200", |
| 767 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 768 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 769 | .svhs = 1, /* was: 4 */ |
| 770 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 771 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 772 | .gpiomux = { 0 }, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 773 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 774 | .tuner_addr = ADDR_UNSET, |
| 775 | .muxsel_hook = PXC200_muxsel, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 776 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 777 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 778 | [BTTV_BOARD_FLYVIDEO_98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 779 | .name = "Lifeview FlyVideo 98 LR50", |
| 780 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 781 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 782 | .svhs = 2, |
| 783 | .gpiomask = 0x1800, /* 0x8dfe00 */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 784 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 785 | .gpiomux = { 0, 0x0800, 0x1000, 0x1000 }, |
| 786 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 787 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 788 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 789 | .tuner_addr = ADDR_UNSET, |
| 790 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 791 | [BTTV_BOARD_IPROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 792 | .name = "Formac iProTV, Formac ProTV I (bt848)", |
| 793 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 794 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 795 | .svhs = 3, |
| 796 | .gpiomask = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 797 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 798 | .gpiomux = { 1, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 799 | .pll = PLL_28, |
| 800 | .tuner_type = TUNER_PHILIPS_PAL, |
| 801 | .tuner_addr = ADDR_UNSET, |
| 802 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 803 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 804 | /* ---- card 0x20 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 805 | [BTTV_BOARD_INTEL_C_S_PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 806 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 807 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 808 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 809 | .svhs = 2, |
| 810 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 811 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 812 | .gpiomux = { 0 }, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 813 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 814 | .tuner_addr = ADDR_UNSET, |
| 815 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 816 | [BTTV_BOARD_TERRATVALUE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 817 | .name = "Terratec TerraTValue Version Bt878", |
| 818 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 819 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 820 | .svhs = 2, |
| 821 | .gpiomask = 0xffff00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 822 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 823 | .gpiomux = { 0x500, 0, 0x300, 0x900 }, |
| 824 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 825 | .pll = PLL_28, |
| 826 | .tuner_type = TUNER_PHILIPS_PAL, |
| 827 | .tuner_addr = ADDR_UNSET, |
| 828 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 829 | [BTTV_BOARD_WINFAST2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 830 | .name = "Leadtek WinFast 2000/ WinFast 2000 XP", |
| 831 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 832 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 833 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 834 | /* TV, CVid, SVid, CVid over SVid connector */ |
| 835 | .muxsel = MUXSEL(2, 3, 1, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 836 | /* Alexander Varakin <avarakin@hotmail.com> [stereo version] */ |
| 837 | .gpiomask = 0xb33000, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 838 | .gpiomux = { 0x122000,0x1000,0x0000,0x620000 }, |
| 839 | .gpiomute = 0x800000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 840 | /* Audio Routing for "WinFast 2000 XP" (no tv stereo !) |
| 841 | gpio23 -- hef4052:nEnable (0x800000) |
| 842 | gpio12 -- hef4052:A1 |
| 843 | gpio13 -- hef4052:A0 |
| 844 | 0x0000: external audio |
| 845 | 0x1000: FM |
| 846 | 0x2000: TV |
| 847 | 0x3000: n.c. |
| 848 | Note: There exists another variant "Winfast 2000" with tv stereo !? |
| 849 | Note: eeprom only contains FF and pci subsystem id 107d:6606 |
| 850 | */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 851 | .pll = PLL_28, |
| 852 | .has_radio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 853 | .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] | 854 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 855 | .audio_mode_gpio= winfast2000_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 856 | .has_remote = 1, |
| 857 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 858 | [BTTV_BOARD_CHRONOS_VS2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 859 | .name = "Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II", |
| 860 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 861 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 862 | .svhs = 2, |
| 863 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 864 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 865 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 866 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 867 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 868 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 869 | .tuner_addr = ADDR_UNSET, |
| 870 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 871 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 872 | /* ---- card 0x24 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 873 | [BTTV_BOARD_TYPHOON_TVIEW] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 874 | .name = "Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tuner", |
| 875 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 876 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 877 | .svhs = 2, |
| 878 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 879 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 880 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 881 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 882 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 883 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 884 | .tuner_addr = ADDR_UNSET, |
| 885 | .has_radio = 1, |
| 886 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 887 | [BTTV_BOARD_PXELVWPLTVPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 888 | .name = "Prolink PixelView PlayTV pro", |
| 889 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 890 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 891 | .svhs = 2, |
| 892 | .gpiomask = 0xff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 893 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 894 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 895 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 896 | .no_msp34xx = 1, |
| 897 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 898 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 899 | .tuner_addr = ADDR_UNSET, |
| 900 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 901 | [BTTV_BOARD_MAGICTVIEW063] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 902 | .name = "Askey CPH06X TView99", |
| 903 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 904 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 905 | .svhs = 2, |
| 906 | .gpiomask = 0x551e00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 907 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 908 | .gpiomux = { 0x551400, 0x551200, 0, 0 }, |
| 909 | .gpiomute = 0x551c00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 910 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 911 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 912 | .tuner_addr = ADDR_UNSET, |
| 913 | .has_remote = 1, |
| 914 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 915 | [BTTV_BOARD_PINNACLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 916 | .name = "Pinnacle PCTV Studio/Rave", |
| 917 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 918 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 919 | .svhs = 2, |
| 920 | .gpiomask = 0x03000F, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 921 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 922 | .gpiomux = { 2, 0xd0001, 0, 0 }, |
| 923 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 924 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 925 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 926 | .tuner_addr = ADDR_UNSET, |
| 927 | }, |
| 928 | |
| 929 | /* ---- card 0x28 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 930 | [BTTV_BOARD_STB2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 931 | .name = "STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100", |
| 932 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 933 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 934 | .svhs = 2, |
| 935 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 936 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 937 | .gpiomux = { 4, 0, 2, 3 }, |
| 938 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 939 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 940 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 941 | .tuner_addr = ADDR_UNSET, |
| 942 | .pll = PLL_28, |
| 943 | .has_radio = 1, |
| 944 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 945 | [BTTV_BOARD_AVPHONE98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 946 | .name = "AVerMedia TVPhone 98", |
| 947 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 948 | /* .audio_inputs= 4, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 949 | .svhs = 2, |
| 950 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 951 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 952 | .gpiomux = { 13, 4, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 953 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 954 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 955 | .tuner_addr = ADDR_UNSET, |
| 956 | .has_radio = 1, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 957 | .audio_mode_gpio= avermedia_tvphone_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 958 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 959 | [BTTV_BOARD_PV951] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 960 | .name = "ProVideo PV951", /* pic16c54 */ |
| 961 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 962 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 963 | .svhs = 2, |
| 964 | .gpiomask = 0, |
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 = { 0, 0, 0, 0}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 967 | .no_msp34xx = 1, |
| 968 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 969 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 970 | .tuner_addr = ADDR_UNSET, |
| 971 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 972 | [BTTV_BOARD_ONAIR_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 973 | .name = "Little OnAir TV", |
| 974 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 975 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 976 | .svhs = 2, |
| 977 | .gpiomask = 0xe00b, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 978 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 979 | .gpiomux = { 0xff9ff6, 0xff9ff6, 0xff1ff7, 0 }, |
| 980 | .gpiomute = 0xff3ffc, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 981 | .no_msp34xx = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 982 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 983 | .tuner_addr = ADDR_UNSET, |
| 984 | }, |
| 985 | |
| 986 | /* ---- card 0x2c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 987 | [BTTV_BOARD_SIGMA_TVII_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 988 | .name = "Sigma TVII-FM", |
| 989 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 990 | /* .audio_inputs= 1, */ |
| 991 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 992 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 993 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 994 | .gpiomux = { 1, 1, 0, 2 }, |
| 995 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 996 | .no_msp34xx = 1, |
| 997 | .pll = PLL_NONE, |
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 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1001 | [BTTV_BOARD_MATRIX_VISION2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1002 | .name = "MATRIX-Vision MV-Delta 2", |
| 1003 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1004 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1005 | .svhs = 3, |
| 1006 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1007 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1008 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1009 | .no_msp34xx = 1, |
| 1010 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1011 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1012 | .tuner_addr = ADDR_UNSET, |
| 1013 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1014 | [BTTV_BOARD_ZOLTRIX_GENIE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1015 | .name = "Zoltrix Genie TV/FM", |
| 1016 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1017 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1018 | .svhs = 2, |
| 1019 | .gpiomask = 0xbcf03f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1020 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1021 | .gpiomux = { 0xbc803f, 0xbc903f, 0xbcb03f, 0 }, |
| 1022 | .gpiomute = 0xbcb03f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1023 | .no_msp34xx = 1, |
| 1024 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1025 | .tuner_type = TUNER_TEMIC_4039FR5_NTSC, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1026 | .tuner_addr = ADDR_UNSET, |
| 1027 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1028 | [BTTV_BOARD_TERRATVRADIO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1029 | .name = "Terratec TV/Radio+", |
| 1030 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1031 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1032 | .svhs = 2, |
| 1033 | .gpiomask = 0x70000, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1034 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1035 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 1036 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1037 | .no_msp34xx = 1, |
| 1038 | .pll = PLL_35, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1039 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1040 | .tuner_addr = ADDR_UNSET, |
| 1041 | .has_radio = 1, |
| 1042 | }, |
| 1043 | |
| 1044 | /* ---- card 0x30 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1045 | [BTTV_BOARD_DYNALINK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1046 | .name = "Askey CPH03x/ Dynalink Magic TView", |
| 1047 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1048 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1049 | .svhs = 2, |
| 1050 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1051 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1052 | .gpiomux = {2,0,0,0 }, |
| 1053 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1054 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1055 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1056 | .tuner_addr = ADDR_UNSET, |
| 1057 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1058 | [BTTV_BOARD_GVBCTV3PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1059 | .name = "IODATA GV-BCTV3/PCI", |
| 1060 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1061 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1062 | .svhs = 2, |
| 1063 | .gpiomask = 0x010f00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1064 | .muxsel = MUXSEL(2, 3, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1065 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1066 | .no_msp34xx = 1, |
| 1067 | .pll = PLL_28, |
| 1068 | .tuner_type = TUNER_ALPS_TSHC6_NTSC, |
| 1069 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1070 | .audio_mode_gpio= gvbctv3pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1071 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1072 | [BTTV_BOARD_PXELVWPLTVPAK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1073 | .name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP", |
| 1074 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1075 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1076 | .svhs = 3, |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1077 | .has_dig_in = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1078 | .gpiomask = 0xAA0000, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1079 | .muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1080 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1081 | .gpiomux = { 0x20000, 0, 0x80000, 0x80000 }, |
| 1082 | .gpiomute = 0xa8000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1083 | .no_msp34xx = 1, |
| 1084 | .pll = PLL_28, |
| 1085 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 1086 | .tuner_addr = ADDR_UNSET, |
| 1087 | .has_remote = 1, |
| 1088 | /* GPIO wiring: (different from Rev.4C !) |
| 1089 | GPIO17: U4.A0 (first hef4052bt) |
| 1090 | GPIO19: U4.A1 |
| 1091 | GPIO20: U5.A1 (second hef4052bt) |
| 1092 | GPIO21: U4.nEN |
| 1093 | GPIO22: BT832 Reset Line |
| 1094 | GPIO23: A5,A0, U5,nEN |
| 1095 | Note: At i2c=0x8a is a Bt832 chip, which changes to 0x88 after being reset via GPIO22 |
| 1096 | */ |
| 1097 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1098 | [BTTV_BOARD_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1099 | .name = "Eagle Wireless Capricorn2 (bt878A)", |
| 1100 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1101 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1102 | .svhs = 2, |
| 1103 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1104 | .muxsel = MUXSEL(2, 0, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1105 | .gpiomux = { 0, 1, 2, 3 }, |
| 1106 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1107 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1108 | .tuner_type = UNSET /* TUNER_ALPS_TMDH2_NTSC */, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1109 | .tuner_addr = ADDR_UNSET, |
| 1110 | }, |
| 1111 | |
| 1112 | /* ---- card 0x34 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1113 | [BTTV_BOARD_PINNACLEPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1114 | /* David Härdeman <david@2gen.com> */ |
| 1115 | .name = "Pinnacle PCTV Studio Pro", |
| 1116 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1117 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1118 | .svhs = 3, |
| 1119 | .gpiomask = 0x03000F, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1120 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1121 | .gpiomux = { 1, 0xd0001, 0, 0 }, |
| 1122 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1123 | /* sound path (5 sources): |
| 1124 | MUX1 (mask 0x03), Enable Pin 0x08 (0=enable, 1=disable) |
| 1125 | 0= ext. Audio IN |
| 1126 | 1= from MUX2 |
| 1127 | 2= Mono TV sound from Tuner |
| 1128 | 3= not connected |
| 1129 | MUX2 (mask 0x30000): |
| 1130 | 0,2,3= from MSP34xx |
| 1131 | 1= FM stereo Radio from Tuner */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1132 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1133 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1134 | .tuner_addr = ADDR_UNSET, |
| 1135 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1136 | [BTTV_BOARD_TVIEW_RDS_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1137 | /* Claas Langbehn <claas@bigfoot.com>, |
| 1138 | Sven Grothklags <sven@upb.de> */ |
| 1139 | .name = "Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS", |
| 1140 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1141 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1142 | .svhs = 2, |
| 1143 | .gpiomask = 0x1c, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1144 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1145 | .gpiomux = { 0, 0, 0x10, 8 }, |
| 1146 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1147 | .pll = PLL_28, |
| 1148 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1149 | .tuner_addr = ADDR_UNSET, |
| 1150 | .has_radio = 1, |
| 1151 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1152 | [BTTV_BOARD_LIFETEC_9415] = { |
Jan Engelhardt | 96de0e2 | 2007-10-19 23:21:04 +0200 | [diff] [blame] | 1153 | /* Tim Röstermundt <rosterm@uni-muenster.de> |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1154 | in de.comp.os.unix.linux.hardware: |
| 1155 | options bttv card=0 pll=1 radio=1 gpiomask=0x18e0 |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1156 | gpiomux =0x44c71f,0x44d71f,0,0x44d71f,0x44dfff |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1157 | options tuner type=5 */ |
| 1158 | .name = "Lifeview FlyVideo 2000 /FlyVideo A2/ Lifetec LT 9415 TV [LR90]", |
| 1159 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1160 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1161 | .svhs = 2, |
| 1162 | .gpiomask = 0x18e0, |
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 = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1165 | .gpiomute = 0x18e0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1166 | /* For cards with tda9820/tda9821: |
| 1167 | 0x0000: Tuner normal stereo |
| 1168 | 0x0080: Tuner A2 SAP (second audio program = Zweikanalton) |
| 1169 | 0x0880: Tuner A2 stereo */ |
| 1170 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1171 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1172 | .tuner_addr = ADDR_UNSET, |
| 1173 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1174 | [BTTV_BOARD_BESTBUY_EASYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1175 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1176 | old Easy TV BT848 version (model CPH031) */ |
| 1177 | .name = "Askey CPH031/ BESTBUY Easy TV", |
| 1178 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1179 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1180 | .svhs = 2, |
| 1181 | .gpiomask = 0xF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1182 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1183 | .gpiomux = { 2, 0, 0, 0 }, |
| 1184 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1185 | .pll = PLL_28, |
| 1186 | .tuner_type = TUNER_TEMIC_PAL, |
| 1187 | .tuner_addr = ADDR_UNSET, |
| 1188 | }, |
| 1189 | |
| 1190 | /* ---- card 0x38 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1191 | [BTTV_BOARD_FLYVIDEO_98FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1192 | /* Gordon Heydon <gjheydon@bigfoot.com ('98) */ |
| 1193 | .name = "Lifeview FlyVideo 98FM LR50", |
| 1194 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1195 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1196 | .svhs = 2, |
| 1197 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1198 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1199 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 1200 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1201 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1202 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1203 | .tuner_addr = ADDR_UNSET, |
| 1204 | }, |
| 1205 | /* This is the ultimate cheapo capture card |
| 1206 | * just a BT848A on a small PCB! |
| 1207 | * Steve Hosgood <steve@equiinet.com> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1208 | [BTTV_BOARD_GRANDTEC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1209 | .name = "GrandTec 'Grand Video Capture' (Bt848)", |
| 1210 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1211 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1212 | .svhs = 1, |
| 1213 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1214 | .muxsel = MUXSEL(3, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1215 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1216 | .no_msp34xx = 1, |
| 1217 | .pll = PLL_35, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1218 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1219 | .tuner_addr = ADDR_UNSET, |
| 1220 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1221 | [BTTV_BOARD_ASKEY_CPH060] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1222 | /* Daniel Herrington <daniel.herrington@home.com> */ |
| 1223 | .name = "Askey CPH060/ Phoebe TV Master Only (No FM)", |
| 1224 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1225 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1226 | .svhs = 2, |
| 1227 | .gpiomask = 0xe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1228 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1229 | .gpiomux = { 0x400, 0x400, 0x400, 0x400 }, |
| 1230 | .gpiomute = 0x800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1231 | .pll = PLL_28, |
| 1232 | .tuner_type = TUNER_TEMIC_4036FY5_NTSC, |
| 1233 | .tuner_addr = ADDR_UNSET, |
| 1234 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1235 | [BTTV_BOARD_ASKEY_CPH03X] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1236 | /* Matti Mottus <mottus@physic.ut.ee> */ |
| 1237 | .name = "Askey CPH03x TV Capturer", |
| 1238 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1239 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1240 | .svhs = 2, |
| 1241 | .gpiomask = 0x03000F, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1242 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1243 | .gpiomux = { 2, 0, 0, 0 }, |
| 1244 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1245 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1246 | .tuner_type = TUNER_TEMIC_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1247 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | ed44f66 | 2009-08-22 14:43:50 -0300 | [diff] [blame] | 1248 | .has_remote = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1249 | }, |
| 1250 | |
| 1251 | /* ---- card 0x3c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1252 | [BTTV_BOARD_MM100PCTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1253 | /* Philip Blundell <philb@gnu.org> */ |
| 1254 | .name = "Modular Technology MM100PCTV", |
| 1255 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1256 | /* .audio_inputs= 2, */ |
| 1257 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1258 | .gpiomask = 11, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1259 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1260 | .gpiomux = { 2, 0, 0, 1 }, |
| 1261 | .gpiomute = 8, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1262 | .pll = PLL_35, |
| 1263 | .tuner_type = TUNER_TEMIC_PAL, |
| 1264 | .tuner_addr = ADDR_UNSET, |
| 1265 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1266 | [BTTV_BOARD_GMV1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1267 | /* Adrian Cox <adrian@humboldt.co.uk */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1268 | .name = "AG Electronics GMV1", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1269 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1270 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1271 | .svhs = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1272 | .gpiomask = 0xF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1273 | .muxsel = MUXSEL(2, 2), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1274 | .gpiomux = { }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1275 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1276 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1277 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1278 | .tuner_addr = ADDR_UNSET, |
| 1279 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1280 | [BTTV_BOARD_BESTBUY_EASYTV2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1281 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1282 | new Easy TV BT878 version (model CPH061) |
| 1283 | special thanks to Informatica Mieres for providing the card */ |
| 1284 | .name = "Askey CPH061/ BESTBUY Easy TV (bt878)", |
| 1285 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1286 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1287 | .svhs = 2, |
| 1288 | .gpiomask = 0xFF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1289 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1290 | .gpiomux = { 1, 0, 4, 4 }, |
| 1291 | .gpiomute = 9, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1292 | .pll = PLL_28, |
| 1293 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1294 | .tuner_addr = ADDR_UNSET, |
| 1295 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1296 | [BTTV_BOARD_ATI_TVWONDER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1297 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1298 | .name = "ATI TV-Wonder", |
| 1299 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1300 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1301 | .svhs = 2, |
| 1302 | .gpiomask = 0xf03f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1303 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1304 | .gpiomux = { 0xbffe, 0, 0xbfff, 0 }, |
| 1305 | .gpiomute = 0xbffe, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1306 | .pll = PLL_28, |
| 1307 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1308 | .tuner_addr = ADDR_UNSET, |
| 1309 | }, |
| 1310 | |
| 1311 | /* ---- card 0x40 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1312 | [BTTV_BOARD_ATI_TVWONDERVE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1313 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1314 | .name = "ATI TV-Wonder VE", |
| 1315 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1316 | /* .audio_inputs= 1, */ |
| 1317 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1318 | .gpiomask = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1319 | .muxsel = MUXSEL(2, 3, 0, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1320 | .gpiomux = { 0, 0, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1321 | .no_msp34xx = 1, |
| 1322 | .pll = PLL_28, |
| 1323 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1324 | .tuner_addr = ADDR_UNSET, |
| 1325 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1326 | [BTTV_BOARD_FLYVIDEO2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1327 | /* DeeJay <deejay@westel900.net (2000S) */ |
| 1328 | .name = "Lifeview FlyVideo 2000S LR90", |
| 1329 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1330 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1331 | .svhs = 2, |
| 1332 | .gpiomask = 0x18e0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1333 | .muxsel = MUXSEL(2, 3, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1334 | /* Radio changed from 1e80 to 0x800 to make |
| 1335 | FlyVideo2000S in .hu happy (gm)*/ |
| 1336 | /* -dk-???: set mute=0x1800 for tda9874h daughterboard */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1337 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1338 | .gpiomute = 0x1800, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1339 | .audio_mode_gpio= fv2000s_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1340 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1341 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1342 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1343 | .tuner_addr = ADDR_UNSET, |
| 1344 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1345 | [BTTV_BOARD_TERRATVALUER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1346 | .name = "Terratec TValueRadio", |
| 1347 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1348 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1349 | .svhs = 2, |
| 1350 | .gpiomask = 0xffff00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1351 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1352 | .gpiomux = { 0x500, 0x500, 0x300, 0x900 }, |
| 1353 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1354 | .pll = PLL_28, |
| 1355 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1356 | .tuner_addr = ADDR_UNSET, |
| 1357 | .has_radio = 1, |
| 1358 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1359 | [BTTV_BOARD_GVBCTV4PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1360 | /* TANAKA Kei <peg00625@nifty.com> */ |
| 1361 | .name = "IODATA GV-BCTV4/PCI", |
| 1362 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1363 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1364 | .svhs = 2, |
| 1365 | .gpiomask = 0x010f00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1366 | .muxsel = MUXSEL(2, 3, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1367 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1368 | .no_msp34xx = 1, |
| 1369 | .pll = PLL_28, |
| 1370 | .tuner_type = TUNER_SHARP_2U5JF5540_NTSC, |
| 1371 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1372 | .audio_mode_gpio= gvbctv3pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1373 | }, |
| 1374 | |
| 1375 | /* ---- card 0x44 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1376 | [BTTV_BOARD_VOODOOTV_FM] = { |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1377 | .name = "3Dfx VoodooTV FM (Euro)", |
| 1378 | /* try "insmod msp3400 simple=0" if you have |
| 1379 | * sound problems with this card. */ |
| 1380 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1381 | /* .audio_inputs= 1, */ |
| 1382 | .svhs = NO_SVHS, |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1383 | .gpiomask = 0x4f8a00, |
| 1384 | /* 0x100000: 1=MSP enabled (0=disable again) |
| 1385 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ |
| 1386 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
| 1387 | .gpiomute = 0x947fff, |
| 1388 | /* tvtuner, radio, external,internal, mute, stereo |
| 1389 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1390 | .muxsel = MUXSEL(2, 3, 0, 1), |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1391 | .tuner_type = TUNER_MT2032, |
| 1392 | .tuner_addr = ADDR_UNSET, |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1393 | .pll = PLL_28, |
| 1394 | .has_radio = 1, |
| 1395 | }, |
| 1396 | [BTTV_BOARD_VOODOOTV_200] = { |
| 1397 | .name = "VoodooTV 200 (USA)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1398 | /* try "insmod msp3400 simple=0" if you have |
| 1399 | * sound problems with this card. */ |
| 1400 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1401 | /* .audio_inputs= 1, */ |
| 1402 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1403 | .gpiomask = 0x4f8a00, |
| 1404 | /* 0x100000: 1=MSP enabled (0=disable again) |
| 1405 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1406 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
| 1407 | .gpiomute = 0x947fff, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1408 | /* tvtuner, radio, external,internal, mute, stereo |
| 1409 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1410 | .muxsel = MUXSEL(2, 3, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1411 | .tuner_type = TUNER_MT2032, |
| 1412 | .tuner_addr = ADDR_UNSET, |
| 1413 | .pll = PLL_28, |
| 1414 | .has_radio = 1, |
| 1415 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1416 | [BTTV_BOARD_AIMMS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1417 | /* Philip Blundell <pb@nexus.co.uk> */ |
| 1418 | .name = "Active Imaging AIMMS", |
| 1419 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1420 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1421 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1422 | .tuner_addr = ADDR_UNSET, |
| 1423 | .pll = PLL_28, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1424 | .muxsel = MUXSEL(2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1425 | .gpiomask = 0 |
| 1426 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1427 | [BTTV_BOARD_PV_BT878P_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1428 | /* Tomasz Pyra <hellfire@sedez.iq.pl> */ |
| 1429 | .name = "Prolink Pixelview PV-BT878P+ (Rev.4C,8E)", |
| 1430 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1431 | /* .audio_inputs= 4, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1432 | .svhs = 2, |
| 1433 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1434 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1435 | .gpiomux = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */ |
| 1436 | .gpiomute = 13, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1437 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1438 | .tuner_type = TUNER_LG_PAL_I_FM, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1439 | .tuner_addr = ADDR_UNSET, |
| 1440 | .has_remote = 1, |
| 1441 | /* GPIO wiring: |
| 1442 | GPIO0: U4.A0 (hef4052bt) |
| 1443 | GPIO1: U4.A1 |
| 1444 | GPIO2: U4.A1 (second hef4052bt) |
| 1445 | GPIO3: U4.nEN, U5.A0, A5.nEN |
| 1446 | GPIO8-15: vrd866b ? |
| 1447 | */ |
| 1448 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1449 | [BTTV_BOARD_FLYVIDEO98EZ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1450 | .name = "Lifeview FlyVideo 98EZ (capture only) LR51", |
| 1451 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1452 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1453 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1454 | /* AV1, AV2, SVHS, CVid adapter on SVHS */ |
| 1455 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1456 | .pll = PLL_28, |
| 1457 | .no_msp34xx = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1458 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1459 | .tuner_addr = ADDR_UNSET, |
| 1460 | }, |
| 1461 | |
| 1462 | /* ---- card 0x48 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1463 | [BTTV_BOARD_PV_BT878P_9B] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1464 | /* Dariusz Kowalewski <darekk@automex.pl> */ |
| 1465 | .name = "Prolink Pixelview PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)", |
| 1466 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1467 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1468 | .svhs = 2, |
| 1469 | .gpiomask = 0x3f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1470 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1471 | .gpiomux = { 0x01, 0x00, 0x03, 0x03 }, |
| 1472 | .gpiomute = 0x09, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1473 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1474 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1475 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1476 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1477 | .audio_mode_gpio= pvbt878p9b_audio, /* Note: not all cards have stereo */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1478 | .has_radio = 1, /* Note: not all cards have radio */ |
| 1479 | .has_remote = 1, |
| 1480 | /* GPIO wiring: |
| 1481 | GPIO0: A0 hef4052 |
| 1482 | GPIO1: A1 hef4052 |
| 1483 | GPIO3: nEN hef4052 |
| 1484 | GPIO8-15: vrd866b |
| 1485 | GPIO20,22,23: R30,R29,R28 |
| 1486 | */ |
| 1487 | }, |
sensoray-dev | 57437c1 | 2011-10-25 19:43:55 -0300 | [diff] [blame] | 1488 | [BTTV_BOARD_SENSORAY311_611] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1489 | /* Clay Kunz <ckunz@mail.arc.nasa.gov> */ |
sensoray-dev | 57437c1 | 2011-10-25 19:43:55 -0300 | [diff] [blame] | 1490 | /* you must jumper JP5 for the 311 card (PC/104+) to work */ |
| 1491 | .name = "Sensoray 311/611", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1492 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1493 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1494 | .svhs = 4, |
| 1495 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1496 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1497 | .gpiomux = { 0 }, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1498 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1499 | .tuner_addr = ADDR_UNSET, |
| 1500 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1501 | [BTTV_BOARD_RV605] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1502 | /* Miguel Freitas <miguel@cetuc.puc-rio.br> */ |
| 1503 | .name = "RemoteVision MX (RV605)", |
| 1504 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1505 | /* .audio_inputs= 0, */ |
| 1506 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1507 | .gpiomask = 0x00, |
| 1508 | .gpiomask2 = 0x07ff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1509 | .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] | 1510 | .no_msp34xx = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1511 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1512 | .tuner_addr = ADDR_UNSET, |
| 1513 | .muxsel_hook = rv605_muxsel, |
| 1514 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1515 | [BTTV_BOARD_POWERCLR_MTV878] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1516 | .name = "Powercolor MTV878/ MTV878R/ MTV878F", |
| 1517 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1518 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1519 | .svhs = 2, |
| 1520 | .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] | 1521 | .muxsel = MUXSEL(2, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1522 | .gpiomux = { 0, 1, 2, 2 }, |
| 1523 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1524 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1525 | .tuner_addr = ADDR_UNSET, |
| 1526 | .pll = PLL_28, |
| 1527 | .has_radio = 1, |
| 1528 | }, |
| 1529 | |
| 1530 | /* ---- card 0x4c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1531 | [BTTV_BOARD_WINDVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1532 | /* Masaki Suzuki <masaki@btree.org> */ |
| 1533 | .name = "Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)", |
| 1534 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1535 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1536 | .svhs = 2, |
| 1537 | .gpiomask = 0x140007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1538 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1539 | .gpiomux = { 0, 1, 2, 3 }, |
| 1540 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1541 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 1542 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1543 | .audio_mode_gpio= windvr_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1544 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1545 | [BTTV_BOARD_GRANDTEC_MULTI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1546 | .name = "GrandTec Multi Capture Card (Bt878)", |
| 1547 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1548 | /* .audio_inputs= 0, */ |
| 1549 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1550 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1551 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1552 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1553 | .no_msp34xx = 1, |
| 1554 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1555 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1556 | .tuner_addr = ADDR_UNSET, |
| 1557 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1558 | [BTTV_BOARD_KWORLD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1559 | .name = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF", |
| 1560 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1561 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1562 | .svhs = 2, |
| 1563 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1564 | /* Tuner, SVid, SVHS, SVid to SVHS connector */ |
| 1565 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1566 | .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] | 1567 | * This card lacks external Audio In, so we mute it on Ext. & Int. |
| 1568 | * The PCB can take a sbx1637/sbx1673, wiring unknown. |
| 1569 | * This card lacks PCI subsystem ID, sigh. |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1570 | * gpiomux =1: lower volume, 2+3: mute |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1571 | * btwincap uses 0x80000/0x80003 |
| 1572 | */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1573 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1574 | .no_msp34xx = 1, |
| 1575 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1576 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1577 | .tuner_addr = ADDR_UNSET, |
| 1578 | /* Samsung TCPA9095PC27A (BG+DK), philips compatible, w/FM, stereo and |
| 1579 | radio signal strength indicators work fine. */ |
| 1580 | .has_radio = 1, |
| 1581 | /* GPIO Info: |
| 1582 | GPIO0,1: HEF4052 A0,A1 |
| 1583 | GPIO2: HEF4052 nENABLE |
| 1584 | GPIO3-7: n.c. |
| 1585 | GPIO8-13: IRDC357 data0-5 (data6 n.c. ?) [chip not present on my card] |
| 1586 | GPIO14,15: ?? |
| 1587 | GPIO16-21: n.c. |
| 1588 | GPIO22,23: ?? |
| 1589 | ?? : mtu8b56ep microcontroller for IR (GPIO wiring unknown)*/ |
| 1590 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1591 | [BTTV_BOARD_DSP_TCVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1592 | /* Arthur Tetzlaff-Deas, DSP Design Ltd <software@dspdesign.com> */ |
| 1593 | .name = "DSP Design TCVIDEO", |
| 1594 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1595 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1596 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1597 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1598 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1599 | .tuner_addr = ADDR_UNSET, |
| 1600 | }, |
| 1601 | |
| 1602 | /* ---- card 0x50 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1603 | [BTTV_BOARD_HAUPPAUGEPVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1604 | .name = "Hauppauge WinTV PVR", |
| 1605 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1606 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1607 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1608 | .muxsel = MUXSEL(2, 0, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1609 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1610 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1611 | .tuner_addr = ADDR_UNSET, |
| 1612 | |
| 1613 | .gpiomask = 7, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1614 | .gpiomux = {7}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1615 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1616 | [BTTV_BOARD_GVBCTV5PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1617 | .name = "IODATA GV-BCTV5/PCI", |
| 1618 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1619 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1620 | .svhs = 2, |
| 1621 | .gpiomask = 0x0f0f80, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1622 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1623 | .gpiomux = {0x030000, 0x010000, 0, 0 }, |
| 1624 | .gpiomute = 0x020000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1625 | .no_msp34xx = 1, |
| 1626 | .pll = PLL_28, |
| 1627 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 1628 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1629 | .audio_mode_gpio= gvbctv5pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1630 | .has_radio = 1, |
| 1631 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1632 | [BTTV_BOARD_OSPREY1x0] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1633 | .name = "Osprey 100/150 (878)", /* 0x1(2|3)-45C6-C1 */ |
| 1634 | .video_inputs = 4, /* id-inputs-clock */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1635 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1636 | .svhs = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1637 | .muxsel = MUXSEL(3, 2, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1638 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1639 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1640 | .tuner_addr = ADDR_UNSET, |
| 1641 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1642 | .no_tda7432 = 1, |
| 1643 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1644 | [BTTV_BOARD_OSPREY1x0_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1645 | .name = "Osprey 100/150 (848)", /* 0x04-54C0-C1 & older boards */ |
| 1646 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1647 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1648 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1649 | .muxsel = MUXSEL(2, 3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1650 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1651 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1652 | .tuner_addr = ADDR_UNSET, |
| 1653 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1654 | .no_tda7432 = 1, |
| 1655 | }, |
| 1656 | |
| 1657 | /* ---- card 0x54 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1658 | [BTTV_BOARD_OSPREY101_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1659 | .name = "Osprey 101 (848)", /* 0x05-40C0-C1 */ |
| 1660 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1661 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1662 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1663 | .muxsel = MUXSEL(3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1664 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1665 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1666 | .tuner_addr = ADDR_UNSET, |
| 1667 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1668 | .no_tda7432 = 1, |
| 1669 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1670 | [BTTV_BOARD_OSPREY1x1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1671 | .name = "Osprey 101/151", /* 0x1(4|5)-0004-C4 */ |
| 1672 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1673 | /* .audio_inputs= 0, */ |
| 1674 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1675 | .muxsel = MUXSEL(0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1676 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1677 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1678 | .tuner_addr = ADDR_UNSET, |
| 1679 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1680 | .no_tda7432 = 1, |
| 1681 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1682 | [BTTV_BOARD_OSPREY1x1_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1683 | .name = "Osprey 101/151 w/ svid", /* 0x(16|17|20)-00C4-C1 */ |
| 1684 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1685 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1686 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1687 | .muxsel = MUXSEL(0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1688 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1689 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1690 | .tuner_addr = ADDR_UNSET, |
| 1691 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1692 | .no_tda7432 = 1, |
| 1693 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1694 | [BTTV_BOARD_OSPREY2xx] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1695 | .name = "Osprey 200/201/250/251", /* 0x1(8|9|E|F)-0004-C4 */ |
| 1696 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1697 | /* .audio_inputs= 1, */ |
| 1698 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1699 | .muxsel = MUXSEL(0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1700 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1701 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1702 | .tuner_addr = ADDR_UNSET, |
| 1703 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1704 | .no_tda7432 = 1, |
| 1705 | }, |
| 1706 | |
| 1707 | /* ---- card 0x58 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1708 | [BTTV_BOARD_OSPREY2x0_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1709 | .name = "Osprey 200/250", /* 0x1(A|B)-00C4-C1 */ |
| 1710 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1711 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1712 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1713 | .muxsel = MUXSEL(0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1714 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1715 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1716 | .tuner_addr = ADDR_UNSET, |
| 1717 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1718 | .no_tda7432 = 1, |
| 1719 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1720 | [BTTV_BOARD_OSPREY2x0] = { |
Michael Krufky | 52398ef | 2006-05-26 02:13:15 -0300 | [diff] [blame] | 1721 | .name = "Osprey 210/220/230", /* 0x1(A|B)-04C0-C1 */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1722 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1723 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1724 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1725 | .muxsel = MUXSEL(2, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1726 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1727 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1728 | .tuner_addr = ADDR_UNSET, |
| 1729 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1730 | .no_tda7432 = 1, |
| 1731 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1732 | [BTTV_BOARD_OSPREY500] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1733 | .name = "Osprey 500", /* 500 */ |
| 1734 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1735 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1736 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1737 | .muxsel = MUXSEL(2, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1738 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1739 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1740 | .tuner_addr = ADDR_UNSET, |
| 1741 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1742 | .no_tda7432 = 1, |
| 1743 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1744 | [BTTV_BOARD_OSPREY540] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1745 | .name = "Osprey 540", /* 540 */ |
| 1746 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1747 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1748 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1749 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1750 | .tuner_addr = ADDR_UNSET, |
| 1751 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1752 | .no_tda7432 = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1753 | }, |
| 1754 | |
| 1755 | /* ---- card 0x5C ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1756 | [BTTV_BOARD_OSPREY2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1757 | .name = "Osprey 2000", /* 2000 */ |
| 1758 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1759 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1760 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1761 | .muxsel = MUXSEL(2, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1762 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1763 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1764 | .tuner_addr = ADDR_UNSET, |
| 1765 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1766 | .no_tda7432 = 1, /* must avoid, conflicts with the bt860 */ |
| 1767 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1768 | [BTTV_BOARD_IDS_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1769 | /* M G Berberich <berberic@forwiss.uni-passau.de> */ |
| 1770 | .name = "IDS Eagle", |
| 1771 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1772 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1773 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1774 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1775 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1776 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1777 | .muxsel = MUXSEL(2, 2, 2, 2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1778 | .muxsel_hook = eagle_muxsel, |
| 1779 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1780 | .pll = PLL_28, |
| 1781 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1782 | [BTTV_BOARD_PINNACLESAT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1783 | .name = "Pinnacle PCTV Sat", |
| 1784 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1785 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1786 | .svhs = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1787 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1788 | .tuner_addr = ADDR_UNSET, |
| 1789 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1790 | .no_tda7432 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1791 | .muxsel = MUXSEL(3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1792 | .pll = PLL_28, |
| 1793 | .no_gpioirq = 1, |
| 1794 | .has_dvb = 1, |
| 1795 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1796 | [BTTV_BOARD_FORMAC_PROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1797 | .name = "Formac ProTV II (bt878)", |
| 1798 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1799 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1800 | .svhs = 3, |
| 1801 | .gpiomask = 2, |
| 1802 | /* TV, Comp1, Composite over SVID con, SVID */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1803 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1804 | .gpiomux = { 2, 2, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1805 | .pll = PLL_28, |
| 1806 | .has_radio = 1, |
| 1807 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1808 | .tuner_addr = ADDR_UNSET, |
| 1809 | /* sound routing: |
| 1810 | GPIO=0x00,0x01,0x03: mute (?) |
| 1811 | 0x02: both TV and radio (tuner: FM1216/I) |
| 1812 | The card has onboard audio connectors labeled "cdrom" and "board", |
| 1813 | not soldered here, though unknown wiring. |
| 1814 | Card lacks: external audio in, pci subsystem id. |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 1815 | */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1816 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1817 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1818 | /* ---- card 0x60 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1819 | [BTTV_BOARD_MACHTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1820 | .name = "MachTV", |
| 1821 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1822 | /* .audio_inputs= 1, */ |
| 1823 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1824 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1825 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1826 | .gpiomux = { 0, 1, 2, 3}, |
| 1827 | .gpiomute = 4, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1828 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1829 | .tuner_addr = ADDR_UNSET, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 1830 | .pll = PLL_28, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1831 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1832 | [BTTV_BOARD_EURESYS_PICOLO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1833 | .name = "Euresys Picolo", |
| 1834 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1835 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1836 | .svhs = 2, |
| 1837 | .gpiomask = 0, |
| 1838 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1839 | .no_tda7432 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1840 | .muxsel = MUXSEL(2, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1841 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1842 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1843 | .tuner_addr = ADDR_UNSET, |
| 1844 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1845 | [BTTV_BOARD_PV150] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1846 | /* Luc Van Hoeylandt <luc@e-magic.be> */ |
| 1847 | .name = "ProVideo PV150", /* 0x4f */ |
| 1848 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1849 | /* .audio_inputs= 0, */ |
| 1850 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1851 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1852 | .muxsel = MUXSEL(2, 3), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1853 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1854 | .no_msp34xx = 1, |
| 1855 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1856 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1857 | .tuner_addr = ADDR_UNSET, |
| 1858 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1859 | [BTTV_BOARD_AD_TVK503] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1860 | /* Hiroshi Takekawa <sian@big.or.jp> */ |
| 1861 | /* This card lacks subsystem ID */ |
| 1862 | .name = "AD-TVK503", /* 0x63 */ |
| 1863 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1864 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1865 | .svhs = 2, |
| 1866 | .gpiomask = 0x001e8007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1867 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1868 | /* Tuner, Radio, external, internal, off, on */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1869 | .gpiomux = { 0x08, 0x0f, 0x0a, 0x08 }, |
| 1870 | .gpiomute = 0x0f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1871 | .no_msp34xx = 1, |
| 1872 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1873 | .tuner_type = TUNER_PHILIPS_NTSC, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1874 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1875 | .audio_mode_gpio= adtvk503_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1876 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1877 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1878 | /* ---- card 0x64 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1879 | [BTTV_BOARD_HERCULES_SM_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1880 | .name = "Hercules Smart TV Stereo", |
| 1881 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1882 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1883 | .svhs = 2, |
| 1884 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1885 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1886 | .no_msp34xx = 1, |
| 1887 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1888 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1889 | .tuner_addr = ADDR_UNSET, |
| 1890 | /* Notes: |
| 1891 | - card lacks subsystem ID |
| 1892 | - stereo variant w/ daughter board with tda9874a @0xb0 |
| 1893 | - Audio Routing: |
| 1894 | always from tda9874 independent of GPIO (?) |
| 1895 | external line in: unknown |
| 1896 | - Other chips: em78p156elp @ 0x96 (probably IR remote control) |
| 1897 | hef4053 (instead 4052) for unknown function |
| 1898 | */ |
| 1899 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1900 | [BTTV_BOARD_PACETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1901 | .name = "Pace TV & Radio Card", |
| 1902 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1903 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1904 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1905 | /* Tuner, CVid, SVid, CVid over SVid connector */ |
| 1906 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1907 | .gpiomask = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1908 | .no_tda7432 = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1909 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1910 | .tuner_addr = ADDR_UNSET, |
| 1911 | .has_radio = 1, |
| 1912 | .pll = PLL_28, |
| 1913 | /* Bt878, Bt832, FI1246 tuner; no pci subsystem id |
| 1914 | only internal line out: (4pin header) RGGL |
| 1915 | Radio must be decoded by msp3410d (not routed through)*/ |
| 1916 | /* |
| 1917 | .digital_mode = DIGITAL_MODE_CAMERA, todo! |
| 1918 | */ |
| 1919 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1920 | [BTTV_BOARD_IVC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1921 | /* Chris Willing <chris@vislab.usyd.edu.au> */ |
| 1922 | .name = "IVC-200", |
| 1923 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1924 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1925 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1926 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1927 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1928 | .gpiomask = 0xdf, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1929 | .muxsel = MUXSEL(2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1930 | .pll = PLL_28, |
| 1931 | }, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1932 | [BTTV_BOARD_IVCE8784] = { |
| 1933 | .name = "IVCE-8784", |
| 1934 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1935 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1936 | .tuner_type = TUNER_ABSENT, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1937 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1938 | .svhs = NO_SVHS, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1939 | .gpiomask = 0xdf, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1940 | .muxsel = MUXSEL(2), |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1941 | .pll = PLL_28, |
| 1942 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1943 | [BTTV_BOARD_XGUARD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1944 | .name = "Grand X-Guard / Trust 814PCI", |
| 1945 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1946 | /* .audio_inputs= 0, */ |
| 1947 | .svhs = NO_SVHS, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1948 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1949 | .tuner_addr = ADDR_UNSET, |
| 1950 | .gpiomask2 = 0xff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1951 | .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] | 1952 | .muxsel_hook = xguard_muxsel, |
| 1953 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1954 | .no_tda7432 = 1, |
| 1955 | .pll = PLL_28, |
| 1956 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1957 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1958 | /* ---- card 0x68 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1959 | [BTTV_BOARD_NEBULA_DIGITV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1960 | .name = "Nebula Electronics DigiTV", |
| 1961 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1962 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1963 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1964 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1965 | .no_tda7432 = 1, |
| 1966 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1967 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1968 | .tuner_addr = ADDR_UNSET, |
| 1969 | .has_dvb = 1, |
Mark Weaver | 6c6c0b2 | 2005-11-13 16:07:52 -0800 | [diff] [blame] | 1970 | .has_remote = 1, |
| 1971 | .gpiomask = 0x1b, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1972 | .no_gpioirq = 1, |
| 1973 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1974 | [BTTV_BOARD_PV143] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1975 | /* Jorge Boncompte - DTI2 <jorge@dti2.net> */ |
| 1976 | .name = "ProVideo PV143", |
| 1977 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1978 | /* .audio_inputs= 0, */ |
| 1979 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1980 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1981 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1982 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1983 | .no_msp34xx = 1, |
| 1984 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1985 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1986 | .tuner_addr = ADDR_UNSET, |
| 1987 | }, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 1988 | [BTTV_BOARD_VD009X1_VD011_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1989 | /* M.Klahr@phytec.de */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 1990 | .name = "PHYTEC VD-009-X1 VD-011 MiniDIN (bt878)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1991 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1992 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1993 | .svhs = 3, |
| 1994 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1995 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1996 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1997 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1998 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1999 | .tuner_addr = ADDR_UNSET, |
| 2000 | }, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2001 | [BTTV_BOARD_VD009X1_VD011_COMBI] = { |
| 2002 | .name = "PHYTEC VD-009-X1 VD-011 Combi (bt878)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2003 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2004 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2005 | .svhs = 3, |
| 2006 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2007 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2008 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2009 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2010 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2011 | .tuner_addr = ADDR_UNSET, |
| 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 0x6c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2015 | [BTTV_BOARD_VD009_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2016 | .name = "PHYTEC VD-009 MiniDIN (bt878)", |
| 2017 | .video_inputs = 10, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2018 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2019 | .svhs = 9, |
| 2020 | .gpiomask = 0x00, |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2021 | .gpiomask2 = 0x03, /* used for external vodeo mux */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2022 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 0), |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2023 | .muxsel_hook = phytec_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2024 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2025 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2026 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2027 | .tuner_addr = ADDR_UNSET, |
| 2028 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2029 | [BTTV_BOARD_VD009_COMBI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2030 | .name = "PHYTEC VD-009 Combi (bt878)", |
| 2031 | .video_inputs = 10, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2032 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2033 | .svhs = 9, |
| 2034 | .gpiomask = 0x00, |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2035 | .gpiomask2 = 0x03, /* used for external vodeo mux */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2036 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1), |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2037 | .muxsel_hook = phytec_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2038 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2039 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2040 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2041 | .tuner_addr = ADDR_UNSET, |
| 2042 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2043 | [BTTV_BOARD_IVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2044 | .name = "IVC-100", |
| 2045 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2046 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2047 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2048 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2049 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2050 | .gpiomask = 0xdf, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2051 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2052 | .pll = PLL_28, |
| 2053 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2054 | [BTTV_BOARD_IVC120] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2055 | /* IVC-120G - Alan Garfield <alan@fromorbit.com> */ |
| 2056 | .name = "IVC-120G", |
| 2057 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2058 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2059 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2060 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2061 | .svhs = NO_SVHS, /* card has no svhs */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2062 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2063 | .no_tda7432 = 1, |
| 2064 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2065 | .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] | 2066 | .muxsel_hook = ivc120_muxsel, |
| 2067 | .pll = PLL_28, |
| 2068 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2069 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2070 | /* ---- card 0x70 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2071 | [BTTV_BOARD_PC_HDTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2072 | .name = "pcHDTV HD-2000 TV", |
| 2073 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2074 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2075 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2076 | .muxsel = MUXSEL(2, 3, 1, 0), |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 2077 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2078 | .tuner_addr = ADDR_UNSET, |
| 2079 | .has_dvb = 1, |
| 2080 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2081 | [BTTV_BOARD_TWINHAN_DST] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2082 | .name = "Twinhan DST + clones", |
| 2083 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2084 | .no_tda7432 = 1, |
| 2085 | .tuner_type = TUNER_ABSENT, |
| 2086 | .tuner_addr = ADDR_UNSET, |
| 2087 | .no_video = 1, |
| 2088 | .has_dvb = 1, |
| 2089 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2090 | [BTTV_BOARD_WINFASTVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2091 | .name = "Winfast VC100", |
| 2092 | .video_inputs = 3, |
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 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2095 | /* Vid In, SVid In, Vid over SVid in connector */ |
| 2096 | .muxsel = MUXSEL(3, 1, 1, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2097 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2098 | .no_tda7432 = 1, |
| 2099 | .tuner_type = TUNER_ABSENT, |
| 2100 | .tuner_addr = ADDR_UNSET, |
| 2101 | .pll = PLL_28, |
| 2102 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2103 | [BTTV_BOARD_TEV560] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2104 | .name = "Teppro TEV-560/InterVision IV-560", |
| 2105 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2106 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2107 | .svhs = 2, |
| 2108 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2109 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2110 | .gpiomux = { 1, 1, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2111 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2112 | .tuner_addr = ADDR_UNSET, |
| 2113 | .pll = PLL_35, |
| 2114 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2115 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2116 | /* ---- card 0x74 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2117 | [BTTV_BOARD_SIMUS_GVC1100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2118 | .name = "SIMUS GVC1100", |
| 2119 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2120 | /* .audio_inputs= 0, */ |
| 2121 | .svhs = NO_SVHS, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2122 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2123 | .tuner_addr = ADDR_UNSET, |
| 2124 | .pll = PLL_28, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2125 | .muxsel = MUXSEL(2, 2, 2, 2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2126 | .gpiomask = 0x3F, |
| 2127 | .muxsel_hook = gvc1100_muxsel, |
| 2128 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2129 | [BTTV_BOARD_NGSTV_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2130 | /* Carlos Silva r3pek@r3pek.homelinux.org || card 0x75 */ |
| 2131 | .name = "NGS NGSTV+", |
| 2132 | .video_inputs = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2133 | .svhs = 2, |
| 2134 | .gpiomask = 0x008007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2135 | .muxsel = MUXSEL(2, 3, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2136 | .gpiomux = { 0, 0, 0, 0 }, |
| 2137 | .gpiomute = 0x000003, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2138 | .pll = PLL_28, |
| 2139 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2140 | .tuner_addr = ADDR_UNSET, |
| 2141 | .has_remote = 1, |
| 2142 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2143 | [BTTV_BOARD_LMLBT4] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2144 | /* http://linuxmedialabs.com */ |
| 2145 | .name = "LMLBT4", |
| 2146 | .video_inputs = 4, /* IN1,IN2,IN3,IN4 */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2147 | /* .audio_inputs= 0, */ |
| 2148 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2149 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2150 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2151 | .no_tda7432 = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2152 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2153 | .tuner_addr = ADDR_UNSET, |
| 2154 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2155 | [BTTV_BOARD_TEKRAM_M205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2156 | /* Helmroos Harri <harri.helmroos@pp.inet.fi> */ |
| 2157 | .name = "Tekram M205 PRO", |
| 2158 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2159 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2160 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2161 | .tuner_addr = ADDR_UNSET, |
| 2162 | .svhs = 2, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2163 | .gpiomask = 0x68, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2164 | .muxsel = MUXSEL(2, 3, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2165 | .gpiomux = { 0x68, 0x68, 0x61, 0x61 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2166 | .pll = PLL_28, |
| 2167 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2168 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2169 | /* ---- card 0x78 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2170 | [BTTV_BOARD_CONTVFMI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2171 | /* Javier Cendan Ares <jcendan@lycos.es> */ |
| 2172 | /* bt878 TV + FM without subsystem ID */ |
| 2173 | .name = "Conceptronic CONTVFMi", |
| 2174 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2175 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2176 | .svhs = 2, |
| 2177 | .gpiomask = 0x008007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2178 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2179 | .gpiomux = { 0, 1, 2, 2 }, |
| 2180 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2181 | .pll = PLL_28, |
| 2182 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2183 | .tuner_addr = ADDR_UNSET, |
| 2184 | .has_remote = 1, |
| 2185 | .has_radio = 1, |
| 2186 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2187 | [BTTV_BOARD_PICOLO_TETRA_CHIP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2188 | /*Eric DEBIEF <debief@telemsa.com>*/ |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 2189 | /*EURESYS Picolo Tetra : 4 Conexant Fusion 878A, no audio, video input set with analog multiplexers GPIO controlled*/ |
| 2190 | /* adds picolo_tetra_muxsel(), picolo_tetra_init(), the following declaration strucure, and #define BTTV_BOARD_PICOLO_TETRA_CHIP*/ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2191 | /*0x79 in bttv.h*/ |
| 2192 | .name = "Euresys Picolo Tetra", |
| 2193 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2194 | /* .audio_inputs= 0, */ |
| 2195 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2196 | .gpiomask = 0, |
| 2197 | .gpiomask2 = 0x3C<<16,/*Set the GPIO[18]->GPIO[21] as output pin.==> drive the video inputs through analog multiplexers*/ |
| 2198 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2199 | .no_tda7432 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2200 | /*878A input is always MUX0, see above.*/ |
| 2201 | .muxsel = MUXSEL(2, 2, 2, 2), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2202 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2203 | .pll = PLL_28, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2204 | .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] | 2205 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2206 | .tuner_addr = ADDR_UNSET, |
| 2207 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2208 | [BTTV_BOARD_SPIRIT_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2209 | /* Spirit TV Tuner from http://spiritmodems.com.au */ |
| 2210 | /* Stafford Goodsell <surge@goliath.homeunix.org> */ |
| 2211 | .name = "Spirit TV Tuner", |
| 2212 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2213 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2214 | .svhs = 2, |
| 2215 | .gpiomask = 0x0000000f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2216 | .muxsel = MUXSEL(2, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2217 | .gpiomux = { 0x02, 0x00, 0x00, 0x00 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2218 | .tuner_type = TUNER_TEMIC_PAL, |
| 2219 | .tuner_addr = ADDR_UNSET, |
| 2220 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2221 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2222 | [BTTV_BOARD_AVDVBT_771] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2223 | /* Wolfram Joost <wojo@frokaschwei.de> */ |
| 2224 | .name = "AVerMedia AVerTV DVB-T 771", |
| 2225 | .video_inputs = 2, |
| 2226 | .svhs = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2227 | .tuner_type = TUNER_ABSENT, |
| 2228 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2229 | .muxsel = MUXSEL(3, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2230 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2231 | .no_tda7432 = 1, |
| 2232 | .pll = PLL_28, |
| 2233 | .has_dvb = 1, |
| 2234 | .no_gpioirq = 1, |
| 2235 | .has_remote = 1, |
| 2236 | }, |
| 2237 | /* ---- card 0x7c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2238 | [BTTV_BOARD_AVDVBT_761] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2239 | /* Matt Jesson <dvb@jesson.eclipse.co.uk> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2240 | /* 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] | 2241 | .name = "AverMedia AverTV DVB-T 761", |
| 2242 | .video_inputs = 2, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2243 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2244 | .muxsel = MUXSEL(3, 1, 2, 0), /* Comp0, S-Video, ?, ? */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2245 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2246 | .no_tda7432 = 1, |
| 2247 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2248 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2249 | .tuner_addr = ADDR_UNSET, |
| 2250 | .has_dvb = 1, |
| 2251 | .no_gpioirq = 1, |
| 2252 | .has_remote = 1, |
| 2253 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2254 | [BTTV_BOARD_MATRIX_VISIONSQ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2255 | /* andre.schwarz@matrix-vision.de */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2256 | .name = "MATRIX Vision Sigma-SQ", |
| 2257 | .video_inputs = 16, |
| 2258 | /* .audio_inputs= 0, */ |
| 2259 | .svhs = NO_SVHS, |
| 2260 | .gpiomask = 0x0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2261 | .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] | 2262 | .muxsel_hook = sigmaSQ_muxsel, |
| 2263 | .gpiomux = { 0 }, |
| 2264 | .no_msp34xx = 1, |
| 2265 | .pll = PLL_28, |
| 2266 | .tuner_type = TUNER_ABSENT, |
| 2267 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2268 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2269 | [BTTV_BOARD_MATRIX_VISIONSLC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2270 | /* andre.schwarz@matrix-vision.de */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2271 | .name = "MATRIX Vision Sigma-SLC", |
| 2272 | .video_inputs = 4, |
| 2273 | /* .audio_inputs= 0, */ |
| 2274 | .svhs = NO_SVHS, |
| 2275 | .gpiomask = 0x0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2276 | .muxsel = MUXSEL(2, 2, 2, 2), |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2277 | .muxsel_hook = sigmaSLC_muxsel, |
| 2278 | .gpiomux = { 0 }, |
| 2279 | .no_msp34xx = 1, |
| 2280 | .pll = PLL_28, |
| 2281 | .tuner_type = TUNER_ABSENT, |
| 2282 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2283 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2284 | /* BTTV_BOARD_APAC_VIEWCOMP */ |
| 2285 | [BTTV_BOARD_APAC_VIEWCOMP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2286 | /* Attila Kondoros <attila.kondoros@chello.hu> */ |
| 2287 | /* bt878 TV + FM 0x00000000 subsystem ID */ |
| 2288 | .name = "APAC Viewcomp 878(AMAX)", |
| 2289 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2290 | /* .audio_inputs= 1, */ |
| 2291 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2292 | .gpiomask = 0xFF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2293 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2294 | .gpiomux = { 2, 0, 0, 0 }, |
| 2295 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2296 | .pll = PLL_28, |
| 2297 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2298 | .tuner_addr = ADDR_UNSET, |
| 2299 | .has_remote = 1, /* miniremote works, see ir-kbd-gpio.c */ |
| 2300 | .has_radio = 1, /* not every card has radio */ |
| 2301 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2302 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2303 | /* ---- card 0x80 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2304 | [BTTV_BOARD_DVICO_DVBT_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2305 | /* Chris Pascoe <c.pascoe@itee.uq.edu.au> */ |
| 2306 | .name = "DViCO FusionHDTV DVB-T Lite", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2307 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2308 | .no_tda7432 = 1, |
| 2309 | .pll = PLL_28, |
| 2310 | .no_video = 1, |
| 2311 | .has_dvb = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2312 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2313 | .tuner_addr = ADDR_UNSET, |
| 2314 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2315 | [BTTV_BOARD_VGEAR_MYVCD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2316 | /* Steven <photon38@pchome.com.tw> */ |
| 2317 | .name = "V-Gear MyVCD", |
| 2318 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2319 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2320 | .svhs = 2, |
| 2321 | .gpiomask = 0x3f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2322 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2323 | .gpiomux = {0x31, 0x31, 0x31, 0x31 }, |
| 2324 | .gpiomute = 0x31, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2325 | .no_msp34xx = 1, |
| 2326 | .pll = PLL_28, |
| 2327 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 2328 | .tuner_addr = ADDR_UNSET, |
| 2329 | .has_radio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2330 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2331 | [BTTV_BOARD_SUPER_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2332 | /* Rick C <cryptdragoon@gmail.com> */ |
| 2333 | .name = "Super TV Tuner", |
| 2334 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2335 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2336 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2337 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2338 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 2339 | .tuner_addr = ADDR_UNSET, |
| 2340 | .gpiomask = 0x008007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2341 | .gpiomux = { 0, 0x000001,0,0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2342 | .has_radio = 1, |
| 2343 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2344 | [BTTV_BOARD_TIBET_CS16] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2345 | /* Chris Fanning <video4linux@haydon.net> */ |
| 2346 | .name = "Tibet Systems 'Progress DVR' CS16", |
| 2347 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2348 | /* .audio_inputs= 0, */ |
| 2349 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2350 | .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] | 2351 | .pll = PLL_28, |
| 2352 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2353 | .no_tda7432 = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2354 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2355 | .tuner_addr = ADDR_UNSET, |
| 2356 | .muxsel_hook = tibetCS16_muxsel, |
| 2357 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2358 | [BTTV_BOARD_KODICOM_4400R] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2359 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2360 | /* |
| 2361 | * Note that, because of the card's wiring, the "master" |
| 2362 | * BT878A chip (i.e. the one which controls the analog switch |
| 2363 | * and must use this card type) is the 2nd one detected. The |
| 2364 | * other 3 chips should use card type 0x85, whose description |
| 2365 | * follows this one. There is a EEPROM on the card (which is |
| 2366 | * connected to the I2C of one of those other chips), but is |
| 2367 | * not currently handled. There is also a facility for a |
| 2368 | * "monitor", which is also not currently implemented. |
| 2369 | */ |
| 2370 | .name = "Kodicom 4400R (master)", |
| 2371 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2372 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2373 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2374 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2375 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2376 | /* GPIO bits 0-9 used for analog switch: |
| 2377 | * 00 - 03: camera selector |
| 2378 | * 04 - 06: channel (controller) selector |
| 2379 | * 07: data (1->on, 0->off) |
| 2380 | * 08: strobe |
| 2381 | * 09: reset |
| 2382 | * bit 16 is input from sync separator for the channel |
| 2383 | */ |
| 2384 | .gpiomask = 0x0003ff, |
| 2385 | .no_gpioirq = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2386 | .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] | 2387 | .pll = PLL_28, |
| 2388 | .no_msp34xx = 1, |
| 2389 | .no_tda7432 = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2390 | .muxsel_hook = kodicom4400r_muxsel, |
| 2391 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2392 | [BTTV_BOARD_KODICOM_4400R_SL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2393 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2394 | /* Note that, for reasons unknown, the "master" BT878A chip (i.e. the |
| 2395 | * one which controls the analog switch, and must use the card type) |
| 2396 | * is the 2nd one detected. The other 3 chips should use this card |
| 2397 | * type |
| 2398 | */ |
| 2399 | .name = "Kodicom 4400R (slave)", |
| 2400 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2401 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2402 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2403 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2404 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2405 | .gpiomask = 0x010000, |
| 2406 | .no_gpioirq = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2407 | .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] | 2408 | .pll = PLL_28, |
| 2409 | .no_msp34xx = 1, |
| 2410 | .no_tda7432 = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2411 | .muxsel_hook = kodicom4400r_muxsel, |
| 2412 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2413 | /* ---- card 0x86---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2414 | [BTTV_BOARD_ADLINK_RTV24] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2415 | /* Michael Henson <mhenson@clarityvi.com> */ |
| 2416 | /* Adlink RTV24 with special unlock codes */ |
| 2417 | .name = "Adlink RTV24", |
| 2418 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2419 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2420 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2421 | .muxsel = MUXSEL(2, 3, 1, 0), |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2422 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2423 | .tuner_addr = ADDR_UNSET, |
| 2424 | .pll = PLL_28, |
| 2425 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2426 | /* ---- card 0x87---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2427 | [BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2428 | /* Michael Krufky <mkrufky@m1k.net> */ |
| 2429 | .name = "DViCO FusionHDTV 5 Lite", |
Michael Krufky | 9c26c8b | 2006-04-27 01:29:17 -0300 | [diff] [blame] | 2430 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2431 | .tuner_addr = ADDR_UNSET, |
Michael Krufky | 4b01741 | 2005-11-08 21:37:06 -0800 | [diff] [blame] | 2432 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2433 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2434 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2435 | .muxsel = MUXSEL(2, 3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2436 | .gpiomask = 0x00e00007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2437 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
| 2438 | .gpiomute = 0x00c00007, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2439 | .no_msp34xx = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2440 | .no_tda7432 = 1, |
| 2441 | .has_dvb = 1, |
| 2442 | }, |
| 2443 | /* ---- card 0x88---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2444 | [BTTV_BOARD_ACORP_Y878F] = { |
Mauro Carvalho Chehab | 2e7c6dc | 2006-04-03 07:53:40 -0300 | [diff] [blame] | 2445 | /* Mauro Carvalho Chehab <mchehab@infradead.org> */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2446 | .name = "Acorp Y878F", |
| 2447 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2448 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2449 | .svhs = 2, |
| 2450 | .gpiomask = 0x01fe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2451 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2452 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 2453 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2454 | .pll = PLL_28, |
| 2455 | .tuner_type = TUNER_YMEC_TVF66T5_B_DFF, |
| 2456 | .tuner_addr = 0xc1 >>1, |
| 2457 | .has_radio = 1, |
| 2458 | }, |
| 2459 | /* ---- card 0x89 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2460 | [BTTV_BOARD_CONCEPTRONIC_CTVFMI2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2461 | .name = "Conceptronic CTVFMi v2", |
| 2462 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2463 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2464 | .svhs = 2, |
| 2465 | .gpiomask = 0x001c0007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2466 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2467 | .gpiomux = { 0, 1, 2, 2 }, |
| 2468 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2469 | .pll = PLL_28, |
Ricardo Cerqueira | 24d4122 | 2005-11-08 21:38:21 -0800 | [diff] [blame] | 2470 | .tuner_type = TUNER_TENA_9533_DI, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2471 | .tuner_addr = ADDR_UNSET, |
| 2472 | .has_remote = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2473 | .has_radio = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2474 | }, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2475 | /* ---- card 0x8a ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2476 | [BTTV_BOARD_PV_BT878P_2E] = { |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2477 | .name = "Prolink Pixelview PV-BT878P+ (Rev.2E)", |
| 2478 | .video_inputs = 5, |
| 2479 | /* .audio_inputs= 1, */ |
| 2480 | .svhs = 3, |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2481 | .has_dig_in = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2482 | .gpiomask = 0x01fe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2483 | .muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2484 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
| 2485 | .gpiomux = { 0x00400, 0x10400, 0x04400, 0x80000 }, |
| 2486 | .gpiomute = 0x12400, |
| 2487 | .no_msp34xx = 1, |
| 2488 | .pll = PLL_28, |
| 2489 | .tuner_type = TUNER_LG_PAL_FM, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2490 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2491 | .has_remote = 1, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2492 | }, |
| 2493 | /* ---- card 0x8b ---------------------------------- */ |
| 2494 | [BTTV_BOARD_PV_M4900] = { |
Jan Engelhardt | 96de0e2 | 2007-10-19 23:21:04 +0200 | [diff] [blame] | 2495 | /* Sérgio Fortier <sergiofortier@yahoo.com.br> */ |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2496 | .name = "Prolink PixelView PlayTV MPEG2 PV-M4900", |
| 2497 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2498 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2499 | .svhs = 2, |
| 2500 | .gpiomask = 0x3f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2501 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2502 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 2503 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2504 | .no_msp34xx = 1, |
| 2505 | .pll = PLL_28, |
| 2506 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
| 2507 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2508 | .has_radio = 1, |
| 2509 | .has_remote = 1, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2510 | }, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 2511 | /* ---- card 0x8c ---------------------------------- */ |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2512 | /* Has four Bt878 chips behind a PCI bridge, each chip has: |
| 2513 | one external BNC composite input (mux 2) |
| 2514 | three internal composite inputs (unknown muxes) |
| 2515 | an 18-bit stereo A/D (CS5331A), which has: |
| 2516 | one external stereo unblanced (RCA) audio connection |
| 2517 | one (or 3?) internal stereo balanced (XLR) audio connection |
| 2518 | input is selected via gpio to a 14052B mux |
| 2519 | (mask=0x300, unbal=0x000, bal=0x100, ??=0x200,0x300) |
| 2520 | gain is controlled via an X9221A chip on the I2C bus @0x28 |
| 2521 | sample rate is controlled via gpio to an MK1413S |
| 2522 | (mask=0x3, 32kHz=0x0, 44.1kHz=0x1, 48kHz=0x2, ??=0x3) |
| 2523 | There is neither a tuner nor an svideo input. */ |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2524 | [BTTV_BOARD_OSPREY440] = { |
| 2525 | .name = "Osprey 440", |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2526 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2527 | /* .audio_inputs= 2, */ |
| 2528 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2529 | .muxsel = MUXSEL(2, 3, 0, 1), /* 3,0,1 are guesses */ |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2530 | .gpiomask = 0x303, |
| 2531 | .gpiomute = 0x000, /* int + 32kHz */ |
| 2532 | .gpiomux = { 0, 0, 0x000, 0x100}, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2533 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2534 | .tuner_type = TUNER_ABSENT, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2535 | .tuner_addr = ADDR_UNSET, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2536 | .no_msp34xx = 1, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2537 | .no_tda7432 = 1, |
| 2538 | }, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2539 | /* ---- card 0x8d ---------------------------------- */ |
| 2540 | [BTTV_BOARD_ASOUND_SKYEYE] = { |
| 2541 | .name = "Asound Skyeye PCTV", |
| 2542 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2543 | /* .audio_inputs= 1, */ |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2544 | .svhs = 2, |
| 2545 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2546 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2547 | .gpiomux = { 2, 0, 0, 0 }, |
| 2548 | .gpiomute = 1, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2549 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2550 | .tuner_type = TUNER_PHILIPS_NTSC, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2551 | .tuner_addr = ADDR_UNSET, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2552 | }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2553 | /* ---- card 0x8e ---------------------------------- */ |
| 2554 | [BTTV_BOARD_SABRENT_TVFM] = { |
| 2555 | .name = "Sabrent TV-FM (bttv version)", |
| 2556 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2557 | /* .audio_inputs= 1, */ |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2558 | .svhs = 2, |
| 2559 | .gpiomask = 0x108007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2560 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2561 | .gpiomux = { 100000, 100002, 100002, 100000 }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2562 | .no_msp34xx = 1, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2563 | .no_tda7432 = 1, |
| 2564 | .pll = PLL_28, |
| 2565 | .tuner_type = TUNER_TNF_5335MF, |
| 2566 | .tuner_addr = ADDR_UNSET, |
| 2567 | .has_radio = 1, |
| 2568 | }, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2569 | /* ---- card 0x8f ---------------------------------- */ |
| 2570 | [BTTV_BOARD_HAUPPAUGE_IMPACTVCB] = { |
| 2571 | .name = "Hauppauge ImpactVCB (bt878)", |
| 2572 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2573 | /* .audio_inputs= 0, */ |
| 2574 | .svhs = NO_SVHS, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2575 | .gpiomask = 0x0f, /* old: 7 */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2576 | .muxsel = MUXSEL(0, 1, 3, 2), /* Composite 0-3 */ |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2577 | .no_msp34xx = 1, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2578 | .no_tda7432 = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2579 | .tuner_type = TUNER_ABSENT, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2580 | .tuner_addr = ADDR_UNSET, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2581 | }, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2582 | [BTTV_BOARD_MACHTV_MAGICTV] = { |
| 2583 | /* Julian Calaby <julian.calaby@gmail.com> |
| 2584 | * Slightly different from original MachTV definition (0x60) |
| 2585 | |
| 2586 | * FIXME: RegSpy says gpiomask should be "0x001c800f", but it |
| 2587 | * stuffs up remote chip. Bug is a pin on the jaecs is not set |
| 2588 | * properly (methinks) causing no keyup bits being set */ |
| 2589 | |
| 2590 | .name = "MagicTV", /* rebranded MachTV */ |
| 2591 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2592 | /* .audio_inputs= 1, */ |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2593 | .svhs = 2, |
| 2594 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2595 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2596 | .gpiomux = { 0, 1, 2, 3 }, |
| 2597 | .gpiomute = 4, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2598 | .tuner_type = TUNER_TEMIC_4009FR5_PAL, |
| 2599 | .tuner_addr = ADDR_UNSET, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2600 | .pll = PLL_28, |
| 2601 | .has_radio = 1, |
| 2602 | .has_remote = 1, |
| 2603 | }, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2604 | [BTTV_BOARD_SSAI_SECURITY] = { |
| 2605 | .name = "SSAI Security Video Interface", |
| 2606 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2607 | /* .audio_inputs= 0, */ |
| 2608 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2609 | .muxsel = MUXSEL(0, 1, 2, 3), |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2610 | .tuner_type = TUNER_ABSENT, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2611 | .tuner_addr = ADDR_UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2612 | }, |
| 2613 | [BTTV_BOARD_SSAI_ULTRASOUND] = { |
| 2614 | .name = "SSAI Ultrasound Video Interface", |
| 2615 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2616 | /* .audio_inputs= 0, */ |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2617 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2618 | .muxsel = MUXSEL(2, 0, 1, 3), |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2619 | .tuner_type = TUNER_ABSENT, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2620 | .tuner_addr = ADDR_UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2621 | }, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2622 | /* ---- card 0x94---------------------------------- */ |
| 2623 | [BTTV_BOARD_DVICO_FUSIONHDTV_2] = { |
| 2624 | .name = "DViCO FusionHDTV 2", |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 2625 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2626 | .tuner_addr = ADDR_UNSET, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2627 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2628 | /* .audio_inputs= 1, */ |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2629 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2630 | .muxsel = MUXSEL(2, 3, 1), |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2631 | .gpiomask = 0x00e00007, |
| 2632 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
| 2633 | .gpiomute = 0x00c00007, |
| 2634 | .no_msp34xx = 1, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2635 | .no_tda7432 = 1, |
| 2636 | }, |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2637 | /* ---- card 0x95---------------------------------- */ |
| 2638 | [BTTV_BOARD_TYPHOON_TVTUNERPCI] = { |
| 2639 | .name = "Typhoon TV-Tuner PCI (50684)", |
| 2640 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2641 | /* .audio_inputs= 1, */ |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2642 | .svhs = 2, |
| 2643 | .gpiomask = 0x3014f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2644 | .muxsel = MUXSEL(2, 3, 1, 1), |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2645 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
| 2646 | .gpiomute = 10, |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2647 | .pll = PLL_28, |
| 2648 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 2649 | .tuner_addr = ADDR_UNSET, |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2650 | }, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2651 | [BTTV_BOARD_GEOVISION_GV600] = { |
| 2652 | /* emhn@usb.ve */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2653 | .name = "Geovision GV-600", |
| 2654 | .video_inputs = 16, |
| 2655 | /* .audio_inputs= 0, */ |
| 2656 | .svhs = NO_SVHS, |
| 2657 | .gpiomask = 0x0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2658 | .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] | 2659 | .muxsel_hook = geovision_muxsel, |
| 2660 | .gpiomux = { 0 }, |
| 2661 | .no_msp34xx = 1, |
| 2662 | .pll = PLL_28, |
| 2663 | .tuner_type = TUNER_ABSENT, |
| 2664 | .tuner_addr = ADDR_UNSET, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2665 | }, |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2666 | [BTTV_BOARD_KOZUMI_KTV_01C] = { |
| 2667 | /* Mauro Lacy <mauro@lacy.com.ar> |
| 2668 | * Based on MagicTV and Conceptronic CONTVFMi */ |
| 2669 | |
| 2670 | .name = "Kozumi KTV-01C", |
| 2671 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2672 | /* .audio_inputs= 1, */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2673 | .svhs = 2, |
| 2674 | .gpiomask = 0x008007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2675 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2676 | .gpiomux = { 0, 1, 2, 2 }, /* CONTVFMi */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2677 | .gpiomute = 3, /* CONTVFMi */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2678 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* TCL MK3 */ |
| 2679 | .tuner_addr = ADDR_UNSET, |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2680 | .pll = PLL_28, |
| 2681 | .has_radio = 1, |
| 2682 | .has_remote = 1, |
| 2683 | }, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2684 | [BTTV_BOARD_ENLTV_FM_2] = { |
| 2685 | /* Encore TV Tuner Pro ENL TV-FM-2 |
| 2686 | Mauro Carvalho Chehab <mchehab@infradead.org */ |
| 2687 | .name = "Encore ENL TV-FM-2", |
| 2688 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2689 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2690 | .svhs = 2, |
| 2691 | /* bit 6 -> IR disabled |
| 2692 | bit 18/17 = 00 -> mute |
| 2693 | 01 -> enable external audio input |
| 2694 | 10 -> internal audio input (mono?) |
| 2695 | 11 -> internal audio input |
| 2696 | */ |
| 2697 | .gpiomask = 0x060040, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2698 | .muxsel = MUXSEL(2, 3, 3), |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2699 | .gpiomux = { 0x60000, 0x60000, 0x20000, 0x20000 }, |
| 2700 | .gpiomute = 0, |
| 2701 | .tuner_type = TUNER_TCL_MF02GIP_5N, |
| 2702 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2703 | .pll = PLL_28, |
| 2704 | .has_radio = 1, |
| 2705 | .has_remote = 1, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2706 | }, |
| 2707 | [BTTV_BOARD_VD012] = { |
| 2708 | /* D.Heer@Phytec.de */ |
| 2709 | .name = "PHYTEC VD-012 (bt878)", |
| 2710 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2711 | /* .audio_inputs= 0, */ |
| 2712 | .svhs = NO_SVHS, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2713 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2714 | .muxsel = MUXSEL(0, 2, 3, 1), |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2715 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2716 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2717 | .tuner_type = TUNER_ABSENT, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2718 | .tuner_addr = ADDR_UNSET, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2719 | }, |
| 2720 | [BTTV_BOARD_VD012_X1] = { |
| 2721 | /* D.Heer@Phytec.de */ |
| 2722 | .name = "PHYTEC VD-012-X1 (bt878)", |
| 2723 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2724 | /* .audio_inputs= 0, */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2725 | .svhs = 3, |
| 2726 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2727 | .muxsel = MUXSEL(2, 3, 1), |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2728 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2729 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2730 | .tuner_type = TUNER_ABSENT, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2731 | .tuner_addr = ADDR_UNSET, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2732 | }, |
| 2733 | [BTTV_BOARD_VD012_X2] = { |
| 2734 | /* D.Heer@Phytec.de */ |
| 2735 | .name = "PHYTEC VD-012-X2 (bt878)", |
| 2736 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2737 | /* .audio_inputs= 0, */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2738 | .svhs = 3, |
| 2739 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2740 | .muxsel = MUXSEL(3, 2, 1), |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2741 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2742 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2743 | .tuner_type = TUNER_ABSENT, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2744 | .tuner_addr = ADDR_UNSET, |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 2745 | }, |
| 2746 | [BTTV_BOARD_GEOVISION_GV800S] = { |
| 2747 | /* Bruno Christo <bchristo@inf.ufsm.br> |
| 2748 | * |
| 2749 | * GeoVision GV-800(S) has 4 Conexant Fusion 878A: |
| 2750 | * 1 audio input per BT878A = 4 audio inputs |
| 2751 | * 4 video inputs per BT878A = 16 video inputs |
| 2752 | * This is the first BT878A chip of the GV-800(S). It's the |
| 2753 | * "master" chip and it controls the video inputs through an |
| 2754 | * analog multiplexer (a CD22M3494) via some GPIO pins. The |
| 2755 | * slaves should use card type 0x9e (following this one). |
| 2756 | * There is a EEPROM on the card which is currently not handled. |
| 2757 | * The audio input is not working yet. |
| 2758 | */ |
| 2759 | .name = "Geovision GV-800(S) (master)", |
| 2760 | .video_inputs = 4, |
| 2761 | /* .audio_inputs= 1, */ |
| 2762 | .tuner_type = TUNER_ABSENT, |
| 2763 | .tuner_addr = ADDR_UNSET, |
| 2764 | .svhs = NO_SVHS, |
| 2765 | .gpiomask = 0xf107f, |
| 2766 | .no_gpioirq = 1, |
| 2767 | .muxsel = MUXSEL(2, 2, 2, 2), |
| 2768 | .pll = PLL_28, |
| 2769 | .no_msp34xx = 1, |
| 2770 | .no_tda7432 = 1, |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 2771 | .muxsel_hook = gv800s_muxsel, |
| 2772 | }, |
| 2773 | [BTTV_BOARD_GEOVISION_GV800S_SL] = { |
| 2774 | /* Bruno Christo <bchristo@inf.ufsm.br> |
| 2775 | * |
| 2776 | * GeoVision GV-800(S) has 4 Conexant Fusion 878A: |
| 2777 | * 1 audio input per BT878A = 4 audio inputs |
| 2778 | * 4 video inputs per BT878A = 16 video inputs |
| 2779 | * The 3 other BT878A chips are "slave" chips of the GV-800(S) |
| 2780 | * and should use this card type. |
| 2781 | * The audio input is not working yet. |
| 2782 | */ |
| 2783 | .name = "Geovision GV-800(S) (slave)", |
| 2784 | .video_inputs = 4, |
| 2785 | /* .audio_inputs= 1, */ |
| 2786 | .tuner_type = TUNER_ABSENT, |
| 2787 | .tuner_addr = ADDR_UNSET, |
| 2788 | .svhs = NO_SVHS, |
| 2789 | .gpiomask = 0x00, |
| 2790 | .no_gpioirq = 1, |
| 2791 | .muxsel = MUXSEL(2, 2, 2, 2), |
| 2792 | .pll = PLL_28, |
| 2793 | .no_msp34xx = 1, |
| 2794 | .no_tda7432 = 1, |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 2795 | .muxsel_hook = gv800s_muxsel, |
| 2796 | }, |
Alan McIvor | dceaddb | 2009-03-12 21:43:34 -0300 | [diff] [blame] | 2797 | [BTTV_BOARD_PV183] = { |
| 2798 | .name = "ProVideo PV183", /* 0x9f */ |
| 2799 | .video_inputs = 2, |
| 2800 | /* .audio_inputs= 0, */ |
| 2801 | .svhs = NO_SVHS, |
| 2802 | .gpiomask = 0, |
| 2803 | .muxsel = MUXSEL(2, 3), |
| 2804 | .gpiomux = { 0 }, |
Alan McIvor | dceaddb | 2009-03-12 21:43:34 -0300 | [diff] [blame] | 2805 | .no_msp34xx = 1, |
| 2806 | .pll = PLL_28, |
| 2807 | .tuner_type = TUNER_ABSENT, |
| 2808 | .tuner_addr = ADDR_UNSET, |
| 2809 | }, |
Peter De Schrijver | de2843b | 2011-11-06 10:15:47 -0300 | [diff] [blame] | 2810 | [BTTV_BOARD_TVT_TD3116] = { |
| 2811 | .name = "Tongwei Video Technology TD-3116", |
| 2812 | .video_inputs = 16, |
| 2813 | .gpiomask = 0xc00ff, |
| 2814 | .muxsel = MUXSEL(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2), |
| 2815 | .muxsel_hook = td3116_muxsel, |
| 2816 | .svhs = NO_SVHS, |
| 2817 | .pll = PLL_28, |
| 2818 | .tuner_type = TUNER_ABSENT, |
| 2819 | }, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2820 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2821 | |
| 2822 | static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards); |
| 2823 | |
| 2824 | /* ----------------------------------------------------------------------- */ |
| 2825 | |
| 2826 | static unsigned char eeprom_data[256]; |
| 2827 | |
| 2828 | /* |
| 2829 | * identify card |
| 2830 | */ |
| 2831 | void __devinit bttv_idcard(struct bttv *btv) |
| 2832 | { |
| 2833 | unsigned int gpiobits; |
| 2834 | int i,type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2835 | |
| 2836 | /* read PCI subsystem ID */ |
Sergei Shtylyov | fa140014 | 2011-07-22 15:16:04 -0300 | [diff] [blame] | 2837 | btv->cardid = btv->c.pci->subsystem_device << 16; |
| 2838 | btv->cardid |= btv->c.pci->subsystem_vendor; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2839 | |
| 2840 | if (0 != btv->cardid && 0xffffffff != btv->cardid) { |
| 2841 | /* look for the card */ |
| 2842 | for (type = -1, i = 0; cards[i].id != 0; i++) |
| 2843 | if (cards[i].id == btv->cardid) |
| 2844 | type = i; |
| 2845 | |
| 2846 | if (type != -1) { |
| 2847 | /* found it */ |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 2848 | pr_info("%d: detected: %s [card=%d], PCI subsystem ID is %04x:%04x\n", |
| 2849 | btv->c.nr, cards[type].name, cards[type].cardnr, |
| 2850 | btv->cardid & 0xffff, |
| 2851 | (btv->cardid >> 16) & 0xffff); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2852 | btv->c.type = cards[type].cardnr; |
| 2853 | } else { |
| 2854 | /* 404 */ |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 2855 | pr_info("%d: subsystem: %04x:%04x (UNKNOWN)\n", |
| 2856 | btv->c.nr, btv->cardid & 0xffff, |
| 2857 | (btv->cardid >> 16) & 0xffff); |
| 2858 | pr_debug("please mail id, board name and the correct card= insmod option to linux-media@vger.kernel.org\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2859 | } |
| 2860 | } |
| 2861 | |
| 2862 | /* let the user override the autodetected type */ |
| 2863 | if (card[btv->c.nr] < bttv_num_tvcards) |
| 2864 | btv->c.type=card[btv->c.nr]; |
| 2865 | |
| 2866 | /* print which card config we are using */ |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 2867 | pr_info("%d: using: %s [card=%d,%s]\n", |
| 2868 | btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type, |
| 2869 | card[btv->c.nr] < bttv_num_tvcards |
| 2870 | ? "insmod option" : "autodetected"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2871 | |
| 2872 | /* overwrite gpio stuff ?? */ |
| 2873 | if (UNSET == audioall && UNSET == audiomux[0]) |
| 2874 | return; |
| 2875 | |
| 2876 | if (UNSET != audiomux[0]) { |
| 2877 | gpiobits = 0; |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 2878 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2879 | bttv_tvcards[btv->c.type].gpiomux[i] = audiomux[i]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2880 | gpiobits |= audiomux[i]; |
| 2881 | } |
| 2882 | } else { |
| 2883 | gpiobits = audioall; |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 2884 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2885 | bttv_tvcards[btv->c.type].gpiomux[i] = audioall; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2886 | } |
| 2887 | } |
| 2888 | bttv_tvcards[btv->c.type].gpiomask = (UNSET != gpiomask) ? gpiomask : gpiobits; |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 2889 | pr_info("%d: gpio config override: mask=0x%x, mux=", |
| 2890 | btv->c.nr, bttv_tvcards[btv->c.type].gpiomask); |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 2891 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 2892 | pr_cont("%s0x%x", |
| 2893 | i ? "," : "", bttv_tvcards[btv->c.type].gpiomux[i]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2894 | } |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 2895 | pr_cont("\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2896 | } |
| 2897 | |
| 2898 | /* |
| 2899 | * (most) board specific initialisations goes here |
| 2900 | */ |
| 2901 | |
| 2902 | /* Some Modular Technology cards have an eeprom, but no subsystem ID */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 2903 | 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] | 2904 | { |
| 2905 | int type = -1; |
| 2906 | |
| 2907 | if (0 == strncmp(eeprom_data,"GET MM20xPCTV",13)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2908 | type = BTTV_BOARD_MODTEC_205; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2909 | else if (0 == strncmp(eeprom_data+20,"Picolo",7)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2910 | type = BTTV_BOARD_EURESYS_PICOLO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2911 | else if (eeprom_data[0] == 0x84 && eeprom_data[2]== 0) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 2912 | type = BTTV_BOARD_HAUPPAUGE; /* old bt848 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2913 | |
| 2914 | if (-1 != type) { |
| 2915 | btv->c.type = type; |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 2916 | pr_info("%d: detected by eeprom: %s [card=%d]\n", |
| 2917 | btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2918 | } |
| 2919 | } |
| 2920 | |
| 2921 | static void flyvideo_gpio(struct bttv *btv) |
| 2922 | { |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 2923 | int gpio, has_remote, has_radio, is_capture_only; |
| 2924 | int is_lr90, has_tda9820_tda9821; |
| 2925 | int tuner_type = UNSET, ttype; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2926 | |
| 2927 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 2928 | udelay(8); /* without this we would see the 0x1800 mask */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2929 | gpio = gpio_read(); |
| 2930 | /* FIXME: must restore OUR_EN ??? */ |
| 2931 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 2932 | /* all cards provide GPIO info, some have an additional eeprom |
| 2933 | * LR50: GPIO coding can be found lower right CP1 .. CP9 |
| 2934 | * CP9=GPIO23 .. CP1=GPIO15; when OPEN, the corresponding GPIO reads 1. |
| 2935 | * GPIO14-12: n.c. |
| 2936 | * LR90: GP9=GPIO23 .. GP1=GPIO15 (right above the bt878) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2937 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 2938 | * lowest 3 bytes are remote control codes (no handshake needed) |
| 2939 | * xxxFFF: No remote control chip soldered |
| 2940 | * xxxF00(LR26/LR50), xxxFE0(LR90): Remote control chip (LVA001 or CF45) soldered |
| 2941 | * Note: Some bits are Audio_Mask ! |
| 2942 | */ |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 2943 | ttype = (gpio & 0x0f0000) >> 16; |
| 2944 | switch (ttype) { |
| 2945 | case 0x0: |
| 2946 | tuner_type = 2; /* NTSC, e.g. TPI8NSR11P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2947 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 2948 | case 0x2: |
| 2949 | tuner_type = 39; /* LG NTSC (newer TAPC series) TAPC-H701P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2950 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 2951 | case 0x4: |
| 2952 | tuner_type = 5; /* Philips PAL TPI8PSB02P, TPI8PSB12P, TPI8PSB12D or FI1216, FM1216 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2953 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 2954 | case 0x6: |
| 2955 | tuner_type = 37; /* LG PAL (newer TAPC series) TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2956 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 2957 | case 0xC: |
| 2958 | tuner_type = 3; /* Philips SECAM(+PAL) FQ1216ME or FI1216MF */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2959 | break; |
| 2960 | default: |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 2961 | pr_info("%d: FlyVideo_gpio: unknown tuner type\n", btv->c.nr); |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 2962 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2963 | } |
| 2964 | |
| 2965 | has_remote = gpio & 0x800000; |
| 2966 | has_radio = gpio & 0x400000; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 2967 | /* unknown 0x200000; |
| 2968 | * unknown2 0x100000; */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 2969 | is_capture_only = !(gpio & 0x008000); /* GPIO15 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2970 | has_tda9820_tda9821 = !(gpio & 0x004000); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 2971 | is_lr90 = !(gpio & 0x002000); /* else LR26/LR50 (LR38/LR51 f. capture only) */ |
| 2972 | /* |
| 2973 | * gpio & 0x001000 output bit for audio routing */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2974 | |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 2975 | if (is_capture_only) |
| 2976 | tuner_type = TUNER_ABSENT; /* No tuner present */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2977 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 2978 | pr_info("%d: FlyVideo Radio=%s RemoteControl=%s Tuner=%d gpio=0x%06x\n", |
| 2979 | btv->c.nr, has_radio ? "yes" : "no", |
| 2980 | has_remote ? "yes" : "no", tuner_type, gpio); |
| 2981 | pr_info("%d: FlyVideo LR90=%s tda9821/tda9820=%s capture_only=%s\n", |
| 2982 | btv->c.nr, is_lr90 ? "yes" : "no", |
| 2983 | has_tda9820_tda9821 ? "yes" : "no", |
| 2984 | is_capture_only ? "yes" : "no"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2985 | |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 2986 | if (tuner_type != UNSET) /* only set if known tuner autodetected, else let insmod option through */ |
| 2987 | btv->tuner_type = tuner_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2988 | btv->has_radio = has_radio; |
| 2989 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 2990 | /* LR90 Audio Routing is done by 2 hef4052, so Audio_Mask has 4 bits: 0x001c80 |
| 2991 | * LR26/LR50 only has 1 hef4052, Audio_Mask 0x000c00 |
| 2992 | * 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] | 2993 | if (has_tda9820_tda9821) |
| 2994 | btv->audio_mode_gpio = lt9415_audio; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 2995 | /* todo: if(has_tda9874) btv->audio_mode_gpio = fv2000s_audio; */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2996 | } |
| 2997 | |
| 2998 | static int miro_tunermap[] = { 0,6,2,3, 4,5,6,0, 3,0,4,5, 5,2,16,1, |
| 2999 | 14,2,17,1, 4,1,4,3, 1,2,16,1, 4,4,4,4 }; |
| 3000 | static int miro_fmtuner[] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1, |
| 3001 | 1,1,1,1, 1,1,1,0, 0,0,0,0, 0,1,0,0 }; |
| 3002 | |
| 3003 | static void miro_pinnacle_gpio(struct bttv *btv) |
| 3004 | { |
| 3005 | int id,msp,gpio; |
| 3006 | char *info; |
| 3007 | |
| 3008 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3009 | gpio = gpio_read(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3010 | id = ((gpio>>10) & 63) -1; |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3011 | msp = bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3012 | if (id < 32) { |
| 3013 | btv->tuner_type = miro_tunermap[id]; |
| 3014 | if (0 == (gpio & 0x20)) { |
| 3015 | btv->has_radio = 1; |
| 3016 | if (!miro_fmtuner[id]) { |
| 3017 | btv->has_matchbox = 1; |
| 3018 | btv->mbox_we = (1<<6); |
| 3019 | btv->mbox_most = (1<<7); |
| 3020 | btv->mbox_clk = (1<<8); |
| 3021 | btv->mbox_data = (1<<9); |
| 3022 | btv->mbox_mask = (1<<6)|(1<<7)|(1<<8)|(1<<9); |
| 3023 | } |
| 3024 | } else { |
| 3025 | btv->has_radio = 0; |
| 3026 | } |
| 3027 | if (-1 != msp) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3028 | if (btv->c.type == BTTV_BOARD_MIRO) |
| 3029 | btv->c.type = BTTV_BOARD_MIROPRO; |
| 3030 | if (btv->c.type == BTTV_BOARD_PINNACLE) |
| 3031 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3032 | } |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3033 | pr_info("%d: miro: id=%d tuner=%d radio=%s stereo=%s\n", |
| 3034 | btv->c.nr, id+1, btv->tuner_type, |
| 3035 | !btv->has_radio ? "no" : |
| 3036 | (btv->has_matchbox ? "matchbox" : "fmtuner"), |
| 3037 | (-1 == msp) ? "no" : "yes"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3038 | } else { |
| 3039 | /* new cards with microtune tuner */ |
| 3040 | id = 63 - id; |
| 3041 | btv->has_radio = 0; |
| 3042 | switch (id) { |
| 3043 | case 1: |
| 3044 | info = "PAL / mono"; |
Hans Verkuil | 39e8f40d | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3045 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3046 | break; |
| 3047 | case 2: |
| 3048 | info = "PAL+SECAM / stereo"; |
| 3049 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40d | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3050 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3051 | break; |
| 3052 | case 3: |
| 3053 | info = "NTSC / stereo"; |
| 3054 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40d | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3055 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3056 | break; |
| 3057 | case 4: |
| 3058 | info = "PAL+SECAM / mono"; |
Hans Verkuil | 39e8f40d | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3059 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3060 | break; |
| 3061 | case 5: |
| 3062 | info = "NTSC / mono"; |
Hans Verkuil | 39e8f40d | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3063 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3064 | break; |
| 3065 | case 6: |
| 3066 | info = "NTSC / stereo"; |
Hans Verkuil | 39e8f40d | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3067 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3068 | break; |
| 3069 | case 7: |
| 3070 | info = "PAL / stereo"; |
Hans Verkuil | 39e8f40d | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3071 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3072 | break; |
| 3073 | default: |
| 3074 | info = "oops: unknown card"; |
| 3075 | break; |
| 3076 | } |
| 3077 | if (-1 != msp) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3078 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3079 | pr_info("%d: pinnacle/mt: id=%d info=\"%s\" radio=%s\n", |
| 3080 | btv->c.nr, id, info, btv->has_radio ? "yes" : "no"); |
Hans Verkuil | 39e8f40d | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3081 | btv->tuner_type = TUNER_MT2032; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3082 | } |
| 3083 | } |
| 3084 | |
| 3085 | /* GPIO21 L: Buffer aktiv, H: Buffer inaktiv */ |
| 3086 | #define LM1882_SYNC_DRIVE 0x200000L |
| 3087 | |
| 3088 | static void init_ids_eagle(struct bttv *btv) |
| 3089 | { |
| 3090 | gpio_inout(0xffffff,0xFFFF37); |
| 3091 | gpio_write(0x200020); |
| 3092 | |
| 3093 | /* flash strobe inverter ?! */ |
| 3094 | gpio_write(0x200024); |
| 3095 | |
| 3096 | /* switch sync drive off */ |
| 3097 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
| 3098 | |
| 3099 | /* set BT848 muxel to 2 */ |
| 3100 | btaor((2)<<5, ~(2<<5), BT848_IFORM); |
| 3101 | } |
| 3102 | |
| 3103 | /* Muxsel helper for the IDS Eagle. |
| 3104 | * the eagles does not use the standard muxsel-bits but |
| 3105 | * has its own multiplexer */ |
| 3106 | static void eagle_muxsel(struct bttv *btv, unsigned int input) |
| 3107 | { |
Trent Piepho | 430390e | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3108 | gpio_bits(3, input & 3); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3109 | |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3110 | /* composite */ |
| 3111 | /* set chroma ADC to sleep */ |
| 3112 | btor(BT848_ADC_C_SLEEP, BT848_ADC); |
| 3113 | /* set to composite video */ |
| 3114 | btand(~BT848_CONTROL_COMP, BT848_E_CONTROL); |
| 3115 | btand(~BT848_CONTROL_COMP, BT848_O_CONTROL); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3116 | |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3117 | /* switch sync drive off */ |
| 3118 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3119 | } |
| 3120 | |
| 3121 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input) |
| 3122 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3123 | static const int masks[] = {0x30, 0x01, 0x12, 0x23}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3124 | gpio_write(masks[input%4]); |
| 3125 | } |
| 3126 | |
| 3127 | /* LMLBT4x initialization - to allow access to GPIO bits for sensors input and |
| 3128 | alarms output |
| 3129 | |
| 3130 | GPIObit | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| 3131 | assignment | TI | O3|INx| O2| O1|IN4|IN3|IN2|IN1| | | |
| 3132 | |
| 3133 | IN - sensor inputs, INx - sensor inputs and TI XORed together |
| 3134 | O1,O2,O3 - alarm outputs (relays) |
| 3135 | |
| 3136 | OUT ENABLE 1 1 0 . 1 1 0 0 . 0 0 0 0 = 0x6C0 |
| 3137 | |
| 3138 | */ |
| 3139 | |
| 3140 | static void init_lmlbt4x(struct bttv *btv) |
| 3141 | { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3142 | pr_debug("LMLBT4x init\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3143 | btwrite(0x000000, BT848_GPIO_REG_INP); |
| 3144 | gpio_inout(0xffffff, 0x0006C0); |
| 3145 | gpio_write(0x000000); |
| 3146 | } |
| 3147 | |
| 3148 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input) |
| 3149 | { |
| 3150 | unsigned int inmux = input % 8; |
| 3151 | gpio_inout( 0xf, 0xf ); |
| 3152 | gpio_bits( 0xf, inmux ); |
| 3153 | } |
| 3154 | |
| 3155 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input) |
| 3156 | { |
| 3157 | unsigned int inmux = input % 4; |
| 3158 | gpio_inout( 3<<9, 3<<9 ); |
| 3159 | gpio_bits( 3<<9, inmux<<9 ); |
| 3160 | } |
| 3161 | |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 3162 | static void geovision_muxsel(struct bttv *btv, unsigned int input) |
| 3163 | { |
| 3164 | unsigned int inmux = input % 16; |
| 3165 | gpio_inout(0xf, 0xf); |
| 3166 | gpio_bits(0xf, inmux); |
| 3167 | } |
| 3168 | |
Peter De Schrijver | de2843b | 2011-11-06 10:15:47 -0300 | [diff] [blame] | 3169 | /* |
| 3170 | * The TD3116 has 2 74HC4051 muxes wired to the MUX0 input of a bt878. |
| 3171 | * The first 74HC4051 has the lower 8 inputs, the second one the higher 8. |
| 3172 | * The muxes are controlled via a 74HC373 latch which is connected to |
| 3173 | * GPIOs 0-7. GPIO 18 is connected to the LE signal of the latch. |
| 3174 | * Q0 of the latch is connected to the Enable (~E) input of the first |
| 3175 | * 74HC4051. Q1 - Q3 are connected to S0 - S2 of the same 74HC4051. |
| 3176 | * Q4 - Q7 are connected to the second 74HC4051 in the same way. |
| 3177 | */ |
| 3178 | |
| 3179 | static void td3116_latch_value(struct bttv *btv, u32 value) |
| 3180 | { |
| 3181 | gpio_bits((1<<18) | 0xff, value); |
| 3182 | gpio_bits((1<<18) | 0xff, (1<<18) | value); |
| 3183 | udelay(1); |
| 3184 | gpio_bits((1<<18) | 0xff, value); |
| 3185 | } |
| 3186 | |
| 3187 | static void td3116_muxsel(struct bttv *btv, unsigned int input) |
| 3188 | { |
| 3189 | u32 value; |
| 3190 | u32 highbit; |
| 3191 | |
| 3192 | highbit = (input & 0x8) >> 3 ; |
| 3193 | |
| 3194 | /* Disable outputs and set value in the mux */ |
| 3195 | value = 0x11; /* Disable outputs */ |
| 3196 | value |= ((input & 0x7) << 1) << (4 * highbit); |
| 3197 | td3116_latch_value(btv, value); |
| 3198 | |
| 3199 | /* Enable the correct output */ |
| 3200 | value &= ~0x11; |
| 3201 | value |= ((highbit ^ 0x1) << 4) | highbit; |
| 3202 | td3116_latch_value(btv, value); |
| 3203 | } |
| 3204 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3205 | /* ----------------------------------------------------------------------- */ |
| 3206 | |
| 3207 | static void bttv_reset_audio(struct bttv *btv) |
| 3208 | { |
| 3209 | /* |
| 3210 | * BT878A has a audio-reset register. |
| 3211 | * 1. This register is an audio reset function but it is in |
| 3212 | * function-0 (video capture) address space. |
| 3213 | * 2. It is enough to do this once per power-up of the card. |
| 3214 | * 3. There is a typo in the Conexant doc -- it is not at |
| 3215 | * 0x5B, but at 0x058. (B is an odd-number, obviously a typo!). |
| 3216 | * --//Shrikumar 030609 |
| 3217 | */ |
| 3218 | if (btv->id != 878) |
| 3219 | return; |
| 3220 | |
| 3221 | if (bttv_debug) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3222 | pr_debug("%d: BT878A ARESET\n", btv->c.nr); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3223 | btwrite((1<<7), 0x058); |
| 3224 | udelay(10); |
| 3225 | btwrite( 0, 0x058); |
| 3226 | } |
| 3227 | |
| 3228 | /* initialization part one -- before registering i2c bus */ |
| 3229 | void __devinit bttv_init_card1(struct bttv *btv) |
| 3230 | { |
| 3231 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3232 | case BTTV_BOARD_HAUPPAUGE: |
| 3233 | case BTTV_BOARD_HAUPPAUGE878: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3234 | boot_msp34xx(btv,5); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3235 | break; |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 3236 | case BTTV_BOARD_VOODOOTV_200: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3237 | case BTTV_BOARD_VOODOOTV_FM: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3238 | boot_msp34xx(btv,20); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3239 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3240 | case BTTV_BOARD_AVERMEDIA98: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3241 | boot_msp34xx(btv,11); |
| 3242 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3243 | case BTTV_BOARD_HAUPPAUGEPVR: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3244 | pvr_boot(btv); |
| 3245 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3246 | case BTTV_BOARD_TWINHAN_DST: |
| 3247 | case BTTV_BOARD_AVDVBT_771: |
| 3248 | case BTTV_BOARD_PINNACLESAT: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3249 | btv->use_i2c_hw = 1; |
| 3250 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3251 | case BTTV_BOARD_ADLINK_RTV24: |
Michael Krufky | 7c08fb0 | 2005-11-08 21:36:21 -0800 | [diff] [blame] | 3252 | init_RTV24( btv ); |
| 3253 | break; |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 3254 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3255 | } |
| 3256 | if (!bttv_tvcards[btv->c.type].has_dvb) |
| 3257 | bttv_reset_audio(btv); |
| 3258 | } |
| 3259 | |
| 3260 | /* initialization part two -- after registering i2c bus */ |
| 3261 | void __devinit bttv_init_card2(struct bttv *btv) |
| 3262 | { |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3263 | btv->tuner_type = UNSET; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3264 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3265 | if (BTTV_BOARD_UNKNOWN == btv->c.type) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3266 | bttv_readee(btv,eeprom_data,0xa0); |
| 3267 | identify_by_eeprom(btv,eeprom_data); |
| 3268 | } |
| 3269 | |
| 3270 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3271 | case BTTV_BOARD_MIRO: |
| 3272 | case BTTV_BOARD_MIROPRO: |
| 3273 | case BTTV_BOARD_PINNACLE: |
| 3274 | case BTTV_BOARD_PINNACLEPRO: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3275 | /* miro/pinnacle */ |
| 3276 | miro_pinnacle_gpio(btv); |
| 3277 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3278 | case BTTV_BOARD_FLYVIDEO_98: |
| 3279 | case BTTV_BOARD_MAXI: |
| 3280 | case BTTV_BOARD_LIFE_FLYKIT: |
| 3281 | case BTTV_BOARD_FLYVIDEO: |
| 3282 | case BTTV_BOARD_TYPHOON_TVIEW: |
| 3283 | case BTTV_BOARD_CHRONOS_VS2: |
| 3284 | case BTTV_BOARD_FLYVIDEO_98FM: |
| 3285 | case BTTV_BOARD_FLYVIDEO2000: |
| 3286 | case BTTV_BOARD_FLYVIDEO98EZ: |
| 3287 | case BTTV_BOARD_CONFERENCETV: |
| 3288 | case BTTV_BOARD_LIFETEC_9415: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3289 | flyvideo_gpio(btv); |
| 3290 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3291 | case BTTV_BOARD_HAUPPAUGE: |
| 3292 | case BTTV_BOARD_HAUPPAUGE878: |
| 3293 | case BTTV_BOARD_HAUPPAUGEPVR: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3294 | /* pick up some config infos from the eeprom */ |
| 3295 | bttv_readee(btv,eeprom_data,0xa0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3296 | hauppauge_eeprom(btv); |
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: |
| 3299 | case BTTV_BOARD_AVPHONE98: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3300 | bttv_readee(btv,eeprom_data,0xa0); |
| 3301 | avermedia_eeprom(btv); |
| 3302 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3303 | case BTTV_BOARD_PXC200: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3304 | init_PXC200(btv); |
| 3305 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3306 | case BTTV_BOARD_PICOLO_TETRA_CHIP: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3307 | picolo_tetra_init(btv); |
| 3308 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3309 | case BTTV_BOARD_VHX: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3310 | btv->has_radio = 1; |
| 3311 | btv->has_matchbox = 1; |
| 3312 | btv->mbox_we = 0x20; |
| 3313 | btv->mbox_most = 0; |
| 3314 | btv->mbox_clk = 0x08; |
| 3315 | btv->mbox_data = 0x10; |
| 3316 | btv->mbox_mask = 0x38; |
| 3317 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3318 | case BTTV_BOARD_VOBIS_BOOSTAR: |
| 3319 | case BTTV_BOARD_TERRATV: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3320 | terratec_active_radio_upgrade(btv); |
| 3321 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3322 | case BTTV_BOARD_MAGICTVIEW061: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3323 | if (btv->cardid == 0x3002144f) { |
| 3324 | btv->has_radio=1; |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3325 | pr_info("%d: radio detected by subsystem id (CPH05x)\n", |
| 3326 | btv->c.nr); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3327 | } |
| 3328 | break; |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3329 | case BTTV_BOARD_STB2: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3330 | if (btv->cardid == 0x3060121a) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3331 | /* Fix up entry for 3DFX VoodooTV 100, |
| 3332 | which is an OEM STB card variant. */ |
| 3333 | btv->has_radio=0; |
| 3334 | btv->tuner_type=TUNER_TEMIC_NTSC; |
| 3335 | } |
| 3336 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3337 | case BTTV_BOARD_OSPREY1x0: |
| 3338 | case BTTV_BOARD_OSPREY1x0_848: |
| 3339 | case BTTV_BOARD_OSPREY101_848: |
| 3340 | case BTTV_BOARD_OSPREY1x1: |
| 3341 | case BTTV_BOARD_OSPREY1x1_SVID: |
| 3342 | case BTTV_BOARD_OSPREY2xx: |
| 3343 | case BTTV_BOARD_OSPREY2x0_SVID: |
| 3344 | case BTTV_BOARD_OSPREY2x0: |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3345 | case BTTV_BOARD_OSPREY440: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3346 | case BTTV_BOARD_OSPREY500: |
| 3347 | case BTTV_BOARD_OSPREY540: |
| 3348 | case BTTV_BOARD_OSPREY2000: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3349 | bttv_readee(btv,eeprom_data,0xa0); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3350 | osprey_eeprom(btv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3351 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3352 | case BTTV_BOARD_IDS_EAGLE: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3353 | init_ids_eagle(btv); |
| 3354 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3355 | case BTTV_BOARD_MODTEC_205: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3356 | bttv_readee(btv,eeprom_data,0xa0); |
| 3357 | modtec_eeprom(btv); |
| 3358 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3359 | case BTTV_BOARD_LMLBT4: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3360 | init_lmlbt4x(btv); |
| 3361 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3362 | case BTTV_BOARD_TIBET_CS16: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3363 | tibetCS16_init(btv); |
| 3364 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3365 | case BTTV_BOARD_KODICOM_4400R: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3366 | kodicom4400r_init(btv); |
| 3367 | break; |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 3368 | case BTTV_BOARD_GEOVISION_GV800S: |
| 3369 | gv800s_init(btv); |
| 3370 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3371 | } |
| 3372 | |
| 3373 | /* pll configuration */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3374 | if (!(btv->id==848 && btv->revision==0x11)) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3375 | /* defaults from card list */ |
| 3376 | if (PLL_28 == bttv_tvcards[btv->c.type].pll) { |
| 3377 | btv->pll.pll_ifreq=28636363; |
| 3378 | btv->pll.pll_crystal=BT848_IFORM_XT0; |
| 3379 | } |
| 3380 | if (PLL_35 == bttv_tvcards[btv->c.type].pll) { |
| 3381 | btv->pll.pll_ifreq=35468950; |
| 3382 | btv->pll.pll_crystal=BT848_IFORM_XT1; |
| 3383 | } |
| 3384 | /* insmod options can override */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3385 | switch (pll[btv->c.nr]) { |
| 3386 | case 0: /* none */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3387 | btv->pll.pll_crystal = 0; |
| 3388 | btv->pll.pll_ifreq = 0; |
| 3389 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3390 | break; |
| 3391 | case 1: /* 28 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3392 | case 28: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3393 | btv->pll.pll_ifreq = 28636363; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3394 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3395 | btv->pll.pll_crystal = BT848_IFORM_XT0; |
| 3396 | break; |
| 3397 | case 2: /* 35 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3398 | case 35: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3399 | btv->pll.pll_ifreq = 35468950; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3400 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3401 | btv->pll.pll_crystal = BT848_IFORM_XT1; |
| 3402 | break; |
| 3403 | } |
| 3404 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3405 | btv->pll.pll_current = -1; |
| 3406 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3407 | /* tuner configuration (from card list / autodetect / insmod option) */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3408 | if (UNSET != bttv_tvcards[btv->c.type].tuner_type) |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3409 | if (UNSET == btv->tuner_type) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3410 | btv->tuner_type = bttv_tvcards[btv->c.type].tuner_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3411 | if (UNSET != tuner[btv->c.nr]) |
| 3412 | btv->tuner_type = tuner[btv->c.nr]; |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3413 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3414 | if (btv->tuner_type == TUNER_ABSENT) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3415 | pr_info("%d: tuner absent\n", btv->c.nr); |
| 3416 | else if (btv->tuner_type == UNSET) |
| 3417 | pr_warn("%d: tuner type unset\n", btv->c.nr); |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3418 | else |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3419 | pr_info("%d: tuner type=%d\n", btv->c.nr, btv->tuner_type); |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3420 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3421 | if (autoload != UNSET) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3422 | pr_warn("%d: the autoload option is obsolete\n", btv->c.nr); |
| 3423 | pr_warn("%d: use option msp3400, tda7432 or tvaudio to override which audio module should be used\n", |
| 3424 | btv->c.nr); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3425 | } |
| 3426 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3427 | if (UNSET == btv->tuner_type) |
| 3428 | btv->tuner_type = TUNER_ABSENT; |
| 3429 | |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3430 | btv->dig = bttv_tvcards[btv->c.type].has_dig_in ? |
| 3431 | bttv_tvcards[btv->c.type].video_inputs - 1 : UNSET; |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3432 | btv->svhs = bttv_tvcards[btv->c.type].svhs == NO_SVHS ? |
| 3433 | UNSET : bttv_tvcards[btv->c.type].svhs; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3434 | if (svhs[btv->c.nr] != UNSET) |
| 3435 | btv->svhs = svhs[btv->c.nr]; |
| 3436 | if (remote[btv->c.nr] != UNSET) |
| 3437 | btv->has_remote = remote[btv->c.nr]; |
| 3438 | |
| 3439 | if (bttv_tvcards[btv->c.type].has_radio) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3440 | btv->has_radio = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3441 | if (bttv_tvcards[btv->c.type].has_remote) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3442 | btv->has_remote = 1; |
Michael Krufky | 7c08fb0 | 2005-11-08 21:36:21 -0800 | [diff] [blame] | 3443 | if (!bttv_tvcards[btv->c.type].no_gpioirq) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3444 | btv->gpioirq = 1; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 3445 | if (bttv_tvcards[btv->c.type].volume_gpio) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3446 | btv->volume_gpio = bttv_tvcards[btv->c.type].volume_gpio; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 3447 | if (bttv_tvcards[btv->c.type].audio_mode_gpio) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3448 | btv->audio_mode_gpio = bttv_tvcards[btv->c.type].audio_mode_gpio; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3449 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3450 | if (btv->tuner_type == TUNER_ABSENT) |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3451 | return; /* no tuner or related drivers to load */ |
| 3452 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3453 | if (btv->has_saa6588 || saa6588[btv->c.nr]) { |
| 3454 | /* Probe for RDS receiver chip */ |
| 3455 | static const unsigned short addrs[] = { |
| 3456 | 0x20 >> 1, |
| 3457 | 0x22 >> 1, |
| 3458 | I2C_CLIENT_END |
| 3459 | }; |
| 3460 | struct v4l2_subdev *sd; |
| 3461 | |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3462 | sd = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3463 | &btv->c.i2c_adap, "saa6588", 0, addrs); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3464 | btv->has_saa6588 = (sd != NULL); |
| 3465 | } |
| 3466 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3467 | /* try to detect audio/fader chips */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3468 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3469 | /* First check if the user specified the audio chip via a module |
| 3470 | option. */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3471 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3472 | switch (audiodev[btv->c.nr]) { |
| 3473 | case -1: |
| 3474 | return; /* do not load any audio module */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3475 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3476 | case 0: /* autodetect */ |
| 3477 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3478 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3479 | case 1: { |
| 3480 | /* The user specified that we should probe for msp3400 */ |
| 3481 | static const unsigned short addrs[] = { |
| 3482 | I2C_ADDR_MSP3400 >> 1, |
| 3483 | I2C_ADDR_MSP3400_ALT >> 1, |
| 3484 | I2C_CLIENT_END |
| 3485 | }; |
| 3486 | |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3487 | btv->sd_msp34xx = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3488 | &btv->c.i2c_adap, "msp3400", 0, addrs); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3489 | if (btv->sd_msp34xx) |
| 3490 | return; |
| 3491 | goto no_audio; |
| 3492 | } |
| 3493 | |
| 3494 | case 2: { |
| 3495 | /* The user specified that we should probe for tda7432 */ |
| 3496 | static const unsigned short addrs[] = { |
| 3497 | I2C_ADDR_TDA7432 >> 1, |
| 3498 | I2C_CLIENT_END |
| 3499 | }; |
| 3500 | |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3501 | if (v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3502 | &btv->c.i2c_adap, "tda7432", 0, addrs)) |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3503 | return; |
| 3504 | goto no_audio; |
| 3505 | } |
| 3506 | |
| 3507 | case 3: { |
| 3508 | /* The user specified that we should probe for tvaudio */ |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3509 | btv->sd_tvaudio = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3510 | &btv->c.i2c_adap, "tvaudio", 0, tvaudio_addrs()); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3511 | if (btv->sd_tvaudio) |
| 3512 | return; |
| 3513 | goto no_audio; |
| 3514 | } |
| 3515 | |
| 3516 | default: |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3517 | pr_warn("%d: unknown audiodev value!\n", btv->c.nr); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3518 | return; |
| 3519 | } |
| 3520 | |
| 3521 | /* There were no overrides, so now we try to discover this through the |
| 3522 | card definition */ |
| 3523 | |
| 3524 | /* probe for msp3400 first: this driver can detect whether or not |
| 3525 | it really is a msp3400, so it will return NULL when the device |
| 3526 | found is really something else (e.g. a tea6300). */ |
| 3527 | if (!bttv_tvcards[btv->c.type].no_msp34xx) { |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3528 | btv->sd_msp34xx = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3529 | &btv->c.i2c_adap, "msp3400", |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3530 | 0, I2C_ADDRS(I2C_ADDR_MSP3400 >> 1)); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3531 | } else if (bttv_tvcards[btv->c.type].msp34xx_alt) { |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3532 | btv->sd_msp34xx = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3533 | &btv->c.i2c_adap, "msp3400", |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3534 | 0, I2C_ADDRS(I2C_ADDR_MSP3400_ALT >> 1)); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3535 | } |
| 3536 | |
| 3537 | /* If we found a msp34xx, then we're done. */ |
| 3538 | if (btv->sd_msp34xx) |
| 3539 | return; |
| 3540 | |
| 3541 | /* it might also be a tda7432. */ |
| 3542 | if (!bttv_tvcards[btv->c.type].no_tda7432) { |
| 3543 | static const unsigned short addrs[] = { |
| 3544 | I2C_ADDR_TDA7432 >> 1, |
| 3545 | I2C_CLIENT_END |
| 3546 | }; |
| 3547 | |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3548 | if (v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3549 | &btv->c.i2c_adap, "tda7432", 0, addrs)) |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3550 | return; |
| 3551 | } |
| 3552 | |
| 3553 | /* Now see if we can find one of the tvaudio devices. */ |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3554 | btv->sd_tvaudio = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3555 | &btv->c.i2c_adap, "tvaudio", 0, tvaudio_addrs()); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3556 | if (btv->sd_tvaudio) |
| 3557 | return; |
| 3558 | |
| 3559 | no_audio: |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3560 | pr_warn("%d: audio absent, no audio device found!\n", btv->c.nr); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3561 | } |
| 3562 | |
| 3563 | |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3564 | /* initialize the tuner */ |
| 3565 | void __devinit bttv_init_tuner(struct bttv *btv) |
| 3566 | { |
| 3567 | int addr = ADDR_UNSET; |
| 3568 | |
| 3569 | if (ADDR_UNSET != bttv_tvcards[btv->c.type].tuner_addr) |
| 3570 | addr = bttv_tvcards[btv->c.type].tuner_addr; |
| 3571 | |
| 3572 | if (btv->tuner_type != TUNER_ABSENT) { |
| 3573 | struct tuner_setup tun_setup; |
| 3574 | |
| 3575 | /* Load tuner module before issuing tuner config call! */ |
Hans de Goede | 5c16464 | 2012-05-20 08:11:04 -0300 | [diff] [blame] | 3576 | if (btv->has_radio) |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3577 | v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3578 | &btv->c.i2c_adap, "tuner", |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3579 | 0, v4l2_i2c_tuner_addrs(ADDRS_RADIO)); |
| 3580 | v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3581 | &btv->c.i2c_adap, "tuner", |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3582 | 0, v4l2_i2c_tuner_addrs(ADDRS_DEMOD)); |
| 3583 | v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
Laurent Pinchart | 9a1f8b3 | 2010-09-24 10:16:44 -0300 | [diff] [blame] | 3584 | &btv->c.i2c_adap, "tuner", |
Hans Verkuil | 53dacb1 | 2009-08-10 02:49:08 -0300 | [diff] [blame] | 3585 | 0, v4l2_i2c_tuner_addrs(ADDRS_TV_WITH_DEMOD)); |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3586 | |
Mauro Carvalho Chehab | ad020dc | 2011-02-15 09:30:50 -0200 | [diff] [blame] | 3587 | tun_setup.mode_mask = T_ANALOG_TV; |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3588 | tun_setup.type = btv->tuner_type; |
| 3589 | tun_setup.addr = addr; |
| 3590 | |
Hans de Goede | 5c16464 | 2012-05-20 08:11:04 -0300 | [diff] [blame] | 3591 | if (btv->has_radio) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3592 | tun_setup.mode_mask |= T_RADIO; |
| 3593 | |
| 3594 | bttv_call_all(btv, tuner, s_type_addr, &tun_setup); |
| 3595 | } |
| 3596 | |
| 3597 | if (btv->tda9887_conf) { |
| 3598 | struct v4l2_priv_tun_config tda9887_cfg; |
| 3599 | |
| 3600 | tda9887_cfg.tuner = TUNER_TDA9887; |
| 3601 | tda9887_cfg.priv = &btv->tda9887_conf; |
| 3602 | |
| 3603 | bttv_call_all(btv, tuner, s_config, &tda9887_cfg); |
| 3604 | } |
| 3605 | } |
| 3606 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3607 | /* ----------------------------------------------------------------------- */ |
| 3608 | |
| 3609 | static void modtec_eeprom(struct bttv *btv) |
| 3610 | { |
| 3611 | if( strncmp(&(eeprom_data[0x1e]),"Temic 4066 FY5",14) ==0) { |
| 3612 | btv->tuner_type=TUNER_TEMIC_4066FY5_PAL_I; |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3613 | pr_info("%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3614 | btv->c.nr, &eeprom_data[0x1e]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3615 | } else if (strncmp(&(eeprom_data[0x1e]),"Alps TSBB5",10) ==0) { |
| 3616 | btv->tuner_type=TUNER_ALPS_TSBB5_PAL_I; |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3617 | pr_info("%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3618 | btv->c.nr, &eeprom_data[0x1e]); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3619 | } else if (strncmp(&(eeprom_data[0x1e]),"Philips FM1246",14) ==0) { |
| 3620 | btv->tuner_type=TUNER_PHILIPS_NTSC; |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3621 | pr_info("%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3622 | btv->c.nr, &eeprom_data[0x1e]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3623 | } else { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3624 | pr_info("%d: Modtec: Unknown TunerString: %s\n", |
| 3625 | btv->c.nr, &eeprom_data[0x1e]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3626 | } |
| 3627 | } |
| 3628 | |
| 3629 | static void __devinit hauppauge_eeprom(struct bttv *btv) |
| 3630 | { |
| 3631 | struct tveeprom tv; |
| 3632 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 3633 | tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3634 | btv->tuner_type = tv.tuner_type; |
| 3635 | btv->has_radio = tv.has_radio; |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 3636 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3637 | pr_info("%d: Hauppauge eeprom indicates model#%d\n", |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 3638 | btv->c.nr, tv.model); |
| 3639 | |
| 3640 | /* |
| 3641 | * Some of the 878 boards have duplicate PCI IDs. Switch the board |
| 3642 | * type based on model #. |
| 3643 | */ |
| 3644 | if(tv.model == 64900) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3645 | pr_info("%d: Switching board type from %s to %s\n", |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 3646 | btv->c.nr, |
| 3647 | bttv_tvcards[btv->c.type].name, |
| 3648 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); |
| 3649 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; |
| 3650 | } |
Hans de Goede | 7025e52 | 2012-05-21 07:46:22 -0300 | [diff] [blame] | 3651 | |
| 3652 | /* The 61334 needs the msp3410 to do the radio demod to get sound */ |
| 3653 | if (tv.model == 61334) |
| 3654 | btv->radio_uses_msp_demodulator = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3655 | } |
| 3656 | |
| 3657 | static int terratec_active_radio_upgrade(struct bttv *btv) |
| 3658 | { |
| 3659 | int freq; |
| 3660 | |
| 3661 | btv->has_radio = 1; |
| 3662 | btv->has_matchbox = 1; |
| 3663 | btv->mbox_we = 0x10; |
| 3664 | btv->mbox_most = 0x20; |
| 3665 | btv->mbox_clk = 0x08; |
| 3666 | btv->mbox_data = 0x04; |
| 3667 | btv->mbox_mask = 0x3c; |
| 3668 | |
| 3669 | btv->mbox_iow = 1 << 8; |
| 3670 | btv->mbox_ior = 1 << 9; |
| 3671 | btv->mbox_csel = 1 << 10; |
| 3672 | |
| 3673 | freq=88000/62.5; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3674 | tea5757_write(btv, 5 * freq + 0x358); /* write 0x1ed8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3675 | if (0x1ed8 == tea5757_read(btv)) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3676 | pr_info("%d: Terratec Active Radio Upgrade found\n", btv->c.nr); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3677 | btv->has_radio = 1; |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3678 | btv->has_saa6588 = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3679 | btv->has_matchbox = 1; |
| 3680 | } else { |
| 3681 | btv->has_radio = 0; |
| 3682 | btv->has_matchbox = 0; |
| 3683 | } |
| 3684 | return 0; |
| 3685 | } |
| 3686 | |
| 3687 | |
| 3688 | /* ----------------------------------------------------------------------- */ |
| 3689 | |
| 3690 | /* |
| 3691 | * minimal bootstrap for the WinTV/PVR -- upload altera firmware. |
| 3692 | * |
| 3693 | * The hcwamc.rbf firmware file is on the Hauppauge driver CD. Have |
| 3694 | * a look at Pvr/pvr45xxx.EXE (self-extracting zip archive, can be |
| 3695 | * unpacked with unzip). |
| 3696 | */ |
| 3697 | #define PVR_GPIO_DELAY 10 |
| 3698 | |
| 3699 | #define BTTV_ALT_DATA 0x000001 |
| 3700 | #define BTTV_ALT_DCLK 0x100000 |
| 3701 | #define BTTV_ALT_NCONFIG 0x800000 |
| 3702 | |
David Woodhouse | 4f2a0c3 | 2008-05-24 00:11:44 +0100 | [diff] [blame] | 3703 | static int __devinit pvr_altera_load(struct bttv *btv, const u8 *micro, |
| 3704 | u32 microlen) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3705 | { |
| 3706 | u32 n; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3707 | u8 bits; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3708 | int i; |
| 3709 | |
| 3710 | gpio_inout(0xffffff,BTTV_ALT_DATA|BTTV_ALT_DCLK|BTTV_ALT_NCONFIG); |
| 3711 | gpio_write(0); |
| 3712 | udelay(PVR_GPIO_DELAY); |
| 3713 | |
| 3714 | gpio_write(BTTV_ALT_NCONFIG); |
| 3715 | udelay(PVR_GPIO_DELAY); |
| 3716 | |
| 3717 | for (n = 0; n < microlen; n++) { |
| 3718 | bits = micro[n]; |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 3719 | for (i = 0 ; i < 8 ; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3720 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3721 | if (bits & 0x01) |
| 3722 | gpio_bits(BTTV_ALT_DATA,BTTV_ALT_DATA); |
| 3723 | else |
| 3724 | gpio_bits(BTTV_ALT_DATA,0); |
| 3725 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3726 | bits >>= 1; |
| 3727 | } |
| 3728 | } |
| 3729 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3730 | udelay(PVR_GPIO_DELAY); |
| 3731 | |
| 3732 | /* begin Altera init loop (Not necessary,but doesn't hurt) */ |
| 3733 | for (i = 0 ; i < 30 ; i++) { |
| 3734 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3735 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3736 | } |
| 3737 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3738 | return 0; |
| 3739 | } |
| 3740 | |
| 3741 | static int __devinit pvr_boot(struct bttv *btv) |
| 3742 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3743 | const struct firmware *fw_entry; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3744 | int rc; |
| 3745 | |
| 3746 | rc = request_firmware(&fw_entry, "hcwamc.rbf", &btv->c.pci->dev); |
| 3747 | if (rc != 0) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3748 | pr_warn("%d: no altera firmware [via hotplug]\n", btv->c.nr); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3749 | return rc; |
| 3750 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3751 | rc = pvr_altera_load(btv, fw_entry->data, fw_entry->size); |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3752 | pr_info("%d: altera firmware upload %s\n", |
| 3753 | btv->c.nr, (rc < 0) ? "failed" : "ok"); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3754 | release_firmware(fw_entry); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3755 | return rc; |
| 3756 | } |
| 3757 | |
| 3758 | /* ----------------------------------------------------------------------- */ |
| 3759 | /* some osprey specific stuff */ |
| 3760 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3761 | static void __devinit osprey_eeprom(struct bttv *btv, const u8 ee[256]) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3762 | { |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3763 | int i; |
| 3764 | u32 serial = 0; |
| 3765 | int cardid = -1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3766 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3767 | /* This code will nevery actually get called in this case.... */ |
| 3768 | if (btv->c.type == BTTV_BOARD_UNKNOWN) { |
| 3769 | /* this might be an antique... check for MMAC label in eeprom */ |
| 3770 | if (!strncmp(ee, "MMAC", 4)) { |
| 3771 | u8 checksum = 0; |
| 3772 | for (i = 0; i < 21; i++) |
| 3773 | checksum += ee[i]; |
| 3774 | if (checksum != ee[21]) |
| 3775 | return; |
| 3776 | cardid = BTTV_BOARD_OSPREY1x0_848; |
| 3777 | for (i = 12; i < 21; i++) |
| 3778 | serial *= 10, serial += ee[i] - '0'; |
| 3779 | } |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3780 | } else { |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3781 | unsigned short type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3782 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3783 | for (i = 4*16; i < 8*16; i += 16) { |
| 3784 | u16 checksum = ip_compute_csum(ee + i, 16); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3785 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3786 | if ((checksum&0xff) + (checksum>>8) == 0xff) |
| 3787 | break; |
| 3788 | } |
| 3789 | if (i >= 8*16) |
| 3790 | return; |
| 3791 | ee += i; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3792 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3793 | /* found a valid descriptor */ |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 3794 | type = get_unaligned_be16((__be16 *)(ee+4)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3795 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3796 | switch(type) { |
| 3797 | /* 848 based */ |
| 3798 | case 0x0004: |
| 3799 | cardid = BTTV_BOARD_OSPREY1x0_848; |
| 3800 | break; |
| 3801 | case 0x0005: |
| 3802 | cardid = BTTV_BOARD_OSPREY101_848; |
| 3803 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3804 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3805 | /* 878 based */ |
| 3806 | case 0x0012: |
| 3807 | case 0x0013: |
| 3808 | cardid = BTTV_BOARD_OSPREY1x0; |
| 3809 | break; |
| 3810 | case 0x0014: |
| 3811 | case 0x0015: |
| 3812 | cardid = BTTV_BOARD_OSPREY1x1; |
| 3813 | break; |
| 3814 | case 0x0016: |
| 3815 | case 0x0017: |
| 3816 | case 0x0020: |
| 3817 | cardid = BTTV_BOARD_OSPREY1x1_SVID; |
| 3818 | break; |
| 3819 | case 0x0018: |
| 3820 | case 0x0019: |
| 3821 | case 0x001E: |
| 3822 | case 0x001F: |
| 3823 | cardid = BTTV_BOARD_OSPREY2xx; |
| 3824 | break; |
| 3825 | case 0x001A: |
| 3826 | case 0x001B: |
| 3827 | cardid = BTTV_BOARD_OSPREY2x0_SVID; |
| 3828 | break; |
| 3829 | case 0x0040: |
| 3830 | cardid = BTTV_BOARD_OSPREY500; |
| 3831 | break; |
| 3832 | case 0x0050: |
| 3833 | case 0x0056: |
| 3834 | cardid = BTTV_BOARD_OSPREY540; |
| 3835 | /* bttv_osprey_540_init(btv); */ |
| 3836 | break; |
| 3837 | case 0x0060: |
| 3838 | case 0x0070: |
| 3839 | case 0x00A0: |
| 3840 | cardid = BTTV_BOARD_OSPREY2x0; |
| 3841 | /* enable output on select control lines */ |
| 3842 | gpio_inout(0xffffff,0x000303); |
| 3843 | break; |
| 3844 | case 0x00D8: |
| 3845 | cardid = BTTV_BOARD_OSPREY440; |
| 3846 | break; |
| 3847 | default: |
| 3848 | /* unknown...leave generic, but get serial # */ |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3849 | pr_info("%d: osprey eeprom: unknown card type 0x%04x\n", |
| 3850 | btv->c.nr, type); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3851 | break; |
| 3852 | } |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 3853 | serial = get_unaligned_be32((__be32 *)(ee+6)); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3854 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3855 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3856 | pr_info("%d: osprey eeprom: card=%d '%s' serial=%u\n", |
| 3857 | btv->c.nr, cardid, |
| 3858 | cardid > 0 ? bttv_tvcards[cardid].name : "Unknown", serial); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3859 | |
| 3860 | if (cardid<0 || btv->c.type == cardid) |
| 3861 | return; |
| 3862 | |
| 3863 | /* card type isn't set correctly */ |
| 3864 | if (card[btv->c.nr] < bttv_num_tvcards) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3865 | pr_warn("%d: osprey eeprom: Not overriding user specified card type\n", |
| 3866 | btv->c.nr); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3867 | } else { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3868 | pr_info("%d: osprey eeprom: Changing card type from %d to %d\n", |
| 3869 | btv->c.nr, btv->c.type, cardid); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3870 | btv->c.type = cardid; |
| 3871 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3872 | } |
| 3873 | |
| 3874 | /* ----------------------------------------------------------------------- */ |
| 3875 | /* AVermedia specific stuff, from bktr_card.c */ |
| 3876 | |
| 3877 | static int tuner_0_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3878 | TUNER_PHILIPS_NTSC, TUNER_PHILIPS_PAL /* PAL-BG*/, |
| 3879 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL /* PAL-I*/, |
| 3880 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL, |
| 3881 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_SECAM, |
| 3882 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3883 | TUNER_PHILIPS_FM1216ME_MK3 }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3884 | |
| 3885 | static int tuner_1_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3886 | TUNER_TEMIC_NTSC, TUNER_TEMIC_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3887 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
| 3888 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3889 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */ |
| 3890 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3891 | |
| 3892 | static void __devinit avermedia_eeprom(struct bttv *btv) |
| 3893 | { |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3894 | int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3895 | |
| 3896 | tuner_make = (eeprom_data[0x41] & 0x7); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3897 | tuner_tv_fm = (eeprom_data[0x41] & 0x18) >> 3; |
| 3898 | tuner_format = (eeprom_data[0x42] & 0xf0) >> 4; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3899 | btv->has_remote = (eeprom_data[0x42] & 0x01); |
| 3900 | |
| 3901 | if (tuner_make == 0 || tuner_make == 2) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3902 | if (tuner_format <= 0x0a) |
| 3903 | tuner_type = tuner_0_table[tuner_format]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3904 | if (tuner_make == 1) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3905 | if (tuner_format <= 9) |
| 3906 | tuner_type = tuner_1_table[tuner_format]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3907 | |
| 3908 | if (tuner_make == 4) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3909 | if (tuner_format == 0x09) |
| 3910 | tuner_type = TUNER_LG_NTSC_NEW_TAPC; /* TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3911 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3912 | pr_info("%d: Avermedia eeprom[0x%02x%02x]: tuner=", |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3913 | btv->c.nr, eeprom_data[0x41], eeprom_data[0x42]); |
| 3914 | if (tuner_type) { |
| 3915 | btv->tuner_type = tuner_type; |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3916 | pr_cont("%d", tuner_type); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3917 | } else |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3918 | pr_cont("Unknown type"); |
| 3919 | pr_cont(" radio:%s remote control:%s\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3920 | tuner_tv_fm ? "yes" : "no", |
| 3921 | btv->has_remote ? "yes" : "no"); |
| 3922 | } |
| 3923 | |
Trent Piepho | 72134a6 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3924 | /* |
| 3925 | * For Voodoo TV/FM and Voodoo 200. These cards' tuners use a TDA9880 |
| 3926 | * analog demod, which is not I2C controlled like the newer and more common |
| 3927 | * TDA9887 series. Instead is has two tri-state input pins, S0 and S1, |
| 3928 | * that control the IF for the video and audio. Apparently, bttv GPIO |
| 3929 | * 0x10000 is connected to S0. S0 low selects a 38.9 MHz VIF for B/G/D/K/I |
| 3930 | * (i.e., PAL) while high selects 45.75 MHz for M/N (i.e., NTSC). |
| 3931 | */ |
| 3932 | u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3933 | { |
Trent Piepho | 72134a6 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3934 | |
| 3935 | if (btv->audio == TVAUDIO_INPUT_TUNER) { |
| 3936 | if (bttv_tvnorms[btv->tvnorm].v4l2_id & V4L2_STD_MN) |
| 3937 | gpiobits |= 0x10000; |
| 3938 | else |
| 3939 | gpiobits &= ~0x10000; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3940 | } |
Trent Piepho | 72134a6 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3941 | |
| 3942 | gpio_bits(bttv_tvcards[btv->c.type].gpiomask, gpiobits); |
| 3943 | return gpiobits; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3944 | } |
| 3945 | |
| 3946 | |
| 3947 | /* |
| 3948 | * reset/enable the MSP on some Hauppauge cards |
David Woodhouse | 93e960f | 2005-11-08 21:36:46 -0800 | [diff] [blame] | 3949 | * Thanks to Kyösti Mälkki (kmalkki@cc.hut.fi)! |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3950 | * |
| 3951 | * Hauppauge: pin 5 |
| 3952 | * Voodoo: pin 20 |
| 3953 | */ |
| 3954 | static void __devinit boot_msp34xx(struct bttv *btv, int pin) |
| 3955 | { |
| 3956 | int mask = (1 << pin); |
| 3957 | |
| 3958 | gpio_inout(mask,mask); |
| 3959 | gpio_bits(mask,0); |
Thierry MERLE | c4e3fd9 | 2008-09-01 17:32:10 -0300 | [diff] [blame] | 3960 | mdelay(2); |
| 3961 | udelay(500); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3962 | gpio_bits(mask,mask); |
| 3963 | |
| 3964 | if (bttv_gpio) |
| 3965 | bttv_gpio_tracking(btv,"msp34xx"); |
| 3966 | if (bttv_verbose) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 3967 | pr_info("%d: Hauppauge/Voodoo msp34xx: reset line init [%d]\n", |
| 3968 | btv->c.nr, pin); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3969 | } |
| 3970 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3971 | /* ----------------------------------------------------------------------- */ |
| 3972 | /* Imagenation L-Model PXC200 Framegrabber */ |
| 3973 | /* This is basically the same procedure as |
| 3974 | * used by Alessandro Rubini in his pxc200 |
| 3975 | * driver, but using BTTV functions */ |
| 3976 | |
| 3977 | static void __devinit init_PXC200(struct bttv *btv) |
| 3978 | { |
| 3979 | static int vals[] __devinitdata = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, |
| 3980 | 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, |
| 3981 | 0x00 }; |
| 3982 | unsigned int i; |
| 3983 | int tmp; |
| 3984 | u32 val; |
| 3985 | |
| 3986 | /* Initialise GPIO-connevted stuff */ |
| 3987 | gpio_inout(0xffffff, (1<<13)); |
| 3988 | gpio_write(0); |
| 3989 | udelay(3); |
| 3990 | gpio_write(1<<13); |
| 3991 | /* GPIO inputs are pulled up, so no need to drive |
| 3992 | * reset pin any longer */ |
| 3993 | gpio_bits(0xffffff, 0); |
| 3994 | if (bttv_gpio) |
| 3995 | bttv_gpio_tracking(btv,"pxc200"); |
| 3996 | |
| 3997 | /* we could/should try and reset/control the AD pots? but |
| 3998 | right now we simply turned off the crushing. Without |
| 3999 | this the AGC drifts drifts |
| 4000 | remember the EN is reverse logic --> |
| 4001 | setting BT848_ADC_AGC_EN disable the AGC |
| 4002 | tboult@eecs.lehigh.edu |
| 4003 | */ |
| 4004 | |
| 4005 | btwrite(BT848_ADC_RESERVED|BT848_ADC_AGC_EN, BT848_ADC); |
| 4006 | |
| 4007 | /* Initialise MAX517 DAC */ |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4008 | pr_info("Setting DAC reference voltage level ...\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4009 | bttv_I2CWrite(btv,0x5E,0,0x80,1); |
| 4010 | |
| 4011 | /* Initialise 12C508 PIC */ |
| 4012 | /* The I2CWrite and I2CRead commmands are actually to the |
| 4013 | * same chips - but the R/W bit is included in the address |
| 4014 | * argument so the numbers are different */ |
| 4015 | |
| 4016 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4017 | pr_info("Initialising 12C508 PIC chip ...\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4018 | |
| 4019 | /* First of all, enable the clock line. This is used in the PXC200-F */ |
| 4020 | val = btread(BT848_GPIO_DMA_CTL); |
| 4021 | val |= BT848_GPIO_DMA_CTL_GPCLKMODE; |
| 4022 | btwrite(val, BT848_GPIO_DMA_CTL); |
| 4023 | |
| 4024 | /* Then, push to 0 the reset pin long enough to reset the * |
| 4025 | * device same as above for the reset line, but not the same |
| 4026 | * value sent to the GPIO-connected stuff |
| 4027 | * which one is the good one? */ |
| 4028 | gpio_inout(0xffffff,(1<<2)); |
| 4029 | gpio_write(0); |
| 4030 | udelay(10); |
| 4031 | gpio_write(1<<2); |
| 4032 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4033 | for (i = 0; i < ARRAY_SIZE(vals); i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4034 | tmp=bttv_I2CWrite(btv,0x1E,0,vals[i],1); |
| 4035 | if (tmp != -1) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4036 | pr_info("I2C Write(%2.2x) = %i\nI2C Read () = %2.2x\n\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4037 | vals[i],tmp,bttv_I2CRead(btv,0x1F,NULL)); |
| 4038 | } |
| 4039 | } |
| 4040 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4041 | pr_info("PXC200 Initialised\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4042 | } |
| 4043 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4044 | |
| 4045 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4046 | /* ----------------------------------------------------------------------- */ |
| 4047 | /* |
| 4048 | * The Adlink RTV-24 (aka Angelo) has some special initialisation to unlock |
| 4049 | * it. This apparently involves the following procedure for each 878 chip: |
| 4050 | * |
| 4051 | * 1) write 0x00C3FEFF to the GPIO_OUT_EN register |
| 4052 | * |
| 4053 | * 2) write to GPIO_DATA |
| 4054 | * - 0x0E |
| 4055 | * - sleep 1ms |
| 4056 | * - 0x10 + 0x0E |
| 4057 | * - sleep 10ms |
| 4058 | * - 0x0E |
| 4059 | * read from GPIO_DATA into buf (uint_32) |
| 4060 | * - if ( data>>18 & 0x01 != 0) || ( buf>>19 & 0x01 != 1 ) |
| 4061 | * error. ERROR_CPLD_Check_Failed stop. |
| 4062 | * |
| 4063 | * 3) write to GPIO_DATA |
| 4064 | * - write 0x4400 + 0x0E |
| 4065 | * - sleep 10ms |
| 4066 | * - write 0x4410 + 0x0E |
| 4067 | * - sleep 1ms |
| 4068 | * - write 0x0E |
| 4069 | * read from GPIO_DATA into buf (uint_32) |
Jean Delvare | fef4fa14 | 2006-11-09 17:25:28 -0300 | [diff] [blame] | 4070 | * - if ( buf>>18 & 0x01 ) || ( buf>>19 & 0x01 != 0 ) |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4071 | * error. ERROR_CPLD_Check_Failed. |
| 4072 | */ |
| 4073 | /* ----------------------------------------------------------------------- */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 4074 | static void |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4075 | init_RTV24 (struct bttv *btv) |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4076 | { |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4077 | uint32_t dataRead = 0; |
| 4078 | long watchdog_value = 0x0E; |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4079 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4080 | pr_info("%d: Adlink RTV-24 initialisation in progress ...\n", |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4081 | btv->c.nr); |
| 4082 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4083 | btwrite (0x00c3feff, BT848_GPIO_OUT_EN); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4084 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4085 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
| 4086 | msleep (1); |
| 4087 | btwrite (0x10 + watchdog_value, BT848_GPIO_DATA); |
| 4088 | msleep (10); |
| 4089 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4090 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4091 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4092 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4093 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 1)) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4094 | pr_info("%d: Adlink RTV-24 initialisation(1) ERROR_CPLD_Check_Failed (read %d)\n", |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4095 | btv->c.nr, dataRead); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4096 | } |
| 4097 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4098 | btwrite (0x4400 + watchdog_value, BT848_GPIO_DATA); |
| 4099 | msleep (10); |
| 4100 | btwrite (0x4410 + watchdog_value, BT848_GPIO_DATA); |
| 4101 | msleep (1); |
| 4102 | btwrite (watchdog_value, BT848_GPIO_DATA); |
| 4103 | msleep (1); |
| 4104 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4105 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4106 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 0)) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4107 | pr_info("%d: Adlink RTV-24 initialisation(2) ERROR_CPLD_Check_Failed (read %d)\n", |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4108 | btv->c.nr, dataRead); |
| 4109 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4110 | return; |
| 4111 | } |
| 4112 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4113 | pr_info("%d: Adlink RTV-24 initialisation complete\n", btv->c.nr); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4114 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4115 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4116 | |
| 4117 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4118 | /* ----------------------------------------------------------------------- */ |
| 4119 | /* Miro Pro radio stuff -- the tea5757 is connected to some GPIO ports */ |
| 4120 | /* |
| 4121 | * Copyright (c) 1999 Csaba Halasz <qgehali@uni-miskolc.hu> |
| 4122 | * This code is placed under the terms of the GNU General Public License |
| 4123 | * |
| 4124 | * Brutally hacked by Dan Sheridan <dan.sheridan@contact.org.uk> djs52 8/3/00 |
| 4125 | */ |
| 4126 | |
| 4127 | static void bus_low(struct bttv *btv, int bit) |
| 4128 | { |
| 4129 | if (btv->mbox_ior) { |
| 4130 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4131 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4132 | udelay(5); |
| 4133 | } |
| 4134 | |
| 4135 | gpio_bits(bit,0); |
| 4136 | udelay(5); |
| 4137 | |
| 4138 | if (btv->mbox_ior) { |
| 4139 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4140 | udelay(5); |
| 4141 | } |
| 4142 | } |
| 4143 | |
| 4144 | static void bus_high(struct bttv *btv, int bit) |
| 4145 | { |
| 4146 | if (btv->mbox_ior) { |
| 4147 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4148 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4149 | udelay(5); |
| 4150 | } |
| 4151 | |
| 4152 | gpio_bits(bit,bit); |
| 4153 | udelay(5); |
| 4154 | |
| 4155 | if (btv->mbox_ior) { |
| 4156 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4157 | udelay(5); |
| 4158 | } |
| 4159 | } |
| 4160 | |
| 4161 | static int bus_in(struct bttv *btv, int bit) |
| 4162 | { |
| 4163 | if (btv->mbox_ior) { |
| 4164 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4165 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4166 | udelay(5); |
| 4167 | |
| 4168 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4169 | udelay(5); |
| 4170 | } |
| 4171 | return gpio_read() & (bit); |
| 4172 | } |
| 4173 | |
| 4174 | /* TEA5757 register bits */ |
| 4175 | #define TEA_FREQ 0:14 |
| 4176 | #define TEA_BUFFER 15:15 |
| 4177 | |
| 4178 | #define TEA_SIGNAL_STRENGTH 16:17 |
| 4179 | |
| 4180 | #define TEA_PORT1 18:18 |
| 4181 | #define TEA_PORT0 19:19 |
| 4182 | |
| 4183 | #define TEA_BAND 20:21 |
| 4184 | #define TEA_BAND_FM 0 |
| 4185 | #define TEA_BAND_MW 1 |
| 4186 | #define TEA_BAND_LW 2 |
| 4187 | #define TEA_BAND_SW 3 |
| 4188 | |
| 4189 | #define TEA_MONO 22:22 |
| 4190 | #define TEA_ALLOW_STEREO 0 |
| 4191 | #define TEA_FORCE_MONO 1 |
| 4192 | |
| 4193 | #define TEA_SEARCH_DIRECTION 23:23 |
| 4194 | #define TEA_SEARCH_DOWN 0 |
| 4195 | #define TEA_SEARCH_UP 1 |
| 4196 | |
| 4197 | #define TEA_STATUS 24:24 |
| 4198 | #define TEA_STATUS_TUNED 0 |
| 4199 | #define TEA_STATUS_SEARCHING 1 |
| 4200 | |
| 4201 | /* Low-level stuff */ |
| 4202 | static int tea5757_read(struct bttv *btv) |
| 4203 | { |
| 4204 | unsigned long timeout; |
| 4205 | int value = 0; |
| 4206 | int i; |
| 4207 | |
| 4208 | /* better safe than sorry */ |
| 4209 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we); |
| 4210 | |
| 4211 | if (btv->mbox_ior) { |
| 4212 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4213 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4214 | udelay(5); |
| 4215 | } |
| 4216 | |
| 4217 | if (bttv_gpio) |
| 4218 | bttv_gpio_tracking(btv,"tea5757 read"); |
| 4219 | |
| 4220 | bus_low(btv,btv->mbox_we); |
| 4221 | bus_low(btv,btv->mbox_clk); |
| 4222 | |
| 4223 | udelay(10); |
Mauro Carvalho Chehab | fe06fe0 | 2007-07-17 16:36:20 -0300 | [diff] [blame] | 4224 | timeout= jiffies + msecs_to_jiffies(1000); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4225 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4226 | /* wait for DATA line to go low; error if it doesn't */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4227 | while (bus_in(btv,btv->mbox_data) && time_before(jiffies, timeout)) |
| 4228 | schedule(); |
| 4229 | if (bus_in(btv,btv->mbox_data)) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4230 | pr_warn("%d: tea5757: read timeout\n", btv->c.nr); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4231 | return -1; |
| 4232 | } |
| 4233 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4234 | dprintk("%d: tea5757:", btv->c.nr); |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4235 | for (i = 0; i < 24; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4236 | udelay(5); |
| 4237 | bus_high(btv,btv->mbox_clk); |
| 4238 | udelay(5); |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4239 | dprintk_cont("%c", |
| 4240 | bus_in(btv, btv->mbox_most) == 0 ? 'T' : '-'); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4241 | bus_low(btv,btv->mbox_clk); |
| 4242 | value <<= 1; |
| 4243 | value |= (bus_in(btv,btv->mbox_data) == 0)?0:1; /* MSB first */ |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4244 | dprintk_cont("%c", |
| 4245 | bus_in(btv, btv->mbox_most) == 0 ? 'S' : 'M'); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4246 | } |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4247 | dprintk_cont("\n"); |
| 4248 | dprintk("%d: tea5757: read 0x%X\n", btv->c.nr, value); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4249 | return value; |
| 4250 | } |
| 4251 | |
| 4252 | static int tea5757_write(struct bttv *btv, int value) |
| 4253 | { |
| 4254 | int i; |
| 4255 | int reg = value; |
| 4256 | |
| 4257 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we | btv->mbox_data); |
| 4258 | |
| 4259 | if (btv->mbox_ior) { |
| 4260 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4261 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4262 | udelay(5); |
| 4263 | } |
| 4264 | if (bttv_gpio) |
| 4265 | bttv_gpio_tracking(btv,"tea5757 write"); |
| 4266 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4267 | dprintk("%d: tea5757: write 0x%X\n", btv->c.nr, value); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4268 | bus_low(btv,btv->mbox_clk); |
| 4269 | bus_high(btv,btv->mbox_we); |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4270 | for (i = 0; i < 25; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4271 | if (reg & 0x1000000) |
| 4272 | bus_high(btv,btv->mbox_data); |
| 4273 | else |
| 4274 | bus_low(btv,btv->mbox_data); |
| 4275 | reg <<= 1; |
| 4276 | bus_high(btv,btv->mbox_clk); |
| 4277 | udelay(10); |
| 4278 | bus_low(btv,btv->mbox_clk); |
| 4279 | udelay(10); |
| 4280 | } |
| 4281 | bus_low(btv,btv->mbox_we); /* unmute !!! */ |
| 4282 | return 0; |
| 4283 | } |
| 4284 | |
| 4285 | void tea5757_set_freq(struct bttv *btv, unsigned short freq) |
| 4286 | { |
| 4287 | dprintk("tea5757_set_freq %d\n",freq); |
| 4288 | tea5757_write(btv, 5 * freq + 0x358); /* add 10.7MHz (see docs) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4289 | } |
| 4290 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4291 | /* RemoteVision MX (rv605) muxsel helper [Miguel Freitas] |
| 4292 | * |
| 4293 | * This is needed because rv605 don't use a normal multiplex, but a crosspoint |
| 4294 | * switch instead (CD22M3494E). This IC can have multiple active connections |
| 4295 | * between Xn (input) and Yn (output) pins. We need to clear any existing |
| 4296 | * connection prior to establish a new one, pulsing the STROBE pin. |
| 4297 | * |
| 4298 | * The board hardwire Y0 (xpoint) to MUX1 and MUXOUT to Yin. |
| 4299 | * GPIO pins are wired as: |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4300 | * GPIO[0:3] - AX[0:3] (xpoint) - P1[0:3] (microcontroller) |
| 4301 | * GPIO[4:6] - AY[0:2] (xpoint) - P1[4:6] (microcontroller) |
| 4302 | * GPIO[7] - DATA (xpoint) - P1[7] (microcontroller) |
| 4303 | * GPIO[8] - - P3[5] (microcontroller) |
| 4304 | * GPIO[9] - RESET (xpoint) - P3[6] (microcontroller) |
| 4305 | * GPIO[10] - STROBE (xpoint) - P3[7] (microcontroller) |
| 4306 | * GPINTR - - P3[4] (microcontroller) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4307 | * |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4308 | * The microcontroller is a 80C32 like. It should be possible to change xpoint |
| 4309 | * configuration either directly (as we are doing) or using the microcontroller |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4310 | * 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] | 4311 | * microcontroller features, one would need to disassembly the firmware. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4312 | * note: the vendor refused to give any information on this product, all |
| 4313 | * that stuff was found using a multimeter! :) |
| 4314 | */ |
| 4315 | static void rv605_muxsel(struct bttv *btv, unsigned int input) |
| 4316 | { |
Trent Piepho | 13afaef | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4317 | static const u8 muxgpio[] = { 0x3, 0x1, 0x2, 0x4, 0xf, 0x7, 0xe, 0x0, |
| 4318 | 0xd, 0xb, 0xc, 0x6, 0x9, 0x5, 0x8, 0xa }; |
| 4319 | |
| 4320 | gpio_bits(0x07f, muxgpio[input]); |
| 4321 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4322 | /* reset all conections */ |
| 4323 | gpio_bits(0x200,0x200); |
| 4324 | mdelay(1); |
| 4325 | gpio_bits(0x200,0x000); |
| 4326 | mdelay(1); |
| 4327 | |
Joe Perches | c84e603 | 2008-02-03 17:18:59 +0200 | [diff] [blame] | 4328 | /* create a new connection */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4329 | gpio_bits(0x480,0x480); |
| 4330 | mdelay(1); |
| 4331 | gpio_bits(0x480,0x080); |
| 4332 | mdelay(1); |
| 4333 | } |
| 4334 | |
| 4335 | /* Tibet Systems 'Progress DVR' CS16 muxsel helper [Chris Fanning] |
| 4336 | * |
| 4337 | * The CS16 (available on eBay cheap) is a PCI board with four Fusion |
Daniel Mack | 3ad2f3f | 2010-02-03 08:01:28 +0800 | [diff] [blame] | 4338 | * 878A chips, a PCI bridge, an Atmel microcontroller, four sync separator |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4339 | * chips, ten eight input analog multiplexors, a not chip and a few |
| 4340 | * other components. |
| 4341 | * |
| 4342 | * 16 inputs on a secondary bracket are provided and can be selected |
| 4343 | * from each of the four capture chips. Two of the eight input |
| 4344 | * multiplexors are used to select from any of the 16 input signals. |
| 4345 | * |
| 4346 | * Unsupported hardware capabilities: |
| 4347 | * . A video output monitor on the secondary bracket can be selected from |
| 4348 | * one of the 878A chips. |
| 4349 | * . Another passthrough but I haven't spent any time investigating it. |
| 4350 | * . Digital I/O (logic level connected to GPIO) is available from an |
| 4351 | * onboard header. |
| 4352 | * |
| 4353 | * The on chip input mux should always be set to 2. |
| 4354 | * GPIO[16:19] - Video input selection |
| 4355 | * GPIO[0:3] - Video output monitor select (only available from one 878A) |
| 4356 | * GPIO[?:?] - Digital I/O. |
| 4357 | * |
| 4358 | * There is an ATMEL microcontroller with an 8031 core on board. I have not |
| 4359 | * determined what function (if any) it provides. With the microcontroller |
Daniel Mack | 3ad2f3f | 2010-02-03 08:01:28 +0800 | [diff] [blame] | 4360 | * and sync separator chips a guess is that it might have to do with video |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4361 | * switching and maybe some digital I/O. |
| 4362 | */ |
| 4363 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input) |
| 4364 | { |
| 4365 | /* video mux */ |
| 4366 | gpio_bits(0x0f0000, input << 16); |
| 4367 | } |
| 4368 | |
| 4369 | static void tibetCS16_init(struct bttv *btv) |
| 4370 | { |
| 4371 | /* enable gpio bits, mask obtained via btSpy */ |
| 4372 | gpio_inout(0xffffff, 0x0f7fff); |
| 4373 | gpio_write(0x0f7fff); |
| 4374 | } |
| 4375 | |
| 4376 | /* |
| 4377 | * The following routines for the Kodicom-4400r get a little mind-twisting. |
| 4378 | * There is a "master" controller and three "slave" controllers, together |
| 4379 | * an analog switch which connects any of 16 cameras to any of the BT87A's. |
| 4380 | * The analog switch is controlled by the "master", but the detection order |
| 4381 | * of the four BT878A chips is in an order which I just don't understand. |
| 4382 | * 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] | 4383 | * logic on the board uses logical numbers for the 4 controllers, but |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4384 | * those numbers are different from the detection sequence. When working |
| 4385 | * with the analog switch, we need to "map" from the detection sequence |
| 4386 | * over to the board's logical controller number. This mapping sequence |
| 4387 | * is {3, 0, 2, 1}, i.e. the first controller to be detected is logical |
| 4388 | * unit 3, the second (which is the master) is logical unit 0, etc. |
| 4389 | * We need to maintain the status of the analog switch (which of the 16 |
| 4390 | * cameras is connected to which of the 4 controllers). Rather than |
| 4391 | * add to the bttv structure for this, we use the data reserved for |
| 4392 | * the mbox (unused for this card type). |
| 4393 | */ |
| 4394 | |
| 4395 | /* |
| 4396 | * First a routine to set the analog switch, which controls which camera |
| 4397 | * is routed to which controller. The switch comprises an X-address |
| 4398 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a |
| 4399 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). |
| 4400 | * A data value (gpio bit 7) of '1' enables the switch, and '0' disables |
| 4401 | * the switch. A STROBE bit (gpio bit 8) latches the data value into the |
| 4402 | * specified address. The idea is to set the address and data, then bring |
| 4403 | * STROBE high, and finally bring STROBE back to low. |
| 4404 | */ |
| 4405 | static void kodicom4400r_write(struct bttv *btv, |
| 4406 | unsigned char xaddr, |
| 4407 | unsigned char yaddr, |
| 4408 | unsigned char data) { |
| 4409 | unsigned int udata; |
| 4410 | |
| 4411 | udata = (data << 7) | ((yaddr&3) << 4) | (xaddr&0xf); |
| 4412 | gpio_bits(0x1ff, udata); /* write ADDR and DAT */ |
| 4413 | gpio_bits(0x1ff, udata | (1 << 8)); /* strobe high */ |
| 4414 | gpio_bits(0x1ff, udata); /* strobe low */ |
| 4415 | } |
| 4416 | |
| 4417 | /* |
| 4418 | * Next the mux select. Both the "master" and "slave" 'cards' (controllers) |
| 4419 | * use this routine. The routine finds the "master" for the card, maps |
| 4420 | * the controller number from the detected position over to the logical |
| 4421 | * number, writes the appropriate data to the analog switch, and housekeeps |
| 4422 | * the local copy of the switch information. The parameter 'input' is the |
| 4423 | * requested camera number (0 - 15). |
| 4424 | */ |
| 4425 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input) |
| 4426 | { |
| 4427 | char *sw_status; |
| 4428 | int xaddr, yaddr; |
| 4429 | struct bttv *mctlr; |
| 4430 | static unsigned char map[4] = {3, 0, 2, 1}; |
| 4431 | |
| 4432 | mctlr = master[btv->c.nr]; |
| 4433 | if (mctlr == NULL) { /* ignore if master not yet detected */ |
| 4434 | return; |
| 4435 | } |
| 4436 | yaddr = (btv->c.nr - mctlr->c.nr + 1) & 3; /* the '&' is for safety */ |
| 4437 | yaddr = map[yaddr]; |
| 4438 | sw_status = (char *)(&mctlr->mbox_we); |
| 4439 | xaddr = input & 0xf; |
| 4440 | /* Check if the controller/camera pair has changed, else ignore */ |
| 4441 | if (sw_status[yaddr] != xaddr) |
| 4442 | { |
| 4443 | /* "open" the old switch, "close" the new one, save the new */ |
| 4444 | kodicom4400r_write(mctlr, sw_status[yaddr], yaddr, 0); |
| 4445 | sw_status[yaddr] = xaddr; |
| 4446 | kodicom4400r_write(mctlr, xaddr, yaddr, 1); |
| 4447 | } |
| 4448 | } |
| 4449 | |
| 4450 | /* |
| 4451 | * During initialisation, we need to reset the analog switch. We |
| 4452 | * also preset the switch to map the 4 connectors on the card to the |
| 4453 | * *user's* (see above description of kodicom4400r_muxsel) channels |
| 4454 | * 0 through 3 |
| 4455 | */ |
| 4456 | static void kodicom4400r_init(struct bttv *btv) |
| 4457 | { |
| 4458 | char *sw_status = (char *)(&btv->mbox_we); |
| 4459 | int ix; |
| 4460 | |
| 4461 | gpio_inout(0x0003ff, 0x0003ff); |
| 4462 | gpio_write(1 << 9); /* reset MUX */ |
| 4463 | gpio_write(0); |
| 4464 | /* Preset camera 0 to the 4 controllers */ |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4465 | for (ix = 0; ix < 4; ix++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4466 | sw_status[ix] = ix; |
| 4467 | kodicom4400r_write(btv, ix, ix, 1); |
| 4468 | } |
| 4469 | /* |
| 4470 | * Since this is the "master", we need to set up the |
| 4471 | * other three controller chips' pointers to this structure |
| 4472 | * for later use in the muxsel routine. |
| 4473 | */ |
| 4474 | if ((btv->c.nr<1) || (btv->c.nr>BTTV_MAX-3)) |
| 4475 | return; |
| 4476 | master[btv->c.nr-1] = btv; |
| 4477 | master[btv->c.nr] = btv; |
| 4478 | master[btv->c.nr+1] = btv; |
| 4479 | master[btv->c.nr+2] = btv; |
| 4480 | } |
| 4481 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4482 | /* The Grandtec X-Guard framegrabber card uses two Dual 4-channel |
| 4483 | * video multiplexers to provide up to 16 video inputs. These |
| 4484 | * multiplexers are controlled by the lower 8 GPIO pins of the |
| 4485 | * bt878. The multiplexers probably Pericom PI5V331Q or similar. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4486 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4487 | * xxx0 is pin xxx of multiplexer U5, |
| 4488 | * yyy1 is pin yyy of multiplexer U2 |
| 4489 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4490 | #define ENA0 0x01 |
| 4491 | #define ENB0 0x02 |
| 4492 | #define ENA1 0x04 |
| 4493 | #define ENB1 0x08 |
| 4494 | |
| 4495 | #define IN10 0x10 |
| 4496 | #define IN00 0x20 |
| 4497 | #define IN11 0x40 |
| 4498 | #define IN01 0x80 |
| 4499 | |
| 4500 | static void xguard_muxsel(struct bttv *btv, unsigned int input) |
| 4501 | { |
| 4502 | static const int masks[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4503 | ENB0, ENB0|IN00, ENB0|IN10, ENB0|IN00|IN10, |
| 4504 | ENA0, ENA0|IN00, ENA0|IN10, ENA0|IN00|IN10, |
| 4505 | ENB1, ENB1|IN01, ENB1|IN11, ENB1|IN01|IN11, |
| 4506 | ENA1, ENA1|IN01, ENA1|IN11, ENA1|IN01|IN11, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4507 | }; |
| 4508 | gpio_write(masks[input%16]); |
| 4509 | } |
| 4510 | static void picolo_tetra_init(struct bttv *btv) |
| 4511 | { |
| 4512 | /*This is the video input redirection fonctionality : I DID NOT USED IT. */ |
| 4513 | btwrite (0x08<<16,BT848_GPIO_DATA);/*GPIO[19] [==> 4053 B+C] set to 1 */ |
| 4514 | btwrite (0x04<<16,BT848_GPIO_DATA);/*GPIO[18] [==> 4053 A] set to 1*/ |
| 4515 | } |
| 4516 | static void picolo_tetra_muxsel (struct bttv* btv, unsigned int input) |
| 4517 | { |
| 4518 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4519 | dprintk("%d : picolo_tetra_muxsel => input = %d\n", btv->c.nr, input); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4520 | /*Just set the right path in the analog multiplexers : channel 1 -> 4 ==> Analog Mux ==> MUX0*/ |
| 4521 | /*GPIO[20]&GPIO[21] used to choose the right input*/ |
| 4522 | btwrite (input<<20,BT848_GPIO_DATA); |
| 4523 | |
| 4524 | } |
| 4525 | |
| 4526 | /* |
| 4527 | * ivc120_muxsel [Added by Alan Garfield <alan@fromorbit.com>] |
| 4528 | * |
| 4529 | * The IVC120G security card has 4 i2c controlled TDA8540 matrix |
| 4530 | * swichers to provide 16 channels to MUX0. The TDA8540's have |
Andreas Mohr | d6e05ed | 2006-06-26 18:35:02 +0200 | [diff] [blame] | 4531 | * 4 independent outputs and as such the IVC120G also has the |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4532 | * optional "Monitor Out" bus. This allows the card to be looking |
| 4533 | * at one input while the monitor is looking at another. |
| 4534 | * |
| 4535 | * Since I've couldn't be bothered figuring out how to add an |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 4536 | * independent muxsel for the monitor bus, I've just set it to |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4537 | * whatever the card is looking at. |
| 4538 | * |
| 4539 | * OUT0 of the TDA8540's is connected to MUX0 (0x03) |
| 4540 | * OUT1 of the TDA8540's is connected to "Monitor Out" (0x0C) |
| 4541 | * |
| 4542 | * TDA8540_ALT3 IN0-3 = Channel 13 - 16 (0x03) |
| 4543 | * TDA8540_ALT4 IN0-3 = Channel 1 - 4 (0x03) |
| 4544 | * TDA8540_ALT5 IN0-3 = Channel 5 - 8 (0x03) |
| 4545 | * TDA8540_ALT6 IN0-3 = Channel 9 - 12 (0x03) |
| 4546 | * |
| 4547 | */ |
| 4548 | |
| 4549 | /* All 7 possible sub-ids for the TDA8540 Matrix Switcher */ |
| 4550 | #define I2C_TDA8540 0x90 |
| 4551 | #define I2C_TDA8540_ALT1 0x92 |
| 4552 | #define I2C_TDA8540_ALT2 0x94 |
| 4553 | #define I2C_TDA8540_ALT3 0x96 |
| 4554 | #define I2C_TDA8540_ALT4 0x98 |
| 4555 | #define I2C_TDA8540_ALT5 0x9a |
| 4556 | #define I2C_TDA8540_ALT6 0x9c |
| 4557 | |
| 4558 | static void ivc120_muxsel(struct bttv *btv, unsigned int input) |
| 4559 | { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4560 | /* Simple maths */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4561 | int key = input % 4; |
| 4562 | int matrix = input / 4; |
| 4563 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4564 | dprintk("%d: ivc120_muxsel: Input - %02d | TDA - %02d | In - %02d\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4565 | btv->c.nr, input, matrix, key); |
| 4566 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4567 | /* Handles the input selection on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4568 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x00, |
| 4569 | ((matrix == 3) ? (key | key << 2) : 0x00), 1); |
| 4570 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x00, |
| 4571 | ((matrix == 0) ? (key | key << 2) : 0x00), 1); |
| 4572 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x00, |
| 4573 | ((matrix == 1) ? (key | key << 2) : 0x00), 1); |
| 4574 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x00, |
| 4575 | ((matrix == 2) ? (key | key << 2) : 0x00), 1); |
| 4576 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4577 | /* Handles the output enables on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4578 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4579 | ((matrix == 3) ? 0x03 : 0x00), 1); /* 13 - 16 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4580 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4581 | ((matrix == 0) ? 0x03 : 0x00), 1); /* 1-4 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4582 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4583 | ((matrix == 1) ? 0x03 : 0x00), 1); /* 5-8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4584 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4585 | ((matrix == 2) ? 0x03 : 0x00), 1); /* 9-12 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4586 | |
Trent Piepho | fb5deb1 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4587 | /* 878's MUX0 is already selected for input via muxsel values */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4588 | } |
| 4589 | |
| 4590 | |
| 4591 | /* PXC200 muxsel helper |
| 4592 | * luke@syseng.anu.edu.au |
| 4593 | * another transplant |
| 4594 | * from Alessandro Rubini (rubini@linux.it) |
| 4595 | * |
| 4596 | * There are 4 kinds of cards: |
| 4597 | * PXC200L which is bt848 |
| 4598 | * PXC200F which is bt848 with PIC controlling mux |
| 4599 | * PXC200AL which is bt878 |
| 4600 | * PXC200AF which is bt878 with PIC controlling mux |
| 4601 | */ |
| 4602 | #define PX_CFG_PXC200F 0x01 |
| 4603 | #define PX_FLAG_PXC200A 0x00001000 /* a pxc200A is bt-878 based */ |
| 4604 | #define PX_I2C_PIC 0x0f |
| 4605 | #define PX_PXC200A_CARDID 0x200a1295 |
| 4606 | #define PX_I2C_CMD_CFG 0x00 |
| 4607 | |
| 4608 | static void PXC200_muxsel(struct bttv *btv, unsigned int input) |
| 4609 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4610 | int rc; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4611 | long mux; |
| 4612 | int bitmask; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4613 | unsigned char buf[2]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4614 | |
| 4615 | /* Read PIC config to determine if this is a PXC200F */ |
| 4616 | /* PX_I2C_CMD_CFG*/ |
| 4617 | buf[0]=0; |
| 4618 | buf[1]=0; |
| 4619 | rc=bttv_I2CWrite(btv,(PX_I2C_PIC<<1),buf[0],buf[1],1); |
| 4620 | if (rc) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4621 | pr_debug("%d: PXC200_muxsel: pic cfg write failed:%d\n", |
| 4622 | btv->c.nr, rc); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4623 | /* not PXC ? do nothing */ |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4624 | return; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4625 | } |
| 4626 | |
| 4627 | rc=bttv_I2CRead(btv,(PX_I2C_PIC<<1),NULL); |
| 4628 | if (!(rc & PX_CFG_PXC200F)) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4629 | pr_debug("%d: PXC200_muxsel: not PXC200F rc:%d\n", |
| 4630 | btv->c.nr, rc); |
| 4631 | return; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4632 | } |
| 4633 | |
| 4634 | |
| 4635 | /* The multiplexer in the 200F is handled by the GPIO port */ |
| 4636 | /* get correct mapping between inputs */ |
| 4637 | /* mux = bttv_tvcards[btv->type].muxsel[input] & 3; */ |
| 4638 | /* ** not needed!? */ |
| 4639 | mux = input; |
| 4640 | |
| 4641 | /* make sure output pins are enabled */ |
| 4642 | /* bitmask=0x30f; */ |
| 4643 | bitmask=0x302; |
| 4644 | /* check whether we have a PXC200A */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4645 | if (btv->cardid == PX_PXC200A_CARDID) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4646 | bitmask ^= 0x180; /* use 7 and 9, not 8 and 9 */ |
| 4647 | bitmask |= 7<<4; /* the DAC */ |
| 4648 | } |
| 4649 | btwrite(bitmask, BT848_GPIO_OUT_EN); |
| 4650 | |
| 4651 | bitmask = btread(BT848_GPIO_DATA); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4652 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4653 | bitmask = (bitmask & ~0x280) | ((mux & 2) << 8) | ((mux & 1) << 7); |
| 4654 | else /* older device */ |
| 4655 | bitmask = (bitmask & ~0x300) | ((mux & 3) << 8); |
| 4656 | btwrite(bitmask,BT848_GPIO_DATA); |
| 4657 | |
| 4658 | /* |
| 4659 | * Was "to be safe, set the bt848 to input 0" |
| 4660 | * Actually, since it's ok at load time, better not messing |
| 4661 | * with these bits (on PXC200AF you need to set mux 2 here) |
| 4662 | * |
| 4663 | * needed because bttv-driver sets mux before calling this function |
| 4664 | */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4665 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4666 | btaor(2<<5, ~BT848_IFORM_MUXSEL, BT848_IFORM); |
| 4667 | else /* older device */ |
| 4668 | btand(~BT848_IFORM_MUXSEL,BT848_IFORM); |
| 4669 | |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4670 | pr_debug("%d: setting input channel to:%d\n", btv->c.nr, (int)mux); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4671 | } |
| 4672 | |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4673 | static void phytec_muxsel(struct bttv *btv, unsigned int input) |
| 4674 | { |
| 4675 | unsigned int mux = input % 4; |
| 4676 | |
| 4677 | if (input == btv->svhs) |
| 4678 | mux = 0; |
| 4679 | |
| 4680 | gpio_bits(0x3, mux); |
| 4681 | } |
| 4682 | |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 4683 | /* |
| 4684 | * GeoVision GV-800(S) functions |
| 4685 | * Bruno Christo <bchristo@inf.ufsm.br> |
| 4686 | */ |
| 4687 | |
| 4688 | /* This is a function to control the analog switch, which determines which |
| 4689 | * camera is routed to which controller. The switch comprises an X-address |
| 4690 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a |
| 4691 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). |
| 4692 | * A data value (gpio bit 18) of '1' enables the switch, and '0' disables |
| 4693 | * the switch. A STROBE bit (gpio bit 17) latches the data value into the |
| 4694 | * specified address. There is also a chip select (gpio bit 16). |
| 4695 | * The idea is to set the address and chip select together, bring |
| 4696 | * STROBE high, write the data, and finally bring STROBE back to low. |
| 4697 | */ |
| 4698 | static void gv800s_write(struct bttv *btv, |
| 4699 | unsigned char xaddr, |
| 4700 | unsigned char yaddr, |
| 4701 | unsigned char data) { |
| 4702 | /* On the "master" 878A: |
| 4703 | * GPIO bits 0-9 are used for the analog switch: |
| 4704 | * 00 - 03: camera selector |
| 4705 | * 04 - 06: 878A (controller) selector |
| 4706 | * 16: cselect |
| 4707 | * 17: strobe |
| 4708 | * 18: data (1->on, 0->off) |
| 4709 | * 19: reset |
| 4710 | */ |
| 4711 | const u32 ADDRESS = ((xaddr&0xf) | (yaddr&3)<<4); |
| 4712 | const u32 CSELECT = 1<<16; |
| 4713 | const u32 STROBE = 1<<17; |
| 4714 | const u32 DATA = data<<18; |
| 4715 | |
| 4716 | gpio_bits(0x1007f, ADDRESS | CSELECT); /* write ADDRESS and CSELECT */ |
| 4717 | gpio_bits(0x20000, STROBE); /* STROBE high */ |
| 4718 | gpio_bits(0x40000, DATA); /* write DATA */ |
| 4719 | gpio_bits(0x20000, ~STROBE); /* STROBE low */ |
| 4720 | } |
| 4721 | |
| 4722 | /* |
| 4723 | * GeoVision GV-800(S) muxsel |
| 4724 | * |
| 4725 | * Each of the 4 cards (controllers) use this function. |
| 4726 | * The controller using this function selects the input through the GPIO pins |
| 4727 | * of the "master" card. A pointer to this card is stored in master[btv->c.nr]. |
| 4728 | * |
| 4729 | * The parameter 'input' is the requested camera number (0-4) on the controller. |
| 4730 | * The map array has the address of each input. Note that the addresses in the |
| 4731 | * array are in the sequence the original GeoVision driver uses, that is, set |
| 4732 | * every controller to input 0, then to input 1, 2, 3, repeat. This means that |
| 4733 | * the physical "camera 1" connector corresponds to controller 0 input 0, |
| 4734 | * "camera 2" corresponds to controller 1 input 0, and so on. |
| 4735 | * |
| 4736 | * After getting the input address, the function then writes the appropriate |
| 4737 | * data to the analog switch, and housekeeps the local copy of the switch |
| 4738 | * information. |
| 4739 | */ |
| 4740 | static void gv800s_muxsel(struct bttv *btv, unsigned int input) |
| 4741 | { |
| 4742 | struct bttv *mctlr; |
| 4743 | char *sw_status; |
| 4744 | int xaddr, yaddr; |
| 4745 | static unsigned int map[4][4] = { { 0x0, 0x4, 0xa, 0x6 }, |
| 4746 | { 0x1, 0x5, 0xb, 0x7 }, |
| 4747 | { 0x2, 0x8, 0xc, 0xe }, |
| 4748 | { 0x3, 0x9, 0xd, 0xf } }; |
| 4749 | input = input%4; |
| 4750 | mctlr = master[btv->c.nr]; |
| 4751 | if (mctlr == NULL) { |
| 4752 | /* do nothing until the "master" is detected */ |
| 4753 | return; |
| 4754 | } |
| 4755 | yaddr = (btv->c.nr - mctlr->c.nr) & 3; |
| 4756 | sw_status = (char *)(&mctlr->mbox_we); |
| 4757 | xaddr = map[yaddr][input] & 0xf; |
| 4758 | |
| 4759 | /* Check if the controller/camera pair has changed, ignore otherwise */ |
| 4760 | if (sw_status[yaddr] != xaddr) { |
| 4761 | /* disable the old switch, enable the new one and save status */ |
| 4762 | gv800s_write(mctlr, sw_status[yaddr], yaddr, 0); |
| 4763 | sw_status[yaddr] = xaddr; |
| 4764 | gv800s_write(mctlr, xaddr, yaddr, 1); |
| 4765 | } |
| 4766 | } |
| 4767 | |
| 4768 | /* GeoVision GV-800(S) "master" chip init */ |
| 4769 | static void gv800s_init(struct bttv *btv) |
| 4770 | { |
| 4771 | char *sw_status = (char *)(&btv->mbox_we); |
| 4772 | int ix; |
| 4773 | |
| 4774 | gpio_inout(0xf107f, 0xf107f); |
| 4775 | gpio_write(1<<19); /* reset the analog MUX */ |
| 4776 | gpio_write(0); |
| 4777 | |
| 4778 | /* Preset camera 0 to the 4 controllers */ |
| 4779 | for (ix = 0; ix < 4; ix++) { |
| 4780 | sw_status[ix] = ix; |
| 4781 | gv800s_write(btv, ix, ix, 1); |
| 4782 | } |
| 4783 | |
| 4784 | /* Inputs on the "master" controller need this brightness fix */ |
| 4785 | bttv_I2CWrite(btv, 0x18, 0x5, 0x90, 1); |
| 4786 | |
| 4787 | if (btv->c.nr > BTTV_MAX-4) |
| 4788 | return; |
| 4789 | /* |
| 4790 | * Store the "master" controller pointer in the master |
| 4791 | * array for later use in the muxsel function. |
| 4792 | */ |
| 4793 | master[btv->c.nr] = btv; |
| 4794 | master[btv->c.nr+1] = btv; |
| 4795 | master[btv->c.nr+2] = btv; |
| 4796 | master[btv->c.nr+3] = btv; |
| 4797 | } |
| 4798 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4799 | /* ----------------------------------------------------------------------- */ |
| 4800 | /* motherboard chipset specific stuff */ |
| 4801 | |
Adrian Bunk | 7d44e89 | 2007-12-11 19:23:43 -0300 | [diff] [blame] | 4802 | void __init bttv_check_chipset(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4803 | { |
| 4804 | int pcipci_fail = 0; |
| 4805 | struct pci_dev *dev = NULL; |
| 4806 | |
Alan Cox | 3d265c9 | 2006-09-14 11:53:16 -0300 | [diff] [blame] | 4807 | 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] | 4808 | pcipci_fail = 1; |
| 4809 | if (pci_pci_problems & (PCIPCI_TRITON|PCIPCI_NATOMA|PCIPCI_VIAETBF)) |
| 4810 | triton1 = 1; |
| 4811 | if (pci_pci_problems & PCIPCI_VSFX) |
| 4812 | vsfx = 1; |
| 4813 | #ifdef PCIPCI_ALIMAGIK |
| 4814 | if (pci_pci_problems & PCIPCI_ALIMAGIK) |
| 4815 | latency = 0x0A; |
| 4816 | #endif |
| 4817 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4818 | |
| 4819 | /* print warnings about any quirks found */ |
| 4820 | if (triton1) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4821 | pr_info("Host bridge needs ETBF enabled\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4822 | if (vsfx) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4823 | pr_info("Host bridge needs VSFX enabled\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4824 | if (pcipci_fail) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4825 | pr_info("bttv and your chipset may not work together\n"); |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 4826 | if (!no_overlay) { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4827 | pr_info("overlay will be disabled\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4828 | no_overlay = 1; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 4829 | } else { |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4830 | pr_info("overlay forced. Use this option at your own risk.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4831 | } |
| 4832 | } |
| 4833 | if (UNSET != latency) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4834 | pr_info("pci latency fixup [%d]\n", latency); |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 4835 | while ((dev = pci_get_device(PCI_VENDOR_ID_INTEL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4836 | PCI_DEVICE_ID_INTEL_82441, dev))) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4837 | unsigned char b; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4838 | pci_read_config_byte(dev, 0x53, &b); |
| 4839 | if (bttv_debug) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4840 | pr_info("Host bridge: 82441FX Natoma, bufcon=0x%02x\n", |
| 4841 | b); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4842 | } |
| 4843 | } |
| 4844 | |
| 4845 | int __devinit bttv_handle_chipset(struct bttv *btv) |
| 4846 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4847 | unsigned char command; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4848 | |
| 4849 | if (!triton1 && !vsfx && UNSET == latency) |
| 4850 | return 0; |
| 4851 | |
| 4852 | if (bttv_verbose) { |
| 4853 | if (triton1) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4854 | pr_info("%d: enabling ETBF (430FX/VP3 compatibility)\n", |
| 4855 | btv->c.nr); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4856 | if (vsfx && btv->id >= 878) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4857 | pr_info("%d: enabling VSFX\n", btv->c.nr); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4858 | if (UNSET != latency) |
Joe Perches | 8af443e | 2011-08-21 19:56:48 -0300 | [diff] [blame] | 4859 | pr_info("%d: setting pci timer to %d\n", |
| 4860 | btv->c.nr, latency); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4861 | } |
| 4862 | |
| 4863 | if (btv->id < 878) { |
| 4864 | /* bt848 (mis)uses a bit in the irq mask for etbf */ |
| 4865 | if (triton1) |
| 4866 | btv->triton1 = BT848_INT_ETBF; |
| 4867 | } else { |
| 4868 | /* bt878 has a bit in the pci config space for it */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4869 | pci_read_config_byte(btv->c.pci, BT878_DEVCTRL, &command); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4870 | if (triton1) |
| 4871 | command |= BT878_EN_TBFX; |
| 4872 | if (vsfx) |
| 4873 | command |= BT878_EN_VSFX; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4874 | pci_write_config_byte(btv->c.pci, BT878_DEVCTRL, command); |
| 4875 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4876 | if (UNSET != latency) |
| 4877 | pci_write_config_byte(btv->c.pci, PCI_LATENCY_TIMER, latency); |
| 4878 | return 0; |
| 4879 | } |
| 4880 | |
| 4881 | |
| 4882 | /* |
| 4883 | * Local variables: |
| 4884 | * c-basic-offset: 8 |
| 4885 | * End: |
| 4886 | */ |