Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | |
| 3 | bttv-cards.c |
| 4 | |
| 5 | this file has configuration informations - card-specific stuff |
| 6 | like the big tvcards array for the most part |
| 7 | |
| 8 | Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 9 | & Marcus Metzler (mocm@thp.uni-koeln.de) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | (c) 1999-2001 Gerd Knorr <kraxel@goldbach.in-berlin.de> |
| 11 | |
| 12 | This program is free software; you can redistribute it and/or modify |
| 13 | it under the terms of the GNU General Public License as published by |
| 14 | the Free Software Foundation; either version 2 of the License, or |
| 15 | (at your option) any later version. |
| 16 | |
| 17 | This program is distributed in the hope that it will be useful, |
| 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | GNU General Public License for more details. |
| 21 | |
| 22 | You should have received a copy of the GNU General Public License |
| 23 | along with this program; if not, write to the Free Software |
| 24 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 25 | |
| 26 | */ |
| 27 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | #include <linux/delay.h> |
| 29 | #include <linux/module.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #include <linux/kmod.h> |
| 31 | #include <linux/init.h> |
| 32 | #include <linux/pci.h> |
| 33 | #include <linux/vmalloc.h> |
| 34 | #include <linux/firmware.h> |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 35 | #include <net/checksum.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 37 | #include <asm/unaligned.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | #include <asm/io.h> |
| 39 | |
| 40 | #include "bttvp.h" |
Michael Krufky | 5e453dc | 2006-01-09 15:32:31 -0200 | [diff] [blame] | 41 | #include <media/v4l2-common.h> |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 42 | #include <media/tvaudio.h> |
Mauro Carvalho Chehab | c2806d0 | 2007-10-26 16:54:54 -0300 | [diff] [blame] | 43 | #include "bttv-audio-hook.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | |
| 45 | /* fwd decl */ |
| 46 | static void boot_msp34xx(struct bttv *btv, int pin); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | static void hauppauge_eeprom(struct bttv *btv); |
| 48 | static void avermedia_eeprom(struct bttv *btv); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 49 | static void osprey_eeprom(struct bttv *btv, const u8 ee[256]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | static void modtec_eeprom(struct bttv *btv); |
| 51 | static void init_PXC200(struct bttv *btv); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 52 | static void init_RTV24(struct bttv *btv); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 53 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | static void rv605_muxsel(struct bttv *btv, unsigned int input); |
| 55 | static void eagle_muxsel(struct bttv *btv, unsigned int input); |
| 56 | static void xguard_muxsel(struct bttv *btv, unsigned int input); |
| 57 | static void ivc120_muxsel(struct bttv *btv, unsigned int input); |
| 58 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input); |
| 59 | |
| 60 | static void PXC200_muxsel(struct bttv *btv, unsigned int input); |
| 61 | |
| 62 | static void picolo_tetra_muxsel(struct bttv *btv, unsigned int input); |
| 63 | static void picolo_tetra_init(struct bttv *btv); |
| 64 | |
| 65 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input); |
| 66 | static void tibetCS16_init(struct bttv *btv); |
| 67 | |
| 68 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input); |
| 69 | static void kodicom4400r_init(struct bttv *btv); |
| 70 | |
| 71 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input); |
| 72 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input); |
| 73 | |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 74 | static void geovision_muxsel(struct bttv *btv, unsigned int input); |
| 75 | |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 76 | static void phytec_muxsel(struct bttv *btv, unsigned int input); |
| 77 | |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 78 | static void gv800s_muxsel(struct bttv *btv, unsigned int input); |
| 79 | static void gv800s_init(struct bttv *btv); |
| 80 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 81 | static int terratec_active_radio_upgrade(struct bttv *btv); |
| 82 | static int tea5757_read(struct bttv *btv); |
| 83 | static int tea5757_write(struct bttv *btv, int value); |
| 84 | static void identify_by_eeprom(struct bttv *btv, |
| 85 | unsigned char eeprom_data[256]); |
| 86 | static int __devinit pvr_boot(struct bttv *btv); |
| 87 | |
| 88 | /* config variables */ |
Mauro Carvalho Chehab | a5ed425 | 2006-01-13 14:10:19 -0200 | [diff] [blame] | 89 | static unsigned int triton1; |
| 90 | static unsigned int vsfx; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 91 | static unsigned int latency = UNSET; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 92 | int no_overlay=-1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | |
| 94 | static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 95 | static unsigned int pll[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 96 | static unsigned int tuner[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 97 | static unsigned int svhs[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 98 | static unsigned int remote[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 99 | static unsigned int audiodev[BTTV_MAX]; |
| 100 | static unsigned int saa6588[BTTV_MAX]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 101 | static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL }; |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 102 | static unsigned int autoload = UNSET; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 103 | static unsigned int gpiomask = UNSET; |
| 104 | static unsigned int audioall = UNSET; |
| 105 | static unsigned int audiomux[5] = { [ 0 ... 4 ] = UNSET }; |
| 106 | |
| 107 | /* insmod options */ |
| 108 | module_param(triton1, int, 0444); |
| 109 | module_param(vsfx, int, 0444); |
| 110 | module_param(no_overlay, int, 0444); |
| 111 | module_param(latency, int, 0444); |
| 112 | module_param(gpiomask, int, 0444); |
| 113 | module_param(audioall, int, 0444); |
| 114 | module_param(autoload, int, 0444); |
| 115 | |
| 116 | module_param_array(card, int, NULL, 0444); |
| 117 | module_param_array(pll, int, NULL, 0444); |
| 118 | module_param_array(tuner, int, NULL, 0444); |
| 119 | module_param_array(svhs, int, NULL, 0444); |
| 120 | module_param_array(remote, int, NULL, 0444); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 121 | module_param_array(audiodev, int, NULL, 0444); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 122 | module_param_array(audiomux, int, NULL, 0444); |
| 123 | |
| 124 | MODULE_PARM_DESC(triton1,"set ETBF pci config bit " |
| 125 | "[enable bug compatibility for triton1 + others]"); |
| 126 | MODULE_PARM_DESC(vsfx,"set VSFX pci config bit " |
| 127 | "[yet another chipset flaw workaround]"); |
| 128 | MODULE_PARM_DESC(latency,"pci latency timer"); |
| 129 | MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list"); |
| 130 | MODULE_PARM_DESC(pll,"specify installed crystal (0=none, 28=28 MHz, 35=35 MHz)"); |
| 131 | MODULE_PARM_DESC(tuner,"specify installed tuner type"); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 132 | MODULE_PARM_DESC(autoload, "obsolete option, please do not use anymore"); |
| 133 | MODULE_PARM_DESC(audiodev, "specify audio device:\n" |
| 134 | "\t\t-1 = no audio\n" |
| 135 | "\t\t 0 = autodetect (default)\n" |
| 136 | "\t\t 1 = msp3400\n" |
| 137 | "\t\t 2 = tda7432\n" |
| 138 | "\t\t 3 = tvaudio"); |
| 139 | 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] | 140 | MODULE_PARM_DESC(no_overlay,"allow override overlay default (0 disables, 1 enables)" |
| 141 | " [some VIA/SIS chipsets are known to have problem with overlay]"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 142 | |
| 143 | /* ----------------------------------------------------------------------- */ |
| 144 | /* list of card IDs for bt878+ cards */ |
| 145 | |
| 146 | static struct CARD { |
| 147 | unsigned id; |
| 148 | int cardnr; |
| 149 | char *name; |
| 150 | } cards[] __devinitdata = { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 151 | { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" }, |
| 152 | { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" }, |
| 153 | { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" }, |
| 154 | { 0xff000070, BTTV_BOARD_OSPREY1x0, "Osprey-100" }, |
| 155 | { 0xff010070, BTTV_BOARD_OSPREY2x0_SVID,"Osprey-200" }, |
| 156 | { 0xff020070, BTTV_BOARD_OSPREY500, "Osprey-500" }, |
| 157 | { 0xff030070, BTTV_BOARD_OSPREY2000, "Osprey-2000" }, |
| 158 | { 0xff040070, BTTV_BOARD_OSPREY540, "Osprey-540" }, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 159 | { 0xff070070, BTTV_BOARD_OSPREY440, "Osprey-440" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 160 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 161 | { 0x00011002, BTTV_BOARD_ATI_TVWONDER, "ATI TV Wonder" }, |
| 162 | { 0x00031002, BTTV_BOARD_ATI_TVWONDERVE,"ATI TV Wonder/VE" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 163 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 164 | { 0x6606107d, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 165 | { 0x6607107d, BTTV_BOARD_WINFASTVC100, "Leadtek WinFast VC 100" }, |
| 166 | { 0x6609107d, BTTV_BOARD_WINFAST2000, "Leadtek TV 2000 XP" }, |
| 167 | { 0x263610b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" }, |
| 168 | { 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] | 169 | { 0x402010fc, BTTV_BOARD_GVBCTV3PCI, "I-O Data Co. GV-BCTV3/PCI" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 170 | { 0x405010fc, BTTV_BOARD_GVBCTV4PCI, "I-O Data Co. GV-BCTV4/PCI" }, |
| 171 | { 0x407010fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 172 | { 0xd01810fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 173 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 174 | { 0x001211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 175 | /* some cards ship with byteswapped IDs ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 176 | { 0x1200bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
| 177 | { 0xff00bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 178 | /* this seems to happen as well ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 179 | { 0xff1211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 180 | |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 181 | { 0x3000121a, BTTV_BOARD_VOODOOTV_200, "3Dfx VoodooTV 200" }, |
| 182 | { 0x263710b4, BTTV_BOARD_VOODOOTV_FM, "3Dfx VoodooTV FM" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 183 | { 0x3060121a, BTTV_BOARD_STB2, "3Dfx VoodooTV 100/ STB OEM" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 184 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 185 | { 0x3000144f, BTTV_BOARD_MAGICTVIEW063, "(Askey Magic/others) TView99 CPH06x" }, |
| 186 | { 0xa005144f, BTTV_BOARD_MAGICTVIEW063, "CPH06X TView99-Card" }, |
| 187 | { 0x3002144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH05x" }, |
| 188 | { 0x3005144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH061/06L (T1/LC)" }, |
| 189 | { 0x5000144f, BTTV_BOARD_MAGICTVIEW061, "Askey CPH050" }, |
| 190 | { 0x300014ff, BTTV_BOARD_MAGICTVIEW061, "TView 99 (CPH061)" }, |
| 191 | { 0x300214ff, BTTV_BOARD_PHOEBE_TVMAS, "Phoebe TV Master (CPH060)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 192 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 193 | { 0x00011461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 194 | { 0x00021461, BTTV_BOARD_AVERMEDIA98, "AVermedia TVCapture 98" }, |
| 195 | { 0x00031461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 196 | { 0x00041461, BTTV_BOARD_AVERMEDIA98, "AVerMedia TVCapture 98" }, |
| 197 | { 0x03001461, BTTV_BOARD_AVERMEDIA98, "VDOMATE TV TUNER CARD" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 198 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 199 | { 0x1117153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL B/G)" }, |
| 200 | { 0x1118153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL B/G)" }, |
| 201 | { 0x1119153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL I)" }, |
| 202 | { 0x111a153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL I)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 203 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 204 | { 0x1123153b, BTTV_BOARD_TERRATVRADIO, "Terratec TV Radio+" }, |
| 205 | { 0x1127153b, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.05)" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 206 | /* clashes with FlyVideo |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 207 | *{ 0x18521852, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.10)" }, */ |
| 208 | { 0x1134153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (LR102)" }, |
| 209 | { 0x1135153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* LR102 */ |
| 210 | { 0x5018153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue" }, /* ?? */ |
| 211 | { 0xff3b153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* ?? */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 212 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 213 | { 0x400015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 214 | { 0x400a15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 215 | { 0x400d15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 216 | { 0x401015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 217 | { 0x401615b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 218 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 219 | { 0x1430aa00, BTTV_BOARD_PV143, "Provideo PV143A" }, |
| 220 | { 0x1431aa00, BTTV_BOARD_PV143, "Provideo PV143B" }, |
| 221 | { 0x1432aa00, BTTV_BOARD_PV143, "Provideo PV143C" }, |
| 222 | { 0x1433aa00, BTTV_BOARD_PV143, "Provideo PV143D" }, |
| 223 | { 0x1433aa03, BTTV_BOARD_PV143, "Security Eyes" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 224 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 225 | { 0x1460aa00, BTTV_BOARD_PV150, "Provideo PV150A-1" }, |
| 226 | { 0x1461aa01, BTTV_BOARD_PV150, "Provideo PV150A-2" }, |
| 227 | { 0x1462aa02, BTTV_BOARD_PV150, "Provideo PV150A-3" }, |
| 228 | { 0x1463aa03, BTTV_BOARD_PV150, "Provideo PV150A-4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 229 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 230 | { 0x1464aa04, BTTV_BOARD_PV150, "Provideo PV150B-1" }, |
| 231 | { 0x1465aa05, BTTV_BOARD_PV150, "Provideo PV150B-2" }, |
| 232 | { 0x1466aa06, BTTV_BOARD_PV150, "Provideo PV150B-3" }, |
| 233 | { 0x1467aa07, BTTV_BOARD_PV150, "Provideo PV150B-4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 234 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 235 | { 0xa132ff00, BTTV_BOARD_IVC100, "IVC-100" }, |
| 236 | { 0xa1550000, BTTV_BOARD_IVC200, "IVC-200" }, |
| 237 | { 0xa1550001, BTTV_BOARD_IVC200, "IVC-200" }, |
| 238 | { 0xa1550002, BTTV_BOARD_IVC200, "IVC-200" }, |
| 239 | { 0xa1550003, BTTV_BOARD_IVC200, "IVC-200" }, |
| 240 | { 0xa1550100, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 241 | { 0xa1550101, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 242 | { 0xa1550102, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 243 | { 0xa1550103, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 244 | { 0xa182ff00, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 245 | { 0xa182ff01, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 246 | { 0xa182ff02, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 247 | { 0xa182ff03, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 248 | { 0xa182ff04, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 249 | { 0xa182ff05, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 250 | { 0xa182ff06, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 251 | { 0xa182ff07, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 252 | { 0xa182ff08, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 253 | { 0xa182ff09, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 254 | { 0xa182ff0a, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 255 | { 0xa182ff0b, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 256 | { 0xa182ff0c, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 257 | { 0xa182ff0d, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 258 | { 0xa182ff0e, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 259 | { 0xa182ff0f, BTTV_BOARD_IVC120, "IVC-120G" }, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 260 | { 0xf0500000, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 261 | { 0xf0500001, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 262 | { 0xf0500002, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
| 263 | { 0xf0500003, BTTV_BOARD_IVCE8784, "IVCE-8784" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 264 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 265 | { 0x41424344, BTTV_BOARD_GRANDTEC, "GrandTec Multi Capture" }, |
| 266 | { 0x01020304, BTTV_BOARD_XGUARD, "Grandtec Grand X-Guard" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 267 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 268 | { 0x18501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 269 | { 0xa0501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 270 | { 0x18511851, BTTV_BOARD_FLYVIDEO98EZ, "FlyVideo 98EZ (LR51)/ CyberMail AV" }, |
| 271 | { 0x18521852, BTTV_BOARD_TYPHOON_TVIEW, "FlyVideo 98FM (LR50)/ Typhoon TView TV/FM Tuner" }, |
| 272 | { 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" }, |
| 273 | { 0x18501f7f, BTTV_BOARD_FLYVIDEO_98, "Lifeview Flyvideo 98" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 274 | |
Trent Piepho | 657de3c | 2006-06-20 00:30:57 -0300 | [diff] [blame] | 275 | { 0x010115cb, BTTV_BOARD_GMV1, "AG GMV1" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 276 | { 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] | 277 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 278 | { 0x10b42636, BTTV_BOARD_HAUPPAUGE878, "STB ???" }, |
| 279 | { 0x217d6606, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 280 | { 0xfff6f6ff, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 281 | { 0x03116000, BTTV_BOARD_SENSORAY311, "Sensoray 311" }, |
| 282 | { 0x00790e11, BTTV_BOARD_WINDVR, "Canopus WinDVR PCI" }, |
| 283 | { 0xa0fca1a0, BTTV_BOARD_ZOLTRIX, "Face to Face Tvmax" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 284 | { 0x82b2aa6a, BTTV_BOARD_SIMUS_GVC1100, "SIMUS GVC1100" }, |
| 285 | { 0x146caa0c, BTTV_BOARD_PV951, "ituner spectra8" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 286 | { 0x200a1295, BTTV_BOARD_PXC200, "ImageNation PXC200A" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 287 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 288 | { 0x40111554, BTTV_BOARD_PV_BT878P_9B, "Prolink Pixelview PV-BT" }, |
| 289 | { 0x17de0a01, BTTV_BOARD_KWORLD, "Mecer TV/FM/Video Tuner" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 290 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 291 | { 0x01051805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #1" }, |
| 292 | { 0x01061805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #2" }, |
| 293 | { 0x01071805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #3" }, |
| 294 | { 0x01081805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 295 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 296 | { 0x15409511, BTTV_BOARD_ACORP_Y878F, "Acorp Y878F" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 297 | |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 298 | { 0x53534149, BTTV_BOARD_SSAI_SECURITY, "SSAI Security Video Interface" }, |
| 299 | { 0x5353414a, BTTV_BOARD_SSAI_ULTRASOUND, "SSAI Ultrasound Video Interface" }, |
| 300 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 301 | /* likely broken, vendor id doesn't match the other magic views ... |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 302 | * { 0xa0fca04f, BTTV_BOARD_MAGICTVIEW063, "Guillemot Maxi TV Video 3" }, */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 303 | |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 304 | /* Duplicate PCI ID, reconfigure for this board during the eeprom read. |
| 305 | * { 0x13eb0070, BTTV_BOARD_HAUPPAUGE_IMPACTVCB, "Hauppauge ImpactVCB" }, */ |
| 306 | |
Robert Millan | 76ecf45 | 2009-03-11 08:18:53 -0300 | [diff] [blame] | 307 | { 0x109e036e, BTTV_BOARD_CONCEPTRONIC_CTVFMI2, "Conceptronic CTVFMi v2"}, |
| 308 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 309 | /* DVB cards (using pci function .1 for mpeg data xfer) */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 310 | { 0x001c11bd, BTTV_BOARD_PINNACLESAT, "Pinnacle PCTV Sat" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 311 | { 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" }, |
| 312 | { 0x20007063, BTTV_BOARD_PC_HDTV, "pcHDTV HD-2000 TV"}, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 313 | { 0x002611bd, BTTV_BOARD_TWINHAN_DST, "Pinnacle PCTV SAT CI" }, |
| 314 | { 0x00011822, BTTV_BOARD_TWINHAN_DST, "Twinhan VisionPlus DVB" }, |
| 315 | { 0xfc00270f, BTTV_BOARD_TWINHAN_DST, "ChainTech digitop DST-1000 DVB-S" }, |
| 316 | { 0x07711461, BTTV_BOARD_AVDVBT_771, "AVermedia AverTV DVB-T 771" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 317 | { 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 318 | { 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" }, |
Michael Krufky | 19790db | 2007-01-07 22:12:22 -0300 | [diff] [blame] | 319 | { 0xdb1118ac, BTTV_BOARD_DVICO_DVBT_LITE, "Ultraview DVB-T Lite" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 320 | { 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" }, |
Cameron Hutchinson | 442d15d | 2006-06-21 18:45:31 -0300 | [diff] [blame] | 321 | { 0x00261822, BTTV_BOARD_TWINHAN_DST, "DNTV Live! Mini "}, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 322 | { 0xd200dbc0, BTTV_BOARD_DVICO_FUSIONHDTV_2, "DViCO FusionHDTV 2" }, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 323 | { 0x763c008a, BTTV_BOARD_GEOVISION_GV600, "GeoVision GV-600" }, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 324 | { 0x18011000, BTTV_BOARD_ENLTV_FM_2, "Encore ENL TV-FM-2" }, |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 325 | { 0x763d800a, BTTV_BOARD_GEOVISION_GV800S, "GeoVision GV-800(S) (master)" }, |
| 326 | { 0x763d800b, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, |
| 327 | { 0x763d800c, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, |
| 328 | { 0x763d800d, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, |
Alan McIvor | dceaddb | 2009-03-12 21:43:34 -0300 | [diff] [blame] | 329 | |
| 330 | { 0x15401830, BTTV_BOARD_PV183, "Provideo PV183-1" }, |
| 331 | { 0x15401831, BTTV_BOARD_PV183, "Provideo PV183-2" }, |
| 332 | { 0x15401832, BTTV_BOARD_PV183, "Provideo PV183-3" }, |
| 333 | { 0x15401833, BTTV_BOARD_PV183, "Provideo PV183-4" }, |
| 334 | { 0x15401834, BTTV_BOARD_PV183, "Provideo PV183-5" }, |
| 335 | { 0x15401835, BTTV_BOARD_PV183, "Provideo PV183-6" }, |
| 336 | { 0x15401836, BTTV_BOARD_PV183, "Provideo PV183-7" }, |
| 337 | { 0x15401837, BTTV_BOARD_PV183, "Provideo PV183-8" }, |
| 338 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 339 | { 0, -1, NULL } |
| 340 | }; |
| 341 | |
| 342 | /* ----------------------------------------------------------------------- */ |
| 343 | /* array with description for bt848 / bt878 tv/grabber cards */ |
| 344 | |
| 345 | struct tvcard bttv_tvcards[] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 346 | /* ---- card 0x00 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 347 | [BTTV_BOARD_UNKNOWN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 348 | .name = " *** UNKNOWN/GENERIC *** ", |
| 349 | .video_inputs = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 350 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 351 | .muxsel = MUXSEL(2, 3, 1, 0), |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 352 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 353 | .tuner_addr = ADDR_UNSET, |
| 354 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 355 | [BTTV_BOARD_MIRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 356 | .name = "MIRO PCTV", |
| 357 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 358 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 359 | .svhs = 2, |
| 360 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 361 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 362 | .gpiomux = { 2, 0, 0, 0 }, |
| 363 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 364 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 365 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 366 | .tuner_addr = ADDR_UNSET, |
| 367 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 368 | [BTTV_BOARD_HAUPPAUGE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 369 | .name = "Hauppauge (bt848)", |
| 370 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 371 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 372 | .svhs = 2, |
| 373 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 374 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 375 | .gpiomux = { 0, 1, 2, 3 }, |
| 376 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 377 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 378 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 379 | .tuner_addr = ADDR_UNSET, |
| 380 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 381 | [BTTV_BOARD_STB] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 382 | .name = "STB, Gateway P/N 6000699 (bt848)", |
| 383 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 384 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 385 | .svhs = 2, |
| 386 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 387 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 388 | .gpiomux = { 4, 0, 2, 3 }, |
| 389 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 390 | .no_msp34xx = 1, |
| 391 | .needs_tvaudio = 1, |
| 392 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 393 | .tuner_addr = ADDR_UNSET, |
| 394 | .pll = PLL_28, |
| 395 | .has_radio = 1, |
| 396 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 397 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 398 | /* ---- card 0x04 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 399 | [BTTV_BOARD_INTEL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 400 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 401 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 402 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 403 | .svhs = 2, |
| 404 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 405 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 406 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 407 | .needs_tvaudio = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 408 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 409 | .tuner_addr = ADDR_UNSET, |
| 410 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 411 | [BTTV_BOARD_DIAMOND] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 412 | .name = "Diamond DTV2000", |
| 413 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 414 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 415 | .svhs = 2, |
| 416 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 417 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 418 | .gpiomux = { 0, 1, 0, 1 }, |
| 419 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 420 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 421 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 422 | .tuner_addr = ADDR_UNSET, |
| 423 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 424 | [BTTV_BOARD_AVERMEDIA] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 425 | .name = "AVerMedia TVPhone", |
| 426 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 427 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 428 | .svhs = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 429 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 430 | .gpiomask = 0x0f, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 431 | .gpiomux = { 0x0c, 0x04, 0x08, 0x04 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 432 | /* 0x04 for some cards ?? */ |
| 433 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 434 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 435 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 436 | .audio_mode_gpio= avermedia_tvphone_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 437 | .has_remote = 1, |
| 438 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 439 | [BTTV_BOARD_MATRIX_VISION] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 440 | .name = "MATRIX-Vision MV-Delta", |
| 441 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 442 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 443 | .svhs = 3, |
| 444 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 445 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 446 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 447 | .needs_tvaudio = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 448 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 449 | .tuner_addr = ADDR_UNSET, |
| 450 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 451 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 452 | /* ---- card 0x08 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 453 | [BTTV_BOARD_FLYVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 454 | .name = "Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26", |
| 455 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 456 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 457 | .svhs = 2, |
| 458 | .gpiomask = 0xc00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 459 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 460 | .gpiomux = { 0, 0xc00, 0x800, 0x400 }, |
| 461 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 462 | .needs_tvaudio = 1, |
| 463 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 464 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 465 | .tuner_addr = ADDR_UNSET, |
| 466 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 467 | [BTTV_BOARD_TURBOTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 468 | .name = "IMS/IXmicro TurboTV", |
| 469 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 470 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 471 | .svhs = 2, |
| 472 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 473 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 474 | .gpiomux = { 1, 1, 2, 3 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 475 | .needs_tvaudio = 0, |
| 476 | .pll = PLL_28, |
| 477 | .tuner_type = TUNER_TEMIC_PAL, |
| 478 | .tuner_addr = ADDR_UNSET, |
| 479 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 480 | [BTTV_BOARD_HAUPPAUGE878] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 481 | .name = "Hauppauge (bt878)", |
| 482 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 483 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 484 | .svhs = 2, |
| 485 | .gpiomask = 0x0f, /* old: 7 */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 486 | .muxsel = MUXSEL(2, 0, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 487 | .gpiomux = { 0, 1, 2, 3 }, |
| 488 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 489 | .needs_tvaudio = 1, |
| 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, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 503 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 504 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 505 | .tuner_addr = ADDR_UNSET, |
| 506 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 507 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 508 | /* ---- card 0x0c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 509 | [BTTV_BOARD_ADSTECH_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 510 | .name = "ADS Technologies Channel Surfer TV (bt848)", |
| 511 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 512 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 513 | .svhs = 2, |
| 514 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 515 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 516 | .gpiomux = { 13, 14, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 517 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 518 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 519 | .tuner_addr = ADDR_UNSET, |
| 520 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 521 | [BTTV_BOARD_AVERMEDIA98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 522 | .name = "AVerMedia TVCapture 98", |
| 523 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 524 | /* .audio_inputs= 4, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 525 | .svhs = 2, |
| 526 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 527 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 528 | .gpiomux = { 13, 14, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 529 | .needs_tvaudio = 1, |
| 530 | .msp34xx_alt = 1, |
| 531 | .pll = PLL_28, |
| 532 | .tuner_type = TUNER_PHILIPS_PAL, |
| 533 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 534 | .audio_mode_gpio= avermedia_tv_stereo_audio, |
Ray Cole | a8900fc | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 535 | .no_gpioirq = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 536 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 537 | [BTTV_BOARD_VHX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 538 | .name = "Aimslab Video Highway Xtreme (VHX)", |
| 539 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 540 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 541 | .svhs = 2, |
| 542 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 543 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 544 | .gpiomux = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */ |
| 545 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 546 | .needs_tvaudio = 1, |
| 547 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 548 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 549 | .tuner_addr = ADDR_UNSET, |
| 550 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 551 | [BTTV_BOARD_ZOLTRIX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 552 | .name = "Zoltrix TV-Max", |
| 553 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 554 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 555 | .svhs = 2, |
| 556 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 557 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 558 | .gpiomux = { 0, 0, 1, 0 }, |
| 559 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 560 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 561 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 562 | .tuner_addr = ADDR_UNSET, |
| 563 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 564 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 565 | /* ---- card 0x10 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 566 | [BTTV_BOARD_PIXVIEWPLAYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 567 | .name = "Prolink Pixelview PlayTV (bt878)", |
| 568 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 569 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 570 | .svhs = 2, |
| 571 | .gpiomask = 0x01fe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 572 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 573 | /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 574 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 575 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 576 | .needs_tvaudio = 1, |
| 577 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 578 | .tuner_type = UNSET, |
Wojciech Migda | 27dea3e | 2008-04-22 14:45:36 -0300 | [diff] [blame] | 579 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 580 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 581 | [BTTV_BOARD_WINVIEW_601] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 582 | .name = "Leadtek WinView 601", |
| 583 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 584 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 585 | .svhs = 2, |
| 586 | .gpiomask = 0x8300f8, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 587 | .muxsel = MUXSEL(2, 3, 1, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 588 | .gpiomux = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007 }, |
| 589 | .gpiomute = 0xcfa007, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 590 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 591 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 592 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 593 | .volume_gpio = winview_volume, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 594 | .has_radio = 1, |
| 595 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 596 | [BTTV_BOARD_AVEC_INTERCAP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 597 | .name = "AVEC Intercapture", |
| 598 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 599 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 600 | .svhs = 2, |
| 601 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 602 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 603 | .gpiomux = { 1, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 604 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 605 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 606 | .tuner_addr = ADDR_UNSET, |
| 607 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 608 | [BTTV_BOARD_LIFE_FLYKIT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 609 | .name = "Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)", |
| 610 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 611 | /* .audio_inputs= 1, */ |
| 612 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 613 | .gpiomask = 0x8dff00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 614 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 615 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 616 | .no_msp34xx = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 617 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 618 | .tuner_addr = ADDR_UNSET, |
| 619 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 620 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 621 | /* ---- card 0x14 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 622 | [BTTV_BOARD_CEI_RAFFLES] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 623 | .name = "CEI Raffles Card", |
| 624 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 625 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 626 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 627 | .muxsel = MUXSEL(2, 3, 1, 1), |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 628 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 629 | .tuner_addr = ADDR_UNSET, |
| 630 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 631 | [BTTV_BOARD_CONFERENCETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 632 | .name = "Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50", |
| 633 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 634 | /* .audio_inputs= 2, tuner, line in */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 635 | .svhs = 2, |
| 636 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 637 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 638 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 639 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 640 | .pll = PLL_28, |
| 641 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 642 | .tuner_addr = ADDR_UNSET, |
| 643 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 644 | [BTTV_BOARD_PHOEBE_TVMAS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 645 | .name = "Askey CPH050/ Phoebe Tv Master + FM", |
| 646 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 647 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 648 | .svhs = 2, |
| 649 | .gpiomask = 0xc00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 650 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 651 | .gpiomux = { 0, 1, 0x800, 0x400 }, |
| 652 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 653 | .needs_tvaudio = 1, |
| 654 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 655 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 656 | .tuner_addr = ADDR_UNSET, |
| 657 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 658 | [BTTV_BOARD_MODTEC_205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 659 | .name = "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878", |
| 660 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 661 | /* .audio_inputs= 1, */ |
| 662 | .svhs = NO_SVHS, |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 663 | .has_dig_in = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 664 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 665 | .muxsel = MUXSEL(2, 3, 0), /* input 2 is digital */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 666 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 667 | .gpiomux = { 0, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 668 | .no_msp34xx = 1, |
| 669 | .pll = PLL_28, |
| 670 | .tuner_type = TUNER_ALPS_TSBB5_PAL_I, |
| 671 | .tuner_addr = ADDR_UNSET, |
| 672 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 673 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 674 | /* ---- card 0x18 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 675 | [BTTV_BOARD_MAGICTVIEW061] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 676 | .name = "Askey CPH05X/06X (bt878) [many vendors]", |
| 677 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 678 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 679 | .svhs = 2, |
| 680 | .gpiomask = 0xe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 681 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 682 | .gpiomux = {0x400, 0x400, 0x400, 0x400 }, |
| 683 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 684 | .needs_tvaudio = 1, |
| 685 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 686 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 687 | .tuner_addr = ADDR_UNSET, |
| 688 | .has_remote = 1, |
| 689 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 690 | [BTTV_BOARD_VOBIS_BOOSTAR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 691 | .name = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar", |
| 692 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 693 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 694 | .svhs = 2, |
| 695 | .gpiomask = 0x1f0fff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 696 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 697 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 698 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 699 | .needs_tvaudio = 0, |
| 700 | .tuner_type = TUNER_PHILIPS_PAL, |
| 701 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 702 | .audio_mode_gpio= terratv_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 703 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 704 | [BTTV_BOARD_HAUPPAUG_WCAM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 705 | .name = "Hauppauge WinCam newer (bt878)", |
| 706 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 707 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 708 | .svhs = 3, |
| 709 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 710 | .muxsel = MUXSEL(2, 0, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 711 | .gpiomux = { 0, 1, 2, 3 }, |
| 712 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 713 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 714 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 715 | .tuner_addr = ADDR_UNSET, |
| 716 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 717 | [BTTV_BOARD_MAXI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 718 | .name = "Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50", |
| 719 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 720 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 721 | .svhs = 2, |
| 722 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 723 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 724 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 725 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 726 | .pll = PLL_28, |
| 727 | .tuner_type = TUNER_PHILIPS_SECAM, |
| 728 | .tuner_addr = ADDR_UNSET, |
| 729 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 730 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 731 | /* ---- card 0x1c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 732 | [BTTV_BOARD_TERRATV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 733 | .name = "Terratec TerraTV+ Version 1.1 (bt878)", |
| 734 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 735 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 736 | .svhs = 2, |
| 737 | .gpiomask = 0x1f0fff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 738 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 739 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0x00000 }, |
| 740 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 741 | .needs_tvaudio = 0, |
| 742 | .tuner_type = TUNER_PHILIPS_PAL, |
| 743 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 744 | .audio_mode_gpio= terratv_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 745 | /* GPIO wiring: |
| 746 | External 20 pin connector (for Active Radio Upgrade board) |
| 747 | gpio00: i2c-sda |
| 748 | gpio01: i2c-scl |
| 749 | gpio02: om5610-data |
| 750 | gpio03: om5610-clk |
| 751 | gpio04: om5610-wre |
| 752 | gpio05: om5610-stereo |
| 753 | gpio06: rds6588-davn |
| 754 | gpio07: Pin 7 n.c. |
| 755 | gpio08: nIOW |
| 756 | gpio09+10: nIOR, nSEL ?? (bt878) |
| 757 | gpio09: nIOR (bt848) |
| 758 | gpio10: nSEL (bt848) |
| 759 | Sound Routing: |
| 760 | gpio16: u2-A0 (1st 4052bt) |
| 761 | gpio17: u2-A1 |
| 762 | gpio18: u2-nEN |
| 763 | gpio19: u4-A0 (2nd 4052) |
| 764 | gpio20: u4-A1 |
| 765 | u4-nEN - GND |
| 766 | Btspy: |
| 767 | 00000 : Cdrom (internal audio input) |
| 768 | 10000 : ext. Video audio input |
| 769 | 20000 : TV Mono |
| 770 | a0000 : TV Mono/2 |
| 771 | 1a0000 : TV Stereo |
| 772 | 30000 : Radio |
| 773 | 40000 : Mute |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 774 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 775 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 776 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 777 | [BTTV_BOARD_PXC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 778 | /* Jannik Fritsch <jannik@techfak.uni-bielefeld.de> */ |
| 779 | .name = "Imagenation PXC200", |
| 780 | .video_inputs = 5, |
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 = 1, /* was: 4 */ |
| 783 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 784 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 785 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 786 | .needs_tvaudio = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 787 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 788 | .tuner_addr = ADDR_UNSET, |
| 789 | .muxsel_hook = PXC200_muxsel, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 790 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 791 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 792 | [BTTV_BOARD_FLYVIDEO_98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 793 | .name = "Lifeview FlyVideo 98 LR50", |
| 794 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 795 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 796 | .svhs = 2, |
| 797 | .gpiomask = 0x1800, /* 0x8dfe00 */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 798 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 799 | .gpiomux = { 0, 0x0800, 0x1000, 0x1000 }, |
| 800 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 801 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 802 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 803 | .tuner_addr = ADDR_UNSET, |
| 804 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 805 | [BTTV_BOARD_IPROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 806 | .name = "Formac iProTV, Formac ProTV I (bt848)", |
| 807 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 808 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 809 | .svhs = 3, |
| 810 | .gpiomask = 1, |
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 = { 1, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 813 | .pll = PLL_28, |
| 814 | .tuner_type = TUNER_PHILIPS_PAL, |
| 815 | .tuner_addr = ADDR_UNSET, |
| 816 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 817 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 818 | /* ---- card 0x20 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 819 | [BTTV_BOARD_INTEL_C_S_PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 820 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 821 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 822 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 823 | .svhs = 2, |
| 824 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 825 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 826 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 827 | .needs_tvaudio = 0, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 828 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 829 | .tuner_addr = ADDR_UNSET, |
| 830 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 831 | [BTTV_BOARD_TERRATVALUE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 832 | .name = "Terratec TerraTValue Version Bt878", |
| 833 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 834 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 835 | .svhs = 2, |
| 836 | .gpiomask = 0xffff00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 837 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 838 | .gpiomux = { 0x500, 0, 0x300, 0x900 }, |
| 839 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 840 | .needs_tvaudio = 1, |
| 841 | .pll = PLL_28, |
| 842 | .tuner_type = TUNER_PHILIPS_PAL, |
| 843 | .tuner_addr = ADDR_UNSET, |
| 844 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 845 | [BTTV_BOARD_WINFAST2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 846 | .name = "Leadtek WinFast 2000/ WinFast 2000 XP", |
| 847 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 848 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 849 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 850 | /* TV, CVid, SVid, CVid over SVid connector */ |
| 851 | .muxsel = MUXSEL(2, 3, 1, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 852 | /* Alexander Varakin <avarakin@hotmail.com> [stereo version] */ |
| 853 | .gpiomask = 0xb33000, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 854 | .gpiomux = { 0x122000,0x1000,0x0000,0x620000 }, |
| 855 | .gpiomute = 0x800000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 856 | /* Audio Routing for "WinFast 2000 XP" (no tv stereo !) |
| 857 | gpio23 -- hef4052:nEnable (0x800000) |
| 858 | gpio12 -- hef4052:A1 |
| 859 | gpio13 -- hef4052:A0 |
| 860 | 0x0000: external audio |
| 861 | 0x1000: FM |
| 862 | 0x2000: TV |
| 863 | 0x3000: n.c. |
| 864 | Note: There exists another variant "Winfast 2000" with tv stereo !? |
| 865 | Note: eeprom only contains FF and pci subsystem id 107d:6606 |
| 866 | */ |
| 867 | .needs_tvaudio = 0, |
| 868 | .pll = PLL_28, |
| 869 | .has_radio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 870 | .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] | 871 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 872 | .audio_mode_gpio= winfast2000_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 873 | .has_remote = 1, |
| 874 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 875 | [BTTV_BOARD_CHRONOS_VS2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 876 | .name = "Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II", |
| 877 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 878 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 879 | .svhs = 2, |
| 880 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 881 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 882 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 883 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 884 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 885 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 886 | .tuner_addr = ADDR_UNSET, |
| 887 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 888 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 889 | /* ---- card 0x24 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 890 | [BTTV_BOARD_TYPHOON_TVIEW] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 891 | .name = "Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tuner", |
| 892 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 893 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 894 | .svhs = 2, |
| 895 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 896 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 897 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 898 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 899 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 900 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 901 | .tuner_addr = ADDR_UNSET, |
| 902 | .has_radio = 1, |
| 903 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 904 | [BTTV_BOARD_PXELVWPLTVPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 905 | .name = "Prolink PixelView PlayTV pro", |
| 906 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 907 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 908 | .svhs = 2, |
| 909 | .gpiomask = 0xff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 910 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 911 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 912 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 913 | .no_msp34xx = 1, |
| 914 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 915 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 916 | .tuner_addr = ADDR_UNSET, |
| 917 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 918 | [BTTV_BOARD_MAGICTVIEW063] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 919 | .name = "Askey CPH06X TView99", |
| 920 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 921 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 922 | .svhs = 2, |
| 923 | .gpiomask = 0x551e00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 924 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 925 | .gpiomux = { 0x551400, 0x551200, 0, 0 }, |
| 926 | .gpiomute = 0x551c00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 927 | .needs_tvaudio = 1, |
| 928 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 929 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 930 | .tuner_addr = ADDR_UNSET, |
| 931 | .has_remote = 1, |
| 932 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 933 | [BTTV_BOARD_PINNACLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 934 | .name = "Pinnacle PCTV Studio/Rave", |
| 935 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 936 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 937 | .svhs = 2, |
| 938 | .gpiomask = 0x03000F, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 939 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 940 | .gpiomux = { 2, 0xd0001, 0, 0 }, |
| 941 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 942 | .needs_tvaudio = 0, |
| 943 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 944 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 945 | .tuner_addr = ADDR_UNSET, |
| 946 | }, |
| 947 | |
| 948 | /* ---- card 0x28 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 949 | [BTTV_BOARD_STB2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 950 | .name = "STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100", |
| 951 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 952 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 953 | .svhs = 2, |
| 954 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 955 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 956 | .gpiomux = { 4, 0, 2, 3 }, |
| 957 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 958 | .no_msp34xx = 1, |
| 959 | .needs_tvaudio = 1, |
| 960 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 961 | .tuner_addr = ADDR_UNSET, |
| 962 | .pll = PLL_28, |
| 963 | .has_radio = 1, |
| 964 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 965 | [BTTV_BOARD_AVPHONE98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 966 | .name = "AVerMedia TVPhone 98", |
| 967 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 968 | /* .audio_inputs= 4, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 969 | .svhs = 2, |
| 970 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 971 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 972 | .gpiomux = { 13, 4, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 973 | .needs_tvaudio = 1, |
| 974 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 975 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 976 | .tuner_addr = ADDR_UNSET, |
| 977 | .has_radio = 1, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 978 | .audio_mode_gpio= avermedia_tvphone_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 979 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 980 | [BTTV_BOARD_PV951] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 981 | .name = "ProVideo PV951", /* pic16c54 */ |
| 982 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 983 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 984 | .svhs = 2, |
| 985 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 986 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 987 | .gpiomux = { 0, 0, 0, 0}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 988 | .needs_tvaudio = 1, |
| 989 | .no_msp34xx = 1, |
| 990 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 991 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 992 | .tuner_addr = ADDR_UNSET, |
| 993 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 994 | [BTTV_BOARD_ONAIR_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 995 | .name = "Little OnAir TV", |
| 996 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 997 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 998 | .svhs = 2, |
| 999 | .gpiomask = 0xe00b, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1000 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1001 | .gpiomux = { 0xff9ff6, 0xff9ff6, 0xff1ff7, 0 }, |
| 1002 | .gpiomute = 0xff3ffc, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1003 | .no_msp34xx = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1004 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1005 | .tuner_addr = ADDR_UNSET, |
| 1006 | }, |
| 1007 | |
| 1008 | /* ---- card 0x2c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1009 | [BTTV_BOARD_SIGMA_TVII_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1010 | .name = "Sigma TVII-FM", |
| 1011 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1012 | /* .audio_inputs= 1, */ |
| 1013 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1014 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1015 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1016 | .gpiomux = { 1, 1, 0, 2 }, |
| 1017 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1018 | .no_msp34xx = 1, |
| 1019 | .pll = PLL_NONE, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1020 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1021 | .tuner_addr = ADDR_UNSET, |
| 1022 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1023 | [BTTV_BOARD_MATRIX_VISION2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1024 | .name = "MATRIX-Vision MV-Delta 2", |
| 1025 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1026 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1027 | .svhs = 3, |
| 1028 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1029 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1030 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1031 | .no_msp34xx = 1, |
| 1032 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1033 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1034 | .tuner_addr = ADDR_UNSET, |
| 1035 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1036 | [BTTV_BOARD_ZOLTRIX_GENIE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1037 | .name = "Zoltrix Genie TV/FM", |
| 1038 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1039 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1040 | .svhs = 2, |
| 1041 | .gpiomask = 0xbcf03f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1042 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1043 | .gpiomux = { 0xbc803f, 0xbc903f, 0xbcb03f, 0 }, |
| 1044 | .gpiomute = 0xbcb03f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1045 | .no_msp34xx = 1, |
| 1046 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1047 | .tuner_type = TUNER_TEMIC_4039FR5_NTSC, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1048 | .tuner_addr = ADDR_UNSET, |
| 1049 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1050 | [BTTV_BOARD_TERRATVRADIO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1051 | .name = "Terratec TV/Radio+", |
| 1052 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1053 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1054 | .svhs = 2, |
| 1055 | .gpiomask = 0x70000, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1056 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1057 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 1058 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1059 | .needs_tvaudio = 1, |
| 1060 | .no_msp34xx = 1, |
| 1061 | .pll = PLL_35, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1062 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1063 | .tuner_addr = ADDR_UNSET, |
| 1064 | .has_radio = 1, |
| 1065 | }, |
| 1066 | |
| 1067 | /* ---- card 0x30 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1068 | [BTTV_BOARD_DYNALINK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1069 | .name = "Askey CPH03x/ Dynalink Magic TView", |
| 1070 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1071 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1072 | .svhs = 2, |
| 1073 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1074 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1075 | .gpiomux = {2,0,0,0 }, |
| 1076 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1077 | .needs_tvaudio = 1, |
| 1078 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1079 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1080 | .tuner_addr = ADDR_UNSET, |
| 1081 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1082 | [BTTV_BOARD_GVBCTV3PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1083 | .name = "IODATA GV-BCTV3/PCI", |
| 1084 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1085 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1086 | .svhs = 2, |
| 1087 | .gpiomask = 0x010f00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1088 | .muxsel = MUXSEL(2, 3, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1089 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1090 | .no_msp34xx = 1, |
| 1091 | .pll = PLL_28, |
| 1092 | .tuner_type = TUNER_ALPS_TSHC6_NTSC, |
| 1093 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1094 | .audio_mode_gpio= gvbctv3pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1095 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1096 | [BTTV_BOARD_PXELVWPLTVPAK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1097 | .name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP", |
| 1098 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1099 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1100 | .svhs = 3, |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1101 | .has_dig_in = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1102 | .gpiomask = 0xAA0000, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1103 | .muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1104 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1105 | .gpiomux = { 0x20000, 0, 0x80000, 0x80000 }, |
| 1106 | .gpiomute = 0xa8000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1107 | .no_msp34xx = 1, |
| 1108 | .pll = PLL_28, |
| 1109 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 1110 | .tuner_addr = ADDR_UNSET, |
| 1111 | .has_remote = 1, |
| 1112 | /* GPIO wiring: (different from Rev.4C !) |
| 1113 | GPIO17: U4.A0 (first hef4052bt) |
| 1114 | GPIO19: U4.A1 |
| 1115 | GPIO20: U5.A1 (second hef4052bt) |
| 1116 | GPIO21: U4.nEN |
| 1117 | GPIO22: BT832 Reset Line |
| 1118 | GPIO23: A5,A0, U5,nEN |
| 1119 | Note: At i2c=0x8a is a Bt832 chip, which changes to 0x88 after being reset via GPIO22 |
| 1120 | */ |
| 1121 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1122 | [BTTV_BOARD_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1123 | .name = "Eagle Wireless Capricorn2 (bt878A)", |
| 1124 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1125 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1126 | .svhs = 2, |
| 1127 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1128 | .muxsel = MUXSEL(2, 0, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1129 | .gpiomux = { 0, 1, 2, 3 }, |
| 1130 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1131 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1132 | .tuner_type = UNSET /* TUNER_ALPS_TMDH2_NTSC */, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1133 | .tuner_addr = ADDR_UNSET, |
| 1134 | }, |
| 1135 | |
| 1136 | /* ---- card 0x34 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1137 | [BTTV_BOARD_PINNACLEPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1138 | /* David Härdeman <david@2gen.com> */ |
| 1139 | .name = "Pinnacle PCTV Studio Pro", |
| 1140 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1141 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1142 | .svhs = 3, |
| 1143 | .gpiomask = 0x03000F, |
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 = { 1, 0xd0001, 0, 0 }, |
| 1146 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1147 | /* sound path (5 sources): |
| 1148 | MUX1 (mask 0x03), Enable Pin 0x08 (0=enable, 1=disable) |
| 1149 | 0= ext. Audio IN |
| 1150 | 1= from MUX2 |
| 1151 | 2= Mono TV sound from Tuner |
| 1152 | 3= not connected |
| 1153 | MUX2 (mask 0x30000): |
| 1154 | 0,2,3= from MSP34xx |
| 1155 | 1= FM stereo Radio from Tuner */ |
| 1156 | .needs_tvaudio = 0, |
| 1157 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1158 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1159 | .tuner_addr = ADDR_UNSET, |
| 1160 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1161 | [BTTV_BOARD_TVIEW_RDS_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1162 | /* Claas Langbehn <claas@bigfoot.com>, |
| 1163 | Sven Grothklags <sven@upb.de> */ |
| 1164 | .name = "Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS", |
| 1165 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1166 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1167 | .svhs = 2, |
| 1168 | .gpiomask = 0x1c, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1169 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1170 | .gpiomux = { 0, 0, 0x10, 8 }, |
| 1171 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1172 | .needs_tvaudio = 1, |
| 1173 | .pll = PLL_28, |
| 1174 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1175 | .tuner_addr = ADDR_UNSET, |
| 1176 | .has_radio = 1, |
| 1177 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1178 | [BTTV_BOARD_LIFETEC_9415] = { |
Jan Engelhardt | 96de0e2 | 2007-10-19 23:21:04 +0200 | [diff] [blame] | 1179 | /* Tim Röstermundt <rosterm@uni-muenster.de> |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1180 | in de.comp.os.unix.linux.hardware: |
| 1181 | options bttv card=0 pll=1 radio=1 gpiomask=0x18e0 |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1182 | gpiomux =0x44c71f,0x44d71f,0,0x44d71f,0x44dfff |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1183 | options tuner type=5 */ |
| 1184 | .name = "Lifeview FlyVideo 2000 /FlyVideo A2/ Lifetec LT 9415 TV [LR90]", |
| 1185 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1186 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1187 | .svhs = 2, |
| 1188 | .gpiomask = 0x18e0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1189 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1190 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1191 | .gpiomute = 0x18e0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1192 | /* For cards with tda9820/tda9821: |
| 1193 | 0x0000: Tuner normal stereo |
| 1194 | 0x0080: Tuner A2 SAP (second audio program = Zweikanalton) |
| 1195 | 0x0880: Tuner A2 stereo */ |
| 1196 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1197 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1198 | .tuner_addr = ADDR_UNSET, |
| 1199 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1200 | [BTTV_BOARD_BESTBUY_EASYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1201 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1202 | old Easy TV BT848 version (model CPH031) */ |
| 1203 | .name = "Askey CPH031/ BESTBUY Easy TV", |
| 1204 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1205 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1206 | .svhs = 2, |
| 1207 | .gpiomask = 0xF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1208 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1209 | .gpiomux = { 2, 0, 0, 0 }, |
| 1210 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1211 | .needs_tvaudio = 0, |
| 1212 | .pll = PLL_28, |
| 1213 | .tuner_type = TUNER_TEMIC_PAL, |
| 1214 | .tuner_addr = ADDR_UNSET, |
| 1215 | }, |
| 1216 | |
| 1217 | /* ---- card 0x38 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1218 | [BTTV_BOARD_FLYVIDEO_98FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1219 | /* Gordon Heydon <gjheydon@bigfoot.com ('98) */ |
| 1220 | .name = "Lifeview FlyVideo 98FM LR50", |
| 1221 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1222 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1223 | .svhs = 2, |
| 1224 | .gpiomask = 0x1800, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1225 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1226 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 1227 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1228 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1229 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1230 | .tuner_addr = ADDR_UNSET, |
| 1231 | }, |
| 1232 | /* This is the ultimate cheapo capture card |
| 1233 | * just a BT848A on a small PCB! |
| 1234 | * Steve Hosgood <steve@equiinet.com> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1235 | [BTTV_BOARD_GRANDTEC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1236 | .name = "GrandTec 'Grand Video Capture' (Bt848)", |
| 1237 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1238 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1239 | .svhs = 1, |
| 1240 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1241 | .muxsel = MUXSEL(3, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1242 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1243 | .needs_tvaudio = 0, |
| 1244 | .no_msp34xx = 1, |
| 1245 | .pll = PLL_35, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1246 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1247 | .tuner_addr = ADDR_UNSET, |
| 1248 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1249 | [BTTV_BOARD_ASKEY_CPH060] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1250 | /* Daniel Herrington <daniel.herrington@home.com> */ |
| 1251 | .name = "Askey CPH060/ Phoebe TV Master Only (No FM)", |
| 1252 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1253 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1254 | .svhs = 2, |
| 1255 | .gpiomask = 0xe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1256 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1257 | .gpiomux = { 0x400, 0x400, 0x400, 0x400 }, |
| 1258 | .gpiomute = 0x800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1259 | .needs_tvaudio = 1, |
| 1260 | .pll = PLL_28, |
| 1261 | .tuner_type = TUNER_TEMIC_4036FY5_NTSC, |
| 1262 | .tuner_addr = ADDR_UNSET, |
| 1263 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1264 | [BTTV_BOARD_ASKEY_CPH03X] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1265 | /* Matti Mottus <mottus@physic.ut.ee> */ |
| 1266 | .name = "Askey CPH03x TV Capturer", |
| 1267 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1268 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1269 | .svhs = 2, |
| 1270 | .gpiomask = 0x03000F, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1271 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1272 | .gpiomux = { 2, 0, 0, 0 }, |
| 1273 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1274 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1275 | .tuner_type = TUNER_TEMIC_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1276 | .tuner_addr = ADDR_UNSET, |
| 1277 | }, |
| 1278 | |
| 1279 | /* ---- card 0x3c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1280 | [BTTV_BOARD_MM100PCTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1281 | /* Philip Blundell <philb@gnu.org> */ |
| 1282 | .name = "Modular Technology MM100PCTV", |
| 1283 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1284 | /* .audio_inputs= 2, */ |
| 1285 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1286 | .gpiomask = 11, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1287 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1288 | .gpiomux = { 2, 0, 0, 1 }, |
| 1289 | .gpiomute = 8, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1290 | .pll = PLL_35, |
| 1291 | .tuner_type = TUNER_TEMIC_PAL, |
| 1292 | .tuner_addr = ADDR_UNSET, |
| 1293 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1294 | [BTTV_BOARD_GMV1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1295 | /* Adrian Cox <adrian@humboldt.co.uk */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1296 | .name = "AG Electronics GMV1", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1297 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1298 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1299 | .svhs = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1300 | .gpiomask = 0xF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1301 | .muxsel = MUXSEL(2, 2), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1302 | .gpiomux = { }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1303 | .no_msp34xx = 1, |
| 1304 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1305 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1306 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1307 | .tuner_addr = ADDR_UNSET, |
| 1308 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1309 | [BTTV_BOARD_BESTBUY_EASYTV2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1310 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1311 | new Easy TV BT878 version (model CPH061) |
| 1312 | special thanks to Informatica Mieres for providing the card */ |
| 1313 | .name = "Askey CPH061/ BESTBUY Easy TV (bt878)", |
| 1314 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1315 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1316 | .svhs = 2, |
| 1317 | .gpiomask = 0xFF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1318 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1319 | .gpiomux = { 1, 0, 4, 4 }, |
| 1320 | .gpiomute = 9, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1321 | .needs_tvaudio = 0, |
| 1322 | .pll = PLL_28, |
| 1323 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1324 | .tuner_addr = ADDR_UNSET, |
| 1325 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1326 | [BTTV_BOARD_ATI_TVWONDER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1327 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1328 | .name = "ATI TV-Wonder", |
| 1329 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1330 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1331 | .svhs = 2, |
| 1332 | .gpiomask = 0xf03f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1333 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1334 | .gpiomux = { 0xbffe, 0, 0xbfff, 0 }, |
| 1335 | .gpiomute = 0xbffe, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1336 | .pll = PLL_28, |
| 1337 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1338 | .tuner_addr = ADDR_UNSET, |
| 1339 | }, |
| 1340 | |
| 1341 | /* ---- card 0x40 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1342 | [BTTV_BOARD_ATI_TVWONDERVE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1343 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1344 | .name = "ATI TV-Wonder VE", |
| 1345 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1346 | /* .audio_inputs= 1, */ |
| 1347 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1348 | .gpiomask = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1349 | .muxsel = MUXSEL(2, 3, 0, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1350 | .gpiomux = { 0, 0, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1351 | .no_msp34xx = 1, |
| 1352 | .pll = PLL_28, |
| 1353 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1354 | .tuner_addr = ADDR_UNSET, |
| 1355 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1356 | [BTTV_BOARD_FLYVIDEO2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1357 | /* DeeJay <deejay@westel900.net (2000S) */ |
| 1358 | .name = "Lifeview FlyVideo 2000S LR90", |
| 1359 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1360 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1361 | .svhs = 2, |
| 1362 | .gpiomask = 0x18e0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1363 | .muxsel = MUXSEL(2, 3, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1364 | /* Radio changed from 1e80 to 0x800 to make |
| 1365 | FlyVideo2000S in .hu happy (gm)*/ |
| 1366 | /* -dk-???: set mute=0x1800 for tda9874h daughterboard */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1367 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1368 | .gpiomute = 0x1800, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1369 | .audio_mode_gpio= fv2000s_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1370 | .no_msp34xx = 1, |
| 1371 | .no_tda9875 = 1, |
| 1372 | .needs_tvaudio = 1, |
| 1373 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1374 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1375 | .tuner_addr = ADDR_UNSET, |
| 1376 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1377 | [BTTV_BOARD_TERRATVALUER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1378 | .name = "Terratec TValueRadio", |
| 1379 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1380 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1381 | .svhs = 2, |
| 1382 | .gpiomask = 0xffff00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1383 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1384 | .gpiomux = { 0x500, 0x500, 0x300, 0x900 }, |
| 1385 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1386 | .needs_tvaudio = 1, |
| 1387 | .pll = PLL_28, |
| 1388 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1389 | .tuner_addr = ADDR_UNSET, |
| 1390 | .has_radio = 1, |
| 1391 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1392 | [BTTV_BOARD_GVBCTV4PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1393 | /* TANAKA Kei <peg00625@nifty.com> */ |
| 1394 | .name = "IODATA GV-BCTV4/PCI", |
| 1395 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1396 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1397 | .svhs = 2, |
| 1398 | .gpiomask = 0x010f00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1399 | .muxsel = MUXSEL(2, 3, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1400 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1401 | .no_msp34xx = 1, |
| 1402 | .pll = PLL_28, |
| 1403 | .tuner_type = TUNER_SHARP_2U5JF5540_NTSC, |
| 1404 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1405 | .audio_mode_gpio= gvbctv3pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1406 | }, |
| 1407 | |
| 1408 | /* ---- card 0x44 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1409 | [BTTV_BOARD_VOODOOTV_FM] = { |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1410 | .name = "3Dfx VoodooTV FM (Euro)", |
| 1411 | /* try "insmod msp3400 simple=0" if you have |
| 1412 | * sound problems with this card. */ |
| 1413 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1414 | /* .audio_inputs= 1, */ |
| 1415 | .svhs = NO_SVHS, |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1416 | .gpiomask = 0x4f8a00, |
| 1417 | /* 0x100000: 1=MSP enabled (0=disable again) |
| 1418 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ |
| 1419 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
| 1420 | .gpiomute = 0x947fff, |
| 1421 | /* tvtuner, radio, external,internal, mute, stereo |
| 1422 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1423 | .muxsel = MUXSEL(2, 3, 0, 1), |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1424 | .tuner_type = TUNER_MT2032, |
| 1425 | .tuner_addr = ADDR_UNSET, |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 1426 | .pll = PLL_28, |
| 1427 | .has_radio = 1, |
| 1428 | }, |
| 1429 | [BTTV_BOARD_VOODOOTV_200] = { |
| 1430 | .name = "VoodooTV 200 (USA)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1431 | /* try "insmod msp3400 simple=0" if you have |
| 1432 | * sound problems with this card. */ |
| 1433 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1434 | /* .audio_inputs= 1, */ |
| 1435 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1436 | .gpiomask = 0x4f8a00, |
| 1437 | /* 0x100000: 1=MSP enabled (0=disable again) |
| 1438 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1439 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
| 1440 | .gpiomute = 0x947fff, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1441 | /* tvtuner, radio, external,internal, mute, stereo |
| 1442 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1443 | .muxsel = MUXSEL(2, 3, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1444 | .tuner_type = TUNER_MT2032, |
| 1445 | .tuner_addr = ADDR_UNSET, |
| 1446 | .pll = PLL_28, |
| 1447 | .has_radio = 1, |
| 1448 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1449 | [BTTV_BOARD_AIMMS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1450 | /* Philip Blundell <pb@nexus.co.uk> */ |
| 1451 | .name = "Active Imaging AIMMS", |
| 1452 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1453 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1454 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1455 | .tuner_addr = ADDR_UNSET, |
| 1456 | .pll = PLL_28, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1457 | .muxsel = MUXSEL(2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1458 | .gpiomask = 0 |
| 1459 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1460 | [BTTV_BOARD_PV_BT878P_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1461 | /* Tomasz Pyra <hellfire@sedez.iq.pl> */ |
| 1462 | .name = "Prolink Pixelview PV-BT878P+ (Rev.4C,8E)", |
| 1463 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1464 | /* .audio_inputs= 4, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1465 | .svhs = 2, |
| 1466 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1467 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1468 | .gpiomux = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */ |
| 1469 | .gpiomute = 13, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1470 | .needs_tvaudio = 1, |
| 1471 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1472 | .tuner_type = TUNER_LG_PAL_I_FM, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1473 | .tuner_addr = ADDR_UNSET, |
| 1474 | .has_remote = 1, |
| 1475 | /* GPIO wiring: |
| 1476 | GPIO0: U4.A0 (hef4052bt) |
| 1477 | GPIO1: U4.A1 |
| 1478 | GPIO2: U4.A1 (second hef4052bt) |
| 1479 | GPIO3: U4.nEN, U5.A0, A5.nEN |
| 1480 | GPIO8-15: vrd866b ? |
| 1481 | */ |
| 1482 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1483 | [BTTV_BOARD_FLYVIDEO98EZ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1484 | .name = "Lifeview FlyVideo 98EZ (capture only) LR51", |
| 1485 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1486 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1487 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1488 | /* AV1, AV2, SVHS, CVid adapter on SVHS */ |
| 1489 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1490 | .pll = PLL_28, |
| 1491 | .no_msp34xx = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1492 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1493 | .tuner_addr = ADDR_UNSET, |
| 1494 | }, |
| 1495 | |
| 1496 | /* ---- card 0x48 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1497 | [BTTV_BOARD_PV_BT878P_9B] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1498 | /* Dariusz Kowalewski <darekk@automex.pl> */ |
| 1499 | .name = "Prolink Pixelview PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)", |
| 1500 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1501 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1502 | .svhs = 2, |
| 1503 | .gpiomask = 0x3f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1504 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1505 | .gpiomux = { 0x01, 0x00, 0x03, 0x03 }, |
| 1506 | .gpiomute = 0x09, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1507 | .needs_tvaudio = 1, |
| 1508 | .no_msp34xx = 1, |
| 1509 | .no_tda9875 = 1, |
| 1510 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1511 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1512 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1513 | .audio_mode_gpio= pvbt878p9b_audio, /* Note: not all cards have stereo */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1514 | .has_radio = 1, /* Note: not all cards have radio */ |
| 1515 | .has_remote = 1, |
| 1516 | /* GPIO wiring: |
| 1517 | GPIO0: A0 hef4052 |
| 1518 | GPIO1: A1 hef4052 |
| 1519 | GPIO3: nEN hef4052 |
| 1520 | GPIO8-15: vrd866b |
| 1521 | GPIO20,22,23: R30,R29,R28 |
| 1522 | */ |
| 1523 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1524 | [BTTV_BOARD_SENSORAY311] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1525 | /* Clay Kunz <ckunz@mail.arc.nasa.gov> */ |
| 1526 | /* you must jumper JP5 for the card to work */ |
| 1527 | .name = "Sensoray 311", |
| 1528 | .video_inputs = 5, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1529 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1530 | .svhs = 4, |
| 1531 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1532 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1533 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1534 | .needs_tvaudio = 0, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1535 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1536 | .tuner_addr = ADDR_UNSET, |
| 1537 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1538 | [BTTV_BOARD_RV605] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1539 | /* Miguel Freitas <miguel@cetuc.puc-rio.br> */ |
| 1540 | .name = "RemoteVision MX (RV605)", |
| 1541 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1542 | /* .audio_inputs= 0, */ |
| 1543 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1544 | .gpiomask = 0x00, |
| 1545 | .gpiomask2 = 0x07ff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1546 | .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] | 1547 | .no_msp34xx = 1, |
| 1548 | .no_tda9875 = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1549 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1550 | .tuner_addr = ADDR_UNSET, |
| 1551 | .muxsel_hook = rv605_muxsel, |
| 1552 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1553 | [BTTV_BOARD_POWERCLR_MTV878] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1554 | .name = "Powercolor MTV878/ MTV878R/ MTV878F", |
| 1555 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1556 | /* .audio_inputs= 2, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1557 | .svhs = 2, |
| 1558 | .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] | 1559 | .muxsel = MUXSEL(2, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1560 | .gpiomux = { 0, 1, 2, 2 }, |
| 1561 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1562 | .needs_tvaudio = 0, |
| 1563 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1564 | .tuner_addr = ADDR_UNSET, |
| 1565 | .pll = PLL_28, |
| 1566 | .has_radio = 1, |
| 1567 | }, |
| 1568 | |
| 1569 | /* ---- card 0x4c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1570 | [BTTV_BOARD_WINDVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1571 | /* Masaki Suzuki <masaki@btree.org> */ |
| 1572 | .name = "Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)", |
| 1573 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1574 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1575 | .svhs = 2, |
| 1576 | .gpiomask = 0x140007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1577 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1578 | .gpiomux = { 0, 1, 2, 3 }, |
| 1579 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1580 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 1581 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1582 | .audio_mode_gpio= windvr_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1583 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1584 | [BTTV_BOARD_GRANDTEC_MULTI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1585 | .name = "GrandTec Multi Capture Card (Bt878)", |
| 1586 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1587 | /* .audio_inputs= 0, */ |
| 1588 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1589 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1590 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1591 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1592 | .needs_tvaudio = 0, |
| 1593 | .no_msp34xx = 1, |
| 1594 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1595 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1596 | .tuner_addr = ADDR_UNSET, |
| 1597 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1598 | [BTTV_BOARD_KWORLD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1599 | .name = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF", |
| 1600 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1601 | /* .audio_inputs= 3, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1602 | .svhs = 2, |
| 1603 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1604 | /* Tuner, SVid, SVHS, SVid to SVHS connector */ |
| 1605 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1606 | .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] | 1607 | * This card lacks external Audio In, so we mute it on Ext. & Int. |
| 1608 | * The PCB can take a sbx1637/sbx1673, wiring unknown. |
| 1609 | * This card lacks PCI subsystem ID, sigh. |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1610 | * gpiomux =1: lower volume, 2+3: mute |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1611 | * btwincap uses 0x80000/0x80003 |
| 1612 | */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1613 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1614 | .needs_tvaudio = 0, |
| 1615 | .no_msp34xx = 1, |
| 1616 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1617 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1618 | .tuner_addr = ADDR_UNSET, |
| 1619 | /* Samsung TCPA9095PC27A (BG+DK), philips compatible, w/FM, stereo and |
| 1620 | radio signal strength indicators work fine. */ |
| 1621 | .has_radio = 1, |
| 1622 | /* GPIO Info: |
| 1623 | GPIO0,1: HEF4052 A0,A1 |
| 1624 | GPIO2: HEF4052 nENABLE |
| 1625 | GPIO3-7: n.c. |
| 1626 | GPIO8-13: IRDC357 data0-5 (data6 n.c. ?) [chip not present on my card] |
| 1627 | GPIO14,15: ?? |
| 1628 | GPIO16-21: n.c. |
| 1629 | GPIO22,23: ?? |
| 1630 | ?? : mtu8b56ep microcontroller for IR (GPIO wiring unknown)*/ |
| 1631 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1632 | [BTTV_BOARD_DSP_TCVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1633 | /* Arthur Tetzlaff-Deas, DSP Design Ltd <software@dspdesign.com> */ |
| 1634 | .name = "DSP Design TCVIDEO", |
| 1635 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1636 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1637 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1638 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1639 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1640 | .tuner_addr = ADDR_UNSET, |
| 1641 | }, |
| 1642 | |
| 1643 | /* ---- card 0x50 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1644 | [BTTV_BOARD_HAUPPAUGEPVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1645 | .name = "Hauppauge WinTV PVR", |
| 1646 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1647 | /* .audio_inputs= 1, */ |
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, 0, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1650 | .needs_tvaudio = 1, |
| 1651 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1652 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1653 | .tuner_addr = ADDR_UNSET, |
| 1654 | |
| 1655 | .gpiomask = 7, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1656 | .gpiomux = {7}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1657 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1658 | [BTTV_BOARD_GVBCTV5PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1659 | .name = "IODATA GV-BCTV5/PCI", |
| 1660 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1661 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1662 | .svhs = 2, |
| 1663 | .gpiomask = 0x0f0f80, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1664 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1665 | .gpiomux = {0x030000, 0x010000, 0, 0 }, |
| 1666 | .gpiomute = 0x020000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1667 | .no_msp34xx = 1, |
| 1668 | .pll = PLL_28, |
| 1669 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 1670 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1671 | .audio_mode_gpio= gvbctv5pci_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1672 | .has_radio = 1, |
| 1673 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1674 | [BTTV_BOARD_OSPREY1x0] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1675 | .name = "Osprey 100/150 (878)", /* 0x1(2|3)-45C6-C1 */ |
| 1676 | .video_inputs = 4, /* id-inputs-clock */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1677 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1678 | .svhs = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1679 | .muxsel = MUXSEL(3, 2, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1680 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1681 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1682 | .tuner_addr = ADDR_UNSET, |
| 1683 | .no_msp34xx = 1, |
| 1684 | .no_tda9875 = 1, |
| 1685 | .no_tda7432 = 1, |
| 1686 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1687 | [BTTV_BOARD_OSPREY1x0_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1688 | .name = "Osprey 100/150 (848)", /* 0x04-54C0-C1 & older boards */ |
| 1689 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1690 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1691 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1692 | .muxsel = MUXSEL(2, 3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1693 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1694 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1695 | .tuner_addr = ADDR_UNSET, |
| 1696 | .no_msp34xx = 1, |
| 1697 | .no_tda9875 = 1, |
| 1698 | .no_tda7432 = 1, |
| 1699 | }, |
| 1700 | |
| 1701 | /* ---- card 0x54 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1702 | [BTTV_BOARD_OSPREY101_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1703 | .name = "Osprey 101 (848)", /* 0x05-40C0-C1 */ |
| 1704 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1705 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1706 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1707 | .muxsel = MUXSEL(3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1708 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1709 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1710 | .tuner_addr = ADDR_UNSET, |
| 1711 | .no_msp34xx = 1, |
| 1712 | .no_tda9875 = 1, |
| 1713 | .no_tda7432 = 1, |
| 1714 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1715 | [BTTV_BOARD_OSPREY1x1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1716 | .name = "Osprey 101/151", /* 0x1(4|5)-0004-C4 */ |
| 1717 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1718 | /* .audio_inputs= 0, */ |
| 1719 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1720 | .muxsel = MUXSEL(0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1721 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1722 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1723 | .tuner_addr = ADDR_UNSET, |
| 1724 | .no_msp34xx = 1, |
| 1725 | .no_tda9875 = 1, |
| 1726 | .no_tda7432 = 1, |
| 1727 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1728 | [BTTV_BOARD_OSPREY1x1_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1729 | .name = "Osprey 101/151 w/ svid", /* 0x(16|17|20)-00C4-C1 */ |
| 1730 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1731 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1732 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1733 | .muxsel = MUXSEL(0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1734 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1735 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1736 | .tuner_addr = ADDR_UNSET, |
| 1737 | .no_msp34xx = 1, |
| 1738 | .no_tda9875 = 1, |
| 1739 | .no_tda7432 = 1, |
| 1740 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1741 | [BTTV_BOARD_OSPREY2xx] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1742 | .name = "Osprey 200/201/250/251", /* 0x1(8|9|E|F)-0004-C4 */ |
| 1743 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1744 | /* .audio_inputs= 1, */ |
| 1745 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1746 | .muxsel = MUXSEL(0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1747 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1748 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1749 | .tuner_addr = ADDR_UNSET, |
| 1750 | .no_msp34xx = 1, |
| 1751 | .no_tda9875 = 1, |
| 1752 | .no_tda7432 = 1, |
| 1753 | }, |
| 1754 | |
| 1755 | /* ---- card 0x58 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1756 | [BTTV_BOARD_OSPREY2x0_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1757 | .name = "Osprey 200/250", /* 0x1(A|B)-00C4-C1 */ |
| 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(0, 1), |
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, |
| 1766 | .no_tda9875 = 1, |
| 1767 | .no_tda7432 = 1, |
| 1768 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1769 | [BTTV_BOARD_OSPREY2x0] = { |
Michael Krufky | 52398ef | 2006-05-26 02:13:15 -0300 | [diff] [blame] | 1770 | .name = "Osprey 210/220/230", /* 0x1(A|B)-04C0-C1 */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1771 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1772 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1773 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1774 | .muxsel = MUXSEL(2, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1775 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1776 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1777 | .tuner_addr = ADDR_UNSET, |
| 1778 | .no_msp34xx = 1, |
| 1779 | .no_tda9875 = 1, |
| 1780 | .no_tda7432 = 1, |
| 1781 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1782 | [BTTV_BOARD_OSPREY500] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1783 | .name = "Osprey 500", /* 500 */ |
| 1784 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1785 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1786 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1787 | .muxsel = MUXSEL(2, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1788 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1789 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1790 | .tuner_addr = ADDR_UNSET, |
| 1791 | .no_msp34xx = 1, |
| 1792 | .no_tda9875 = 1, |
| 1793 | .no_tda7432 = 1, |
| 1794 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1795 | [BTTV_BOARD_OSPREY540] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1796 | .name = "Osprey 540", /* 540 */ |
| 1797 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1798 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1799 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1800 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1801 | .tuner_addr = ADDR_UNSET, |
| 1802 | .no_msp34xx = 1, |
| 1803 | .no_tda9875 = 1, |
| 1804 | .no_tda7432 = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1805 | }, |
| 1806 | |
| 1807 | /* ---- card 0x5C ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1808 | [BTTV_BOARD_OSPREY2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1809 | .name = "Osprey 2000", /* 2000 */ |
| 1810 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1811 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1812 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1813 | .muxsel = MUXSEL(2, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1814 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1815 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1816 | .tuner_addr = ADDR_UNSET, |
| 1817 | .no_msp34xx = 1, |
| 1818 | .no_tda9875 = 1, |
| 1819 | .no_tda7432 = 1, /* must avoid, conflicts with the bt860 */ |
| 1820 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1821 | [BTTV_BOARD_IDS_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1822 | /* M G Berberich <berberic@forwiss.uni-passau.de> */ |
| 1823 | .name = "IDS Eagle", |
| 1824 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1825 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1826 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1827 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1828 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1829 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1830 | .muxsel = MUXSEL(2, 2, 2, 2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1831 | .muxsel_hook = eagle_muxsel, |
| 1832 | .no_msp34xx = 1, |
| 1833 | .no_tda9875 = 1, |
| 1834 | .pll = PLL_28, |
| 1835 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1836 | [BTTV_BOARD_PINNACLESAT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1837 | .name = "Pinnacle PCTV Sat", |
| 1838 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1839 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1840 | .svhs = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1841 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1842 | .tuner_addr = ADDR_UNSET, |
| 1843 | .no_msp34xx = 1, |
| 1844 | .no_tda9875 = 1, |
| 1845 | .no_tda7432 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1846 | .muxsel = MUXSEL(3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1847 | .pll = PLL_28, |
| 1848 | .no_gpioirq = 1, |
| 1849 | .has_dvb = 1, |
| 1850 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1851 | [BTTV_BOARD_FORMAC_PROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1852 | .name = "Formac ProTV II (bt878)", |
| 1853 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1854 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1855 | .svhs = 3, |
| 1856 | .gpiomask = 2, |
| 1857 | /* TV, Comp1, Composite over SVID con, SVID */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1858 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1859 | .gpiomux = { 2, 2, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1860 | .pll = PLL_28, |
| 1861 | .has_radio = 1, |
| 1862 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1863 | .tuner_addr = ADDR_UNSET, |
| 1864 | /* sound routing: |
| 1865 | GPIO=0x00,0x01,0x03: mute (?) |
| 1866 | 0x02: both TV and radio (tuner: FM1216/I) |
| 1867 | The card has onboard audio connectors labeled "cdrom" and "board", |
| 1868 | not soldered here, though unknown wiring. |
| 1869 | Card lacks: external audio in, pci subsystem id. |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 1870 | */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1871 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1872 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1873 | /* ---- card 0x60 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1874 | [BTTV_BOARD_MACHTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1875 | .name = "MachTV", |
| 1876 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1877 | /* .audio_inputs= 1, */ |
| 1878 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1879 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1880 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1881 | .gpiomux = { 0, 1, 2, 3}, |
| 1882 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1883 | .needs_tvaudio = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1884 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1885 | .tuner_addr = ADDR_UNSET, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 1886 | .pll = PLL_28, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1887 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1888 | [BTTV_BOARD_EURESYS_PICOLO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1889 | .name = "Euresys Picolo", |
| 1890 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1891 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1892 | .svhs = 2, |
| 1893 | .gpiomask = 0, |
| 1894 | .no_msp34xx = 1, |
| 1895 | .no_tda9875 = 1, |
| 1896 | .no_tda7432 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1897 | .muxsel = MUXSEL(2, 0, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1898 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1899 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1900 | .tuner_addr = ADDR_UNSET, |
| 1901 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1902 | [BTTV_BOARD_PV150] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1903 | /* Luc Van Hoeylandt <luc@e-magic.be> */ |
| 1904 | .name = "ProVideo PV150", /* 0x4f */ |
| 1905 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1906 | /* .audio_inputs= 0, */ |
| 1907 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1908 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1909 | .muxsel = MUXSEL(2, 3), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1910 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1911 | .needs_tvaudio = 0, |
| 1912 | .no_msp34xx = 1, |
| 1913 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1914 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1915 | .tuner_addr = ADDR_UNSET, |
| 1916 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1917 | [BTTV_BOARD_AD_TVK503] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1918 | /* Hiroshi Takekawa <sian@big.or.jp> */ |
| 1919 | /* This card lacks subsystem ID */ |
| 1920 | .name = "AD-TVK503", /* 0x63 */ |
| 1921 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1922 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1923 | .svhs = 2, |
| 1924 | .gpiomask = 0x001e8007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1925 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1926 | /* Tuner, Radio, external, internal, off, on */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1927 | .gpiomux = { 0x08, 0x0f, 0x0a, 0x08 }, |
| 1928 | .gpiomute = 0x0f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1929 | .needs_tvaudio = 0, |
| 1930 | .no_msp34xx = 1, |
| 1931 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1932 | .tuner_type = TUNER_PHILIPS_NTSC, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1933 | .tuner_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 1934 | .audio_mode_gpio= adtvk503_audio, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1935 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1936 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1937 | /* ---- card 0x64 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1938 | [BTTV_BOARD_HERCULES_SM_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1939 | .name = "Hercules Smart TV Stereo", |
| 1940 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1941 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1942 | .svhs = 2, |
| 1943 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1944 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1945 | .needs_tvaudio = 1, |
| 1946 | .no_msp34xx = 1, |
| 1947 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1948 | .tuner_type = TUNER_PHILIPS_PAL, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1949 | .tuner_addr = ADDR_UNSET, |
| 1950 | /* Notes: |
| 1951 | - card lacks subsystem ID |
| 1952 | - stereo variant w/ daughter board with tda9874a @0xb0 |
| 1953 | - Audio Routing: |
| 1954 | always from tda9874 independent of GPIO (?) |
| 1955 | external line in: unknown |
| 1956 | - Other chips: em78p156elp @ 0x96 (probably IR remote control) |
| 1957 | hef4053 (instead 4052) for unknown function |
| 1958 | */ |
| 1959 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1960 | [BTTV_BOARD_PACETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1961 | .name = "Pace TV & Radio Card", |
| 1962 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1963 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1964 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1965 | /* Tuner, CVid, SVid, CVid over SVid connector */ |
| 1966 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1967 | .gpiomask = 0, |
| 1968 | .no_tda9875 = 1, |
| 1969 | .no_tda7432 = 1, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 1970 | .tuner_type = TUNER_PHILIPS_PAL_I, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1971 | .tuner_addr = ADDR_UNSET, |
| 1972 | .has_radio = 1, |
| 1973 | .pll = PLL_28, |
| 1974 | /* Bt878, Bt832, FI1246 tuner; no pci subsystem id |
| 1975 | only internal line out: (4pin header) RGGL |
| 1976 | Radio must be decoded by msp3410d (not routed through)*/ |
| 1977 | /* |
| 1978 | .digital_mode = DIGITAL_MODE_CAMERA, todo! |
| 1979 | */ |
| 1980 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1981 | [BTTV_BOARD_IVC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1982 | /* Chris Willing <chris@vislab.usyd.edu.au> */ |
| 1983 | .name = "IVC-200", |
| 1984 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1985 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1986 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1987 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1988 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1989 | .gpiomask = 0xdf, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1990 | .muxsel = MUXSEL(2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1991 | .pll = PLL_28, |
| 1992 | }, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1993 | [BTTV_BOARD_IVCE8784] = { |
| 1994 | .name = "IVCE-8784", |
| 1995 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1996 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1997 | .tuner_type = TUNER_ABSENT, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 1998 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 1999 | .svhs = NO_SVHS, |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 2000 | .gpiomask = 0xdf, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2001 | .muxsel = MUXSEL(2), |
Douglas Kosovic | ade0815 | 2009-01-22 23:07:26 -0300 | [diff] [blame] | 2002 | .pll = PLL_28, |
| 2003 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2004 | [BTTV_BOARD_XGUARD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2005 | .name = "Grand X-Guard / Trust 814PCI", |
| 2006 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2007 | /* .audio_inputs= 0, */ |
| 2008 | .svhs = NO_SVHS, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2009 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2010 | .tuner_addr = ADDR_UNSET, |
| 2011 | .gpiomask2 = 0xff, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2012 | .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] | 2013 | .muxsel_hook = xguard_muxsel, |
| 2014 | .no_msp34xx = 1, |
| 2015 | .no_tda9875 = 1, |
| 2016 | .no_tda7432 = 1, |
| 2017 | .pll = PLL_28, |
| 2018 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2019 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2020 | /* ---- card 0x68 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2021 | [BTTV_BOARD_NEBULA_DIGITV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2022 | .name = "Nebula Electronics DigiTV", |
| 2023 | .video_inputs = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2024 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2025 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2026 | .no_msp34xx = 1, |
| 2027 | .no_tda9875 = 1, |
| 2028 | .no_tda7432 = 1, |
| 2029 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2030 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2031 | .tuner_addr = ADDR_UNSET, |
| 2032 | .has_dvb = 1, |
Mark Weaver | 6c6c0b2 | 2005-11-13 16:07:52 -0800 | [diff] [blame] | 2033 | .has_remote = 1, |
| 2034 | .gpiomask = 0x1b, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2035 | .no_gpioirq = 1, |
| 2036 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2037 | [BTTV_BOARD_PV143] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2038 | /* Jorge Boncompte - DTI2 <jorge@dti2.net> */ |
| 2039 | .name = "ProVideo PV143", |
| 2040 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2041 | /* .audio_inputs= 0, */ |
| 2042 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2043 | .gpiomask = 0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2044 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2045 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2046 | .needs_tvaudio = 0, |
| 2047 | .no_msp34xx = 1, |
| 2048 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2049 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2050 | .tuner_addr = ADDR_UNSET, |
| 2051 | }, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2052 | [BTTV_BOARD_VD009X1_VD011_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2053 | /* M.Klahr@phytec.de */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2054 | .name = "PHYTEC VD-009-X1 VD-011 MiniDIN (bt878)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2055 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2056 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2057 | .svhs = 3, |
| 2058 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2059 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2060 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2061 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2062 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2063 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2064 | .tuner_addr = ADDR_UNSET, |
| 2065 | }, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2066 | [BTTV_BOARD_VD009X1_VD011_COMBI] = { |
| 2067 | .name = "PHYTEC VD-009-X1 VD-011 Combi (bt878)", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2068 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2069 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2070 | .svhs = 3, |
| 2071 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2072 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2073 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2074 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2075 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2076 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2077 | .tuner_addr = ADDR_UNSET, |
| 2078 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2079 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2080 | /* ---- card 0x6c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2081 | [BTTV_BOARD_VD009_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2082 | .name = "PHYTEC VD-009 MiniDIN (bt878)", |
| 2083 | .video_inputs = 10, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2084 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2085 | .svhs = 9, |
| 2086 | .gpiomask = 0x00, |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2087 | .gpiomask2 = 0x03, /* used for external vodeo mux */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2088 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 0), |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2089 | .muxsel_hook = phytec_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2090 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2091 | .needs_tvaudio = 1, |
| 2092 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2093 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2094 | .tuner_addr = ADDR_UNSET, |
| 2095 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2096 | [BTTV_BOARD_VD009_COMBI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2097 | .name = "PHYTEC VD-009 Combi (bt878)", |
| 2098 | .video_inputs = 10, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2099 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2100 | .svhs = 9, |
| 2101 | .gpiomask = 0x00, |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2102 | .gpiomask2 = 0x03, /* used for external vodeo mux */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2103 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1), |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2104 | .muxsel_hook = phytec_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2105 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2106 | .needs_tvaudio = 1, |
| 2107 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2108 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2109 | .tuner_addr = ADDR_UNSET, |
| 2110 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2111 | [BTTV_BOARD_IVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2112 | .name = "IVC-100", |
| 2113 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2114 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2115 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2116 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2117 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2118 | .gpiomask = 0xdf, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2119 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2120 | .pll = PLL_28, |
| 2121 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2122 | [BTTV_BOARD_IVC120] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2123 | /* IVC-120G - Alan Garfield <alan@fromorbit.com> */ |
| 2124 | .name = "IVC-120G", |
| 2125 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2126 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2127 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2128 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2129 | .svhs = NO_SVHS, /* card has no svhs */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2130 | .needs_tvaudio = 0, |
| 2131 | .no_msp34xx = 1, |
| 2132 | .no_tda9875 = 1, |
| 2133 | .no_tda7432 = 1, |
| 2134 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2135 | .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] | 2136 | .muxsel_hook = ivc120_muxsel, |
| 2137 | .pll = PLL_28, |
| 2138 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2139 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2140 | /* ---- card 0x70 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2141 | [BTTV_BOARD_PC_HDTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2142 | .name = "pcHDTV HD-2000 TV", |
| 2143 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2144 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2145 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2146 | .muxsel = MUXSEL(2, 3, 1, 0), |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 2147 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2148 | .tuner_addr = ADDR_UNSET, |
| 2149 | .has_dvb = 1, |
| 2150 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2151 | [BTTV_BOARD_TWINHAN_DST] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2152 | .name = "Twinhan DST + clones", |
| 2153 | .no_msp34xx = 1, |
| 2154 | .no_tda9875 = 1, |
| 2155 | .no_tda7432 = 1, |
| 2156 | .tuner_type = TUNER_ABSENT, |
| 2157 | .tuner_addr = ADDR_UNSET, |
| 2158 | .no_video = 1, |
| 2159 | .has_dvb = 1, |
| 2160 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2161 | [BTTV_BOARD_WINFASTVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2162 | .name = "Winfast VC100", |
| 2163 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2164 | /* .audio_inputs= 0, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2165 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2166 | /* Vid In, SVid In, Vid over SVid in connector */ |
| 2167 | .muxsel = MUXSEL(3, 1, 1, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2168 | .no_msp34xx = 1, |
| 2169 | .no_tda9875 = 1, |
| 2170 | .no_tda7432 = 1, |
| 2171 | .tuner_type = TUNER_ABSENT, |
| 2172 | .tuner_addr = ADDR_UNSET, |
| 2173 | .pll = PLL_28, |
| 2174 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2175 | [BTTV_BOARD_TEV560] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2176 | .name = "Teppro TEV-560/InterVision IV-560", |
| 2177 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2178 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2179 | .svhs = 2, |
| 2180 | .gpiomask = 3, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2181 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2182 | .gpiomux = { 1, 1, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2183 | .needs_tvaudio = 1, |
| 2184 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2185 | .tuner_addr = ADDR_UNSET, |
| 2186 | .pll = PLL_35, |
| 2187 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2188 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2189 | /* ---- card 0x74 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2190 | [BTTV_BOARD_SIMUS_GVC1100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2191 | .name = "SIMUS GVC1100", |
| 2192 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2193 | /* .audio_inputs= 0, */ |
| 2194 | .svhs = NO_SVHS, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2195 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2196 | .tuner_addr = ADDR_UNSET, |
| 2197 | .pll = PLL_28, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2198 | .muxsel = MUXSEL(2, 2, 2, 2), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2199 | .gpiomask = 0x3F, |
| 2200 | .muxsel_hook = gvc1100_muxsel, |
| 2201 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2202 | [BTTV_BOARD_NGSTV_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2203 | /* Carlos Silva r3pek@r3pek.homelinux.org || card 0x75 */ |
| 2204 | .name = "NGS NGSTV+", |
| 2205 | .video_inputs = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2206 | .svhs = 2, |
| 2207 | .gpiomask = 0x008007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2208 | .muxsel = MUXSEL(2, 3, 0, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2209 | .gpiomux = { 0, 0, 0, 0 }, |
| 2210 | .gpiomute = 0x000003, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2211 | .pll = PLL_28, |
| 2212 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2213 | .tuner_addr = ADDR_UNSET, |
| 2214 | .has_remote = 1, |
| 2215 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2216 | [BTTV_BOARD_LMLBT4] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2217 | /* http://linuxmedialabs.com */ |
| 2218 | .name = "LMLBT4", |
| 2219 | .video_inputs = 4, /* IN1,IN2,IN3,IN4 */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2220 | /* .audio_inputs= 0, */ |
| 2221 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2222 | .muxsel = MUXSEL(2, 3, 1, 0), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2223 | .no_msp34xx = 1, |
| 2224 | .no_tda9875 = 1, |
| 2225 | .no_tda7432 = 1, |
| 2226 | .needs_tvaudio = 0, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2227 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2228 | .tuner_addr = ADDR_UNSET, |
| 2229 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2230 | [BTTV_BOARD_TEKRAM_M205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2231 | /* Helmroos Harri <harri.helmroos@pp.inet.fi> */ |
| 2232 | .name = "Tekram M205 PRO", |
| 2233 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2234 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2235 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2236 | .tuner_addr = ADDR_UNSET, |
| 2237 | .svhs = 2, |
| 2238 | .needs_tvaudio = 0, |
| 2239 | .gpiomask = 0x68, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2240 | .muxsel = MUXSEL(2, 3, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2241 | .gpiomux = { 0x68, 0x68, 0x61, 0x61 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2242 | .pll = PLL_28, |
| 2243 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2244 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2245 | /* ---- card 0x78 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2246 | [BTTV_BOARD_CONTVFMI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2247 | /* Javier Cendan Ares <jcendan@lycos.es> */ |
| 2248 | /* bt878 TV + FM without subsystem ID */ |
| 2249 | .name = "Conceptronic CONTVFMi", |
| 2250 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2251 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2252 | .svhs = 2, |
| 2253 | .gpiomask = 0x008007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2254 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2255 | .gpiomux = { 0, 1, 2, 2 }, |
| 2256 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2257 | .needs_tvaudio = 0, |
| 2258 | .pll = PLL_28, |
| 2259 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2260 | .tuner_addr = ADDR_UNSET, |
| 2261 | .has_remote = 1, |
| 2262 | .has_radio = 1, |
| 2263 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2264 | [BTTV_BOARD_PICOLO_TETRA_CHIP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2265 | /*Eric DEBIEF <debief@telemsa.com>*/ |
| 2266 | /*EURESYS Picolo Tetra : 4 Conexant Fusion 878A, no audio, video input set with analog multiplexers GPIO controled*/ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2267 | /* adds picolo_tetra_muxsel(), picolo_tetra_init(), the folowing declaration strucure, and #define BTTV_BOARD_PICOLO_TETRA_CHIP*/ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2268 | /*0x79 in bttv.h*/ |
| 2269 | .name = "Euresys Picolo Tetra", |
| 2270 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2271 | /* .audio_inputs= 0, */ |
| 2272 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2273 | .gpiomask = 0, |
| 2274 | .gpiomask2 = 0x3C<<16,/*Set the GPIO[18]->GPIO[21] as output pin.==> drive the video inputs through analog multiplexers*/ |
| 2275 | .no_msp34xx = 1, |
| 2276 | .no_tda9875 = 1, |
| 2277 | .no_tda7432 = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2278 | /*878A input is always MUX0, see above.*/ |
| 2279 | .muxsel = MUXSEL(2, 2, 2, 2), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2280 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2281 | .pll = PLL_28, |
| 2282 | .needs_tvaudio = 0, |
| 2283 | .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] | 2284 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2285 | .tuner_addr = ADDR_UNSET, |
| 2286 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2287 | [BTTV_BOARD_SPIRIT_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2288 | /* Spirit TV Tuner from http://spiritmodems.com.au */ |
| 2289 | /* Stafford Goodsell <surge@goliath.homeunix.org> */ |
| 2290 | .name = "Spirit TV Tuner", |
| 2291 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2292 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2293 | .svhs = 2, |
| 2294 | .gpiomask = 0x0000000f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2295 | .muxsel = MUXSEL(2, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2296 | .gpiomux = { 0x02, 0x00, 0x00, 0x00 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2297 | .tuner_type = TUNER_TEMIC_PAL, |
| 2298 | .tuner_addr = ADDR_UNSET, |
| 2299 | .no_msp34xx = 1, |
| 2300 | .no_tda9875 = 1, |
| 2301 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2302 | [BTTV_BOARD_AVDVBT_771] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2303 | /* Wolfram Joost <wojo@frokaschwei.de> */ |
| 2304 | .name = "AVerMedia AVerTV DVB-T 771", |
| 2305 | .video_inputs = 2, |
| 2306 | .svhs = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2307 | .tuner_type = TUNER_ABSENT, |
| 2308 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2309 | .muxsel = MUXSEL(3, 3), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2310 | .no_msp34xx = 1, |
| 2311 | .no_tda9875 = 1, |
| 2312 | .no_tda7432 = 1, |
| 2313 | .pll = PLL_28, |
| 2314 | .has_dvb = 1, |
| 2315 | .no_gpioirq = 1, |
| 2316 | .has_remote = 1, |
| 2317 | }, |
| 2318 | /* ---- card 0x7c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2319 | [BTTV_BOARD_AVDVBT_761] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2320 | /* Matt Jesson <dvb@jesson.eclipse.co.uk> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2321 | /* 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] | 2322 | .name = "AverMedia AverTV DVB-T 761", |
| 2323 | .video_inputs = 2, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2324 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2325 | .muxsel = MUXSEL(3, 1, 2, 0), /* Comp0, S-Video, ?, ? */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2326 | .no_msp34xx = 1, |
| 2327 | .no_tda9875 = 1, |
| 2328 | .no_tda7432 = 1, |
| 2329 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2330 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2331 | .tuner_addr = ADDR_UNSET, |
| 2332 | .has_dvb = 1, |
| 2333 | .no_gpioirq = 1, |
| 2334 | .has_remote = 1, |
| 2335 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2336 | [BTTV_BOARD_MATRIX_VISIONSQ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2337 | /* andre.schwarz@matrix-vision.de */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2338 | .name = "MATRIX Vision Sigma-SQ", |
| 2339 | .video_inputs = 16, |
| 2340 | /* .audio_inputs= 0, */ |
| 2341 | .svhs = NO_SVHS, |
| 2342 | .gpiomask = 0x0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2343 | .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] | 2344 | .muxsel_hook = sigmaSQ_muxsel, |
| 2345 | .gpiomux = { 0 }, |
| 2346 | .no_msp34xx = 1, |
| 2347 | .pll = PLL_28, |
| 2348 | .tuner_type = TUNER_ABSENT, |
| 2349 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2350 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2351 | [BTTV_BOARD_MATRIX_VISIONSLC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2352 | /* andre.schwarz@matrix-vision.de */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2353 | .name = "MATRIX Vision Sigma-SLC", |
| 2354 | .video_inputs = 4, |
| 2355 | /* .audio_inputs= 0, */ |
| 2356 | .svhs = NO_SVHS, |
| 2357 | .gpiomask = 0x0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2358 | .muxsel = MUXSEL(2, 2, 2, 2), |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2359 | .muxsel_hook = sigmaSLC_muxsel, |
| 2360 | .gpiomux = { 0 }, |
| 2361 | .no_msp34xx = 1, |
| 2362 | .pll = PLL_28, |
| 2363 | .tuner_type = TUNER_ABSENT, |
| 2364 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2365 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2366 | /* BTTV_BOARD_APAC_VIEWCOMP */ |
| 2367 | [BTTV_BOARD_APAC_VIEWCOMP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2368 | /* Attila Kondoros <attila.kondoros@chello.hu> */ |
| 2369 | /* bt878 TV + FM 0x00000000 subsystem ID */ |
| 2370 | .name = "APAC Viewcomp 878(AMAX)", |
| 2371 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2372 | /* .audio_inputs= 1, */ |
| 2373 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2374 | .gpiomask = 0xFF, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2375 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2376 | .gpiomux = { 2, 0, 0, 0 }, |
| 2377 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2378 | .needs_tvaudio = 0, |
| 2379 | .pll = PLL_28, |
| 2380 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2381 | .tuner_addr = ADDR_UNSET, |
| 2382 | .has_remote = 1, /* miniremote works, see ir-kbd-gpio.c */ |
| 2383 | .has_radio = 1, /* not every card has radio */ |
| 2384 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2385 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2386 | /* ---- card 0x80 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2387 | [BTTV_BOARD_DVICO_DVBT_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2388 | /* Chris Pascoe <c.pascoe@itee.uq.edu.au> */ |
| 2389 | .name = "DViCO FusionHDTV DVB-T Lite", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2390 | .no_msp34xx = 1, |
| 2391 | .no_tda9875 = 1, |
| 2392 | .no_tda7432 = 1, |
| 2393 | .pll = PLL_28, |
| 2394 | .no_video = 1, |
| 2395 | .has_dvb = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2396 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2397 | .tuner_addr = ADDR_UNSET, |
| 2398 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2399 | [BTTV_BOARD_VGEAR_MYVCD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2400 | /* Steven <photon38@pchome.com.tw> */ |
| 2401 | .name = "V-Gear MyVCD", |
| 2402 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2403 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2404 | .svhs = 2, |
| 2405 | .gpiomask = 0x3f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2406 | .muxsel = MUXSEL(2, 3, 1, 0), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2407 | .gpiomux = {0x31, 0x31, 0x31, 0x31 }, |
| 2408 | .gpiomute = 0x31, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2409 | .no_msp34xx = 1, |
| 2410 | .pll = PLL_28, |
| 2411 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 2412 | .tuner_addr = ADDR_UNSET, |
| 2413 | .has_radio = 0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2414 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2415 | [BTTV_BOARD_SUPER_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2416 | /* Rick C <cryptdragoon@gmail.com> */ |
| 2417 | .name = "Super TV Tuner", |
| 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), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2422 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 2423 | .tuner_addr = ADDR_UNSET, |
| 2424 | .gpiomask = 0x008007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2425 | .gpiomux = { 0, 0x000001,0,0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2426 | .needs_tvaudio = 1, |
| 2427 | .has_radio = 1, |
| 2428 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2429 | [BTTV_BOARD_TIBET_CS16] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2430 | /* Chris Fanning <video4linux@haydon.net> */ |
| 2431 | .name = "Tibet Systems 'Progress DVR' CS16", |
| 2432 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2433 | /* .audio_inputs= 0, */ |
| 2434 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2435 | .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] | 2436 | .pll = PLL_28, |
| 2437 | .no_msp34xx = 1, |
| 2438 | .no_tda9875 = 1, |
| 2439 | .no_tda7432 = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2440 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2441 | .tuner_addr = ADDR_UNSET, |
| 2442 | .muxsel_hook = tibetCS16_muxsel, |
| 2443 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2444 | [BTTV_BOARD_KODICOM_4400R] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2445 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2446 | /* |
| 2447 | * Note that, because of the card's wiring, the "master" |
| 2448 | * BT878A chip (i.e. the one which controls the analog switch |
| 2449 | * and must use this card type) is the 2nd one detected. The |
| 2450 | * other 3 chips should use card type 0x85, whose description |
| 2451 | * follows this one. There is a EEPROM on the card (which is |
| 2452 | * connected to the I2C of one of those other chips), but is |
| 2453 | * not currently handled. There is also a facility for a |
| 2454 | * "monitor", which is also not currently implemented. |
| 2455 | */ |
| 2456 | .name = "Kodicom 4400R (master)", |
| 2457 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2458 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2459 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2460 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2461 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2462 | /* GPIO bits 0-9 used for analog switch: |
| 2463 | * 00 - 03: camera selector |
| 2464 | * 04 - 06: channel (controller) selector |
| 2465 | * 07: data (1->on, 0->off) |
| 2466 | * 08: strobe |
| 2467 | * 09: reset |
| 2468 | * bit 16 is input from sync separator for the channel |
| 2469 | */ |
| 2470 | .gpiomask = 0x0003ff, |
| 2471 | .no_gpioirq = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2472 | .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] | 2473 | .pll = PLL_28, |
| 2474 | .no_msp34xx = 1, |
| 2475 | .no_tda7432 = 1, |
| 2476 | .no_tda9875 = 1, |
| 2477 | .muxsel_hook = kodicom4400r_muxsel, |
| 2478 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2479 | [BTTV_BOARD_KODICOM_4400R_SL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2480 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2481 | /* Note that, for reasons unknown, the "master" BT878A chip (i.e. the |
| 2482 | * one which controls the analog switch, and must use the card type) |
| 2483 | * is the 2nd one detected. The other 3 chips should use this card |
| 2484 | * type |
| 2485 | */ |
| 2486 | .name = "Kodicom 4400R (slave)", |
| 2487 | .video_inputs = 16, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2488 | /* .audio_inputs= 0, */ |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2489 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2490 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2491 | .svhs = NO_SVHS, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2492 | .gpiomask = 0x010000, |
| 2493 | .no_gpioirq = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2494 | .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] | 2495 | .pll = PLL_28, |
| 2496 | .no_msp34xx = 1, |
| 2497 | .no_tda7432 = 1, |
| 2498 | .no_tda9875 = 1, |
| 2499 | .muxsel_hook = kodicom4400r_muxsel, |
| 2500 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2501 | /* ---- card 0x86---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2502 | [BTTV_BOARD_ADLINK_RTV24] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2503 | /* Michael Henson <mhenson@clarityvi.com> */ |
| 2504 | /* Adlink RTV24 with special unlock codes */ |
| 2505 | .name = "Adlink RTV24", |
| 2506 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2507 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2508 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2509 | .muxsel = MUXSEL(2, 3, 1, 0), |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2510 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2511 | .tuner_addr = ADDR_UNSET, |
| 2512 | .pll = PLL_28, |
| 2513 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2514 | /* ---- card 0x87---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2515 | [BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2516 | /* Michael Krufky <mkrufky@m1k.net> */ |
| 2517 | .name = "DViCO FusionHDTV 5 Lite", |
Michael Krufky | 9c26c8b | 2006-04-27 01:29:17 -0300 | [diff] [blame] | 2518 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2519 | .tuner_addr = ADDR_UNSET, |
Michael Krufky | 4b01741 | 2005-11-08 21:37:06 -0800 | [diff] [blame] | 2520 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2521 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2522 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2523 | .muxsel = MUXSEL(2, 3, 1), |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2524 | .gpiomask = 0x00e00007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2525 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
| 2526 | .gpiomute = 0x00c00007, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2527 | .no_msp34xx = 1, |
| 2528 | .no_tda9875 = 1, |
| 2529 | .no_tda7432 = 1, |
| 2530 | .has_dvb = 1, |
| 2531 | }, |
| 2532 | /* ---- card 0x88---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2533 | [BTTV_BOARD_ACORP_Y878F] = { |
Mauro Carvalho Chehab | 2e7c6dc | 2006-04-03 07:53:40 -0300 | [diff] [blame] | 2534 | /* Mauro Carvalho Chehab <mchehab@infradead.org> */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2535 | .name = "Acorp Y878F", |
| 2536 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2537 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2538 | .svhs = 2, |
| 2539 | .gpiomask = 0x01fe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2540 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2541 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 2542 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2543 | .needs_tvaudio = 1, |
| 2544 | .pll = PLL_28, |
| 2545 | .tuner_type = TUNER_YMEC_TVF66T5_B_DFF, |
| 2546 | .tuner_addr = 0xc1 >>1, |
| 2547 | .has_radio = 1, |
| 2548 | }, |
| 2549 | /* ---- card 0x89 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2550 | [BTTV_BOARD_CONCEPTRONIC_CTVFMI2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2551 | .name = "Conceptronic CTVFMi v2", |
| 2552 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2553 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2554 | .svhs = 2, |
| 2555 | .gpiomask = 0x001c0007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2556 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2557 | .gpiomux = { 0, 1, 2, 2 }, |
| 2558 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2559 | .needs_tvaudio = 0, |
| 2560 | .pll = PLL_28, |
Ricardo Cerqueira | 24d4122 | 2005-11-08 21:38:21 -0800 | [diff] [blame] | 2561 | .tuner_type = TUNER_TENA_9533_DI, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2562 | .tuner_addr = ADDR_UNSET, |
| 2563 | .has_remote = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2564 | .has_radio = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2565 | }, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2566 | /* ---- card 0x8a ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2567 | [BTTV_BOARD_PV_BT878P_2E] = { |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2568 | .name = "Prolink Pixelview PV-BT878P+ (Rev.2E)", |
| 2569 | .video_inputs = 5, |
| 2570 | /* .audio_inputs= 1, */ |
| 2571 | .svhs = 3, |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2572 | .has_dig_in = 1, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2573 | .gpiomask = 0x01fe00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2574 | .muxsel = MUXSEL(2, 3, 1, 1, 0), /* in 4 is digital */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2575 | /* .digital_mode= DIGITAL_MODE_CAMERA, */ |
| 2576 | .gpiomux = { 0x00400, 0x10400, 0x04400, 0x80000 }, |
| 2577 | .gpiomute = 0x12400, |
| 2578 | .no_msp34xx = 1, |
| 2579 | .pll = PLL_28, |
| 2580 | .tuner_type = TUNER_LG_PAL_FM, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2581 | .tuner_addr = ADDR_UNSET, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2582 | .has_remote = 1, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2583 | }, |
| 2584 | /* ---- card 0x8b ---------------------------------- */ |
| 2585 | [BTTV_BOARD_PV_M4900] = { |
Jan Engelhardt | 96de0e2 | 2007-10-19 23:21:04 +0200 | [diff] [blame] | 2586 | /* Sérgio Fortier <sergiofortier@yahoo.com.br> */ |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2587 | .name = "Prolink PixelView PlayTV MPEG2 PV-M4900", |
| 2588 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2589 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2590 | .svhs = 2, |
| 2591 | .gpiomask = 0x3f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2592 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2593 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 2594 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2595 | .no_msp34xx = 1, |
| 2596 | .pll = PLL_28, |
| 2597 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
| 2598 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2599 | .has_radio = 1, |
| 2600 | .has_remote = 1, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2601 | }, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 2602 | /* ---- card 0x8c ---------------------------------- */ |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2603 | /* Has four Bt878 chips behind a PCI bridge, each chip has: |
| 2604 | one external BNC composite input (mux 2) |
| 2605 | three internal composite inputs (unknown muxes) |
| 2606 | an 18-bit stereo A/D (CS5331A), which has: |
| 2607 | one external stereo unblanced (RCA) audio connection |
| 2608 | one (or 3?) internal stereo balanced (XLR) audio connection |
| 2609 | input is selected via gpio to a 14052B mux |
| 2610 | (mask=0x300, unbal=0x000, bal=0x100, ??=0x200,0x300) |
| 2611 | gain is controlled via an X9221A chip on the I2C bus @0x28 |
| 2612 | sample rate is controlled via gpio to an MK1413S |
| 2613 | (mask=0x3, 32kHz=0x0, 44.1kHz=0x1, 48kHz=0x2, ??=0x3) |
| 2614 | There is neither a tuner nor an svideo input. */ |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2615 | [BTTV_BOARD_OSPREY440] = { |
| 2616 | .name = "Osprey 440", |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2617 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2618 | /* .audio_inputs= 2, */ |
| 2619 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2620 | .muxsel = MUXSEL(2, 3, 0, 1), /* 3,0,1 are guesses */ |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 2621 | .gpiomask = 0x303, |
| 2622 | .gpiomute = 0x000, /* int + 32kHz */ |
| 2623 | .gpiomux = { 0, 0, 0x000, 0x100}, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2624 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2625 | .tuner_type = TUNER_ABSENT, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2626 | .tuner_addr = ADDR_UNSET, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2627 | .no_msp34xx = 1, |
| 2628 | .no_tda9875 = 1, |
| 2629 | .no_tda7432 = 1, |
| 2630 | }, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2631 | /* ---- card 0x8d ---------------------------------- */ |
| 2632 | [BTTV_BOARD_ASOUND_SKYEYE] = { |
| 2633 | .name = "Asound Skyeye PCTV", |
| 2634 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2635 | /* .audio_inputs= 1, */ |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2636 | .svhs = 2, |
| 2637 | .gpiomask = 15, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2638 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2639 | .gpiomux = { 2, 0, 0, 0 }, |
| 2640 | .gpiomute = 1, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2641 | .needs_tvaudio = 1, |
| 2642 | .pll = PLL_28, |
Trent Piepho | 8c2c0df | 2007-06-28 18:30:36 -0300 | [diff] [blame] | 2643 | .tuner_type = TUNER_PHILIPS_NTSC, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2644 | .tuner_addr = ADDR_UNSET, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2645 | }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2646 | /* ---- card 0x8e ---------------------------------- */ |
| 2647 | [BTTV_BOARD_SABRENT_TVFM] = { |
| 2648 | .name = "Sabrent TV-FM (bttv version)", |
| 2649 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2650 | /* .audio_inputs= 1, */ |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2651 | .svhs = 2, |
| 2652 | .gpiomask = 0x108007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2653 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2654 | .gpiomux = { 100000, 100002, 100002, 100000 }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2655 | .no_msp34xx = 1, |
| 2656 | .no_tda9875 = 1, |
| 2657 | .no_tda7432 = 1, |
| 2658 | .pll = PLL_28, |
| 2659 | .tuner_type = TUNER_TNF_5335MF, |
| 2660 | .tuner_addr = ADDR_UNSET, |
| 2661 | .has_radio = 1, |
| 2662 | }, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2663 | /* ---- card 0x8f ---------------------------------- */ |
| 2664 | [BTTV_BOARD_HAUPPAUGE_IMPACTVCB] = { |
| 2665 | .name = "Hauppauge ImpactVCB (bt878)", |
| 2666 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2667 | /* .audio_inputs= 0, */ |
| 2668 | .svhs = NO_SVHS, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2669 | .gpiomask = 0x0f, /* old: 7 */ |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2670 | .muxsel = MUXSEL(0, 1, 3, 2), /* Composite 0-3 */ |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2671 | .no_msp34xx = 1, |
| 2672 | .no_tda9875 = 1, |
| 2673 | .no_tda7432 = 1, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2674 | .tuner_type = TUNER_ABSENT, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2675 | .tuner_addr = ADDR_UNSET, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2676 | }, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2677 | [BTTV_BOARD_MACHTV_MAGICTV] = { |
| 2678 | /* Julian Calaby <julian.calaby@gmail.com> |
| 2679 | * Slightly different from original MachTV definition (0x60) |
| 2680 | |
| 2681 | * FIXME: RegSpy says gpiomask should be "0x001c800f", but it |
| 2682 | * stuffs up remote chip. Bug is a pin on the jaecs is not set |
| 2683 | * properly (methinks) causing no keyup bits being set */ |
| 2684 | |
| 2685 | .name = "MagicTV", /* rebranded MachTV */ |
| 2686 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2687 | /* .audio_inputs= 1, */ |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2688 | .svhs = 2, |
| 2689 | .gpiomask = 7, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2690 | .muxsel = MUXSEL(2, 3, 1, 1), |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2691 | .gpiomux = { 0, 1, 2, 3 }, |
| 2692 | .gpiomute = 4, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2693 | .tuner_type = TUNER_TEMIC_4009FR5_PAL, |
| 2694 | .tuner_addr = ADDR_UNSET, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2695 | .pll = PLL_28, |
| 2696 | .has_radio = 1, |
| 2697 | .has_remote = 1, |
| 2698 | }, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2699 | [BTTV_BOARD_SSAI_SECURITY] = { |
| 2700 | .name = "SSAI Security Video Interface", |
| 2701 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2702 | /* .audio_inputs= 0, */ |
| 2703 | .svhs = NO_SVHS, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2704 | .muxsel = MUXSEL(0, 1, 2, 3), |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2705 | .tuner_type = TUNER_ABSENT, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2706 | .tuner_addr = ADDR_UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2707 | }, |
| 2708 | [BTTV_BOARD_SSAI_ULTRASOUND] = { |
| 2709 | .name = "SSAI Ultrasound Video Interface", |
| 2710 | .video_inputs = 2, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2711 | /* .audio_inputs= 0, */ |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2712 | .svhs = 1, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2713 | .muxsel = MUXSEL(2, 0, 1, 3), |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2714 | .tuner_type = TUNER_ABSENT, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2715 | .tuner_addr = ADDR_UNSET, |
Scott Alfter | 1ebba67 | 2007-04-02 14:22:39 -0300 | [diff] [blame] | 2716 | }, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2717 | /* ---- card 0x94---------------------------------- */ |
| 2718 | [BTTV_BOARD_DVICO_FUSIONHDTV_2] = { |
| 2719 | .name = "DViCO FusionHDTV 2", |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 2720 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2721 | .tuner_addr = ADDR_UNSET, |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2722 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2723 | /* .audio_inputs= 1, */ |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2724 | .svhs = 2, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2725 | .muxsel = MUXSEL(2, 3, 1), |
Michael Krufky | 27cb786 | 2007-06-28 12:19:20 -0300 | [diff] [blame] | 2726 | .gpiomask = 0x00e00007, |
| 2727 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
| 2728 | .gpiomute = 0x00c00007, |
| 2729 | .no_msp34xx = 1, |
| 2730 | .no_tda9875 = 1, |
| 2731 | .no_tda7432 = 1, |
| 2732 | }, |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2733 | /* ---- card 0x95---------------------------------- */ |
| 2734 | [BTTV_BOARD_TYPHOON_TVTUNERPCI] = { |
| 2735 | .name = "Typhoon TV-Tuner PCI (50684)", |
| 2736 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2737 | /* .audio_inputs= 1, */ |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2738 | .svhs = 2, |
| 2739 | .gpiomask = 0x3014f, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2740 | .muxsel = MUXSEL(2, 3, 1, 1), |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2741 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
| 2742 | .gpiomute = 10, |
| 2743 | .needs_tvaudio = 1, |
| 2744 | .pll = PLL_28, |
| 2745 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 2746 | .tuner_addr = ADDR_UNSET, |
Sascha Sommer | b5457b7 | 2007-10-02 12:23:39 -0300 | [diff] [blame] | 2747 | }, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2748 | [BTTV_BOARD_GEOVISION_GV600] = { |
| 2749 | /* emhn@usb.ve */ |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2750 | .name = "Geovision GV-600", |
| 2751 | .video_inputs = 16, |
| 2752 | /* .audio_inputs= 0, */ |
| 2753 | .svhs = NO_SVHS, |
| 2754 | .gpiomask = 0x0, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2755 | .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] | 2756 | .muxsel_hook = geovision_muxsel, |
| 2757 | .gpiomux = { 0 }, |
| 2758 | .no_msp34xx = 1, |
| 2759 | .pll = PLL_28, |
| 2760 | .tuner_type = TUNER_ABSENT, |
| 2761 | .tuner_addr = ADDR_UNSET, |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2762 | }, |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2763 | [BTTV_BOARD_KOZUMI_KTV_01C] = { |
| 2764 | /* Mauro Lacy <mauro@lacy.com.ar> |
| 2765 | * Based on MagicTV and Conceptronic CONTVFMi */ |
| 2766 | |
| 2767 | .name = "Kozumi KTV-01C", |
| 2768 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2769 | /* .audio_inputs= 1, */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2770 | .svhs = 2, |
| 2771 | .gpiomask = 0x008007, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2772 | .muxsel = MUXSEL(2, 3, 1, 1), |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2773 | .gpiomux = { 0, 1, 2, 2 }, /* CONTVFMi */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2774 | .gpiomute = 3, /* CONTVFMi */ |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2775 | .needs_tvaudio = 0, |
| 2776 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* TCL MK3 */ |
| 2777 | .tuner_addr = ADDR_UNSET, |
Mauro Lacy | e80faad | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 2778 | .pll = PLL_28, |
| 2779 | .has_radio = 1, |
| 2780 | .has_remote = 1, |
| 2781 | }, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2782 | [BTTV_BOARD_ENLTV_FM_2] = { |
| 2783 | /* Encore TV Tuner Pro ENL TV-FM-2 |
| 2784 | Mauro Carvalho Chehab <mchehab@infradead.org */ |
| 2785 | .name = "Encore ENL TV-FM-2", |
| 2786 | .video_inputs = 3, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2787 | /* .audio_inputs= 1, */ |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2788 | .svhs = 2, |
| 2789 | /* bit 6 -> IR disabled |
| 2790 | bit 18/17 = 00 -> mute |
| 2791 | 01 -> enable external audio input |
| 2792 | 10 -> internal audio input (mono?) |
| 2793 | 11 -> internal audio input |
| 2794 | */ |
| 2795 | .gpiomask = 0x060040, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2796 | .muxsel = MUXSEL(2, 3, 3), |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2797 | .gpiomux = { 0x60000, 0x60000, 0x20000, 0x20000 }, |
| 2798 | .gpiomute = 0, |
| 2799 | .tuner_type = TUNER_TCL_MF02GIP_5N, |
| 2800 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 7d341a6 | 2008-08-05 10:14:13 -0300 | [diff] [blame] | 2801 | .pll = PLL_28, |
| 2802 | .has_radio = 1, |
| 2803 | .has_remote = 1, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2804 | }, |
| 2805 | [BTTV_BOARD_VD012] = { |
| 2806 | /* D.Heer@Phytec.de */ |
| 2807 | .name = "PHYTEC VD-012 (bt878)", |
| 2808 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2809 | /* .audio_inputs= 0, */ |
| 2810 | .svhs = NO_SVHS, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2811 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2812 | .muxsel = MUXSEL(0, 2, 3, 1), |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2813 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
| 2814 | .needs_tvaudio = 0, |
| 2815 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2816 | .tuner_type = TUNER_ABSENT, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2817 | .tuner_addr = ADDR_UNSET, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2818 | }, |
| 2819 | [BTTV_BOARD_VD012_X1] = { |
| 2820 | /* D.Heer@Phytec.de */ |
| 2821 | .name = "PHYTEC VD-012-X1 (bt878)", |
| 2822 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2823 | /* .audio_inputs= 0, */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2824 | .svhs = 3, |
| 2825 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2826 | .muxsel = MUXSEL(2, 3, 1), |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2827 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
| 2828 | .needs_tvaudio = 0, |
| 2829 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2830 | .tuner_type = TUNER_ABSENT, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2831 | .tuner_addr = ADDR_UNSET, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2832 | }, |
| 2833 | [BTTV_BOARD_VD012_X2] = { |
| 2834 | /* D.Heer@Phytec.de */ |
| 2835 | .name = "PHYTEC VD-012-X2 (bt878)", |
| 2836 | .video_inputs = 4, |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2837 | /* .audio_inputs= 0, */ |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2838 | .svhs = 3, |
| 2839 | .gpiomask = 0x00, |
Trent Piepho | 6f98700 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2840 | .muxsel = MUXSEL(3, 2, 1), |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2841 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
| 2842 | .needs_tvaudio = 0, |
| 2843 | .pll = PLL_28, |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 2844 | .tuner_type = TUNER_ABSENT, |
Dirk Heer | 0558362 | 2008-11-21 19:00:55 -0300 | [diff] [blame] | 2845 | .tuner_addr = ADDR_UNSET, |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 2846 | }, |
| 2847 | [BTTV_BOARD_GEOVISION_GV800S] = { |
| 2848 | /* Bruno Christo <bchristo@inf.ufsm.br> |
| 2849 | * |
| 2850 | * GeoVision GV-800(S) has 4 Conexant Fusion 878A: |
| 2851 | * 1 audio input per BT878A = 4 audio inputs |
| 2852 | * 4 video inputs per BT878A = 16 video inputs |
| 2853 | * This is the first BT878A chip of the GV-800(S). It's the |
| 2854 | * "master" chip and it controls the video inputs through an |
| 2855 | * analog multiplexer (a CD22M3494) via some GPIO pins. The |
| 2856 | * slaves should use card type 0x9e (following this one). |
| 2857 | * There is a EEPROM on the card which is currently not handled. |
| 2858 | * The audio input is not working yet. |
| 2859 | */ |
| 2860 | .name = "Geovision GV-800(S) (master)", |
| 2861 | .video_inputs = 4, |
| 2862 | /* .audio_inputs= 1, */ |
| 2863 | .tuner_type = TUNER_ABSENT, |
| 2864 | .tuner_addr = ADDR_UNSET, |
| 2865 | .svhs = NO_SVHS, |
| 2866 | .gpiomask = 0xf107f, |
| 2867 | .no_gpioirq = 1, |
| 2868 | .muxsel = MUXSEL(2, 2, 2, 2), |
| 2869 | .pll = PLL_28, |
| 2870 | .no_msp34xx = 1, |
| 2871 | .no_tda7432 = 1, |
| 2872 | .no_tda9875 = 1, |
| 2873 | .muxsel_hook = gv800s_muxsel, |
| 2874 | }, |
| 2875 | [BTTV_BOARD_GEOVISION_GV800S_SL] = { |
| 2876 | /* Bruno Christo <bchristo@inf.ufsm.br> |
| 2877 | * |
| 2878 | * GeoVision GV-800(S) has 4 Conexant Fusion 878A: |
| 2879 | * 1 audio input per BT878A = 4 audio inputs |
| 2880 | * 4 video inputs per BT878A = 16 video inputs |
| 2881 | * The 3 other BT878A chips are "slave" chips of the GV-800(S) |
| 2882 | * and should use this card type. |
| 2883 | * The audio input is not working yet. |
| 2884 | */ |
| 2885 | .name = "Geovision GV-800(S) (slave)", |
| 2886 | .video_inputs = 4, |
| 2887 | /* .audio_inputs= 1, */ |
| 2888 | .tuner_type = TUNER_ABSENT, |
| 2889 | .tuner_addr = ADDR_UNSET, |
| 2890 | .svhs = NO_SVHS, |
| 2891 | .gpiomask = 0x00, |
| 2892 | .no_gpioirq = 1, |
| 2893 | .muxsel = MUXSEL(2, 2, 2, 2), |
| 2894 | .pll = PLL_28, |
| 2895 | .no_msp34xx = 1, |
| 2896 | .no_tda7432 = 1, |
| 2897 | .no_tda9875 = 1, |
| 2898 | .muxsel_hook = gv800s_muxsel, |
| 2899 | }, |
Alan McIvor | dceaddb | 2009-03-12 21:43:34 -0300 | [diff] [blame] | 2900 | [BTTV_BOARD_PV183] = { |
| 2901 | .name = "ProVideo PV183", /* 0x9f */ |
| 2902 | .video_inputs = 2, |
| 2903 | /* .audio_inputs= 0, */ |
| 2904 | .svhs = NO_SVHS, |
| 2905 | .gpiomask = 0, |
| 2906 | .muxsel = MUXSEL(2, 3), |
| 2907 | .gpiomux = { 0 }, |
| 2908 | .needs_tvaudio = 0, |
| 2909 | .no_msp34xx = 1, |
| 2910 | .pll = PLL_28, |
| 2911 | .tuner_type = TUNER_ABSENT, |
| 2912 | .tuner_addr = ADDR_UNSET, |
| 2913 | }, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2914 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2915 | |
| 2916 | static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards); |
| 2917 | |
| 2918 | /* ----------------------------------------------------------------------- */ |
| 2919 | |
| 2920 | static unsigned char eeprom_data[256]; |
| 2921 | |
| 2922 | /* |
| 2923 | * identify card |
| 2924 | */ |
| 2925 | void __devinit bttv_idcard(struct bttv *btv) |
| 2926 | { |
| 2927 | unsigned int gpiobits; |
| 2928 | int i,type; |
| 2929 | unsigned short tmp; |
| 2930 | |
| 2931 | /* read PCI subsystem ID */ |
| 2932 | pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_ID, &tmp); |
| 2933 | btv->cardid = tmp << 16; |
| 2934 | pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_VENDOR_ID, &tmp); |
| 2935 | btv->cardid |= tmp; |
| 2936 | |
| 2937 | if (0 != btv->cardid && 0xffffffff != btv->cardid) { |
| 2938 | /* look for the card */ |
| 2939 | for (type = -1, i = 0; cards[i].id != 0; i++) |
| 2940 | if (cards[i].id == btv->cardid) |
| 2941 | type = i; |
| 2942 | |
| 2943 | if (type != -1) { |
| 2944 | /* found it */ |
| 2945 | printk(KERN_INFO "bttv%d: detected: %s [card=%d], " |
| 2946 | "PCI subsystem ID is %04x:%04x\n", |
| 2947 | btv->c.nr,cards[type].name,cards[type].cardnr, |
| 2948 | btv->cardid & 0xffff, |
| 2949 | (btv->cardid >> 16) & 0xffff); |
| 2950 | btv->c.type = cards[type].cardnr; |
| 2951 | } else { |
| 2952 | /* 404 */ |
| 2953 | printk(KERN_INFO "bttv%d: subsystem: %04x:%04x (UNKNOWN)\n", |
| 2954 | btv->c.nr, btv->cardid & 0xffff, |
| 2955 | (btv->cardid >> 16) & 0xffff); |
| 2956 | printk(KERN_DEBUG "please mail id, board name and " |
Hans Verkuil | 15965f0 | 2009-03-14 15:06:08 -0300 | [diff] [blame] | 2957 | "the correct card= insmod option to linux-media@vger.kernel.org\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2958 | } |
| 2959 | } |
| 2960 | |
| 2961 | /* let the user override the autodetected type */ |
| 2962 | if (card[btv->c.nr] < bttv_num_tvcards) |
| 2963 | btv->c.type=card[btv->c.nr]; |
| 2964 | |
| 2965 | /* print which card config we are using */ |
| 2966 | printk(KERN_INFO "bttv%d: using: %s [card=%d,%s]\n",btv->c.nr, |
| 2967 | bttv_tvcards[btv->c.type].name, btv->c.type, |
| 2968 | card[btv->c.nr] < bttv_num_tvcards |
| 2969 | ? "insmod option" : "autodetected"); |
| 2970 | |
| 2971 | /* overwrite gpio stuff ?? */ |
| 2972 | if (UNSET == audioall && UNSET == audiomux[0]) |
| 2973 | return; |
| 2974 | |
| 2975 | if (UNSET != audiomux[0]) { |
| 2976 | gpiobits = 0; |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 2977 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2978 | bttv_tvcards[btv->c.type].gpiomux[i] = audiomux[i]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2979 | gpiobits |= audiomux[i]; |
| 2980 | } |
| 2981 | } else { |
| 2982 | gpiobits = audioall; |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 2983 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2984 | bttv_tvcards[btv->c.type].gpiomux[i] = audioall; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2985 | } |
| 2986 | } |
| 2987 | bttv_tvcards[btv->c.type].gpiomask = (UNSET != gpiomask) ? gpiomask : gpiobits; |
| 2988 | printk(KERN_INFO "bttv%d: gpio config override: mask=0x%x, mux=", |
| 2989 | btv->c.nr,bttv_tvcards[btv->c.type].gpiomask); |
Mauro Carvalho Chehab | 57747b7 | 2007-03-28 22:37:20 -0300 | [diff] [blame] | 2990 | for (i = 0; i < ARRAY_SIZE(bttv_tvcards->gpiomux); i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2991 | printk("%s0x%x", i ? "," : "", bttv_tvcards[btv->c.type].gpiomux[i]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2992 | } |
| 2993 | printk("\n"); |
| 2994 | } |
| 2995 | |
| 2996 | /* |
| 2997 | * (most) board specific initialisations goes here |
| 2998 | */ |
| 2999 | |
| 3000 | /* Some Modular Technology cards have an eeprom, but no subsystem ID */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 3001 | 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] | 3002 | { |
| 3003 | int type = -1; |
| 3004 | |
| 3005 | if (0 == strncmp(eeprom_data,"GET MM20xPCTV",13)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3006 | type = BTTV_BOARD_MODTEC_205; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3007 | else if (0 == strncmp(eeprom_data+20,"Picolo",7)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3008 | type = BTTV_BOARD_EURESYS_PICOLO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3009 | else if (eeprom_data[0] == 0x84 && eeprom_data[2]== 0) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3010 | type = BTTV_BOARD_HAUPPAUGE; /* old bt848 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3011 | |
| 3012 | if (-1 != type) { |
| 3013 | btv->c.type = type; |
| 3014 | printk("bttv%d: detected by eeprom: %s [card=%d]\n", |
| 3015 | btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type); |
| 3016 | } |
| 3017 | } |
| 3018 | |
| 3019 | static void flyvideo_gpio(struct bttv *btv) |
| 3020 | { |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3021 | int gpio, has_remote, has_radio, is_capture_only; |
| 3022 | int is_lr90, has_tda9820_tda9821; |
| 3023 | int tuner_type = UNSET, ttype; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3024 | |
| 3025 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3026 | udelay(8); /* without this we would see the 0x1800 mask */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3027 | gpio = gpio_read(); |
| 3028 | /* FIXME: must restore OUR_EN ??? */ |
| 3029 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3030 | /* all cards provide GPIO info, some have an additional eeprom |
| 3031 | * LR50: GPIO coding can be found lower right CP1 .. CP9 |
| 3032 | * CP9=GPIO23 .. CP1=GPIO15; when OPEN, the corresponding GPIO reads 1. |
| 3033 | * GPIO14-12: n.c. |
| 3034 | * LR90: GP9=GPIO23 .. GP1=GPIO15 (right above the bt878) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3035 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3036 | * lowest 3 bytes are remote control codes (no handshake needed) |
| 3037 | * xxxFFF: No remote control chip soldered |
| 3038 | * xxxF00(LR26/LR50), xxxFE0(LR90): Remote control chip (LVA001 or CF45) soldered |
| 3039 | * Note: Some bits are Audio_Mask ! |
| 3040 | */ |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3041 | ttype = (gpio & 0x0f0000) >> 16; |
| 3042 | switch (ttype) { |
| 3043 | case 0x0: |
| 3044 | tuner_type = 2; /* NTSC, e.g. TPI8NSR11P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3045 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3046 | case 0x2: |
| 3047 | tuner_type = 39; /* LG NTSC (newer TAPC series) TAPC-H701P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3048 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3049 | case 0x4: |
| 3050 | tuner_type = 5; /* Philips PAL TPI8PSB02P, TPI8PSB12P, TPI8PSB12D or FI1216, FM1216 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3051 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3052 | case 0x6: |
| 3053 | tuner_type = 37; /* LG PAL (newer TAPC series) TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3054 | break; |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3055 | case 0xC: |
| 3056 | tuner_type = 3; /* Philips SECAM(+PAL) FQ1216ME or FI1216MF */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3057 | break; |
| 3058 | default: |
| 3059 | printk(KERN_INFO "bttv%d: FlyVideo_gpio: unknown tuner type.\n", btv->c.nr); |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3060 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3061 | } |
| 3062 | |
| 3063 | has_remote = gpio & 0x800000; |
| 3064 | has_radio = gpio & 0x400000; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3065 | /* unknown 0x200000; |
| 3066 | * unknown2 0x100000; */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3067 | is_capture_only = !(gpio & 0x008000); /* GPIO15 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3068 | has_tda9820_tda9821 = !(gpio & 0x004000); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3069 | is_lr90 = !(gpio & 0x002000); /* else LR26/LR50 (LR38/LR51 f. capture only) */ |
| 3070 | /* |
| 3071 | * gpio & 0x001000 output bit for audio routing */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3072 | |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3073 | if (is_capture_only) |
| 3074 | tuner_type = TUNER_ABSENT; /* No tuner present */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3075 | |
| 3076 | printk(KERN_INFO "bttv%d: FlyVideo Radio=%s RemoteControl=%s Tuner=%d gpio=0x%06x\n", |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3077 | btv->c.nr, has_radio ? "yes" : "no ", |
| 3078 | has_remote ? "yes" : "no ", tuner_type, gpio); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3079 | printk(KERN_INFO "bttv%d: FlyVideo LR90=%s tda9821/tda9820=%s capture_only=%s\n", |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3080 | btv->c.nr, is_lr90 ? "yes" : "no ", |
| 3081 | has_tda9820_tda9821 ? "yes" : "no ", |
| 3082 | is_capture_only ? "yes" : "no "); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3083 | |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3084 | if (tuner_type != UNSET) /* only set if known tuner autodetected, else let insmod option through */ |
| 3085 | btv->tuner_type = tuner_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3086 | btv->has_radio = has_radio; |
| 3087 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3088 | /* LR90 Audio Routing is done by 2 hef4052, so Audio_Mask has 4 bits: 0x001c80 |
| 3089 | * LR26/LR50 only has 1 hef4052, Audio_Mask 0x000c00 |
| 3090 | * 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] | 3091 | if (has_tda9820_tda9821) |
| 3092 | btv->audio_mode_gpio = lt9415_audio; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 3093 | /* todo: if(has_tda9874) btv->audio_mode_gpio = fv2000s_audio; */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3094 | } |
| 3095 | |
| 3096 | static int miro_tunermap[] = { 0,6,2,3, 4,5,6,0, 3,0,4,5, 5,2,16,1, |
| 3097 | 14,2,17,1, 4,1,4,3, 1,2,16,1, 4,4,4,4 }; |
| 3098 | static int miro_fmtuner[] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1, |
| 3099 | 1,1,1,1, 1,1,1,0, 0,0,0,0, 0,1,0,0 }; |
| 3100 | |
| 3101 | static void miro_pinnacle_gpio(struct bttv *btv) |
| 3102 | { |
| 3103 | int id,msp,gpio; |
| 3104 | char *info; |
| 3105 | |
| 3106 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3107 | gpio = gpio_read(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3108 | id = ((gpio>>10) & 63) -1; |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3109 | msp = bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3110 | if (id < 32) { |
| 3111 | btv->tuner_type = miro_tunermap[id]; |
| 3112 | if (0 == (gpio & 0x20)) { |
| 3113 | btv->has_radio = 1; |
| 3114 | if (!miro_fmtuner[id]) { |
| 3115 | btv->has_matchbox = 1; |
| 3116 | btv->mbox_we = (1<<6); |
| 3117 | btv->mbox_most = (1<<7); |
| 3118 | btv->mbox_clk = (1<<8); |
| 3119 | btv->mbox_data = (1<<9); |
| 3120 | btv->mbox_mask = (1<<6)|(1<<7)|(1<<8)|(1<<9); |
| 3121 | } |
| 3122 | } else { |
| 3123 | btv->has_radio = 0; |
| 3124 | } |
| 3125 | if (-1 != msp) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3126 | if (btv->c.type == BTTV_BOARD_MIRO) |
| 3127 | btv->c.type = BTTV_BOARD_MIROPRO; |
| 3128 | if (btv->c.type == BTTV_BOARD_PINNACLE) |
| 3129 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3130 | } |
| 3131 | printk(KERN_INFO |
| 3132 | "bttv%d: miro: id=%d tuner=%d radio=%s stereo=%s\n", |
| 3133 | btv->c.nr, id+1, btv->tuner_type, |
| 3134 | !btv->has_radio ? "no" : |
| 3135 | (btv->has_matchbox ? "matchbox" : "fmtuner"), |
| 3136 | (-1 == msp) ? "no" : "yes"); |
| 3137 | } else { |
| 3138 | /* new cards with microtune tuner */ |
| 3139 | id = 63 - id; |
| 3140 | btv->has_radio = 0; |
| 3141 | switch (id) { |
| 3142 | case 1: |
| 3143 | info = "PAL / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3144 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3145 | break; |
| 3146 | case 2: |
| 3147 | info = "PAL+SECAM / stereo"; |
| 3148 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3149 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3150 | break; |
| 3151 | case 3: |
| 3152 | info = "NTSC / stereo"; |
| 3153 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3154 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3155 | break; |
| 3156 | case 4: |
| 3157 | info = "PAL+SECAM / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3158 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3159 | break; |
| 3160 | case 5: |
| 3161 | info = "NTSC / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3162 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3163 | break; |
| 3164 | case 6: |
| 3165 | info = "NTSC / stereo"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3166 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3167 | break; |
| 3168 | case 7: |
| 3169 | info = "PAL / stereo"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3170 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3171 | break; |
| 3172 | default: |
| 3173 | info = "oops: unknown card"; |
| 3174 | break; |
| 3175 | } |
| 3176 | if (-1 != msp) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3177 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3178 | printk(KERN_INFO |
| 3179 | "bttv%d: pinnacle/mt: id=%d info=\"%s\" radio=%s\n", |
| 3180 | btv->c.nr, id, info, btv->has_radio ? "yes" : "no"); |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3181 | btv->tuner_type = TUNER_MT2032; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3182 | } |
| 3183 | } |
| 3184 | |
| 3185 | /* GPIO21 L: Buffer aktiv, H: Buffer inaktiv */ |
| 3186 | #define LM1882_SYNC_DRIVE 0x200000L |
| 3187 | |
| 3188 | static void init_ids_eagle(struct bttv *btv) |
| 3189 | { |
| 3190 | gpio_inout(0xffffff,0xFFFF37); |
| 3191 | gpio_write(0x200020); |
| 3192 | |
| 3193 | /* flash strobe inverter ?! */ |
| 3194 | gpio_write(0x200024); |
| 3195 | |
| 3196 | /* switch sync drive off */ |
| 3197 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
| 3198 | |
| 3199 | /* set BT848 muxel to 2 */ |
| 3200 | btaor((2)<<5, ~(2<<5), BT848_IFORM); |
| 3201 | } |
| 3202 | |
| 3203 | /* Muxsel helper for the IDS Eagle. |
| 3204 | * the eagles does not use the standard muxsel-bits but |
| 3205 | * has its own multiplexer */ |
| 3206 | static void eagle_muxsel(struct bttv *btv, unsigned int input) |
| 3207 | { |
Trent Piepho | 430390e | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3208 | gpio_bits(3, input & 3); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3209 | |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3210 | /* composite */ |
| 3211 | /* set chroma ADC to sleep */ |
| 3212 | btor(BT848_ADC_C_SLEEP, BT848_ADC); |
| 3213 | /* set to composite video */ |
| 3214 | btand(~BT848_CONTROL_COMP, BT848_E_CONTROL); |
| 3215 | btand(~BT848_CONTROL_COMP, BT848_O_CONTROL); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3216 | |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3217 | /* switch sync drive off */ |
| 3218 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3219 | } |
| 3220 | |
| 3221 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input) |
| 3222 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3223 | static const int masks[] = {0x30, 0x01, 0x12, 0x23}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3224 | gpio_write(masks[input%4]); |
| 3225 | } |
| 3226 | |
| 3227 | /* LMLBT4x initialization - to allow access to GPIO bits for sensors input and |
| 3228 | alarms output |
| 3229 | |
| 3230 | GPIObit | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| 3231 | assignment | TI | O3|INx| O2| O1|IN4|IN3|IN2|IN1| | | |
| 3232 | |
| 3233 | IN - sensor inputs, INx - sensor inputs and TI XORed together |
| 3234 | O1,O2,O3 - alarm outputs (relays) |
| 3235 | |
| 3236 | OUT ENABLE 1 1 0 . 1 1 0 0 . 0 0 0 0 = 0x6C0 |
| 3237 | |
| 3238 | */ |
| 3239 | |
| 3240 | static void init_lmlbt4x(struct bttv *btv) |
| 3241 | { |
| 3242 | printk(KERN_DEBUG "LMLBT4x init\n"); |
| 3243 | btwrite(0x000000, BT848_GPIO_REG_INP); |
| 3244 | gpio_inout(0xffffff, 0x0006C0); |
| 3245 | gpio_write(0x000000); |
| 3246 | } |
| 3247 | |
| 3248 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input) |
| 3249 | { |
| 3250 | unsigned int inmux = input % 8; |
| 3251 | gpio_inout( 0xf, 0xf ); |
| 3252 | gpio_bits( 0xf, inmux ); |
| 3253 | } |
| 3254 | |
| 3255 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input) |
| 3256 | { |
| 3257 | unsigned int inmux = input % 4; |
| 3258 | gpio_inout( 3<<9, 3<<9 ); |
| 3259 | gpio_bits( 3<<9, inmux<<9 ); |
| 3260 | } |
| 3261 | |
Ernesto Hernández-Novich | 97275ac | 2008-04-22 14:45:58 -0300 | [diff] [blame] | 3262 | static void geovision_muxsel(struct bttv *btv, unsigned int input) |
| 3263 | { |
| 3264 | unsigned int inmux = input % 16; |
| 3265 | gpio_inout(0xf, 0xf); |
| 3266 | gpio_bits(0xf, inmux); |
| 3267 | } |
| 3268 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3269 | /* ----------------------------------------------------------------------- */ |
| 3270 | |
| 3271 | static void bttv_reset_audio(struct bttv *btv) |
| 3272 | { |
| 3273 | /* |
| 3274 | * BT878A has a audio-reset register. |
| 3275 | * 1. This register is an audio reset function but it is in |
| 3276 | * function-0 (video capture) address space. |
| 3277 | * 2. It is enough to do this once per power-up of the card. |
| 3278 | * 3. There is a typo in the Conexant doc -- it is not at |
| 3279 | * 0x5B, but at 0x058. (B is an odd-number, obviously a typo!). |
| 3280 | * --//Shrikumar 030609 |
| 3281 | */ |
| 3282 | if (btv->id != 878) |
| 3283 | return; |
| 3284 | |
| 3285 | if (bttv_debug) |
| 3286 | printk("bttv%d: BT878A ARESET\n",btv->c.nr); |
| 3287 | btwrite((1<<7), 0x058); |
| 3288 | udelay(10); |
| 3289 | btwrite( 0, 0x058); |
| 3290 | } |
| 3291 | |
| 3292 | /* initialization part one -- before registering i2c bus */ |
| 3293 | void __devinit bttv_init_card1(struct bttv *btv) |
| 3294 | { |
| 3295 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3296 | case BTTV_BOARD_HAUPPAUGE: |
| 3297 | case BTTV_BOARD_HAUPPAUGE878: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3298 | boot_msp34xx(btv,5); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3299 | break; |
Wade Berrier | 434b252 | 2007-06-25 13:02:16 -0300 | [diff] [blame] | 3300 | case BTTV_BOARD_VOODOOTV_200: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3301 | case BTTV_BOARD_VOODOOTV_FM: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3302 | boot_msp34xx(btv,20); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3303 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3304 | case BTTV_BOARD_AVERMEDIA98: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3305 | boot_msp34xx(btv,11); |
| 3306 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3307 | case BTTV_BOARD_HAUPPAUGEPVR: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3308 | pvr_boot(btv); |
| 3309 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3310 | case BTTV_BOARD_TWINHAN_DST: |
| 3311 | case BTTV_BOARD_AVDVBT_771: |
| 3312 | case BTTV_BOARD_PINNACLESAT: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3313 | btv->use_i2c_hw = 1; |
| 3314 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3315 | case BTTV_BOARD_ADLINK_RTV24: |
Michael Krufky | 7c08fb0 | 2005-11-08 21:36:21 -0800 | [diff] [blame] | 3316 | init_RTV24( btv ); |
| 3317 | break; |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 3318 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3319 | } |
| 3320 | if (!bttv_tvcards[btv->c.type].has_dvb) |
| 3321 | bttv_reset_audio(btv); |
| 3322 | } |
| 3323 | |
| 3324 | /* initialization part two -- after registering i2c bus */ |
| 3325 | void __devinit bttv_init_card2(struct bttv *btv) |
| 3326 | { |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3327 | btv->tuner_type = UNSET; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3328 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3329 | if (BTTV_BOARD_UNKNOWN == btv->c.type) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3330 | bttv_readee(btv,eeprom_data,0xa0); |
| 3331 | identify_by_eeprom(btv,eeprom_data); |
| 3332 | } |
| 3333 | |
| 3334 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3335 | case BTTV_BOARD_MIRO: |
| 3336 | case BTTV_BOARD_MIROPRO: |
| 3337 | case BTTV_BOARD_PINNACLE: |
| 3338 | case BTTV_BOARD_PINNACLEPRO: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3339 | /* miro/pinnacle */ |
| 3340 | miro_pinnacle_gpio(btv); |
| 3341 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3342 | case BTTV_BOARD_FLYVIDEO_98: |
| 3343 | case BTTV_BOARD_MAXI: |
| 3344 | case BTTV_BOARD_LIFE_FLYKIT: |
| 3345 | case BTTV_BOARD_FLYVIDEO: |
| 3346 | case BTTV_BOARD_TYPHOON_TVIEW: |
| 3347 | case BTTV_BOARD_CHRONOS_VS2: |
| 3348 | case BTTV_BOARD_FLYVIDEO_98FM: |
| 3349 | case BTTV_BOARD_FLYVIDEO2000: |
| 3350 | case BTTV_BOARD_FLYVIDEO98EZ: |
| 3351 | case BTTV_BOARD_CONFERENCETV: |
| 3352 | case BTTV_BOARD_LIFETEC_9415: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3353 | flyvideo_gpio(btv); |
| 3354 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3355 | case BTTV_BOARD_HAUPPAUGE: |
| 3356 | case BTTV_BOARD_HAUPPAUGE878: |
| 3357 | case BTTV_BOARD_HAUPPAUGEPVR: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3358 | /* pick up some config infos from the eeprom */ |
| 3359 | bttv_readee(btv,eeprom_data,0xa0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3360 | hauppauge_eeprom(btv); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3361 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3362 | case BTTV_BOARD_AVERMEDIA98: |
| 3363 | case BTTV_BOARD_AVPHONE98: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3364 | bttv_readee(btv,eeprom_data,0xa0); |
| 3365 | avermedia_eeprom(btv); |
| 3366 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3367 | case BTTV_BOARD_PXC200: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3368 | init_PXC200(btv); |
| 3369 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3370 | case BTTV_BOARD_PICOLO_TETRA_CHIP: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3371 | picolo_tetra_init(btv); |
| 3372 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3373 | case BTTV_BOARD_VHX: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3374 | btv->has_radio = 1; |
| 3375 | btv->has_matchbox = 1; |
| 3376 | btv->mbox_we = 0x20; |
| 3377 | btv->mbox_most = 0; |
| 3378 | btv->mbox_clk = 0x08; |
| 3379 | btv->mbox_data = 0x10; |
| 3380 | btv->mbox_mask = 0x38; |
| 3381 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3382 | case BTTV_BOARD_VOBIS_BOOSTAR: |
| 3383 | case BTTV_BOARD_TERRATV: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3384 | terratec_active_radio_upgrade(btv); |
| 3385 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3386 | case BTTV_BOARD_MAGICTVIEW061: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3387 | if (btv->cardid == 0x3002144f) { |
| 3388 | btv->has_radio=1; |
| 3389 | printk("bttv%d: radio detected by subsystem id (CPH05x)\n",btv->c.nr); |
| 3390 | } |
| 3391 | break; |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3392 | case BTTV_BOARD_STB2: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3393 | if (btv->cardid == 0x3060121a) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3394 | /* Fix up entry for 3DFX VoodooTV 100, |
| 3395 | which is an OEM STB card variant. */ |
| 3396 | btv->has_radio=0; |
| 3397 | btv->tuner_type=TUNER_TEMIC_NTSC; |
| 3398 | } |
| 3399 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3400 | case BTTV_BOARD_OSPREY1x0: |
| 3401 | case BTTV_BOARD_OSPREY1x0_848: |
| 3402 | case BTTV_BOARD_OSPREY101_848: |
| 3403 | case BTTV_BOARD_OSPREY1x1: |
| 3404 | case BTTV_BOARD_OSPREY1x1_SVID: |
| 3405 | case BTTV_BOARD_OSPREY2xx: |
| 3406 | case BTTV_BOARD_OSPREY2x0_SVID: |
| 3407 | case BTTV_BOARD_OSPREY2x0: |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3408 | case BTTV_BOARD_OSPREY440: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3409 | case BTTV_BOARD_OSPREY500: |
| 3410 | case BTTV_BOARD_OSPREY540: |
| 3411 | case BTTV_BOARD_OSPREY2000: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3412 | bttv_readee(btv,eeprom_data,0xa0); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3413 | osprey_eeprom(btv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3414 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3415 | case BTTV_BOARD_IDS_EAGLE: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3416 | init_ids_eagle(btv); |
| 3417 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3418 | case BTTV_BOARD_MODTEC_205: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3419 | bttv_readee(btv,eeprom_data,0xa0); |
| 3420 | modtec_eeprom(btv); |
| 3421 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3422 | case BTTV_BOARD_LMLBT4: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3423 | init_lmlbt4x(btv); |
| 3424 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3425 | case BTTV_BOARD_TIBET_CS16: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3426 | tibetCS16_init(btv); |
| 3427 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3428 | case BTTV_BOARD_KODICOM_4400R: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3429 | kodicom4400r_init(btv); |
| 3430 | break; |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 3431 | case BTTV_BOARD_GEOVISION_GV800S: |
| 3432 | gv800s_init(btv); |
| 3433 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3434 | } |
| 3435 | |
| 3436 | /* pll configuration */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3437 | if (!(btv->id==848 && btv->revision==0x11)) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3438 | /* defaults from card list */ |
| 3439 | if (PLL_28 == bttv_tvcards[btv->c.type].pll) { |
| 3440 | btv->pll.pll_ifreq=28636363; |
| 3441 | btv->pll.pll_crystal=BT848_IFORM_XT0; |
| 3442 | } |
| 3443 | if (PLL_35 == bttv_tvcards[btv->c.type].pll) { |
| 3444 | btv->pll.pll_ifreq=35468950; |
| 3445 | btv->pll.pll_crystal=BT848_IFORM_XT1; |
| 3446 | } |
| 3447 | /* insmod options can override */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3448 | switch (pll[btv->c.nr]) { |
| 3449 | case 0: /* none */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3450 | btv->pll.pll_crystal = 0; |
| 3451 | btv->pll.pll_ifreq = 0; |
| 3452 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3453 | break; |
| 3454 | case 1: /* 28 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3455 | case 28: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3456 | btv->pll.pll_ifreq = 28636363; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3457 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3458 | btv->pll.pll_crystal = BT848_IFORM_XT0; |
| 3459 | break; |
| 3460 | case 2: /* 35 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3461 | case 35: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3462 | btv->pll.pll_ifreq = 35468950; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3463 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3464 | btv->pll.pll_crystal = BT848_IFORM_XT1; |
| 3465 | break; |
| 3466 | } |
| 3467 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3468 | btv->pll.pll_current = -1; |
| 3469 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3470 | /* tuner configuration (from card list / autodetect / insmod option) */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3471 | if (UNSET != bttv_tvcards[btv->c.type].tuner_type) |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3472 | if (UNSET == btv->tuner_type) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3473 | btv->tuner_type = bttv_tvcards[btv->c.type].tuner_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3474 | if (UNSET != tuner[btv->c.nr]) |
| 3475 | btv->tuner_type = tuner[btv->c.nr]; |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3476 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3477 | if (btv->tuner_type == TUNER_ABSENT) |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3478 | printk(KERN_INFO "bttv%d: tuner absent\n", btv->c.nr); |
| 3479 | else if(btv->tuner_type == UNSET) |
| 3480 | printk(KERN_WARNING "bttv%d: tuner type unset\n", btv->c.nr); |
| 3481 | else |
| 3482 | printk(KERN_INFO "bttv%d: tuner type=%d\n", btv->c.nr, |
| 3483 | btv->tuner_type); |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3484 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3485 | if (autoload != UNSET) { |
| 3486 | printk(KERN_WARNING "bttv%d: the autoload option is obsolete.\n", btv->c.nr); |
| 3487 | printk(KERN_WARNING "bttv%d: use option msp3400, tda7432 or tvaudio to\n", btv->c.nr); |
| 3488 | printk(KERN_WARNING "bttv%d: override which audio module should be used.\n", btv->c.nr); |
| 3489 | } |
| 3490 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3491 | if (UNSET == btv->tuner_type) |
| 3492 | btv->tuner_type = TUNER_ABSENT; |
| 3493 | |
Trent Piepho | 5221e21 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3494 | btv->dig = bttv_tvcards[btv->c.type].has_dig_in ? |
| 3495 | bttv_tvcards[btv->c.type].video_inputs - 1 : UNSET; |
Trent Piepho | 4c548d4 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3496 | btv->svhs = bttv_tvcards[btv->c.type].svhs == NO_SVHS ? |
| 3497 | UNSET : bttv_tvcards[btv->c.type].svhs; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3498 | if (svhs[btv->c.nr] != UNSET) |
| 3499 | btv->svhs = svhs[btv->c.nr]; |
| 3500 | if (remote[btv->c.nr] != UNSET) |
| 3501 | btv->has_remote = remote[btv->c.nr]; |
| 3502 | |
| 3503 | if (bttv_tvcards[btv->c.type].has_radio) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3504 | btv->has_radio = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3505 | if (bttv_tvcards[btv->c.type].has_remote) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3506 | btv->has_remote = 1; |
Michael Krufky | 7c08fb0 | 2005-11-08 21:36:21 -0800 | [diff] [blame] | 3507 | if (!bttv_tvcards[btv->c.type].no_gpioirq) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3508 | btv->gpioirq = 1; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 3509 | if (bttv_tvcards[btv->c.type].volume_gpio) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3510 | btv->volume_gpio = bttv_tvcards[btv->c.type].volume_gpio; |
Nickolay V. Shmyrev | 4b9b936 | 2006-08-25 16:53:04 -0300 | [diff] [blame] | 3511 | if (bttv_tvcards[btv->c.type].audio_mode_gpio) |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3512 | btv->audio_mode_gpio = bttv_tvcards[btv->c.type].audio_mode_gpio; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3513 | |
Trent Piepho | abb0362 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3514 | if (btv->tuner_type == TUNER_ABSENT) |
Trent Piepho | ac7dc84 | 2007-06-28 17:51:08 -0300 | [diff] [blame] | 3515 | return; /* no tuner or related drivers to load */ |
| 3516 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3517 | if (btv->has_saa6588 || saa6588[btv->c.nr]) { |
| 3518 | /* Probe for RDS receiver chip */ |
| 3519 | static const unsigned short addrs[] = { |
| 3520 | 0x20 >> 1, |
| 3521 | 0x22 >> 1, |
| 3522 | I2C_CLIENT_END |
| 3523 | }; |
| 3524 | struct v4l2_subdev *sd; |
| 3525 | |
Hans Verkuil | e6574f2 | 2009-04-01 03:57:53 -0300 | [diff] [blame] | 3526 | sd = v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev, |
| 3527 | &btv->c.i2c_adap, "saa6588", "saa6588", addrs); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3528 | btv->has_saa6588 = (sd != NULL); |
| 3529 | } |
| 3530 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3531 | /* try to detect audio/fader chips */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3532 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3533 | /* First check if the user specified the audio chip via a module |
| 3534 | option. */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3535 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3536 | switch (audiodev[btv->c.nr]) { |
| 3537 | case -1: |
| 3538 | return; /* do not load any audio module */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3539 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3540 | case 0: /* autodetect */ |
| 3541 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3542 | |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3543 | case 1: { |
| 3544 | /* The user specified that we should probe for msp3400 */ |
| 3545 | static const unsigned short addrs[] = { |
| 3546 | I2C_ADDR_MSP3400 >> 1, |
| 3547 | I2C_ADDR_MSP3400_ALT >> 1, |
| 3548 | I2C_CLIENT_END |
| 3549 | }; |
| 3550 | |
Hans Verkuil | e6574f2 | 2009-04-01 03:57:53 -0300 | [diff] [blame] | 3551 | btv->sd_msp34xx = v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev, |
| 3552 | &btv->c.i2c_adap, "msp3400", "msp3400", addrs); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3553 | if (btv->sd_msp34xx) |
| 3554 | return; |
| 3555 | goto no_audio; |
| 3556 | } |
| 3557 | |
| 3558 | case 2: { |
| 3559 | /* The user specified that we should probe for tda7432 */ |
| 3560 | static const unsigned short addrs[] = { |
| 3561 | I2C_ADDR_TDA7432 >> 1, |
| 3562 | I2C_CLIENT_END |
| 3563 | }; |
| 3564 | |
Hans Verkuil | e6574f2 | 2009-04-01 03:57:53 -0300 | [diff] [blame] | 3565 | if (v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev, |
| 3566 | &btv->c.i2c_adap, "tda7432", "tda7432", addrs)) |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3567 | return; |
| 3568 | goto no_audio; |
| 3569 | } |
| 3570 | |
| 3571 | case 3: { |
| 3572 | /* The user specified that we should probe for tvaudio */ |
Hans Verkuil | e6574f2 | 2009-04-01 03:57:53 -0300 | [diff] [blame] | 3573 | btv->sd_tvaudio = v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev, |
Hans Verkuil | 940088a | 2009-04-01 04:00:30 -0300 | [diff] [blame] | 3574 | &btv->c.i2c_adap, "tvaudio", "tvaudio", tvaudio_addrs()); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3575 | if (btv->sd_tvaudio) |
| 3576 | return; |
| 3577 | goto no_audio; |
| 3578 | } |
| 3579 | |
| 3580 | default: |
| 3581 | printk(KERN_WARNING "bttv%d: unknown audiodev value!\n", |
| 3582 | btv->c.nr); |
| 3583 | return; |
| 3584 | } |
| 3585 | |
| 3586 | /* There were no overrides, so now we try to discover this through the |
| 3587 | card definition */ |
| 3588 | |
| 3589 | /* probe for msp3400 first: this driver can detect whether or not |
| 3590 | it really is a msp3400, so it will return NULL when the device |
| 3591 | found is really something else (e.g. a tea6300). */ |
| 3592 | if (!bttv_tvcards[btv->c.type].no_msp34xx) { |
Hans Verkuil | 1792f68 | 2009-03-30 11:47:55 -0300 | [diff] [blame] | 3593 | btv->sd_msp34xx = v4l2_i2c_new_probed_subdev_addr(&btv->c.v4l2_dev, |
| 3594 | &btv->c.i2c_adap, "msp3400", "msp3400", |
| 3595 | I2C_ADDR_MSP3400 >> 1); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3596 | } else if (bttv_tvcards[btv->c.type].msp34xx_alt) { |
Hans Verkuil | 1792f68 | 2009-03-30 11:47:55 -0300 | [diff] [blame] | 3597 | btv->sd_msp34xx = v4l2_i2c_new_probed_subdev_addr(&btv->c.v4l2_dev, |
| 3598 | &btv->c.i2c_adap, "msp3400", "msp3400", |
| 3599 | I2C_ADDR_MSP3400_ALT >> 1); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3600 | } |
| 3601 | |
| 3602 | /* If we found a msp34xx, then we're done. */ |
| 3603 | if (btv->sd_msp34xx) |
| 3604 | return; |
| 3605 | |
| 3606 | /* it might also be a tda7432. */ |
| 3607 | if (!bttv_tvcards[btv->c.type].no_tda7432) { |
| 3608 | static const unsigned short addrs[] = { |
| 3609 | I2C_ADDR_TDA7432 >> 1, |
| 3610 | I2C_CLIENT_END |
| 3611 | }; |
| 3612 | |
Hans Verkuil | e6574f2 | 2009-04-01 03:57:53 -0300 | [diff] [blame] | 3613 | if (v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev, |
| 3614 | &btv->c.i2c_adap, "tda7432", "tda7432", addrs)) |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3615 | return; |
| 3616 | } |
| 3617 | |
| 3618 | /* Now see if we can find one of the tvaudio devices. */ |
Hans Verkuil | e6574f2 | 2009-04-01 03:57:53 -0300 | [diff] [blame] | 3619 | btv->sd_tvaudio = v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev, |
Hans Verkuil | 940088a | 2009-04-01 04:00:30 -0300 | [diff] [blame] | 3620 | &btv->c.i2c_adap, "tvaudio", "tvaudio", tvaudio_addrs()); |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3621 | if (btv->sd_tvaudio) |
| 3622 | return; |
| 3623 | |
| 3624 | no_audio: |
| 3625 | printk(KERN_WARNING "bttv%d: audio absent, no audio device found!\n", |
| 3626 | btv->c.nr); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3627 | } |
| 3628 | |
| 3629 | |
Hans Verkuil | 2c90577 | 2009-07-20 08:14:17 -0300 | [diff] [blame] | 3630 | /* initialize the tuner */ |
| 3631 | void __devinit bttv_init_tuner(struct bttv *btv) |
| 3632 | { |
| 3633 | int addr = ADDR_UNSET; |
| 3634 | |
| 3635 | if (ADDR_UNSET != bttv_tvcards[btv->c.type].tuner_addr) |
| 3636 | addr = bttv_tvcards[btv->c.type].tuner_addr; |
| 3637 | |
| 3638 | if (btv->tuner_type != TUNER_ABSENT) { |
| 3639 | struct tuner_setup tun_setup; |
| 3640 | |
| 3641 | /* Load tuner module before issuing tuner config call! */ |
| 3642 | if (bttv_tvcards[btv->c.type].has_radio) |
| 3643 | v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev, |
| 3644 | &btv->c.i2c_adap, "tuner", "tuner", |
| 3645 | v4l2_i2c_tuner_addrs(ADDRS_RADIO)); |
| 3646 | v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev, |
| 3647 | &btv->c.i2c_adap, "tuner", "tuner", |
| 3648 | v4l2_i2c_tuner_addrs(ADDRS_DEMOD)); |
| 3649 | v4l2_i2c_new_probed_subdev(&btv->c.v4l2_dev, |
| 3650 | &btv->c.i2c_adap, "tuner", "tuner", |
| 3651 | v4l2_i2c_tuner_addrs(ADDRS_TV_WITH_DEMOD)); |
| 3652 | |
| 3653 | tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV; |
| 3654 | tun_setup.type = btv->tuner_type; |
| 3655 | tun_setup.addr = addr; |
| 3656 | |
| 3657 | if (bttv_tvcards[btv->c.type].has_radio) |
| 3658 | tun_setup.mode_mask |= T_RADIO; |
| 3659 | |
| 3660 | bttv_call_all(btv, tuner, s_type_addr, &tun_setup); |
| 3661 | } |
| 3662 | |
| 3663 | if (btv->tda9887_conf) { |
| 3664 | struct v4l2_priv_tun_config tda9887_cfg; |
| 3665 | |
| 3666 | tda9887_cfg.tuner = TUNER_TDA9887; |
| 3667 | tda9887_cfg.priv = &btv->tda9887_conf; |
| 3668 | |
| 3669 | bttv_call_all(btv, tuner, s_config, &tda9887_cfg); |
| 3670 | } |
| 3671 | } |
| 3672 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3673 | /* ----------------------------------------------------------------------- */ |
| 3674 | |
| 3675 | static void modtec_eeprom(struct bttv *btv) |
| 3676 | { |
| 3677 | if( strncmp(&(eeprom_data[0x1e]),"Temic 4066 FY5",14) ==0) { |
| 3678 | btv->tuner_type=TUNER_TEMIC_4066FY5_PAL_I; |
| 3679 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3680 | btv->c.nr,&eeprom_data[0x1e]); |
| 3681 | } else if (strncmp(&(eeprom_data[0x1e]),"Alps TSBB5",10) ==0) { |
| 3682 | btv->tuner_type=TUNER_ALPS_TSBB5_PAL_I; |
| 3683 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3684 | btv->c.nr,&eeprom_data[0x1e]); |
| 3685 | } else if (strncmp(&(eeprom_data[0x1e]),"Philips FM1246",14) ==0) { |
| 3686 | btv->tuner_type=TUNER_PHILIPS_NTSC; |
| 3687 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3688 | btv->c.nr,&eeprom_data[0x1e]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3689 | } else { |
| 3690 | printk("bttv%d: Modtec: Unknown TunerString: %s\n", |
| 3691 | btv->c.nr,&eeprom_data[0x1e]); |
| 3692 | } |
| 3693 | } |
| 3694 | |
| 3695 | static void __devinit hauppauge_eeprom(struct bttv *btv) |
| 3696 | { |
| 3697 | struct tveeprom tv; |
| 3698 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 3699 | tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3700 | btv->tuner_type = tv.tuner_type; |
| 3701 | btv->has_radio = tv.has_radio; |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 3702 | |
| 3703 | printk("bttv%d: Hauppauge eeprom indicates model#%d\n", |
| 3704 | btv->c.nr, tv.model); |
| 3705 | |
| 3706 | /* |
| 3707 | * Some of the 878 boards have duplicate PCI IDs. Switch the board |
| 3708 | * type based on model #. |
| 3709 | */ |
| 3710 | if(tv.model == 64900) { |
| 3711 | printk("bttv%d: Switching board type from %s to %s\n", |
| 3712 | btv->c.nr, |
| 3713 | bttv_tvcards[btv->c.type].name, |
| 3714 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); |
| 3715 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; |
| 3716 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3717 | } |
| 3718 | |
| 3719 | static int terratec_active_radio_upgrade(struct bttv *btv) |
| 3720 | { |
| 3721 | int freq; |
| 3722 | |
| 3723 | btv->has_radio = 1; |
| 3724 | btv->has_matchbox = 1; |
| 3725 | btv->mbox_we = 0x10; |
| 3726 | btv->mbox_most = 0x20; |
| 3727 | btv->mbox_clk = 0x08; |
| 3728 | btv->mbox_data = 0x04; |
| 3729 | btv->mbox_mask = 0x3c; |
| 3730 | |
| 3731 | btv->mbox_iow = 1 << 8; |
| 3732 | btv->mbox_ior = 1 << 9; |
| 3733 | btv->mbox_csel = 1 << 10; |
| 3734 | |
| 3735 | freq=88000/62.5; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3736 | tea5757_write(btv, 5 * freq + 0x358); /* write 0x1ed8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3737 | if (0x1ed8 == tea5757_read(btv)) { |
| 3738 | printk("bttv%d: Terratec Active Radio Upgrade found.\n", |
| 3739 | btv->c.nr); |
| 3740 | btv->has_radio = 1; |
Hans Verkuil | 859f027 | 2009-03-28 08:29:00 -0300 | [diff] [blame] | 3741 | btv->has_saa6588 = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3742 | btv->has_matchbox = 1; |
| 3743 | } else { |
| 3744 | btv->has_radio = 0; |
| 3745 | btv->has_matchbox = 0; |
| 3746 | } |
| 3747 | return 0; |
| 3748 | } |
| 3749 | |
| 3750 | |
| 3751 | /* ----------------------------------------------------------------------- */ |
| 3752 | |
| 3753 | /* |
| 3754 | * minimal bootstrap for the WinTV/PVR -- upload altera firmware. |
| 3755 | * |
| 3756 | * The hcwamc.rbf firmware file is on the Hauppauge driver CD. Have |
| 3757 | * a look at Pvr/pvr45xxx.EXE (self-extracting zip archive, can be |
| 3758 | * unpacked with unzip). |
| 3759 | */ |
| 3760 | #define PVR_GPIO_DELAY 10 |
| 3761 | |
| 3762 | #define BTTV_ALT_DATA 0x000001 |
| 3763 | #define BTTV_ALT_DCLK 0x100000 |
| 3764 | #define BTTV_ALT_NCONFIG 0x800000 |
| 3765 | |
David Woodhouse | 4f2a0c3 | 2008-05-24 00:11:44 +0100 | [diff] [blame] | 3766 | static int __devinit pvr_altera_load(struct bttv *btv, const u8 *micro, |
| 3767 | u32 microlen) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3768 | { |
| 3769 | u32 n; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3770 | u8 bits; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3771 | int i; |
| 3772 | |
| 3773 | gpio_inout(0xffffff,BTTV_ALT_DATA|BTTV_ALT_DCLK|BTTV_ALT_NCONFIG); |
| 3774 | gpio_write(0); |
| 3775 | udelay(PVR_GPIO_DELAY); |
| 3776 | |
| 3777 | gpio_write(BTTV_ALT_NCONFIG); |
| 3778 | udelay(PVR_GPIO_DELAY); |
| 3779 | |
| 3780 | for (n = 0; n < microlen; n++) { |
| 3781 | bits = micro[n]; |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 3782 | for (i = 0 ; i < 8 ; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3783 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3784 | if (bits & 0x01) |
| 3785 | gpio_bits(BTTV_ALT_DATA,BTTV_ALT_DATA); |
| 3786 | else |
| 3787 | gpio_bits(BTTV_ALT_DATA,0); |
| 3788 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3789 | bits >>= 1; |
| 3790 | } |
| 3791 | } |
| 3792 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3793 | udelay(PVR_GPIO_DELAY); |
| 3794 | |
| 3795 | /* begin Altera init loop (Not necessary,but doesn't hurt) */ |
| 3796 | for (i = 0 ; i < 30 ; i++) { |
| 3797 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3798 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3799 | } |
| 3800 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3801 | return 0; |
| 3802 | } |
| 3803 | |
| 3804 | static int __devinit pvr_boot(struct bttv *btv) |
| 3805 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3806 | const struct firmware *fw_entry; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3807 | int rc; |
| 3808 | |
| 3809 | rc = request_firmware(&fw_entry, "hcwamc.rbf", &btv->c.pci->dev); |
| 3810 | if (rc != 0) { |
| 3811 | printk(KERN_WARNING "bttv%d: no altera firmware [via hotplug]\n", |
| 3812 | btv->c.nr); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3813 | return rc; |
| 3814 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3815 | rc = pvr_altera_load(btv, fw_entry->data, fw_entry->size); |
| 3816 | printk(KERN_INFO "bttv%d: altera firmware upload %s\n", |
| 3817 | btv->c.nr, (rc < 0) ? "failed" : "ok"); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3818 | release_firmware(fw_entry); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3819 | return rc; |
| 3820 | } |
| 3821 | |
| 3822 | /* ----------------------------------------------------------------------- */ |
| 3823 | /* some osprey specific stuff */ |
| 3824 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3825 | static void __devinit osprey_eeprom(struct bttv *btv, const u8 ee[256]) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3826 | { |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3827 | int i; |
| 3828 | u32 serial = 0; |
| 3829 | int cardid = -1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3830 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3831 | /* This code will nevery actually get called in this case.... */ |
| 3832 | if (btv->c.type == BTTV_BOARD_UNKNOWN) { |
| 3833 | /* this might be an antique... check for MMAC label in eeprom */ |
| 3834 | if (!strncmp(ee, "MMAC", 4)) { |
| 3835 | u8 checksum = 0; |
| 3836 | for (i = 0; i < 21; i++) |
| 3837 | checksum += ee[i]; |
| 3838 | if (checksum != ee[21]) |
| 3839 | return; |
| 3840 | cardid = BTTV_BOARD_OSPREY1x0_848; |
| 3841 | for (i = 12; i < 21; i++) |
| 3842 | serial *= 10, serial += ee[i] - '0'; |
| 3843 | } |
Michael Krufky | b930e1d | 2007-08-27 18:16:54 -0300 | [diff] [blame] | 3844 | } else { |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3845 | unsigned short type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3846 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3847 | for (i = 4*16; i < 8*16; i += 16) { |
| 3848 | u16 checksum = ip_compute_csum(ee + i, 16); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3849 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3850 | if ((checksum&0xff) + (checksum>>8) == 0xff) |
| 3851 | break; |
| 3852 | } |
| 3853 | if (i >= 8*16) |
| 3854 | return; |
| 3855 | ee += i; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3856 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3857 | /* found a valid descriptor */ |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 3858 | type = get_unaligned_be16((__be16 *)(ee+4)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3859 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3860 | switch(type) { |
| 3861 | /* 848 based */ |
| 3862 | case 0x0004: |
| 3863 | cardid = BTTV_BOARD_OSPREY1x0_848; |
| 3864 | break; |
| 3865 | case 0x0005: |
| 3866 | cardid = BTTV_BOARD_OSPREY101_848; |
| 3867 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3868 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3869 | /* 878 based */ |
| 3870 | case 0x0012: |
| 3871 | case 0x0013: |
| 3872 | cardid = BTTV_BOARD_OSPREY1x0; |
| 3873 | break; |
| 3874 | case 0x0014: |
| 3875 | case 0x0015: |
| 3876 | cardid = BTTV_BOARD_OSPREY1x1; |
| 3877 | break; |
| 3878 | case 0x0016: |
| 3879 | case 0x0017: |
| 3880 | case 0x0020: |
| 3881 | cardid = BTTV_BOARD_OSPREY1x1_SVID; |
| 3882 | break; |
| 3883 | case 0x0018: |
| 3884 | case 0x0019: |
| 3885 | case 0x001E: |
| 3886 | case 0x001F: |
| 3887 | cardid = BTTV_BOARD_OSPREY2xx; |
| 3888 | break; |
| 3889 | case 0x001A: |
| 3890 | case 0x001B: |
| 3891 | cardid = BTTV_BOARD_OSPREY2x0_SVID; |
| 3892 | break; |
| 3893 | case 0x0040: |
| 3894 | cardid = BTTV_BOARD_OSPREY500; |
| 3895 | break; |
| 3896 | case 0x0050: |
| 3897 | case 0x0056: |
| 3898 | cardid = BTTV_BOARD_OSPREY540; |
| 3899 | /* bttv_osprey_540_init(btv); */ |
| 3900 | break; |
| 3901 | case 0x0060: |
| 3902 | case 0x0070: |
| 3903 | case 0x00A0: |
| 3904 | cardid = BTTV_BOARD_OSPREY2x0; |
| 3905 | /* enable output on select control lines */ |
| 3906 | gpio_inout(0xffffff,0x000303); |
| 3907 | break; |
| 3908 | case 0x00D8: |
| 3909 | cardid = BTTV_BOARD_OSPREY440; |
| 3910 | break; |
| 3911 | default: |
| 3912 | /* unknown...leave generic, but get serial # */ |
| 3913 | printk(KERN_INFO "bttv%d: " |
| 3914 | "osprey eeprom: unknown card type 0x%04x\n", |
| 3915 | btv->c.nr, type); |
| 3916 | break; |
| 3917 | } |
Al Viro | c1c36f3 | 2008-05-21 00:32:21 -0300 | [diff] [blame] | 3918 | serial = get_unaligned_be32((__be32 *)(ee+6)); |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3919 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3920 | |
Trent Piepho | cf784d5 | 2007-07-21 21:26:40 -0300 | [diff] [blame] | 3921 | printk(KERN_INFO "bttv%d: osprey eeprom: card=%d '%s' serial=%u\n", |
| 3922 | btv->c.nr, cardid, |
| 3923 | cardid>0 ? bttv_tvcards[cardid].name : "Unknown", serial); |
| 3924 | |
| 3925 | if (cardid<0 || btv->c.type == cardid) |
| 3926 | return; |
| 3927 | |
| 3928 | /* card type isn't set correctly */ |
| 3929 | if (card[btv->c.nr] < bttv_num_tvcards) { |
| 3930 | printk(KERN_WARNING "bttv%d: osprey eeprom: " |
| 3931 | "Not overriding user specified card type\n", btv->c.nr); |
| 3932 | } else { |
| 3933 | printk(KERN_INFO "bttv%d: osprey eeprom: " |
| 3934 | "Changing card type from %d to %d\n", btv->c.nr, |
| 3935 | btv->c.type, cardid); |
| 3936 | btv->c.type = cardid; |
| 3937 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3938 | } |
| 3939 | |
| 3940 | /* ----------------------------------------------------------------------- */ |
| 3941 | /* AVermedia specific stuff, from bktr_card.c */ |
| 3942 | |
| 3943 | static int tuner_0_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3944 | TUNER_PHILIPS_NTSC, TUNER_PHILIPS_PAL /* PAL-BG*/, |
| 3945 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL /* PAL-I*/, |
| 3946 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL, |
| 3947 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_SECAM, |
| 3948 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3949 | TUNER_PHILIPS_FM1216ME_MK3 }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3950 | |
| 3951 | static int tuner_1_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3952 | TUNER_TEMIC_NTSC, TUNER_TEMIC_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3953 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
| 3954 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3955 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */ |
| 3956 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3957 | |
| 3958 | static void __devinit avermedia_eeprom(struct bttv *btv) |
| 3959 | { |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3960 | int tuner_make, tuner_tv_fm, tuner_format, tuner_type = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3961 | |
| 3962 | tuner_make = (eeprom_data[0x41] & 0x7); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3963 | tuner_tv_fm = (eeprom_data[0x41] & 0x18) >> 3; |
| 3964 | tuner_format = (eeprom_data[0x42] & 0xf0) >> 4; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3965 | btv->has_remote = (eeprom_data[0x42] & 0x01); |
| 3966 | |
| 3967 | if (tuner_make == 0 || tuner_make == 2) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3968 | if (tuner_format <= 0x0a) |
| 3969 | tuner_type = tuner_0_table[tuner_format]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3970 | if (tuner_make == 1) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3971 | if (tuner_format <= 9) |
| 3972 | tuner_type = tuner_1_table[tuner_format]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3973 | |
| 3974 | if (tuner_make == 4) |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3975 | if (tuner_format == 0x09) |
| 3976 | tuner_type = TUNER_LG_NTSC_NEW_TAPC; /* TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3977 | |
| 3978 | printk(KERN_INFO "bttv%d: Avermedia eeprom[0x%02x%02x]: tuner=", |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3979 | btv->c.nr, eeprom_data[0x41], eeprom_data[0x42]); |
| 3980 | if (tuner_type) { |
| 3981 | btv->tuner_type = tuner_type; |
| 3982 | printk(KERN_CONT "%d", tuner_type); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3983 | } else |
Hans Verkuil | c6eb8ea | 2008-09-03 17:11:54 -0300 | [diff] [blame] | 3984 | printk(KERN_CONT "Unknown type"); |
| 3985 | printk(KERN_CONT " radio:%s remote control:%s\n", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3986 | tuner_tv_fm ? "yes" : "no", |
| 3987 | btv->has_remote ? "yes" : "no"); |
| 3988 | } |
| 3989 | |
Trent Piepho | 72134a6 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 3990 | /* |
| 3991 | * For Voodoo TV/FM and Voodoo 200. These cards' tuners use a TDA9880 |
| 3992 | * analog demod, which is not I2C controlled like the newer and more common |
| 3993 | * TDA9887 series. Instead is has two tri-state input pins, S0 and S1, |
| 3994 | * that control the IF for the video and audio. Apparently, bttv GPIO |
| 3995 | * 0x10000 is connected to S0. S0 low selects a 38.9 MHz VIF for B/G/D/K/I |
| 3996 | * (i.e., PAL) while high selects 45.75 MHz for M/N (i.e., NTSC). |
| 3997 | */ |
| 3998 | u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3999 | { |
Trent Piepho | 72134a6 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4000 | |
| 4001 | if (btv->audio == TVAUDIO_INPUT_TUNER) { |
| 4002 | if (bttv_tvnorms[btv->tvnorm].v4l2_id & V4L2_STD_MN) |
| 4003 | gpiobits |= 0x10000; |
| 4004 | else |
| 4005 | gpiobits &= ~0x10000; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4006 | } |
Trent Piepho | 72134a6 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4007 | |
| 4008 | gpio_bits(bttv_tvcards[btv->c.type].gpiomask, gpiobits); |
| 4009 | return gpiobits; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4010 | } |
| 4011 | |
| 4012 | |
| 4013 | /* |
| 4014 | * reset/enable the MSP on some Hauppauge cards |
David Woodhouse | 93e960f | 2005-11-08 21:36:46 -0800 | [diff] [blame] | 4015 | * Thanks to Kyösti Mälkki (kmalkki@cc.hut.fi)! |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4016 | * |
| 4017 | * Hauppauge: pin 5 |
| 4018 | * Voodoo: pin 20 |
| 4019 | */ |
| 4020 | static void __devinit boot_msp34xx(struct bttv *btv, int pin) |
| 4021 | { |
| 4022 | int mask = (1 << pin); |
| 4023 | |
| 4024 | gpio_inout(mask,mask); |
| 4025 | gpio_bits(mask,0); |
Thierry MERLE | c4e3fd9 | 2008-09-01 17:32:10 -0300 | [diff] [blame] | 4026 | mdelay(2); |
| 4027 | udelay(500); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4028 | gpio_bits(mask,mask); |
| 4029 | |
| 4030 | if (bttv_gpio) |
| 4031 | bttv_gpio_tracking(btv,"msp34xx"); |
| 4032 | if (bttv_verbose) |
| 4033 | printk(KERN_INFO "bttv%d: Hauppauge/Voodoo msp34xx: reset line " |
| 4034 | "init [%d]\n", btv->c.nr, pin); |
| 4035 | } |
| 4036 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4037 | /* ----------------------------------------------------------------------- */ |
| 4038 | /* Imagenation L-Model PXC200 Framegrabber */ |
| 4039 | /* This is basically the same procedure as |
| 4040 | * used by Alessandro Rubini in his pxc200 |
| 4041 | * driver, but using BTTV functions */ |
| 4042 | |
| 4043 | static void __devinit init_PXC200(struct bttv *btv) |
| 4044 | { |
| 4045 | static int vals[] __devinitdata = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, |
| 4046 | 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, |
| 4047 | 0x00 }; |
| 4048 | unsigned int i; |
| 4049 | int tmp; |
| 4050 | u32 val; |
| 4051 | |
| 4052 | /* Initialise GPIO-connevted stuff */ |
| 4053 | gpio_inout(0xffffff, (1<<13)); |
| 4054 | gpio_write(0); |
| 4055 | udelay(3); |
| 4056 | gpio_write(1<<13); |
| 4057 | /* GPIO inputs are pulled up, so no need to drive |
| 4058 | * reset pin any longer */ |
| 4059 | gpio_bits(0xffffff, 0); |
| 4060 | if (bttv_gpio) |
| 4061 | bttv_gpio_tracking(btv,"pxc200"); |
| 4062 | |
| 4063 | /* we could/should try and reset/control the AD pots? but |
| 4064 | right now we simply turned off the crushing. Without |
| 4065 | this the AGC drifts drifts |
| 4066 | remember the EN is reverse logic --> |
| 4067 | setting BT848_ADC_AGC_EN disable the AGC |
| 4068 | tboult@eecs.lehigh.edu |
| 4069 | */ |
| 4070 | |
| 4071 | btwrite(BT848_ADC_RESERVED|BT848_ADC_AGC_EN, BT848_ADC); |
| 4072 | |
| 4073 | /* Initialise MAX517 DAC */ |
| 4074 | printk(KERN_INFO "Setting DAC reference voltage level ...\n"); |
| 4075 | bttv_I2CWrite(btv,0x5E,0,0x80,1); |
| 4076 | |
| 4077 | /* Initialise 12C508 PIC */ |
| 4078 | /* The I2CWrite and I2CRead commmands are actually to the |
| 4079 | * same chips - but the R/W bit is included in the address |
| 4080 | * argument so the numbers are different */ |
| 4081 | |
| 4082 | |
| 4083 | printk(KERN_INFO "Initialising 12C508 PIC chip ...\n"); |
| 4084 | |
| 4085 | /* First of all, enable the clock line. This is used in the PXC200-F */ |
| 4086 | val = btread(BT848_GPIO_DMA_CTL); |
| 4087 | val |= BT848_GPIO_DMA_CTL_GPCLKMODE; |
| 4088 | btwrite(val, BT848_GPIO_DMA_CTL); |
| 4089 | |
| 4090 | /* Then, push to 0 the reset pin long enough to reset the * |
| 4091 | * device same as above for the reset line, but not the same |
| 4092 | * value sent to the GPIO-connected stuff |
| 4093 | * which one is the good one? */ |
| 4094 | gpio_inout(0xffffff,(1<<2)); |
| 4095 | gpio_write(0); |
| 4096 | udelay(10); |
| 4097 | gpio_write(1<<2); |
| 4098 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4099 | for (i = 0; i < ARRAY_SIZE(vals); i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4100 | tmp=bttv_I2CWrite(btv,0x1E,0,vals[i],1); |
| 4101 | if (tmp != -1) { |
| 4102 | printk(KERN_INFO |
| 4103 | "I2C Write(%2.2x) = %i\nI2C Read () = %2.2x\n\n", |
| 4104 | vals[i],tmp,bttv_I2CRead(btv,0x1F,NULL)); |
| 4105 | } |
| 4106 | } |
| 4107 | |
| 4108 | printk(KERN_INFO "PXC200 Initialised.\n"); |
| 4109 | } |
| 4110 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4111 | |
| 4112 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4113 | /* ----------------------------------------------------------------------- */ |
| 4114 | /* |
| 4115 | * The Adlink RTV-24 (aka Angelo) has some special initialisation to unlock |
| 4116 | * it. This apparently involves the following procedure for each 878 chip: |
| 4117 | * |
| 4118 | * 1) write 0x00C3FEFF to the GPIO_OUT_EN register |
| 4119 | * |
| 4120 | * 2) write to GPIO_DATA |
| 4121 | * - 0x0E |
| 4122 | * - sleep 1ms |
| 4123 | * - 0x10 + 0x0E |
| 4124 | * - sleep 10ms |
| 4125 | * - 0x0E |
| 4126 | * read from GPIO_DATA into buf (uint_32) |
| 4127 | * - if ( data>>18 & 0x01 != 0) || ( buf>>19 & 0x01 != 1 ) |
| 4128 | * error. ERROR_CPLD_Check_Failed stop. |
| 4129 | * |
| 4130 | * 3) write to GPIO_DATA |
| 4131 | * - write 0x4400 + 0x0E |
| 4132 | * - sleep 10ms |
| 4133 | * - write 0x4410 + 0x0E |
| 4134 | * - sleep 1ms |
| 4135 | * - write 0x0E |
| 4136 | * read from GPIO_DATA into buf (uint_32) |
Jean Delvare | fef4fa1 | 2006-11-09 17:25:28 -0300 | [diff] [blame] | 4137 | * - if ( buf>>18 & 0x01 ) || ( buf>>19 & 0x01 != 0 ) |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4138 | * error. ERROR_CPLD_Check_Failed. |
| 4139 | */ |
| 4140 | /* ----------------------------------------------------------------------- */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 4141 | static void |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4142 | init_RTV24 (struct bttv *btv) |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4143 | { |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4144 | uint32_t dataRead = 0; |
| 4145 | long watchdog_value = 0x0E; |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4146 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4147 | printk (KERN_INFO |
| 4148 | "bttv%d: Adlink RTV-24 initialisation in progress ...\n", |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4149 | btv->c.nr); |
| 4150 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4151 | btwrite (0x00c3feff, BT848_GPIO_OUT_EN); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4152 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4153 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
| 4154 | msleep (1); |
| 4155 | btwrite (0x10 + watchdog_value, BT848_GPIO_DATA); |
| 4156 | msleep (10); |
| 4157 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4158 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4159 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4160 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4161 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 1)) { |
| 4162 | printk (KERN_INFO |
| 4163 | "bttv%d: Adlink RTV-24 initialisation(1) ERROR_CPLD_Check_Failed (read %d)\n", |
| 4164 | btv->c.nr, dataRead); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4165 | } |
| 4166 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4167 | btwrite (0x4400 + watchdog_value, BT848_GPIO_DATA); |
| 4168 | msleep (10); |
| 4169 | btwrite (0x4410 + watchdog_value, BT848_GPIO_DATA); |
| 4170 | msleep (1); |
| 4171 | btwrite (watchdog_value, BT848_GPIO_DATA); |
| 4172 | msleep (1); |
| 4173 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4174 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4175 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 0)) { |
| 4176 | printk (KERN_INFO |
| 4177 | "bttv%d: Adlink RTV-24 initialisation(2) ERROR_CPLD_Check_Failed (read %d)\n", |
| 4178 | btv->c.nr, dataRead); |
| 4179 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4180 | return; |
| 4181 | } |
| 4182 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4183 | printk (KERN_INFO |
| 4184 | "bttv%d: Adlink RTV-24 initialisation complete.\n", btv->c.nr); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4185 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4186 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4187 | |
| 4188 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4189 | /* ----------------------------------------------------------------------- */ |
| 4190 | /* Miro Pro radio stuff -- the tea5757 is connected to some GPIO ports */ |
| 4191 | /* |
| 4192 | * Copyright (c) 1999 Csaba Halasz <qgehali@uni-miskolc.hu> |
| 4193 | * This code is placed under the terms of the GNU General Public License |
| 4194 | * |
| 4195 | * Brutally hacked by Dan Sheridan <dan.sheridan@contact.org.uk> djs52 8/3/00 |
| 4196 | */ |
| 4197 | |
| 4198 | static void bus_low(struct bttv *btv, int bit) |
| 4199 | { |
| 4200 | if (btv->mbox_ior) { |
| 4201 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4202 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4203 | udelay(5); |
| 4204 | } |
| 4205 | |
| 4206 | gpio_bits(bit,0); |
| 4207 | udelay(5); |
| 4208 | |
| 4209 | if (btv->mbox_ior) { |
| 4210 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4211 | udelay(5); |
| 4212 | } |
| 4213 | } |
| 4214 | |
| 4215 | static void bus_high(struct bttv *btv, int bit) |
| 4216 | { |
| 4217 | if (btv->mbox_ior) { |
| 4218 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4219 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4220 | udelay(5); |
| 4221 | } |
| 4222 | |
| 4223 | gpio_bits(bit,bit); |
| 4224 | udelay(5); |
| 4225 | |
| 4226 | if (btv->mbox_ior) { |
| 4227 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4228 | udelay(5); |
| 4229 | } |
| 4230 | } |
| 4231 | |
| 4232 | static int bus_in(struct bttv *btv, int bit) |
| 4233 | { |
| 4234 | if (btv->mbox_ior) { |
| 4235 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4236 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4237 | udelay(5); |
| 4238 | |
| 4239 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4240 | udelay(5); |
| 4241 | } |
| 4242 | return gpio_read() & (bit); |
| 4243 | } |
| 4244 | |
| 4245 | /* TEA5757 register bits */ |
| 4246 | #define TEA_FREQ 0:14 |
| 4247 | #define TEA_BUFFER 15:15 |
| 4248 | |
| 4249 | #define TEA_SIGNAL_STRENGTH 16:17 |
| 4250 | |
| 4251 | #define TEA_PORT1 18:18 |
| 4252 | #define TEA_PORT0 19:19 |
| 4253 | |
| 4254 | #define TEA_BAND 20:21 |
| 4255 | #define TEA_BAND_FM 0 |
| 4256 | #define TEA_BAND_MW 1 |
| 4257 | #define TEA_BAND_LW 2 |
| 4258 | #define TEA_BAND_SW 3 |
| 4259 | |
| 4260 | #define TEA_MONO 22:22 |
| 4261 | #define TEA_ALLOW_STEREO 0 |
| 4262 | #define TEA_FORCE_MONO 1 |
| 4263 | |
| 4264 | #define TEA_SEARCH_DIRECTION 23:23 |
| 4265 | #define TEA_SEARCH_DOWN 0 |
| 4266 | #define TEA_SEARCH_UP 1 |
| 4267 | |
| 4268 | #define TEA_STATUS 24:24 |
| 4269 | #define TEA_STATUS_TUNED 0 |
| 4270 | #define TEA_STATUS_SEARCHING 1 |
| 4271 | |
| 4272 | /* Low-level stuff */ |
| 4273 | static int tea5757_read(struct bttv *btv) |
| 4274 | { |
| 4275 | unsigned long timeout; |
| 4276 | int value = 0; |
| 4277 | int i; |
| 4278 | |
| 4279 | /* better safe than sorry */ |
| 4280 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we); |
| 4281 | |
| 4282 | if (btv->mbox_ior) { |
| 4283 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4284 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4285 | udelay(5); |
| 4286 | } |
| 4287 | |
| 4288 | if (bttv_gpio) |
| 4289 | bttv_gpio_tracking(btv,"tea5757 read"); |
| 4290 | |
| 4291 | bus_low(btv,btv->mbox_we); |
| 4292 | bus_low(btv,btv->mbox_clk); |
| 4293 | |
| 4294 | udelay(10); |
Mauro Carvalho Chehab | fe06fe0 | 2007-07-17 16:36:20 -0300 | [diff] [blame] | 4295 | timeout= jiffies + msecs_to_jiffies(1000); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4296 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4297 | /* wait for DATA line to go low; error if it doesn't */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4298 | while (bus_in(btv,btv->mbox_data) && time_before(jiffies, timeout)) |
| 4299 | schedule(); |
| 4300 | if (bus_in(btv,btv->mbox_data)) { |
| 4301 | printk(KERN_WARNING "bttv%d: tea5757: read timeout\n",btv->c.nr); |
| 4302 | return -1; |
| 4303 | } |
| 4304 | |
| 4305 | dprintk("bttv%d: tea5757:",btv->c.nr); |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4306 | for (i = 0; i < 24; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4307 | udelay(5); |
| 4308 | bus_high(btv,btv->mbox_clk); |
| 4309 | udelay(5); |
| 4310 | dprintk("%c",(bus_in(btv,btv->mbox_most) == 0)?'T':'-'); |
| 4311 | bus_low(btv,btv->mbox_clk); |
| 4312 | value <<= 1; |
| 4313 | value |= (bus_in(btv,btv->mbox_data) == 0)?0:1; /* MSB first */ |
| 4314 | dprintk("%c", (bus_in(btv,btv->mbox_most) == 0)?'S':'M'); |
| 4315 | } |
| 4316 | dprintk("\nbttv%d: tea5757: read 0x%X\n", btv->c.nr, value); |
| 4317 | return value; |
| 4318 | } |
| 4319 | |
| 4320 | static int tea5757_write(struct bttv *btv, int value) |
| 4321 | { |
| 4322 | int i; |
| 4323 | int reg = value; |
| 4324 | |
| 4325 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we | btv->mbox_data); |
| 4326 | |
| 4327 | if (btv->mbox_ior) { |
| 4328 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4329 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4330 | udelay(5); |
| 4331 | } |
| 4332 | if (bttv_gpio) |
| 4333 | bttv_gpio_tracking(btv,"tea5757 write"); |
| 4334 | |
| 4335 | dprintk("bttv%d: tea5757: write 0x%X\n", btv->c.nr, value); |
| 4336 | bus_low(btv,btv->mbox_clk); |
| 4337 | bus_high(btv,btv->mbox_we); |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4338 | for (i = 0; i < 25; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4339 | if (reg & 0x1000000) |
| 4340 | bus_high(btv,btv->mbox_data); |
| 4341 | else |
| 4342 | bus_low(btv,btv->mbox_data); |
| 4343 | reg <<= 1; |
| 4344 | bus_high(btv,btv->mbox_clk); |
| 4345 | udelay(10); |
| 4346 | bus_low(btv,btv->mbox_clk); |
| 4347 | udelay(10); |
| 4348 | } |
| 4349 | bus_low(btv,btv->mbox_we); /* unmute !!! */ |
| 4350 | return 0; |
| 4351 | } |
| 4352 | |
| 4353 | void tea5757_set_freq(struct bttv *btv, unsigned short freq) |
| 4354 | { |
| 4355 | dprintk("tea5757_set_freq %d\n",freq); |
| 4356 | tea5757_write(btv, 5 * freq + 0x358); /* add 10.7MHz (see docs) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4357 | } |
| 4358 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4359 | /* RemoteVision MX (rv605) muxsel helper [Miguel Freitas] |
| 4360 | * |
| 4361 | * This is needed because rv605 don't use a normal multiplex, but a crosspoint |
| 4362 | * switch instead (CD22M3494E). This IC can have multiple active connections |
| 4363 | * between Xn (input) and Yn (output) pins. We need to clear any existing |
| 4364 | * connection prior to establish a new one, pulsing the STROBE pin. |
| 4365 | * |
| 4366 | * The board hardwire Y0 (xpoint) to MUX1 and MUXOUT to Yin. |
| 4367 | * GPIO pins are wired as: |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4368 | * GPIO[0:3] - AX[0:3] (xpoint) - P1[0:3] (microcontroller) |
| 4369 | * GPIO[4:6] - AY[0:2] (xpoint) - P1[4:6] (microcontroller) |
| 4370 | * GPIO[7] - DATA (xpoint) - P1[7] (microcontroller) |
| 4371 | * GPIO[8] - - P3[5] (microcontroller) |
| 4372 | * GPIO[9] - RESET (xpoint) - P3[6] (microcontroller) |
| 4373 | * GPIO[10] - STROBE (xpoint) - P3[7] (microcontroller) |
| 4374 | * GPINTR - - P3[4] (microcontroller) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4375 | * |
Robert P. J. Day | 3a4fa0a | 2007-10-19 23:10:43 +0200 | [diff] [blame] | 4376 | * The microcontroller is a 80C32 like. It should be possible to change xpoint |
| 4377 | * configuration either directly (as we are doing) or using the microcontroller |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4378 | * 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] | 4379 | * microcontroller features, one would need to disassembly the firmware. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4380 | * note: the vendor refused to give any information on this product, all |
| 4381 | * that stuff was found using a multimeter! :) |
| 4382 | */ |
| 4383 | static void rv605_muxsel(struct bttv *btv, unsigned int input) |
| 4384 | { |
Trent Piepho | 13afaef | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4385 | static const u8 muxgpio[] = { 0x3, 0x1, 0x2, 0x4, 0xf, 0x7, 0xe, 0x0, |
| 4386 | 0xd, 0xb, 0xc, 0x6, 0x9, 0x5, 0x8, 0xa }; |
| 4387 | |
| 4388 | gpio_bits(0x07f, muxgpio[input]); |
| 4389 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4390 | /* reset all conections */ |
| 4391 | gpio_bits(0x200,0x200); |
| 4392 | mdelay(1); |
| 4393 | gpio_bits(0x200,0x000); |
| 4394 | mdelay(1); |
| 4395 | |
Joe Perches | c84e603 | 2008-02-03 17:18:59 +0200 | [diff] [blame] | 4396 | /* create a new connection */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4397 | gpio_bits(0x480,0x480); |
| 4398 | mdelay(1); |
| 4399 | gpio_bits(0x480,0x080); |
| 4400 | mdelay(1); |
| 4401 | } |
| 4402 | |
| 4403 | /* Tibet Systems 'Progress DVR' CS16 muxsel helper [Chris Fanning] |
| 4404 | * |
| 4405 | * The CS16 (available on eBay cheap) is a PCI board with four Fusion |
| 4406 | * 878A chips, a PCI bridge, an Atmel microcontroller, four sync seperator |
| 4407 | * chips, ten eight input analog multiplexors, a not chip and a few |
| 4408 | * other components. |
| 4409 | * |
| 4410 | * 16 inputs on a secondary bracket are provided and can be selected |
| 4411 | * from each of the four capture chips. Two of the eight input |
| 4412 | * multiplexors are used to select from any of the 16 input signals. |
| 4413 | * |
| 4414 | * Unsupported hardware capabilities: |
| 4415 | * . A video output monitor on the secondary bracket can be selected from |
| 4416 | * one of the 878A chips. |
| 4417 | * . Another passthrough but I haven't spent any time investigating it. |
| 4418 | * . Digital I/O (logic level connected to GPIO) is available from an |
| 4419 | * onboard header. |
| 4420 | * |
| 4421 | * The on chip input mux should always be set to 2. |
| 4422 | * GPIO[16:19] - Video input selection |
| 4423 | * GPIO[0:3] - Video output monitor select (only available from one 878A) |
| 4424 | * GPIO[?:?] - Digital I/O. |
| 4425 | * |
| 4426 | * There is an ATMEL microcontroller with an 8031 core on board. I have not |
| 4427 | * determined what function (if any) it provides. With the microcontroller |
| 4428 | * and sync seperator chips a guess is that it might have to do with video |
| 4429 | * switching and maybe some digital I/O. |
| 4430 | */ |
| 4431 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input) |
| 4432 | { |
| 4433 | /* video mux */ |
| 4434 | gpio_bits(0x0f0000, input << 16); |
| 4435 | } |
| 4436 | |
| 4437 | static void tibetCS16_init(struct bttv *btv) |
| 4438 | { |
| 4439 | /* enable gpio bits, mask obtained via btSpy */ |
| 4440 | gpio_inout(0xffffff, 0x0f7fff); |
| 4441 | gpio_write(0x0f7fff); |
| 4442 | } |
| 4443 | |
| 4444 | /* |
| 4445 | * The following routines for the Kodicom-4400r get a little mind-twisting. |
| 4446 | * There is a "master" controller and three "slave" controllers, together |
| 4447 | * an analog switch which connects any of 16 cameras to any of the BT87A's. |
| 4448 | * The analog switch is controlled by the "master", but the detection order |
| 4449 | * of the four BT878A chips is in an order which I just don't understand. |
| 4450 | * 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] | 4451 | * logic on the board uses logical numbers for the 4 controllers, but |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4452 | * those numbers are different from the detection sequence. When working |
| 4453 | * with the analog switch, we need to "map" from the detection sequence |
| 4454 | * over to the board's logical controller number. This mapping sequence |
| 4455 | * is {3, 0, 2, 1}, i.e. the first controller to be detected is logical |
| 4456 | * unit 3, the second (which is the master) is logical unit 0, etc. |
| 4457 | * We need to maintain the status of the analog switch (which of the 16 |
| 4458 | * cameras is connected to which of the 4 controllers). Rather than |
| 4459 | * add to the bttv structure for this, we use the data reserved for |
| 4460 | * the mbox (unused for this card type). |
| 4461 | */ |
| 4462 | |
| 4463 | /* |
| 4464 | * First a routine to set the analog switch, which controls which camera |
| 4465 | * is routed to which controller. The switch comprises an X-address |
| 4466 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a |
| 4467 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). |
| 4468 | * A data value (gpio bit 7) of '1' enables the switch, and '0' disables |
| 4469 | * the switch. A STROBE bit (gpio bit 8) latches the data value into the |
| 4470 | * specified address. The idea is to set the address and data, then bring |
| 4471 | * STROBE high, and finally bring STROBE back to low. |
| 4472 | */ |
| 4473 | static void kodicom4400r_write(struct bttv *btv, |
| 4474 | unsigned char xaddr, |
| 4475 | unsigned char yaddr, |
| 4476 | unsigned char data) { |
| 4477 | unsigned int udata; |
| 4478 | |
| 4479 | udata = (data << 7) | ((yaddr&3) << 4) | (xaddr&0xf); |
| 4480 | gpio_bits(0x1ff, udata); /* write ADDR and DAT */ |
| 4481 | gpio_bits(0x1ff, udata | (1 << 8)); /* strobe high */ |
| 4482 | gpio_bits(0x1ff, udata); /* strobe low */ |
| 4483 | } |
| 4484 | |
| 4485 | /* |
| 4486 | * Next the mux select. Both the "master" and "slave" 'cards' (controllers) |
| 4487 | * use this routine. The routine finds the "master" for the card, maps |
| 4488 | * the controller number from the detected position over to the logical |
| 4489 | * number, writes the appropriate data to the analog switch, and housekeeps |
| 4490 | * the local copy of the switch information. The parameter 'input' is the |
| 4491 | * requested camera number (0 - 15). |
| 4492 | */ |
| 4493 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input) |
| 4494 | { |
| 4495 | char *sw_status; |
| 4496 | int xaddr, yaddr; |
| 4497 | struct bttv *mctlr; |
| 4498 | static unsigned char map[4] = {3, 0, 2, 1}; |
| 4499 | |
| 4500 | mctlr = master[btv->c.nr]; |
| 4501 | if (mctlr == NULL) { /* ignore if master not yet detected */ |
| 4502 | return; |
| 4503 | } |
| 4504 | yaddr = (btv->c.nr - mctlr->c.nr + 1) & 3; /* the '&' is for safety */ |
| 4505 | yaddr = map[yaddr]; |
| 4506 | sw_status = (char *)(&mctlr->mbox_we); |
| 4507 | xaddr = input & 0xf; |
| 4508 | /* Check if the controller/camera pair has changed, else ignore */ |
| 4509 | if (sw_status[yaddr] != xaddr) |
| 4510 | { |
| 4511 | /* "open" the old switch, "close" the new one, save the new */ |
| 4512 | kodicom4400r_write(mctlr, sw_status[yaddr], yaddr, 0); |
| 4513 | sw_status[yaddr] = xaddr; |
| 4514 | kodicom4400r_write(mctlr, xaddr, yaddr, 1); |
| 4515 | } |
| 4516 | } |
| 4517 | |
| 4518 | /* |
| 4519 | * During initialisation, we need to reset the analog switch. We |
| 4520 | * also preset the switch to map the 4 connectors on the card to the |
| 4521 | * *user's* (see above description of kodicom4400r_muxsel) channels |
| 4522 | * 0 through 3 |
| 4523 | */ |
| 4524 | static void kodicom4400r_init(struct bttv *btv) |
| 4525 | { |
| 4526 | char *sw_status = (char *)(&btv->mbox_we); |
| 4527 | int ix; |
| 4528 | |
| 4529 | gpio_inout(0x0003ff, 0x0003ff); |
| 4530 | gpio_write(1 << 9); /* reset MUX */ |
| 4531 | gpio_write(0); |
| 4532 | /* Preset camera 0 to the 4 controllers */ |
Mauro Carvalho Chehab | c1d5703 | 2007-03-28 22:37:23 -0300 | [diff] [blame] | 4533 | for (ix = 0; ix < 4; ix++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4534 | sw_status[ix] = ix; |
| 4535 | kodicom4400r_write(btv, ix, ix, 1); |
| 4536 | } |
| 4537 | /* |
| 4538 | * Since this is the "master", we need to set up the |
| 4539 | * other three controller chips' pointers to this structure |
| 4540 | * for later use in the muxsel routine. |
| 4541 | */ |
| 4542 | if ((btv->c.nr<1) || (btv->c.nr>BTTV_MAX-3)) |
| 4543 | return; |
| 4544 | master[btv->c.nr-1] = btv; |
| 4545 | master[btv->c.nr] = btv; |
| 4546 | master[btv->c.nr+1] = btv; |
| 4547 | master[btv->c.nr+2] = btv; |
| 4548 | } |
| 4549 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4550 | /* The Grandtec X-Guard framegrabber card uses two Dual 4-channel |
| 4551 | * video multiplexers to provide up to 16 video inputs. These |
| 4552 | * multiplexers are controlled by the lower 8 GPIO pins of the |
| 4553 | * bt878. The multiplexers probably Pericom PI5V331Q or similar. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4554 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4555 | * xxx0 is pin xxx of multiplexer U5, |
| 4556 | * yyy1 is pin yyy of multiplexer U2 |
| 4557 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4558 | #define ENA0 0x01 |
| 4559 | #define ENB0 0x02 |
| 4560 | #define ENA1 0x04 |
| 4561 | #define ENB1 0x08 |
| 4562 | |
| 4563 | #define IN10 0x10 |
| 4564 | #define IN00 0x20 |
| 4565 | #define IN11 0x40 |
| 4566 | #define IN01 0x80 |
| 4567 | |
| 4568 | static void xguard_muxsel(struct bttv *btv, unsigned int input) |
| 4569 | { |
| 4570 | static const int masks[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4571 | ENB0, ENB0|IN00, ENB0|IN10, ENB0|IN00|IN10, |
| 4572 | ENA0, ENA0|IN00, ENA0|IN10, ENA0|IN00|IN10, |
| 4573 | ENB1, ENB1|IN01, ENB1|IN11, ENB1|IN01|IN11, |
| 4574 | ENA1, ENA1|IN01, ENA1|IN11, ENA1|IN01|IN11, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4575 | }; |
| 4576 | gpio_write(masks[input%16]); |
| 4577 | } |
| 4578 | static void picolo_tetra_init(struct bttv *btv) |
| 4579 | { |
| 4580 | /*This is the video input redirection fonctionality : I DID NOT USED IT. */ |
| 4581 | btwrite (0x08<<16,BT848_GPIO_DATA);/*GPIO[19] [==> 4053 B+C] set to 1 */ |
| 4582 | btwrite (0x04<<16,BT848_GPIO_DATA);/*GPIO[18] [==> 4053 A] set to 1*/ |
| 4583 | } |
| 4584 | static void picolo_tetra_muxsel (struct bttv* btv, unsigned int input) |
| 4585 | { |
| 4586 | |
| 4587 | dprintk (KERN_DEBUG "bttv%d : picolo_tetra_muxsel => input = %d\n",btv->c.nr,input); |
| 4588 | /*Just set the right path in the analog multiplexers : channel 1 -> 4 ==> Analog Mux ==> MUX0*/ |
| 4589 | /*GPIO[20]&GPIO[21] used to choose the right input*/ |
| 4590 | btwrite (input<<20,BT848_GPIO_DATA); |
| 4591 | |
| 4592 | } |
| 4593 | |
| 4594 | /* |
| 4595 | * ivc120_muxsel [Added by Alan Garfield <alan@fromorbit.com>] |
| 4596 | * |
| 4597 | * The IVC120G security card has 4 i2c controlled TDA8540 matrix |
| 4598 | * swichers to provide 16 channels to MUX0. The TDA8540's have |
Andreas Mohr | d6e05ed | 2006-06-26 18:35:02 +0200 | [diff] [blame] | 4599 | * 4 independent outputs and as such the IVC120G also has the |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4600 | * optional "Monitor Out" bus. This allows the card to be looking |
| 4601 | * at one input while the monitor is looking at another. |
| 4602 | * |
| 4603 | * Since I've couldn't be bothered figuring out how to add an |
| 4604 | * independant muxsel for the monitor bus, I've just set it to |
| 4605 | * whatever the card is looking at. |
| 4606 | * |
| 4607 | * OUT0 of the TDA8540's is connected to MUX0 (0x03) |
| 4608 | * OUT1 of the TDA8540's is connected to "Monitor Out" (0x0C) |
| 4609 | * |
| 4610 | * TDA8540_ALT3 IN0-3 = Channel 13 - 16 (0x03) |
| 4611 | * TDA8540_ALT4 IN0-3 = Channel 1 - 4 (0x03) |
| 4612 | * TDA8540_ALT5 IN0-3 = Channel 5 - 8 (0x03) |
| 4613 | * TDA8540_ALT6 IN0-3 = Channel 9 - 12 (0x03) |
| 4614 | * |
| 4615 | */ |
| 4616 | |
| 4617 | /* All 7 possible sub-ids for the TDA8540 Matrix Switcher */ |
| 4618 | #define I2C_TDA8540 0x90 |
| 4619 | #define I2C_TDA8540_ALT1 0x92 |
| 4620 | #define I2C_TDA8540_ALT2 0x94 |
| 4621 | #define I2C_TDA8540_ALT3 0x96 |
| 4622 | #define I2C_TDA8540_ALT4 0x98 |
| 4623 | #define I2C_TDA8540_ALT5 0x9a |
| 4624 | #define I2C_TDA8540_ALT6 0x9c |
| 4625 | |
| 4626 | static void ivc120_muxsel(struct bttv *btv, unsigned int input) |
| 4627 | { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4628 | /* Simple maths */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4629 | int key = input % 4; |
| 4630 | int matrix = input / 4; |
| 4631 | |
| 4632 | dprintk("bttv%d: ivc120_muxsel: Input - %02d | TDA - %02d | In - %02d\n", |
| 4633 | btv->c.nr, input, matrix, key); |
| 4634 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4635 | /* Handles the input selection on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4636 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x00, |
| 4637 | ((matrix == 3) ? (key | key << 2) : 0x00), 1); |
| 4638 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x00, |
| 4639 | ((matrix == 0) ? (key | key << 2) : 0x00), 1); |
| 4640 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x00, |
| 4641 | ((matrix == 1) ? (key | key << 2) : 0x00), 1); |
| 4642 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x00, |
| 4643 | ((matrix == 2) ? (key | key << 2) : 0x00), 1); |
| 4644 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4645 | /* Handles the output enables on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4646 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4647 | ((matrix == 3) ? 0x03 : 0x00), 1); /* 13 - 16 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4648 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4649 | ((matrix == 0) ? 0x03 : 0x00), 1); /* 1-4 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4650 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4651 | ((matrix == 1) ? 0x03 : 0x00), 1); /* 5-8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4652 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4653 | ((matrix == 2) ? 0x03 : 0x00), 1); /* 9-12 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4654 | |
Trent Piepho | fb5deb1 | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4655 | /* 878's MUX0 is already selected for input via muxsel values */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4656 | } |
| 4657 | |
| 4658 | |
| 4659 | /* PXC200 muxsel helper |
| 4660 | * luke@syseng.anu.edu.au |
| 4661 | * another transplant |
| 4662 | * from Alessandro Rubini (rubini@linux.it) |
| 4663 | * |
| 4664 | * There are 4 kinds of cards: |
| 4665 | * PXC200L which is bt848 |
| 4666 | * PXC200F which is bt848 with PIC controlling mux |
| 4667 | * PXC200AL which is bt878 |
| 4668 | * PXC200AF which is bt878 with PIC controlling mux |
| 4669 | */ |
| 4670 | #define PX_CFG_PXC200F 0x01 |
| 4671 | #define PX_FLAG_PXC200A 0x00001000 /* a pxc200A is bt-878 based */ |
| 4672 | #define PX_I2C_PIC 0x0f |
| 4673 | #define PX_PXC200A_CARDID 0x200a1295 |
| 4674 | #define PX_I2C_CMD_CFG 0x00 |
| 4675 | |
| 4676 | static void PXC200_muxsel(struct bttv *btv, unsigned int input) |
| 4677 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4678 | int rc; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4679 | long mux; |
| 4680 | int bitmask; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4681 | unsigned char buf[2]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4682 | |
| 4683 | /* Read PIC config to determine if this is a PXC200F */ |
| 4684 | /* PX_I2C_CMD_CFG*/ |
| 4685 | buf[0]=0; |
| 4686 | buf[1]=0; |
| 4687 | rc=bttv_I2CWrite(btv,(PX_I2C_PIC<<1),buf[0],buf[1],1); |
| 4688 | if (rc) { |
| 4689 | printk(KERN_DEBUG "bttv%d: PXC200_muxsel: pic cfg write failed:%d\n", btv->c.nr,rc); |
| 4690 | /* not PXC ? do nothing */ |
| 4691 | return; |
| 4692 | } |
| 4693 | |
| 4694 | rc=bttv_I2CRead(btv,(PX_I2C_PIC<<1),NULL); |
| 4695 | if (!(rc & PX_CFG_PXC200F)) { |
| 4696 | printk(KERN_DEBUG "bttv%d: PXC200_muxsel: not PXC200F rc:%d \n", btv->c.nr,rc); |
| 4697 | return; |
| 4698 | } |
| 4699 | |
| 4700 | |
| 4701 | /* The multiplexer in the 200F is handled by the GPIO port */ |
| 4702 | /* get correct mapping between inputs */ |
| 4703 | /* mux = bttv_tvcards[btv->type].muxsel[input] & 3; */ |
| 4704 | /* ** not needed!? */ |
| 4705 | mux = input; |
| 4706 | |
| 4707 | /* make sure output pins are enabled */ |
| 4708 | /* bitmask=0x30f; */ |
| 4709 | bitmask=0x302; |
| 4710 | /* check whether we have a PXC200A */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4711 | if (btv->cardid == PX_PXC200A_CARDID) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4712 | bitmask ^= 0x180; /* use 7 and 9, not 8 and 9 */ |
| 4713 | bitmask |= 7<<4; /* the DAC */ |
| 4714 | } |
| 4715 | btwrite(bitmask, BT848_GPIO_OUT_EN); |
| 4716 | |
| 4717 | bitmask = btread(BT848_GPIO_DATA); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4718 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4719 | bitmask = (bitmask & ~0x280) | ((mux & 2) << 8) | ((mux & 1) << 7); |
| 4720 | else /* older device */ |
| 4721 | bitmask = (bitmask & ~0x300) | ((mux & 3) << 8); |
| 4722 | btwrite(bitmask,BT848_GPIO_DATA); |
| 4723 | |
| 4724 | /* |
| 4725 | * Was "to be safe, set the bt848 to input 0" |
| 4726 | * Actually, since it's ok at load time, better not messing |
| 4727 | * with these bits (on PXC200AF you need to set mux 2 here) |
| 4728 | * |
| 4729 | * needed because bttv-driver sets mux before calling this function |
| 4730 | */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4731 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4732 | btaor(2<<5, ~BT848_IFORM_MUXSEL, BT848_IFORM); |
| 4733 | else /* older device */ |
| 4734 | btand(~BT848_IFORM_MUXSEL,BT848_IFORM); |
| 4735 | |
| 4736 | printk(KERN_DEBUG "bttv%d: setting input channel to:%d\n", btv->c.nr,(int)mux); |
| 4737 | } |
| 4738 | |
Trent Piepho | 15f8eeb | 2009-01-28 21:32:59 -0300 | [diff] [blame] | 4739 | static void phytec_muxsel(struct bttv *btv, unsigned int input) |
| 4740 | { |
| 4741 | unsigned int mux = input % 4; |
| 4742 | |
| 4743 | if (input == btv->svhs) |
| 4744 | mux = 0; |
| 4745 | |
| 4746 | gpio_bits(0x3, mux); |
| 4747 | } |
| 4748 | |
Bruno Christo | 0c5db42 | 2009-03-02 22:38:59 -0300 | [diff] [blame] | 4749 | /* |
| 4750 | * GeoVision GV-800(S) functions |
| 4751 | * Bruno Christo <bchristo@inf.ufsm.br> |
| 4752 | */ |
| 4753 | |
| 4754 | /* This is a function to control the analog switch, which determines which |
| 4755 | * camera is routed to which controller. The switch comprises an X-address |
| 4756 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a |
| 4757 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). |
| 4758 | * A data value (gpio bit 18) of '1' enables the switch, and '0' disables |
| 4759 | * the switch. A STROBE bit (gpio bit 17) latches the data value into the |
| 4760 | * specified address. There is also a chip select (gpio bit 16). |
| 4761 | * The idea is to set the address and chip select together, bring |
| 4762 | * STROBE high, write the data, and finally bring STROBE back to low. |
| 4763 | */ |
| 4764 | static void gv800s_write(struct bttv *btv, |
| 4765 | unsigned char xaddr, |
| 4766 | unsigned char yaddr, |
| 4767 | unsigned char data) { |
| 4768 | /* On the "master" 878A: |
| 4769 | * GPIO bits 0-9 are used for the analog switch: |
| 4770 | * 00 - 03: camera selector |
| 4771 | * 04 - 06: 878A (controller) selector |
| 4772 | * 16: cselect |
| 4773 | * 17: strobe |
| 4774 | * 18: data (1->on, 0->off) |
| 4775 | * 19: reset |
| 4776 | */ |
| 4777 | const u32 ADDRESS = ((xaddr&0xf) | (yaddr&3)<<4); |
| 4778 | const u32 CSELECT = 1<<16; |
| 4779 | const u32 STROBE = 1<<17; |
| 4780 | const u32 DATA = data<<18; |
| 4781 | |
| 4782 | gpio_bits(0x1007f, ADDRESS | CSELECT); /* write ADDRESS and CSELECT */ |
| 4783 | gpio_bits(0x20000, STROBE); /* STROBE high */ |
| 4784 | gpio_bits(0x40000, DATA); /* write DATA */ |
| 4785 | gpio_bits(0x20000, ~STROBE); /* STROBE low */ |
| 4786 | } |
| 4787 | |
| 4788 | /* |
| 4789 | * GeoVision GV-800(S) muxsel |
| 4790 | * |
| 4791 | * Each of the 4 cards (controllers) use this function. |
| 4792 | * The controller using this function selects the input through the GPIO pins |
| 4793 | * of the "master" card. A pointer to this card is stored in master[btv->c.nr]. |
| 4794 | * |
| 4795 | * The parameter 'input' is the requested camera number (0-4) on the controller. |
| 4796 | * The map array has the address of each input. Note that the addresses in the |
| 4797 | * array are in the sequence the original GeoVision driver uses, that is, set |
| 4798 | * every controller to input 0, then to input 1, 2, 3, repeat. This means that |
| 4799 | * the physical "camera 1" connector corresponds to controller 0 input 0, |
| 4800 | * "camera 2" corresponds to controller 1 input 0, and so on. |
| 4801 | * |
| 4802 | * After getting the input address, the function then writes the appropriate |
| 4803 | * data to the analog switch, and housekeeps the local copy of the switch |
| 4804 | * information. |
| 4805 | */ |
| 4806 | static void gv800s_muxsel(struct bttv *btv, unsigned int input) |
| 4807 | { |
| 4808 | struct bttv *mctlr; |
| 4809 | char *sw_status; |
| 4810 | int xaddr, yaddr; |
| 4811 | static unsigned int map[4][4] = { { 0x0, 0x4, 0xa, 0x6 }, |
| 4812 | { 0x1, 0x5, 0xb, 0x7 }, |
| 4813 | { 0x2, 0x8, 0xc, 0xe }, |
| 4814 | { 0x3, 0x9, 0xd, 0xf } }; |
| 4815 | input = input%4; |
| 4816 | mctlr = master[btv->c.nr]; |
| 4817 | if (mctlr == NULL) { |
| 4818 | /* do nothing until the "master" is detected */ |
| 4819 | return; |
| 4820 | } |
| 4821 | yaddr = (btv->c.nr - mctlr->c.nr) & 3; |
| 4822 | sw_status = (char *)(&mctlr->mbox_we); |
| 4823 | xaddr = map[yaddr][input] & 0xf; |
| 4824 | |
| 4825 | /* Check if the controller/camera pair has changed, ignore otherwise */ |
| 4826 | if (sw_status[yaddr] != xaddr) { |
| 4827 | /* disable the old switch, enable the new one and save status */ |
| 4828 | gv800s_write(mctlr, sw_status[yaddr], yaddr, 0); |
| 4829 | sw_status[yaddr] = xaddr; |
| 4830 | gv800s_write(mctlr, xaddr, yaddr, 1); |
| 4831 | } |
| 4832 | } |
| 4833 | |
| 4834 | /* GeoVision GV-800(S) "master" chip init */ |
| 4835 | static void gv800s_init(struct bttv *btv) |
| 4836 | { |
| 4837 | char *sw_status = (char *)(&btv->mbox_we); |
| 4838 | int ix; |
| 4839 | |
| 4840 | gpio_inout(0xf107f, 0xf107f); |
| 4841 | gpio_write(1<<19); /* reset the analog MUX */ |
| 4842 | gpio_write(0); |
| 4843 | |
| 4844 | /* Preset camera 0 to the 4 controllers */ |
| 4845 | for (ix = 0; ix < 4; ix++) { |
| 4846 | sw_status[ix] = ix; |
| 4847 | gv800s_write(btv, ix, ix, 1); |
| 4848 | } |
| 4849 | |
| 4850 | /* Inputs on the "master" controller need this brightness fix */ |
| 4851 | bttv_I2CWrite(btv, 0x18, 0x5, 0x90, 1); |
| 4852 | |
| 4853 | if (btv->c.nr > BTTV_MAX-4) |
| 4854 | return; |
| 4855 | /* |
| 4856 | * Store the "master" controller pointer in the master |
| 4857 | * array for later use in the muxsel function. |
| 4858 | */ |
| 4859 | master[btv->c.nr] = btv; |
| 4860 | master[btv->c.nr+1] = btv; |
| 4861 | master[btv->c.nr+2] = btv; |
| 4862 | master[btv->c.nr+3] = btv; |
| 4863 | } |
| 4864 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4865 | /* ----------------------------------------------------------------------- */ |
| 4866 | /* motherboard chipset specific stuff */ |
| 4867 | |
Adrian Bunk | 7d44e89 | 2007-12-11 19:23:43 -0300 | [diff] [blame] | 4868 | void __init bttv_check_chipset(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4869 | { |
| 4870 | int pcipci_fail = 0; |
| 4871 | struct pci_dev *dev = NULL; |
| 4872 | |
Alan Cox | 3d265c9 | 2006-09-14 11:53:16 -0300 | [diff] [blame] | 4873 | 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] | 4874 | pcipci_fail = 1; |
| 4875 | if (pci_pci_problems & (PCIPCI_TRITON|PCIPCI_NATOMA|PCIPCI_VIAETBF)) |
| 4876 | triton1 = 1; |
| 4877 | if (pci_pci_problems & PCIPCI_VSFX) |
| 4878 | vsfx = 1; |
| 4879 | #ifdef PCIPCI_ALIMAGIK |
| 4880 | if (pci_pci_problems & PCIPCI_ALIMAGIK) |
| 4881 | latency = 0x0A; |
| 4882 | #endif |
| 4883 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4884 | |
| 4885 | /* print warnings about any quirks found */ |
| 4886 | if (triton1) |
| 4887 | printk(KERN_INFO "bttv: Host bridge needs ETBF enabled.\n"); |
| 4888 | if (vsfx) |
| 4889 | printk(KERN_INFO "bttv: Host bridge needs VSFX enabled.\n"); |
| 4890 | if (pcipci_fail) { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 4891 | printk(KERN_INFO "bttv: bttv and your chipset may not work " |
| 4892 | "together.\n"); |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 4893 | if (!no_overlay) { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 4894 | printk(KERN_INFO "bttv: overlay will be disabled.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4895 | no_overlay = 1; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 4896 | } else { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 4897 | printk(KERN_INFO "bttv: overlay forced. Use this " |
| 4898 | "option at your own risk.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4899 | } |
| 4900 | } |
| 4901 | if (UNSET != latency) |
| 4902 | printk(KERN_INFO "bttv: pci latency fixup [%d]\n",latency); |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 4903 | while ((dev = pci_get_device(PCI_VENDOR_ID_INTEL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4904 | PCI_DEVICE_ID_INTEL_82441, dev))) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4905 | unsigned char b; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4906 | pci_read_config_byte(dev, 0x53, &b); |
| 4907 | if (bttv_debug) |
| 4908 | printk(KERN_INFO "bttv: Host bridge: 82441FX Natoma, " |
| 4909 | "bufcon=0x%02x\n",b); |
| 4910 | } |
| 4911 | } |
| 4912 | |
| 4913 | int __devinit bttv_handle_chipset(struct bttv *btv) |
| 4914 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4915 | unsigned char command; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4916 | |
| 4917 | if (!triton1 && !vsfx && UNSET == latency) |
| 4918 | return 0; |
| 4919 | |
| 4920 | if (bttv_verbose) { |
| 4921 | if (triton1) |
| 4922 | printk(KERN_INFO "bttv%d: enabling ETBF (430FX/VP3 compatibilty)\n",btv->c.nr); |
| 4923 | if (vsfx && btv->id >= 878) |
| 4924 | printk(KERN_INFO "bttv%d: enabling VSFX\n",btv->c.nr); |
| 4925 | if (UNSET != latency) |
| 4926 | printk(KERN_INFO "bttv%d: setting pci timer to %d\n", |
| 4927 | btv->c.nr,latency); |
| 4928 | } |
| 4929 | |
| 4930 | if (btv->id < 878) { |
| 4931 | /* bt848 (mis)uses a bit in the irq mask for etbf */ |
| 4932 | if (triton1) |
| 4933 | btv->triton1 = BT848_INT_ETBF; |
| 4934 | } else { |
| 4935 | /* bt878 has a bit in the pci config space for it */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4936 | pci_read_config_byte(btv->c.pci, BT878_DEVCTRL, &command); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4937 | if (triton1) |
| 4938 | command |= BT878_EN_TBFX; |
| 4939 | if (vsfx) |
| 4940 | command |= BT878_EN_VSFX; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4941 | pci_write_config_byte(btv->c.pci, BT878_DEVCTRL, command); |
| 4942 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4943 | if (UNSET != latency) |
| 4944 | pci_write_config_byte(btv->c.pci, PCI_LATENCY_TIMER, latency); |
| 4945 | return 0; |
| 4946 | } |
| 4947 | |
| 4948 | |
| 4949 | /* |
| 4950 | * Local variables: |
| 4951 | * c-basic-offset: 8 |
| 4952 | * End: |
| 4953 | */ |