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 | |
| 28 | #include <linux/config.h> |
| 29 | #include <linux/delay.h> |
| 30 | #include <linux/module.h> |
| 31 | #include <linux/moduleparam.h> |
| 32 | #include <linux/kmod.h> |
| 33 | #include <linux/init.h> |
| 34 | #include <linux/pci.h> |
| 35 | #include <linux/vmalloc.h> |
| 36 | #include <linux/firmware.h> |
| 37 | |
| 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> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | |
| 44 | /* fwd decl */ |
| 45 | static void boot_msp34xx(struct bttv *btv, int pin); |
| 46 | static void boot_bt832(struct bttv *btv); |
| 47 | static void hauppauge_eeprom(struct bttv *btv); |
| 48 | static void avermedia_eeprom(struct bttv *btv); |
| 49 | static void osprey_eeprom(struct bttv *btv); |
| 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 | |
| 54 | static void winview_audio(struct bttv *btv, struct video_audio *v, int set); |
| 55 | static void lt9415_audio(struct bttv *btv, struct video_audio *v, int set); |
| 56 | static void avermedia_tvphone_audio(struct bttv *btv, struct video_audio *v, |
| 57 | int set); |
| 58 | static void avermedia_tv_stereo_audio(struct bttv *btv, struct video_audio *v, |
| 59 | int set); |
| 60 | static void terratv_audio(struct bttv *btv, struct video_audio *v, int set); |
| 61 | static void gvbctv3pci_audio(struct bttv *btv, struct video_audio *v, int set); |
| 62 | static void gvbctv5pci_audio(struct bttv *btv, struct video_audio *v, int set); |
| 63 | static void winfast2000_audio(struct bttv *btv, struct video_audio *v, int set); |
| 64 | static void pvbt878p9b_audio(struct bttv *btv, struct video_audio *v, int set); |
| 65 | static void fv2000s_audio(struct bttv *btv, struct video_audio *v, int set); |
| 66 | static void windvr_audio(struct bttv *btv, struct video_audio *v, int set); |
| 67 | static void adtvk503_audio(struct bttv *btv, struct video_audio *v, int set); |
| 68 | static void rv605_muxsel(struct bttv *btv, unsigned int input); |
| 69 | static void eagle_muxsel(struct bttv *btv, unsigned int input); |
| 70 | static void xguard_muxsel(struct bttv *btv, unsigned int input); |
| 71 | static void ivc120_muxsel(struct bttv *btv, unsigned int input); |
| 72 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input); |
| 73 | |
| 74 | static void PXC200_muxsel(struct bttv *btv, unsigned int input); |
| 75 | |
| 76 | static void picolo_tetra_muxsel(struct bttv *btv, unsigned int input); |
| 77 | static void picolo_tetra_init(struct bttv *btv); |
| 78 | |
| 79 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input); |
| 80 | static void tibetCS16_init(struct bttv *btv); |
| 81 | |
| 82 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input); |
| 83 | static void kodicom4400r_init(struct bttv *btv); |
| 84 | |
| 85 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input); |
| 86 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input); |
| 87 | |
| 88 | static int terratec_active_radio_upgrade(struct bttv *btv); |
| 89 | static int tea5757_read(struct bttv *btv); |
| 90 | static int tea5757_write(struct bttv *btv, int value); |
| 91 | static void identify_by_eeprom(struct bttv *btv, |
| 92 | unsigned char eeprom_data[256]); |
| 93 | static int __devinit pvr_boot(struct bttv *btv); |
| 94 | |
| 95 | /* config variables */ |
Mauro Carvalho Chehab | a5ed425 | 2006-01-13 14:10:19 -0200 | [diff] [blame] | 96 | static unsigned int triton1; |
| 97 | static unsigned int vsfx; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 98 | static unsigned int latency = UNSET; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 99 | int no_overlay=-1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 100 | |
| 101 | static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 102 | static unsigned int pll[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 103 | static unsigned int tuner[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 104 | static unsigned int svhs[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 105 | static unsigned int remote[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; |
| 106 | static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL }; |
| 107 | #ifdef MODULE |
| 108 | static unsigned int autoload = 1; |
| 109 | #else |
Mauro Carvalho Chehab | a5ed425 | 2006-01-13 14:10:19 -0200 | [diff] [blame] | 110 | static unsigned int autoload; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 111 | #endif |
| 112 | static unsigned int gpiomask = UNSET; |
| 113 | static unsigned int audioall = UNSET; |
| 114 | static unsigned int audiomux[5] = { [ 0 ... 4 ] = UNSET }; |
| 115 | |
| 116 | /* insmod options */ |
| 117 | module_param(triton1, int, 0444); |
| 118 | module_param(vsfx, int, 0444); |
| 119 | module_param(no_overlay, int, 0444); |
| 120 | module_param(latency, int, 0444); |
| 121 | module_param(gpiomask, int, 0444); |
| 122 | module_param(audioall, int, 0444); |
| 123 | module_param(autoload, int, 0444); |
| 124 | |
| 125 | module_param_array(card, int, NULL, 0444); |
| 126 | module_param_array(pll, int, NULL, 0444); |
| 127 | module_param_array(tuner, int, NULL, 0444); |
| 128 | module_param_array(svhs, int, NULL, 0444); |
| 129 | module_param_array(remote, int, NULL, 0444); |
| 130 | module_param_array(audiomux, int, NULL, 0444); |
| 131 | |
| 132 | MODULE_PARM_DESC(triton1,"set ETBF pci config bit " |
| 133 | "[enable bug compatibility for triton1 + others]"); |
| 134 | MODULE_PARM_DESC(vsfx,"set VSFX pci config bit " |
| 135 | "[yet another chipset flaw workaround]"); |
| 136 | MODULE_PARM_DESC(latency,"pci latency timer"); |
| 137 | MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list"); |
| 138 | MODULE_PARM_DESC(pll,"specify installed crystal (0=none, 28=28 MHz, 35=35 MHz)"); |
| 139 | MODULE_PARM_DESC(tuner,"specify installed tuner type"); |
| 140 | MODULE_PARM_DESC(autoload,"automatically load i2c modules like tuner.o, default is 1 (yes)"); |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 141 | MODULE_PARM_DESC(no_overlay,"allow override overlay default (0 disables, 1 enables)" |
| 142 | " [some VIA/SIS chipsets are known to have problem with overlay]"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 143 | |
| 144 | /* ----------------------------------------------------------------------- */ |
| 145 | /* list of card IDs for bt878+ cards */ |
| 146 | |
| 147 | static struct CARD { |
| 148 | unsigned id; |
| 149 | int cardnr; |
| 150 | char *name; |
| 151 | } cards[] __devinitdata = { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 152 | { 0x13eb0070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV" }, |
| 153 | { 0x39000070, BTTV_BOARD_HAUPPAUGE878, "Hauppauge WinTV-D" }, |
| 154 | { 0x45000070, BTTV_BOARD_HAUPPAUGEPVR, "Hauppauge WinTV/PVR" }, |
| 155 | { 0xff000070, BTTV_BOARD_OSPREY1x0, "Osprey-100" }, |
| 156 | { 0xff010070, BTTV_BOARD_OSPREY2x0_SVID,"Osprey-200" }, |
| 157 | { 0xff020070, BTTV_BOARD_OSPREY500, "Osprey-500" }, |
| 158 | { 0xff030070, BTTV_BOARD_OSPREY2000, "Osprey-2000" }, |
| 159 | { 0xff040070, BTTV_BOARD_OSPREY540, "Osprey-540" }, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 160 | { 0xff070070, BTTV_BOARD_OSPREY440, "Osprey-440" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 161 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 162 | { 0x00011002, BTTV_BOARD_ATI_TVWONDER, "ATI TV Wonder" }, |
| 163 | { 0x00031002, BTTV_BOARD_ATI_TVWONDERVE,"ATI TV Wonder/VE" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 164 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 165 | { 0x6606107d, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 166 | { 0x6607107d, BTTV_BOARD_WINFASTVC100, "Leadtek WinFast VC 100" }, |
| 167 | { 0x6609107d, BTTV_BOARD_WINFAST2000, "Leadtek TV 2000 XP" }, |
| 168 | { 0x263610b4, BTTV_BOARD_STB2, "STB TV PCI FM, Gateway P/N 6000704" }, |
| 169 | { 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] | 170 | { 0x402010fc, BTTV_BOARD_GVBCTV3PCI, "I-O Data Co. GV-BCTV3/PCI" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 171 | { 0x405010fc, BTTV_BOARD_GVBCTV4PCI, "I-O Data Co. GV-BCTV4/PCI" }, |
| 172 | { 0x407010fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 173 | { 0xd01810fc, BTTV_BOARD_GVBCTV5PCI, "I-O Data Co. GV-BCTV5/PCI" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 174 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 175 | { 0x001211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 176 | /* some cards ship with byteswapped IDs ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 177 | { 0x1200bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
| 178 | { 0xff00bd11, BTTV_BOARD_PINNACLE, "Pinnacle PCTV [bswap]" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 179 | /* this seems to happen as well ... */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 180 | { 0xff1211bd, BTTV_BOARD_PINNACLE, "Pinnacle PCTV" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 181 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 182 | { 0x3000121a, BTTV_BOARD_VOODOOTV_FM, "3Dfx VoodooTV FM/ VoodooTV 200" }, |
| 183 | { 0x263710b4, BTTV_BOARD_VOODOOTV_FM, "3Dfx VoodooTV FM/ VoodooTV 200" }, |
| 184 | { 0x3060121a, BTTV_BOARD_STB2, "3Dfx VoodooTV 100/ STB OEM" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 185 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 186 | { 0x3000144f, BTTV_BOARD_MAGICTVIEW063, "(Askey Magic/others) TView99 CPH06x" }, |
| 187 | { 0xa005144f, BTTV_BOARD_MAGICTVIEW063, "CPH06X TView99-Card" }, |
| 188 | { 0x3002144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH05x" }, |
| 189 | { 0x3005144f, BTTV_BOARD_MAGICTVIEW061, "(Askey Magic/others) TView99 CPH061/06L (T1/LC)" }, |
| 190 | { 0x5000144f, BTTV_BOARD_MAGICTVIEW061, "Askey CPH050" }, |
| 191 | { 0x300014ff, BTTV_BOARD_MAGICTVIEW061, "TView 99 (CPH061)" }, |
| 192 | { 0x300214ff, BTTV_BOARD_PHOEBE_TVMAS, "Phoebe TV Master (CPH060)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 193 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 194 | { 0x00011461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 195 | { 0x00021461, BTTV_BOARD_AVERMEDIA98, "AVermedia TVCapture 98" }, |
| 196 | { 0x00031461, BTTV_BOARD_AVPHONE98, "AVerMedia TVPhone98" }, |
| 197 | { 0x00041461, BTTV_BOARD_AVERMEDIA98, "AVerMedia TVCapture 98" }, |
| 198 | { 0x03001461, BTTV_BOARD_AVERMEDIA98, "VDOMATE TV TUNER CARD" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 199 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 200 | { 0x1117153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL B/G)" }, |
| 201 | { 0x1118153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL B/G)" }, |
| 202 | { 0x1119153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Philips PAL I)" }, |
| 203 | { 0x111a153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (Temic PAL I)" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 204 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 205 | { 0x1123153b, BTTV_BOARD_TERRATVRADIO, "Terratec TV Radio+" }, |
| 206 | { 0x1127153b, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.05)" }, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 207 | /* clashes with FlyVideo |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 208 | *{ 0x18521852, BTTV_BOARD_TERRATV, "Terratec TV+ (V1.10)" }, */ |
| 209 | { 0x1134153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue (LR102)" }, |
| 210 | { 0x1135153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* LR102 */ |
| 211 | { 0x5018153b, BTTV_BOARD_TERRATVALUE, "Terratec TValue" }, /* ?? */ |
| 212 | { 0xff3b153b, BTTV_BOARD_TERRATVALUER, "Terratec TValue Radio" }, /* ?? */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 213 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 214 | { 0x400015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 215 | { 0x400a15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV" }, |
| 216 | { 0x400d15b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 217 | { 0x401015b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
| 218 | { 0x401615b0, BTTV_BOARD_ZOLTRIX_GENIE, "Zoltrix Genie TV / Radio" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 219 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 220 | { 0x1430aa00, BTTV_BOARD_PV143, "Provideo PV143A" }, |
| 221 | { 0x1431aa00, BTTV_BOARD_PV143, "Provideo PV143B" }, |
| 222 | { 0x1432aa00, BTTV_BOARD_PV143, "Provideo PV143C" }, |
| 223 | { 0x1433aa00, BTTV_BOARD_PV143, "Provideo PV143D" }, |
| 224 | { 0x1433aa03, BTTV_BOARD_PV143, "Security Eyes" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 225 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 226 | { 0x1460aa00, BTTV_BOARD_PV150, "Provideo PV150A-1" }, |
| 227 | { 0x1461aa01, BTTV_BOARD_PV150, "Provideo PV150A-2" }, |
| 228 | { 0x1462aa02, BTTV_BOARD_PV150, "Provideo PV150A-3" }, |
| 229 | { 0x1463aa03, BTTV_BOARD_PV150, "Provideo PV150A-4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 230 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 231 | { 0x1464aa04, BTTV_BOARD_PV150, "Provideo PV150B-1" }, |
| 232 | { 0x1465aa05, BTTV_BOARD_PV150, "Provideo PV150B-2" }, |
| 233 | { 0x1466aa06, BTTV_BOARD_PV150, "Provideo PV150B-3" }, |
| 234 | { 0x1467aa07, BTTV_BOARD_PV150, "Provideo PV150B-4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 235 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 236 | { 0xa132ff00, BTTV_BOARD_IVC100, "IVC-100" }, |
| 237 | { 0xa1550000, BTTV_BOARD_IVC200, "IVC-200" }, |
| 238 | { 0xa1550001, BTTV_BOARD_IVC200, "IVC-200" }, |
| 239 | { 0xa1550002, BTTV_BOARD_IVC200, "IVC-200" }, |
| 240 | { 0xa1550003, BTTV_BOARD_IVC200, "IVC-200" }, |
| 241 | { 0xa1550100, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 242 | { 0xa1550101, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 243 | { 0xa1550102, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 244 | { 0xa1550103, BTTV_BOARD_IVC200, "IVC-200G" }, |
| 245 | { 0xa182ff00, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 246 | { 0xa182ff01, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 247 | { 0xa182ff02, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 248 | { 0xa182ff03, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 249 | { 0xa182ff04, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 250 | { 0xa182ff05, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 251 | { 0xa182ff06, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 252 | { 0xa182ff07, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 253 | { 0xa182ff08, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 254 | { 0xa182ff09, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 255 | { 0xa182ff0a, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 256 | { 0xa182ff0b, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 257 | { 0xa182ff0c, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 258 | { 0xa182ff0d, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 259 | { 0xa182ff0e, BTTV_BOARD_IVC120, "IVC-120G" }, |
| 260 | { 0xa182ff0f, BTTV_BOARD_IVC120, "IVC-120G" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 261 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 262 | { 0x41424344, BTTV_BOARD_GRANDTEC, "GrandTec Multi Capture" }, |
| 263 | { 0x01020304, BTTV_BOARD_XGUARD, "Grandtec Grand X-Guard" }, |
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 | { 0x18501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 266 | { 0xa0501851, BTTV_BOARD_CHRONOS_VS2, "FlyVideo 98 (LR50)/ Chronos Video Shuttle II" }, |
| 267 | { 0x18511851, BTTV_BOARD_FLYVIDEO98EZ, "FlyVideo 98EZ (LR51)/ CyberMail AV" }, |
| 268 | { 0x18521852, BTTV_BOARD_TYPHOON_TVIEW, "FlyVideo 98FM (LR50)/ Typhoon TView TV/FM Tuner" }, |
| 269 | { 0x41a0a051, BTTV_BOARD_FLYVIDEO_98FM, "Lifeview FlyVideo 98 LR50 Rev Q" }, |
| 270 | { 0x18501f7f, BTTV_BOARD_FLYVIDEO_98, "Lifeview Flyvideo 98" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 271 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 272 | { 0x010115cb, BTTV_BOARD_GMV1, "AG GMV1" }, |
| 273 | { 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] | 274 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 275 | { 0x10b42636, BTTV_BOARD_HAUPPAUGE878, "STB ???" }, |
| 276 | { 0x217d6606, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 277 | { 0xfff6f6ff, BTTV_BOARD_WINFAST2000, "Leadtek WinFast TV 2000" }, |
| 278 | { 0x03116000, BTTV_BOARD_SENSORAY311, "Sensoray 311" }, |
| 279 | { 0x00790e11, BTTV_BOARD_WINDVR, "Canopus WinDVR PCI" }, |
| 280 | { 0xa0fca1a0, BTTV_BOARD_ZOLTRIX, "Face to Face Tvmax" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 281 | { 0x82b2aa6a, BTTV_BOARD_SIMUS_GVC1100, "SIMUS GVC1100" }, |
| 282 | { 0x146caa0c, BTTV_BOARD_PV951, "ituner spectra8" }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 283 | { 0x200a1295, BTTV_BOARD_PXC200, "ImageNation PXC200A" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 284 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 285 | { 0x40111554, BTTV_BOARD_PV_BT878P_9B, "Prolink Pixelview PV-BT" }, |
| 286 | { 0x17de0a01, BTTV_BOARD_KWORLD, "Mecer TV/FM/Video Tuner" }, |
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 | { 0x01051805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #1" }, |
| 289 | { 0x01061805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #2" }, |
| 290 | { 0x01071805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #3" }, |
| 291 | { 0x01081805, BTTV_BOARD_PICOLO_TETRA_CHIP, "Picolo Tetra Chip #4" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 292 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 293 | { 0x15409511, BTTV_BOARD_ACORP_Y878F, "Acorp Y878F" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 294 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 295 | /* likely broken, vendor id doesn't match the other magic views ... |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 296 | * { 0xa0fca04f, BTTV_BOARD_MAGICTVIEW063, "Guillemot Maxi TV Video 3" }, */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 297 | |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 298 | /* Duplicate PCI ID, reconfigure for this board during the eeprom read. |
| 299 | * { 0x13eb0070, BTTV_BOARD_HAUPPAUGE_IMPACTVCB, "Hauppauge ImpactVCB" }, */ |
| 300 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 301 | /* DVB cards (using pci function .1 for mpeg data xfer) */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 302 | { 0x001c11bd, BTTV_BOARD_PINNACLESAT, "Pinnacle PCTV Sat" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 303 | { 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" }, |
| 304 | { 0x20007063, BTTV_BOARD_PC_HDTV, "pcHDTV HD-2000 TV"}, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 305 | { 0x002611bd, BTTV_BOARD_TWINHAN_DST, "Pinnacle PCTV SAT CI" }, |
| 306 | { 0x00011822, BTTV_BOARD_TWINHAN_DST, "Twinhan VisionPlus DVB" }, |
| 307 | { 0xfc00270f, BTTV_BOARD_TWINHAN_DST, "ChainTech digitop DST-1000 DVB-S" }, |
| 308 | { 0x07711461, BTTV_BOARD_AVDVBT_771, "AVermedia AverTV DVB-T 771" }, |
Michael Krufky | 2af3557 | 2006-01-23 17:11:06 -0200 | [diff] [blame] | 309 | { 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 310 | { 0xdb1018ac, BTTV_BOARD_DVICO_DVBT_LITE, "DViCO FusionHDTV DVB-T Lite" }, |
| 311 | { 0xd50018ac, BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE, "DViCO FusionHDTV 5 Lite" }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 312 | |
| 313 | { 0, -1, NULL } |
| 314 | }; |
| 315 | |
| 316 | /* ----------------------------------------------------------------------- */ |
| 317 | /* array with description for bt848 / bt878 tv/grabber cards */ |
| 318 | |
| 319 | struct tvcard bttv_tvcards[] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 320 | /* ---- card 0x00 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 321 | [BTTV_BOARD_UNKNOWN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 322 | .name = " *** UNKNOWN/GENERIC *** ", |
| 323 | .video_inputs = 4, |
| 324 | .audio_inputs = 1, |
| 325 | .tuner = 0, |
| 326 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 327 | .muxsel = { 2, 3, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 328 | .tuner_type = -1, |
| 329 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 330 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 331 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 332 | [BTTV_BOARD_MIRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 333 | .name = "MIRO PCTV", |
| 334 | .video_inputs = 4, |
| 335 | .audio_inputs = 1, |
| 336 | .tuner = 0, |
| 337 | .svhs = 2, |
| 338 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 339 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 340 | .gpiomux = { 2, 0, 0, 0 }, |
| 341 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 342 | .needs_tvaudio = 1, |
| 343 | .tuner_type = -1, |
| 344 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 345 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 346 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 347 | [BTTV_BOARD_HAUPPAUGE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 348 | .name = "Hauppauge (bt848)", |
| 349 | .video_inputs = 4, |
| 350 | .audio_inputs = 1, |
| 351 | .tuner = 0, |
| 352 | .svhs = 2, |
| 353 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 354 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 355 | .gpiomux = { 0, 1, 2, 3 }, |
| 356 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 357 | .needs_tvaudio = 1, |
| 358 | .tuner_type = -1, |
| 359 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 360 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 361 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 362 | [BTTV_BOARD_STB] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 363 | .name = "STB, Gateway P/N 6000699 (bt848)", |
| 364 | .video_inputs = 3, |
| 365 | .audio_inputs = 1, |
| 366 | .tuner = 0, |
| 367 | .svhs = 2, |
| 368 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 369 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 370 | .gpiomux = { 4, 0, 2, 3 }, |
| 371 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 372 | .no_msp34xx = 1, |
| 373 | .needs_tvaudio = 1, |
| 374 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 375 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 376 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 377 | .pll = PLL_28, |
| 378 | .has_radio = 1, |
| 379 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 380 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 381 | /* ---- card 0x04 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 382 | [BTTV_BOARD_INTEL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 383 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 384 | .video_inputs = 4, |
| 385 | .audio_inputs = 0, |
| 386 | .tuner = -1, |
| 387 | .svhs = 2, |
| 388 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 389 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 390 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 391 | .needs_tvaudio = 0, |
| 392 | .tuner_type = 4, |
| 393 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 394 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 395 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 396 | [BTTV_BOARD_DIAMOND] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 397 | .name = "Diamond DTV2000", |
| 398 | .video_inputs = 4, |
| 399 | .audio_inputs = 1, |
| 400 | .tuner = 0, |
| 401 | .svhs = 2, |
| 402 | .gpiomask = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 403 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 404 | .gpiomux = { 0, 1, 0, 1 }, |
| 405 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 406 | .needs_tvaudio = 1, |
| 407 | .tuner_type = -1, |
| 408 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 409 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 410 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 411 | [BTTV_BOARD_AVERMEDIA] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 412 | .name = "AVerMedia TVPhone", |
| 413 | .video_inputs = 3, |
| 414 | .audio_inputs = 1, |
| 415 | .tuner = 0, |
| 416 | .svhs = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 417 | .muxsel = { 2, 3, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 418 | .gpiomask = 0x0f, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 419 | .gpiomux = { 0x0c, 0x04, 0x08, 0x04 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 420 | /* 0x04 for some cards ?? */ |
| 421 | .needs_tvaudio = 1, |
| 422 | .tuner_type = -1, |
| 423 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 424 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 425 | .audio_hook = avermedia_tvphone_audio, |
| 426 | .has_remote = 1, |
| 427 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 428 | [BTTV_BOARD_MATRIX_VISION] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 429 | .name = "MATRIX-Vision MV-Delta", |
| 430 | .video_inputs = 5, |
| 431 | .audio_inputs = 1, |
| 432 | .tuner = -1, |
| 433 | .svhs = 3, |
| 434 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 435 | .muxsel = { 2, 3, 1, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 436 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 437 | .needs_tvaudio = 1, |
| 438 | .tuner_type = -1, |
| 439 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 440 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 441 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 442 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 443 | /* ---- card 0x08 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 444 | [BTTV_BOARD_FLYVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 445 | .name = "Lifeview FlyVideo II (Bt848) LR26 / MAXI TV Video PCI2 LR26", |
| 446 | .video_inputs = 4, |
| 447 | .audio_inputs = 1, |
| 448 | .tuner = 0, |
| 449 | .svhs = 2, |
| 450 | .gpiomask = 0xc00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 451 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 452 | .gpiomux = { 0, 0xc00, 0x800, 0x400 }, |
| 453 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 454 | .needs_tvaudio = 1, |
| 455 | .pll = PLL_28, |
| 456 | .tuner_type = -1, |
| 457 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 458 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 459 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 460 | [BTTV_BOARD_TURBOTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 461 | .name = "IMS/IXmicro TurboTV", |
| 462 | .video_inputs = 3, |
| 463 | .audio_inputs = 1, |
| 464 | .tuner = 0, |
| 465 | .svhs = 2, |
| 466 | .gpiomask = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 467 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 468 | .gpiomux = { 1, 1, 2, 3 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 469 | .needs_tvaudio = 0, |
| 470 | .pll = PLL_28, |
| 471 | .tuner_type = TUNER_TEMIC_PAL, |
| 472 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 473 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 474 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 475 | [BTTV_BOARD_HAUPPAUGE878] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 476 | .name = "Hauppauge (bt878)", |
| 477 | .video_inputs = 4, |
| 478 | .audio_inputs = 1, |
| 479 | .tuner = 0, |
| 480 | .svhs = 2, |
| 481 | .gpiomask = 0x0f, /* old: 7 */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 482 | .muxsel = { 2, 0, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 483 | .gpiomux = { 0, 1, 2, 3 }, |
| 484 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 485 | .needs_tvaudio = 1, |
| 486 | .pll = PLL_28, |
| 487 | .tuner_type = -1, |
| 488 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 489 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 490 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 491 | [BTTV_BOARD_MIROPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 492 | .name = "MIRO PCTV pro", |
| 493 | .video_inputs = 3, |
| 494 | .audio_inputs = 1, |
| 495 | .tuner = 0, |
| 496 | .svhs = 2, |
| 497 | .gpiomask = 0x3014f, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 498 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 499 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
| 500 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 501 | .needs_tvaudio = 1, |
| 502 | .tuner_type = -1, |
| 503 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 504 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 505 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 506 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 507 | /* ---- card 0x0c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 508 | [BTTV_BOARD_ADSTECH_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 509 | .name = "ADS Technologies Channel Surfer TV (bt848)", |
| 510 | .video_inputs = 3, |
| 511 | .audio_inputs = 1, |
| 512 | .tuner = 0, |
| 513 | .svhs = 2, |
| 514 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 515 | .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, |
| 518 | .tuner_type = -1, |
| 519 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 520 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 521 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 522 | [BTTV_BOARD_AVERMEDIA98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 523 | .name = "AVerMedia TVCapture 98", |
| 524 | .video_inputs = 3, |
| 525 | .audio_inputs = 4, |
| 526 | .tuner = 0, |
| 527 | .svhs = 2, |
| 528 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 529 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 530 | .gpiomux = { 13, 14, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 531 | .needs_tvaudio = 1, |
| 532 | .msp34xx_alt = 1, |
| 533 | .pll = PLL_28, |
| 534 | .tuner_type = TUNER_PHILIPS_PAL, |
| 535 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 536 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 537 | .audio_hook = avermedia_tv_stereo_audio, |
Ray Cole | a8900fc | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 538 | .no_gpioirq = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 539 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 540 | [BTTV_BOARD_VHX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 541 | .name = "Aimslab Video Highway Xtreme (VHX)", |
| 542 | .video_inputs = 3, |
| 543 | .audio_inputs = 1, |
| 544 | .tuner = 0, |
| 545 | .svhs = 2, |
| 546 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 547 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 548 | .gpiomux = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */ |
| 549 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 550 | .needs_tvaudio = 1, |
| 551 | .pll = PLL_28, |
| 552 | .tuner_type = -1, |
| 553 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 554 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 555 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 556 | [BTTV_BOARD_ZOLTRIX] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 557 | .name = "Zoltrix TV-Max", |
| 558 | .video_inputs = 3, |
| 559 | .audio_inputs = 1, |
| 560 | .tuner = 0, |
| 561 | .svhs = 2, |
| 562 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 563 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 564 | .gpiomux = { 0, 0, 1, 0 }, |
| 565 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 566 | .needs_tvaudio = 1, |
| 567 | .tuner_type = -1, |
| 568 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 569 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 570 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 571 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 572 | /* ---- card 0x10 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 573 | [BTTV_BOARD_PIXVIEWPLAYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 574 | .name = "Prolink Pixelview PlayTV (bt878)", |
| 575 | .video_inputs = 3, |
| 576 | .audio_inputs = 1, |
| 577 | .tuner = 0, |
| 578 | .svhs = 2, |
| 579 | .gpiomask = 0x01fe00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 580 | .muxsel = { 2, 3, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 581 | #if 0 |
| 582 | /* old */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 583 | .gpiomux = { 0x01c000, 0, 0x018000, 0x014000, 0x002000 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 584 | #else |
| 585 | /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 586 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 587 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 588 | #endif |
| 589 | .needs_tvaudio = 1, |
| 590 | .pll = PLL_28, |
| 591 | .tuner_type = -1, |
| 592 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 593 | [BTTV_BOARD_WINVIEW_601] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 594 | .name = "Leadtek WinView 601", |
| 595 | .video_inputs = 3, |
| 596 | .audio_inputs = 1, |
| 597 | .tuner = 0, |
| 598 | .svhs = 2, |
| 599 | .gpiomask = 0x8300f8, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 600 | .muxsel = { 2, 3, 1, 1,0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 601 | .gpiomux = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007 }, |
| 602 | .gpiomute = 0xcfa007, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 603 | .needs_tvaudio = 1, |
| 604 | .tuner_type = -1, |
| 605 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 606 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 607 | .audio_hook = winview_audio, |
| 608 | .has_radio = 1, |
| 609 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 610 | [BTTV_BOARD_AVEC_INTERCAP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 611 | .name = "AVEC Intercapture", |
| 612 | .video_inputs = 3, |
| 613 | .audio_inputs = 2, |
| 614 | .tuner = 0, |
| 615 | .svhs = 2, |
| 616 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 617 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 618 | .gpiomux = { 1, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 619 | .needs_tvaudio = 1, |
| 620 | .tuner_type = -1, |
| 621 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 622 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 623 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 624 | [BTTV_BOARD_LIFE_FLYKIT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 625 | .name = "Lifeview FlyVideo II EZ /FlyKit LR38 Bt848 (capture only)", |
| 626 | .video_inputs = 4, |
| 627 | .audio_inputs = 1, |
| 628 | .tuner = -1, |
| 629 | .svhs = -1, |
| 630 | .gpiomask = 0x8dff00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 631 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 632 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 633 | .no_msp34xx = 1, |
| 634 | .tuner_type = -1, |
| 635 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 636 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 637 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 638 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 639 | /* ---- card 0x14 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 640 | [BTTV_BOARD_CEI_RAFFLES] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 641 | .name = "CEI Raffles Card", |
| 642 | .video_inputs = 3, |
| 643 | .audio_inputs = 3, |
| 644 | .tuner = 0, |
| 645 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 646 | .muxsel = { 2, 3, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 647 | .tuner_type = -1, |
| 648 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 649 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 650 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 651 | [BTTV_BOARD_CONFERENCETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 652 | .name = "Lifeview FlyVideo 98/ Lucky Star Image World ConferenceTV LR50", |
| 653 | .video_inputs = 4, |
| 654 | .audio_inputs = 2, /* tuner, line in */ |
| 655 | .tuner = 0, |
| 656 | .svhs = 2, |
| 657 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 658 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 659 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 660 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 661 | .pll = PLL_28, |
| 662 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 663 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 664 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 665 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 666 | [BTTV_BOARD_PHOEBE_TVMAS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 667 | .name = "Askey CPH050/ Phoebe Tv Master + FM", |
| 668 | .video_inputs = 3, |
| 669 | .audio_inputs = 1, |
| 670 | .tuner = 0, |
| 671 | .svhs = 2, |
| 672 | .gpiomask = 0xc00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 673 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 674 | .gpiomux = { 0, 1, 0x800, 0x400 }, |
| 675 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 676 | .needs_tvaudio = 1, |
| 677 | .pll = PLL_28, |
| 678 | .tuner_type = -1, |
| 679 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 680 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 681 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 682 | [BTTV_BOARD_MODTEC_205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 683 | .name = "Modular Technology MM201/MM202/MM205/MM210/MM215 PCTV, bt878", |
| 684 | .video_inputs = 3, |
| 685 | .audio_inputs = 1, |
| 686 | .tuner = 0, |
| 687 | .svhs = -1, |
| 688 | .gpiomask = 7, |
| 689 | .muxsel = { 2, 3, -1 }, |
| 690 | .digital_mode = DIGITAL_MODE_CAMERA, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 691 | .gpiomux = { 0, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 692 | .no_msp34xx = 1, |
| 693 | .pll = PLL_28, |
| 694 | .tuner_type = TUNER_ALPS_TSBB5_PAL_I, |
| 695 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 696 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 697 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 698 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 699 | /* ---- card 0x18 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 700 | [BTTV_BOARD_MAGICTVIEW061] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 701 | .name = "Askey CPH05X/06X (bt878) [many vendors]", |
| 702 | .video_inputs = 3, |
| 703 | .audio_inputs = 1, |
| 704 | .tuner = 0, |
| 705 | .svhs = 2, |
| 706 | .gpiomask = 0xe00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 707 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 708 | .gpiomux = {0x400, 0x400, 0x400, 0x400 }, |
| 709 | .gpiomute = 0xc00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 710 | .needs_tvaudio = 1, |
| 711 | .pll = PLL_28, |
| 712 | .tuner_type = -1, |
| 713 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 714 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 715 | .has_remote = 1, |
| 716 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 717 | [BTTV_BOARD_VOBIS_BOOSTAR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 718 | .name = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar", |
| 719 | .video_inputs = 3, |
| 720 | .audio_inputs = 1, |
| 721 | .tuner = 0, |
| 722 | .svhs = 2, |
| 723 | .gpiomask = 0x1f0fff, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 724 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 725 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 726 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 727 | .needs_tvaudio = 0, |
| 728 | .tuner_type = TUNER_PHILIPS_PAL, |
| 729 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 730 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 731 | .audio_hook = terratv_audio, |
| 732 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 733 | [BTTV_BOARD_HAUPPAUG_WCAM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 734 | .name = "Hauppauge WinCam newer (bt878)", |
| 735 | .video_inputs = 4, |
| 736 | .audio_inputs = 1, |
| 737 | .tuner = 0, |
| 738 | .svhs = 3, |
| 739 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 740 | .muxsel = { 2, 0, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 741 | .gpiomux = { 0, 1, 2, 3 }, |
| 742 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 743 | .needs_tvaudio = 1, |
| 744 | .tuner_type = -1, |
| 745 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 746 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 747 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 748 | [BTTV_BOARD_MAXI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 749 | .name = "Lifeview FlyVideo 98/ MAXI TV Video PCI2 LR50", |
| 750 | .video_inputs = 4, |
| 751 | .audio_inputs = 2, |
| 752 | .tuner = 0, |
| 753 | .svhs = 2, |
| 754 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 755 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 756 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 757 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 758 | .pll = PLL_28, |
| 759 | .tuner_type = TUNER_PHILIPS_SECAM, |
| 760 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 761 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 762 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 763 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 764 | /* ---- card 0x1c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 765 | [BTTV_BOARD_TERRATV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 766 | .name = "Terratec TerraTV+ Version 1.1 (bt878)", |
| 767 | .video_inputs = 3, |
| 768 | .audio_inputs = 1, |
| 769 | .tuner = 0, |
| 770 | .svhs = 2, |
| 771 | .gpiomask = 0x1f0fff, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 772 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 773 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0x00000 }, |
| 774 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 775 | .needs_tvaudio = 0, |
| 776 | .tuner_type = TUNER_PHILIPS_PAL, |
| 777 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 778 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 779 | .audio_hook = terratv_audio, |
| 780 | /* GPIO wiring: |
| 781 | External 20 pin connector (for Active Radio Upgrade board) |
| 782 | gpio00: i2c-sda |
| 783 | gpio01: i2c-scl |
| 784 | gpio02: om5610-data |
| 785 | gpio03: om5610-clk |
| 786 | gpio04: om5610-wre |
| 787 | gpio05: om5610-stereo |
| 788 | gpio06: rds6588-davn |
| 789 | gpio07: Pin 7 n.c. |
| 790 | gpio08: nIOW |
| 791 | gpio09+10: nIOR, nSEL ?? (bt878) |
| 792 | gpio09: nIOR (bt848) |
| 793 | gpio10: nSEL (bt848) |
| 794 | Sound Routing: |
| 795 | gpio16: u2-A0 (1st 4052bt) |
| 796 | gpio17: u2-A1 |
| 797 | gpio18: u2-nEN |
| 798 | gpio19: u4-A0 (2nd 4052) |
| 799 | gpio20: u4-A1 |
| 800 | u4-nEN - GND |
| 801 | Btspy: |
| 802 | 00000 : Cdrom (internal audio input) |
| 803 | 10000 : ext. Video audio input |
| 804 | 20000 : TV Mono |
| 805 | a0000 : TV Mono/2 |
| 806 | 1a0000 : TV Stereo |
| 807 | 30000 : Radio |
| 808 | 40000 : Mute |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 809 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 810 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 811 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 812 | [BTTV_BOARD_PXC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 813 | /* Jannik Fritsch <jannik@techfak.uni-bielefeld.de> */ |
| 814 | .name = "Imagenation PXC200", |
| 815 | .video_inputs = 5, |
| 816 | .audio_inputs = 1, |
| 817 | .tuner = -1, |
| 818 | .svhs = 1, /* was: 4 */ |
| 819 | .gpiomask = 0, |
| 820 | .muxsel = { 2, 3, 1, 0, 0}, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 821 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 822 | .needs_tvaudio = 1, |
| 823 | .tuner_type = -1, |
| 824 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 825 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 826 | .muxsel_hook = PXC200_muxsel, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 827 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 828 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 829 | [BTTV_BOARD_FLYVIDEO_98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 830 | .name = "Lifeview FlyVideo 98 LR50", |
| 831 | .video_inputs = 4, |
| 832 | .audio_inputs = 1, |
| 833 | .tuner = 0, |
| 834 | .svhs = 2, |
| 835 | .gpiomask = 0x1800, /* 0x8dfe00 */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 836 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 837 | .gpiomux = { 0, 0x0800, 0x1000, 0x1000 }, |
| 838 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 839 | .pll = PLL_28, |
| 840 | .tuner_type = -1, |
| 841 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 842 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 843 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 844 | [BTTV_BOARD_IPROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 845 | .name = "Formac iProTV, Formac ProTV I (bt848)", |
| 846 | .video_inputs = 4, |
| 847 | .audio_inputs = 1, |
| 848 | .tuner = 0, |
| 849 | .svhs = 3, |
| 850 | .gpiomask = 1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 851 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 852 | .gpiomux = { 1, 0, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 853 | .pll = PLL_28, |
| 854 | .tuner_type = TUNER_PHILIPS_PAL, |
| 855 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 856 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 857 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 858 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 859 | /* ---- card 0x20 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 860 | [BTTV_BOARD_INTEL_C_S_PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 861 | .name = "Intel Create and Share PCI/ Smart Video Recorder III", |
| 862 | .video_inputs = 4, |
| 863 | .audio_inputs = 0, |
| 864 | .tuner = -1, |
| 865 | .svhs = 2, |
| 866 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 867 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 868 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 869 | .needs_tvaudio = 0, |
| 870 | .tuner_type = 4, |
| 871 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 872 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 873 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 874 | [BTTV_BOARD_TERRATVALUE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 875 | .name = "Terratec TerraTValue Version Bt878", |
| 876 | .video_inputs = 3, |
| 877 | .audio_inputs = 1, |
| 878 | .tuner = 0, |
| 879 | .svhs = 2, |
| 880 | .gpiomask = 0xffff00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 881 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 882 | .gpiomux = { 0x500, 0, 0x300, 0x900 }, |
| 883 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 884 | .needs_tvaudio = 1, |
| 885 | .pll = PLL_28, |
| 886 | .tuner_type = TUNER_PHILIPS_PAL, |
| 887 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 888 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 889 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 890 | [BTTV_BOARD_WINFAST2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 891 | .name = "Leadtek WinFast 2000/ WinFast 2000 XP", |
| 892 | .video_inputs = 4, |
| 893 | .audio_inputs = 1, |
| 894 | .tuner = 0, |
| 895 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 896 | .muxsel = { 2, 3, 1, 1, 0 }, /* TV, CVid, SVid, CVid over SVid connector */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 897 | #if 0 |
| 898 | .gpiomask = 0xc33000, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 899 | .gpiomux = { 0x422000,0x1000,0x0000,0x620000,0x800000 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 900 | #else |
| 901 | /* Alexander Varakin <avarakin@hotmail.com> [stereo version] */ |
| 902 | .gpiomask = 0xb33000, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 903 | .gpiomux = { 0x122000,0x1000,0x0000,0x620000 }, |
| 904 | .gpiomute = 0x800000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 905 | #endif |
| 906 | /* Audio Routing for "WinFast 2000 XP" (no tv stereo !) |
| 907 | gpio23 -- hef4052:nEnable (0x800000) |
| 908 | gpio12 -- hef4052:A1 |
| 909 | gpio13 -- hef4052:A0 |
| 910 | 0x0000: external audio |
| 911 | 0x1000: FM |
| 912 | 0x2000: TV |
| 913 | 0x3000: n.c. |
| 914 | Note: There exists another variant "Winfast 2000" with tv stereo !? |
| 915 | Note: eeprom only contains FF and pci subsystem id 107d:6606 |
| 916 | */ |
| 917 | .needs_tvaudio = 0, |
| 918 | .pll = PLL_28, |
| 919 | .has_radio = 1, |
| 920 | .tuner_type = 5, /* default for now, gpio reads BFFF06 for Pal bg+dk */ |
| 921 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 922 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 923 | .audio_hook = winfast2000_audio, |
| 924 | .has_remote = 1, |
| 925 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 926 | [BTTV_BOARD_CHRONOS_VS2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 927 | .name = "Lifeview FlyVideo 98 LR50 / Chronos Video Shuttle II", |
| 928 | .video_inputs = 4, |
| 929 | .audio_inputs = 3, |
| 930 | .tuner = 0, |
| 931 | .svhs = 2, |
| 932 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 933 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 934 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 935 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 936 | .pll = PLL_28, |
| 937 | .tuner_type = -1, |
| 938 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 939 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 940 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 941 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 942 | /* ---- card 0x24 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 943 | [BTTV_BOARD_TYPHOON_TVIEW] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 944 | .name = "Lifeview FlyVideo 98FM LR50 / Typhoon TView TV/FM Tuner", |
| 945 | .video_inputs = 4, |
| 946 | .audio_inputs = 3, |
| 947 | .tuner = 0, |
| 948 | .svhs = 2, |
| 949 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 950 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 951 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 952 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 953 | .pll = PLL_28, |
| 954 | .tuner_type = -1, |
| 955 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 956 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 957 | .has_radio = 1, |
| 958 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 959 | [BTTV_BOARD_PXELVWPLTVPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 960 | .name = "Prolink PixelView PlayTV pro", |
| 961 | .video_inputs = 3, |
| 962 | .audio_inputs = 1, |
| 963 | .tuner = 0, |
| 964 | .svhs = 2, |
| 965 | .gpiomask = 0xff, |
| 966 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 967 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 968 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 969 | .no_msp34xx = 1, |
| 970 | .pll = PLL_28, |
| 971 | .tuner_type = -1, |
| 972 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 973 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 974 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 975 | [BTTV_BOARD_MAGICTVIEW063] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 976 | .name = "Askey CPH06X TView99", |
| 977 | .video_inputs = 4, |
| 978 | .audio_inputs = 1, |
| 979 | .tuner = 0, |
| 980 | .svhs = 2, |
| 981 | .gpiomask = 0x551e00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 982 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 983 | .gpiomux = { 0x551400, 0x551200, 0, 0 }, |
| 984 | .gpiomute = 0x551c00, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 985 | .needs_tvaudio = 1, |
| 986 | .pll = PLL_28, |
| 987 | .tuner_type = 1, |
| 988 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 989 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 990 | .has_remote = 1, |
| 991 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 992 | [BTTV_BOARD_PINNACLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 993 | .name = "Pinnacle PCTV Studio/Rave", |
| 994 | .video_inputs = 3, |
| 995 | .audio_inputs = 1, |
| 996 | .tuner = 0, |
| 997 | .svhs = 2, |
| 998 | .gpiomask = 0x03000F, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 999 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1000 | .gpiomux = { 2, 0xd0001, 0, 0 }, |
| 1001 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1002 | .needs_tvaudio = 0, |
| 1003 | .pll = PLL_28, |
| 1004 | .tuner_type = -1, |
| 1005 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1006 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1007 | }, |
| 1008 | |
| 1009 | /* ---- card 0x28 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1010 | [BTTV_BOARD_STB2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1011 | .name = "STB TV PCI FM, Gateway P/N 6000704 (bt878), 3Dfx VoodooTV 100", |
| 1012 | .video_inputs = 3, |
| 1013 | .audio_inputs = 1, |
| 1014 | .tuner = 0, |
| 1015 | .svhs = 2, |
| 1016 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1017 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1018 | .gpiomux = { 4, 0, 2, 3 }, |
| 1019 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1020 | .no_msp34xx = 1, |
| 1021 | .needs_tvaudio = 1, |
| 1022 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 1023 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1024 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1025 | .pll = PLL_28, |
| 1026 | .has_radio = 1, |
| 1027 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1028 | [BTTV_BOARD_AVPHONE98] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1029 | .name = "AVerMedia TVPhone 98", |
| 1030 | .video_inputs = 3, |
| 1031 | .audio_inputs = 4, |
| 1032 | .tuner = 0, |
| 1033 | .svhs = 2, |
| 1034 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1035 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1036 | .gpiomux = { 13, 4, 11, 7 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1037 | .needs_tvaudio = 1, |
| 1038 | .pll = PLL_28, |
| 1039 | .tuner_type = -1, |
| 1040 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1041 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1042 | .has_radio = 1, |
| 1043 | .audio_hook = avermedia_tvphone_audio, |
| 1044 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1045 | [BTTV_BOARD_PV951] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1046 | .name = "ProVideo PV951", /* pic16c54 */ |
| 1047 | .video_inputs = 3, |
| 1048 | .audio_inputs = 1, |
| 1049 | .tuner = 0, |
| 1050 | .svhs = 2, |
| 1051 | .gpiomask = 0, |
| 1052 | .muxsel = { 2, 3, 1, 1}, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1053 | .gpiomux = { 0, 0, 0, 0}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1054 | .needs_tvaudio = 1, |
| 1055 | .no_msp34xx = 1, |
| 1056 | .pll = PLL_28, |
| 1057 | .tuner_type = 1, |
| 1058 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1059 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1060 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1061 | [BTTV_BOARD_ONAIR_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1062 | .name = "Little OnAir TV", |
| 1063 | .video_inputs = 3, |
| 1064 | .audio_inputs = 1, |
| 1065 | .tuner = 0, |
| 1066 | .svhs = 2, |
| 1067 | .gpiomask = 0xe00b, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1068 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1069 | .gpiomux = { 0xff9ff6, 0xff9ff6, 0xff1ff7, 0 }, |
| 1070 | .gpiomute = 0xff3ffc, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1071 | .no_msp34xx = 1, |
| 1072 | .tuner_type = -1, |
| 1073 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1074 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1075 | }, |
| 1076 | |
| 1077 | /* ---- card 0x2c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1078 | [BTTV_BOARD_SIGMA_TVII_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1079 | .name = "Sigma TVII-FM", |
| 1080 | .video_inputs = 2, |
| 1081 | .audio_inputs = 1, |
| 1082 | .tuner = 0, |
| 1083 | .svhs = -1, |
| 1084 | .gpiomask = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1085 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1086 | .gpiomux = { 1, 1, 0, 2 }, |
| 1087 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1088 | .no_msp34xx = 1, |
| 1089 | .pll = PLL_NONE, |
| 1090 | .tuner_type = -1, |
| 1091 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1092 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1093 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1094 | [BTTV_BOARD_MATRIX_VISION2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1095 | .name = "MATRIX-Vision MV-Delta 2", |
| 1096 | .video_inputs = 5, |
| 1097 | .audio_inputs = 1, |
| 1098 | .tuner = -1, |
| 1099 | .svhs = 3, |
| 1100 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1101 | .muxsel = { 2, 3, 1, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1102 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1103 | .no_msp34xx = 1, |
| 1104 | .pll = PLL_28, |
| 1105 | .tuner_type = -1, |
| 1106 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1107 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1108 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1109 | [BTTV_BOARD_ZOLTRIX_GENIE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1110 | .name = "Zoltrix Genie TV/FM", |
| 1111 | .video_inputs = 3, |
| 1112 | .audio_inputs = 1, |
| 1113 | .tuner = 0, |
| 1114 | .svhs = 2, |
| 1115 | .gpiomask = 0xbcf03f, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1116 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1117 | .gpiomux = { 0xbc803f, 0xbc903f, 0xbcb03f, 0 }, |
| 1118 | .gpiomute = 0xbcb03f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1119 | .no_msp34xx = 1, |
| 1120 | .pll = PLL_28, |
| 1121 | .tuner_type = 21, |
| 1122 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1123 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1124 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1125 | [BTTV_BOARD_TERRATVRADIO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1126 | .name = "Terratec TV/Radio+", |
| 1127 | .video_inputs = 3, |
| 1128 | .audio_inputs = 1, |
| 1129 | .tuner = 0, |
| 1130 | .svhs = 2, |
| 1131 | .gpiomask = 0x70000, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1132 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1133 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
| 1134 | .gpiomute = 0x40000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1135 | .needs_tvaudio = 1, |
| 1136 | .no_msp34xx = 1, |
| 1137 | .pll = PLL_35, |
| 1138 | .tuner_type = 1, |
| 1139 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1140 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1141 | .has_radio = 1, |
| 1142 | }, |
| 1143 | |
| 1144 | /* ---- card 0x30 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1145 | [BTTV_BOARD_DYNALINK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1146 | .name = "Askey CPH03x/ Dynalink Magic TView", |
| 1147 | .video_inputs = 3, |
| 1148 | .audio_inputs = 1, |
| 1149 | .tuner = 0, |
| 1150 | .svhs = 2, |
| 1151 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1152 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1153 | .gpiomux = {2,0,0,0 }, |
| 1154 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1155 | .needs_tvaudio = 1, |
| 1156 | .pll = PLL_28, |
| 1157 | .tuner_type = -1, |
| 1158 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1159 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1160 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1161 | [BTTV_BOARD_GVBCTV3PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1162 | .name = "IODATA GV-BCTV3/PCI", |
| 1163 | .video_inputs = 3, |
| 1164 | .audio_inputs = 1, |
| 1165 | .tuner = 0, |
| 1166 | .svhs = 2, |
| 1167 | .gpiomask = 0x010f00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1168 | .muxsel = {2, 3, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1169 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1170 | .no_msp34xx = 1, |
| 1171 | .pll = PLL_28, |
| 1172 | .tuner_type = TUNER_ALPS_TSHC6_NTSC, |
| 1173 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1174 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1175 | .audio_hook = gvbctv3pci_audio, |
| 1176 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1177 | [BTTV_BOARD_PXELVWPLTVPAK] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1178 | .name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP", |
| 1179 | .video_inputs = 5, |
| 1180 | .audio_inputs = 1, |
| 1181 | .tuner = 0, |
| 1182 | .svhs = 3, |
| 1183 | .gpiomask = 0xAA0000, |
| 1184 | .muxsel = { 2,3,1,1,-1 }, |
| 1185 | .digital_mode = DIGITAL_MODE_CAMERA, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1186 | .gpiomux = { 0x20000, 0, 0x80000, 0x80000 }, |
| 1187 | .gpiomute = 0xa8000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1188 | .no_msp34xx = 1, |
| 1189 | .pll = PLL_28, |
| 1190 | .tuner_type = TUNER_PHILIPS_PAL_I, |
| 1191 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1192 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1193 | .has_remote = 1, |
| 1194 | /* GPIO wiring: (different from Rev.4C !) |
| 1195 | GPIO17: U4.A0 (first hef4052bt) |
| 1196 | GPIO19: U4.A1 |
| 1197 | GPIO20: U5.A1 (second hef4052bt) |
| 1198 | GPIO21: U4.nEN |
| 1199 | GPIO22: BT832 Reset Line |
| 1200 | GPIO23: A5,A0, U5,nEN |
| 1201 | Note: At i2c=0x8a is a Bt832 chip, which changes to 0x88 after being reset via GPIO22 |
| 1202 | */ |
| 1203 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1204 | [BTTV_BOARD_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1205 | .name = "Eagle Wireless Capricorn2 (bt878A)", |
| 1206 | .video_inputs = 4, |
| 1207 | .audio_inputs = 1, |
| 1208 | .tuner = 0, |
| 1209 | .svhs = 2, |
| 1210 | .gpiomask = 7, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1211 | .muxsel = { 2, 0, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1212 | .gpiomux = { 0, 1, 2, 3 }, |
| 1213 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1214 | .pll = PLL_28, |
| 1215 | .tuner_type = -1 /* TUNER_ALPS_TMDH2_NTSC */, |
| 1216 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1217 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1218 | }, |
| 1219 | |
| 1220 | /* ---- card 0x34 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1221 | [BTTV_BOARD_PINNACLEPRO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1222 | /* David Härdeman <david@2gen.com> */ |
| 1223 | .name = "Pinnacle PCTV Studio Pro", |
| 1224 | .video_inputs = 4, |
| 1225 | .audio_inputs = 1, |
| 1226 | .tuner = 0, |
| 1227 | .svhs = 3, |
| 1228 | .gpiomask = 0x03000F, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1229 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1230 | .gpiomux = { 1, 0xd0001, 0, 0 }, |
| 1231 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1232 | /* sound path (5 sources): |
| 1233 | MUX1 (mask 0x03), Enable Pin 0x08 (0=enable, 1=disable) |
| 1234 | 0= ext. Audio IN |
| 1235 | 1= from MUX2 |
| 1236 | 2= Mono TV sound from Tuner |
| 1237 | 3= not connected |
| 1238 | MUX2 (mask 0x30000): |
| 1239 | 0,2,3= from MSP34xx |
| 1240 | 1= FM stereo Radio from Tuner */ |
| 1241 | .needs_tvaudio = 0, |
| 1242 | .pll = PLL_28, |
| 1243 | .tuner_type = -1, |
| 1244 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1245 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1246 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1247 | [BTTV_BOARD_TVIEW_RDS_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1248 | /* Claas Langbehn <claas@bigfoot.com>, |
| 1249 | Sven Grothklags <sven@upb.de> */ |
| 1250 | .name = "Typhoon TView RDS + FM Stereo / KNC1 TV Station RDS", |
| 1251 | .video_inputs = 4, |
| 1252 | .audio_inputs = 3, |
| 1253 | .tuner = 0, |
| 1254 | .svhs = 2, |
| 1255 | .gpiomask = 0x1c, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1256 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1257 | .gpiomux = { 0, 0, 0x10, 8 }, |
| 1258 | .gpiomute = 4, |
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_PHILIPS_PAL, |
| 1262 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1263 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1264 | .has_radio = 1, |
| 1265 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1266 | [BTTV_BOARD_LIFETEC_9415] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1267 | /* Tim Röstermundt <rosterm@uni-muenster.de> |
| 1268 | in de.comp.os.unix.linux.hardware: |
| 1269 | options bttv card=0 pll=1 radio=1 gpiomask=0x18e0 |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1270 | gpiomux =0x44c71f,0x44d71f,0,0x44d71f,0x44dfff |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1271 | options tuner type=5 */ |
| 1272 | .name = "Lifeview FlyVideo 2000 /FlyVideo A2/ Lifetec LT 9415 TV [LR90]", |
| 1273 | .video_inputs = 4, |
| 1274 | .audio_inputs = 1, |
| 1275 | .tuner = 0, |
| 1276 | .svhs = 2, |
| 1277 | .gpiomask = 0x18e0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1278 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1279 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1280 | .gpiomute = 0x18e0, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1281 | /* For cards with tda9820/tda9821: |
| 1282 | 0x0000: Tuner normal stereo |
| 1283 | 0x0080: Tuner A2 SAP (second audio program = Zweikanalton) |
| 1284 | 0x0880: Tuner A2 stereo */ |
| 1285 | .pll = PLL_28, |
| 1286 | .tuner_type = -1, |
| 1287 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1288 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1289 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1290 | [BTTV_BOARD_BESTBUY_EASYTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1291 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1292 | old Easy TV BT848 version (model CPH031) */ |
| 1293 | .name = "Askey CPH031/ BESTBUY Easy TV", |
| 1294 | .video_inputs = 4, |
| 1295 | .audio_inputs = 1, |
| 1296 | .tuner = 0, |
| 1297 | .svhs = 2, |
| 1298 | .gpiomask = 0xF, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1299 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1300 | .gpiomux = { 2, 0, 0, 0 }, |
| 1301 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1302 | .needs_tvaudio = 0, |
| 1303 | .pll = PLL_28, |
| 1304 | .tuner_type = TUNER_TEMIC_PAL, |
| 1305 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1306 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1307 | }, |
| 1308 | |
| 1309 | /* ---- card 0x38 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1310 | [BTTV_BOARD_FLYVIDEO_98FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1311 | /* Gordon Heydon <gjheydon@bigfoot.com ('98) */ |
| 1312 | .name = "Lifeview FlyVideo 98FM LR50", |
| 1313 | .video_inputs = 4, |
| 1314 | .audio_inputs = 3, |
| 1315 | .tuner = 0, |
| 1316 | .svhs = 2, |
| 1317 | .gpiomask = 0x1800, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1318 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1319 | .gpiomux = { 0, 0x800, 0x1000, 0x1000 }, |
| 1320 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1321 | .pll = PLL_28, |
| 1322 | .tuner_type = 5, |
| 1323 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1324 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1325 | }, |
| 1326 | /* This is the ultimate cheapo capture card |
| 1327 | * just a BT848A on a small PCB! |
| 1328 | * Steve Hosgood <steve@equiinet.com> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1329 | [BTTV_BOARD_GRANDTEC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1330 | .name = "GrandTec 'Grand Video Capture' (Bt848)", |
| 1331 | .video_inputs = 2, |
| 1332 | .audio_inputs = 0, |
| 1333 | .tuner = -1, |
| 1334 | .svhs = 1, |
| 1335 | .gpiomask = 0, |
| 1336 | .muxsel = { 3, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1337 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1338 | .needs_tvaudio = 0, |
| 1339 | .no_msp34xx = 1, |
| 1340 | .pll = PLL_35, |
| 1341 | .tuner_type = -1, |
| 1342 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1343 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1344 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1345 | [BTTV_BOARD_ASKEY_CPH060] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1346 | /* Daniel Herrington <daniel.herrington@home.com> */ |
| 1347 | .name = "Askey CPH060/ Phoebe TV Master Only (No FM)", |
| 1348 | .video_inputs = 3, |
| 1349 | .audio_inputs = 1, |
| 1350 | .tuner = 0, |
| 1351 | .svhs = 2, |
| 1352 | .gpiomask = 0xe00, |
| 1353 | .muxsel = { 2, 3, 1, 1}, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1354 | .gpiomux = { 0x400, 0x400, 0x400, 0x400 }, |
| 1355 | .gpiomute = 0x800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1356 | .needs_tvaudio = 1, |
| 1357 | .pll = PLL_28, |
| 1358 | .tuner_type = TUNER_TEMIC_4036FY5_NTSC, |
| 1359 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1360 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1361 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1362 | [BTTV_BOARD_ASKEY_CPH03X] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1363 | /* Matti Mottus <mottus@physic.ut.ee> */ |
| 1364 | .name = "Askey CPH03x TV Capturer", |
| 1365 | .video_inputs = 4, |
| 1366 | .audio_inputs = 1, |
| 1367 | .tuner = 0, |
| 1368 | .svhs = 2, |
| 1369 | .gpiomask = 0x03000F, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1370 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1371 | .gpiomux = { 2, 0, 0, 0 }, |
| 1372 | .gpiomute = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1373 | .pll = PLL_28, |
| 1374 | .tuner_type = 0, |
| 1375 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1376 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1377 | }, |
| 1378 | |
| 1379 | /* ---- card 0x3c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1380 | [BTTV_BOARD_MM100PCTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1381 | /* Philip Blundell <philb@gnu.org> */ |
| 1382 | .name = "Modular Technology MM100PCTV", |
| 1383 | .video_inputs = 2, |
| 1384 | .audio_inputs = 2, |
| 1385 | .tuner = 0, |
| 1386 | .svhs = -1, |
| 1387 | .gpiomask = 11, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1388 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1389 | .gpiomux = { 2, 0, 0, 1 }, |
| 1390 | .gpiomute = 8, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1391 | .pll = PLL_35, |
| 1392 | .tuner_type = TUNER_TEMIC_PAL, |
| 1393 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1394 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1395 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1396 | [BTTV_BOARD_GMV1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1397 | /* Adrian Cox <adrian@humboldt.co.uk */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1398 | .name = "AG Electronics GMV1", |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1399 | .video_inputs = 2, |
| 1400 | .audio_inputs = 0, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1401 | .tuner = -1, |
| 1402 | .svhs = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1403 | .gpiomask = 0xF, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1404 | .muxsel = { 2, 2 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1405 | .gpiomux = { }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1406 | .no_msp34xx = 1, |
| 1407 | .needs_tvaudio = 0, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1408 | .pll = PLL_28, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1409 | .tuner_type = -1, |
| 1410 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1411 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1412 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1413 | [BTTV_BOARD_BESTBUY_EASYTV2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1414 | /* Miguel Angel Alvarez <maacruz@navegalia.com> |
| 1415 | new Easy TV BT878 version (model CPH061) |
| 1416 | special thanks to Informatica Mieres for providing the card */ |
| 1417 | .name = "Askey CPH061/ BESTBUY Easy TV (bt878)", |
| 1418 | .video_inputs = 3, |
| 1419 | .audio_inputs = 2, |
| 1420 | .tuner = 0, |
| 1421 | .svhs = 2, |
| 1422 | .gpiomask = 0xFF, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1423 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1424 | .gpiomux = { 1, 0, 4, 4 }, |
| 1425 | .gpiomute = 9, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1426 | .needs_tvaudio = 0, |
| 1427 | .pll = PLL_28, |
| 1428 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1429 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1430 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1431 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1432 | [BTTV_BOARD_ATI_TVWONDER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1433 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1434 | .name = "ATI TV-Wonder", |
| 1435 | .video_inputs = 3, |
| 1436 | .audio_inputs = 1, |
| 1437 | .tuner = 0, |
| 1438 | .svhs = 2, |
| 1439 | .gpiomask = 0xf03f, |
| 1440 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1441 | .gpiomux = { 0xbffe, 0, 0xbfff, 0 }, |
| 1442 | .gpiomute = 0xbffe, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1443 | .pll = PLL_28, |
| 1444 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1445 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1446 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1447 | }, |
| 1448 | |
| 1449 | /* ---- card 0x40 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1450 | [BTTV_BOARD_ATI_TVWONDERVE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1451 | /* Lukas Gebauer <geby@volny.cz> */ |
| 1452 | .name = "ATI TV-Wonder VE", |
| 1453 | .video_inputs = 2, |
| 1454 | .audio_inputs = 1, |
| 1455 | .tuner = 0, |
| 1456 | .svhs = -1, |
| 1457 | .gpiomask = 1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1458 | .muxsel = { 2, 3, 0, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1459 | .gpiomux = { 0, 0, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1460 | .no_msp34xx = 1, |
| 1461 | .pll = PLL_28, |
| 1462 | .tuner_type = TUNER_TEMIC_4006FN5_MULTI_PAL, |
| 1463 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1464 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1465 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1466 | [BTTV_BOARD_FLYVIDEO2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1467 | /* DeeJay <deejay@westel900.net (2000S) */ |
| 1468 | .name = "Lifeview FlyVideo 2000S LR90", |
| 1469 | .video_inputs = 3, |
| 1470 | .audio_inputs = 3, |
| 1471 | .tuner = 0, |
| 1472 | .svhs = 2, |
| 1473 | .gpiomask = 0x18e0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1474 | .muxsel = { 2, 3, 0, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1475 | /* Radio changed from 1e80 to 0x800 to make |
| 1476 | FlyVideo2000S in .hu happy (gm)*/ |
| 1477 | /* -dk-???: set mute=0x1800 for tda9874h daughterboard */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1478 | .gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, |
| 1479 | .gpiomute = 0x1800, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1480 | .audio_hook = fv2000s_audio, |
| 1481 | .no_msp34xx = 1, |
| 1482 | .no_tda9875 = 1, |
| 1483 | .needs_tvaudio = 1, |
| 1484 | .pll = PLL_28, |
| 1485 | .tuner_type = 5, |
| 1486 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1487 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1488 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1489 | [BTTV_BOARD_TERRATVALUER] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1490 | .name = "Terratec TValueRadio", |
| 1491 | .video_inputs = 3, |
| 1492 | .audio_inputs = 1, |
| 1493 | .tuner = 0, |
| 1494 | .svhs = 2, |
| 1495 | .gpiomask = 0xffff00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1496 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1497 | .gpiomux = { 0x500, 0x500, 0x300, 0x900 }, |
| 1498 | .gpiomute = 0x900, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1499 | .needs_tvaudio = 1, |
| 1500 | .pll = PLL_28, |
| 1501 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1502 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1503 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1504 | .has_radio = 1, |
| 1505 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1506 | [BTTV_BOARD_GVBCTV4PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1507 | /* TANAKA Kei <peg00625@nifty.com> */ |
| 1508 | .name = "IODATA GV-BCTV4/PCI", |
| 1509 | .video_inputs = 3, |
| 1510 | .audio_inputs = 1, |
| 1511 | .tuner = 0, |
| 1512 | .svhs = 2, |
| 1513 | .gpiomask = 0x010f00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1514 | .muxsel = {2, 3, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1515 | .gpiomux = {0x10000, 0, 0x10000, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1516 | .no_msp34xx = 1, |
| 1517 | .pll = PLL_28, |
| 1518 | .tuner_type = TUNER_SHARP_2U5JF5540_NTSC, |
| 1519 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1520 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1521 | .audio_hook = gvbctv3pci_audio, |
| 1522 | }, |
| 1523 | |
| 1524 | /* ---- card 0x44 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1525 | [BTTV_BOARD_VOODOOTV_FM] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1526 | .name = "3Dfx VoodooTV FM (Euro), VoodooTV 200 (USA)", |
| 1527 | /* try "insmod msp3400 simple=0" if you have |
| 1528 | * sound problems with this card. */ |
| 1529 | .video_inputs = 4, |
| 1530 | .audio_inputs = 1, |
| 1531 | .tuner = 0, |
| 1532 | .svhs = -1, |
| 1533 | .gpiomask = 0x4f8a00, |
| 1534 | /* 0x100000: 1=MSP enabled (0=disable again) |
| 1535 | * 0x010000: Connected to "S0" on tda9880 (0=Pal/BG, 1=NTSC) */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1536 | .gpiomux = {0x947fff, 0x987fff,0x947fff,0x947fff }, |
| 1537 | .gpiomute = 0x947fff, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1538 | /* tvtuner, radio, external,internal, mute, stereo |
| 1539 | * tuner, Composit, SVid, Composit-on-Svid-adapter */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1540 | .muxsel = { 2, 3 ,0 ,1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1541 | .tuner_type = TUNER_MT2032, |
| 1542 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1543 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1544 | .pll = PLL_28, |
| 1545 | .has_radio = 1, |
| 1546 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1547 | [BTTV_BOARD_AIMMS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1548 | /* Philip Blundell <pb@nexus.co.uk> */ |
| 1549 | .name = "Active Imaging AIMMS", |
| 1550 | .video_inputs = 1, |
| 1551 | .audio_inputs = 0, |
| 1552 | .tuner = -1, |
| 1553 | .tuner_type = -1, |
| 1554 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1555 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1556 | .pll = PLL_28, |
| 1557 | .muxsel = { 2 }, |
| 1558 | .gpiomask = 0 |
| 1559 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1560 | [BTTV_BOARD_PV_BT878P_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1561 | /* Tomasz Pyra <hellfire@sedez.iq.pl> */ |
| 1562 | .name = "Prolink Pixelview PV-BT878P+ (Rev.4C,8E)", |
| 1563 | .video_inputs = 3, |
| 1564 | .audio_inputs = 4, |
| 1565 | .tuner = 0, |
| 1566 | .svhs = 2, |
| 1567 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1568 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1569 | .gpiomux = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */ |
| 1570 | .gpiomute = 13, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1571 | .needs_tvaudio = 1, |
| 1572 | .pll = PLL_28, |
| 1573 | .tuner_type = 25, |
| 1574 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1575 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1576 | .has_remote = 1, |
| 1577 | /* GPIO wiring: |
| 1578 | GPIO0: U4.A0 (hef4052bt) |
| 1579 | GPIO1: U4.A1 |
| 1580 | GPIO2: U4.A1 (second hef4052bt) |
| 1581 | GPIO3: U4.nEN, U5.A0, A5.nEN |
| 1582 | GPIO8-15: vrd866b ? |
| 1583 | */ |
| 1584 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1585 | [BTTV_BOARD_FLYVIDEO98EZ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1586 | .name = "Lifeview FlyVideo 98EZ (capture only) LR51", |
| 1587 | .video_inputs = 4, |
| 1588 | .audio_inputs = 0, |
| 1589 | .tuner = -1, |
| 1590 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1591 | .muxsel = { 2, 3, 1, 1 }, /* AV1, AV2, SVHS, CVid adapter on SVHS */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1592 | .pll = PLL_28, |
| 1593 | .no_msp34xx = 1, |
| 1594 | .tuner_type = UNSET, |
| 1595 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1596 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1597 | }, |
| 1598 | |
| 1599 | /* ---- card 0x48 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1600 | [BTTV_BOARD_PV_BT878P_9B] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1601 | /* Dariusz Kowalewski <darekk@automex.pl> */ |
| 1602 | .name = "Prolink Pixelview PV-BT878P+9B (PlayTV Pro rev.9B FM+NICAM)", |
| 1603 | .video_inputs = 4, |
| 1604 | .audio_inputs = 1, |
| 1605 | .tuner = 0, |
| 1606 | .svhs = 2, |
| 1607 | .gpiomask = 0x3f, |
| 1608 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1609 | .gpiomux = { 0x01, 0x00, 0x03, 0x03 }, |
| 1610 | .gpiomute = 0x09, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1611 | .needs_tvaudio = 1, |
| 1612 | .no_msp34xx = 1, |
| 1613 | .no_tda9875 = 1, |
| 1614 | .pll = PLL_28, |
| 1615 | .tuner_type = 5, |
| 1616 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1617 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1618 | .audio_hook = pvbt878p9b_audio, /* Note: not all cards have stereo */ |
| 1619 | .has_radio = 1, /* Note: not all cards have radio */ |
| 1620 | .has_remote = 1, |
| 1621 | /* GPIO wiring: |
| 1622 | GPIO0: A0 hef4052 |
| 1623 | GPIO1: A1 hef4052 |
| 1624 | GPIO3: nEN hef4052 |
| 1625 | GPIO8-15: vrd866b |
| 1626 | GPIO20,22,23: R30,R29,R28 |
| 1627 | */ |
| 1628 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1629 | [BTTV_BOARD_SENSORAY311] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1630 | /* Clay Kunz <ckunz@mail.arc.nasa.gov> */ |
| 1631 | /* you must jumper JP5 for the card to work */ |
| 1632 | .name = "Sensoray 311", |
| 1633 | .video_inputs = 5, |
| 1634 | .audio_inputs = 0, |
| 1635 | .tuner = -1, |
| 1636 | .svhs = 4, |
| 1637 | .gpiomask = 0, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1638 | .muxsel = { 2, 3, 1, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1639 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1640 | .needs_tvaudio = 0, |
| 1641 | .tuner_type = -1, |
| 1642 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1643 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1644 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1645 | [BTTV_BOARD_RV605] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1646 | /* Miguel Freitas <miguel@cetuc.puc-rio.br> */ |
| 1647 | .name = "RemoteVision MX (RV605)", |
| 1648 | .video_inputs = 16, |
| 1649 | .audio_inputs = 0, |
| 1650 | .tuner = -1, |
| 1651 | .svhs = -1, |
| 1652 | .gpiomask = 0x00, |
| 1653 | .gpiomask2 = 0x07ff, |
| 1654 | .muxsel = { 0x33, 0x13, 0x23, 0x43, 0xf3, 0x73, 0xe3, 0x03, |
| 1655 | 0xd3, 0xb3, 0xc3, 0x63, 0x93, 0x53, 0x83, 0xa3 }, |
| 1656 | .no_msp34xx = 1, |
| 1657 | .no_tda9875 = 1, |
| 1658 | .tuner_type = -1, |
| 1659 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1660 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1661 | .muxsel_hook = rv605_muxsel, |
| 1662 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1663 | [BTTV_BOARD_POWERCLR_MTV878] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1664 | .name = "Powercolor MTV878/ MTV878R/ MTV878F", |
| 1665 | .video_inputs = 3, |
| 1666 | .audio_inputs = 2, |
| 1667 | .tuner = 0, |
| 1668 | .svhs = 2, |
| 1669 | .gpiomask = 0x1C800F, /* Bit0-2: Audio select, 8-12:remote control 14:remote valid 15:remote reset */ |
| 1670 | .muxsel = { 2, 1, 1, }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1671 | .gpiomux = { 0, 1, 2, 2 }, |
| 1672 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1673 | .needs_tvaudio = 0, |
| 1674 | .tuner_type = TUNER_PHILIPS_PAL, |
| 1675 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1676 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1677 | .pll = PLL_28, |
| 1678 | .has_radio = 1, |
| 1679 | }, |
| 1680 | |
| 1681 | /* ---- card 0x4c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1682 | [BTTV_BOARD_WINDVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1683 | /* Masaki Suzuki <masaki@btree.org> */ |
| 1684 | .name = "Canopus WinDVR PCI (COMPAQ Presario 3524JP, 5112JP)", |
| 1685 | .video_inputs = 3, |
| 1686 | .audio_inputs = 1, |
| 1687 | .tuner = 0, |
| 1688 | .svhs = 2, |
| 1689 | .gpiomask = 0x140007, |
| 1690 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1691 | .gpiomux = { 0, 1, 2, 3 }, |
| 1692 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1693 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 1694 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1695 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1696 | .audio_hook = windvr_audio, |
| 1697 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1698 | [BTTV_BOARD_GRANDTEC_MULTI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1699 | .name = "GrandTec Multi Capture Card (Bt878)", |
| 1700 | .video_inputs = 4, |
| 1701 | .audio_inputs = 0, |
| 1702 | .tuner = -1, |
| 1703 | .svhs = -1, |
| 1704 | .gpiomask = 0, |
| 1705 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1706 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1707 | .needs_tvaudio = 0, |
| 1708 | .no_msp34xx = 1, |
| 1709 | .pll = PLL_28, |
| 1710 | .tuner_type = -1, |
| 1711 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1712 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1713 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1714 | [BTTV_BOARD_KWORLD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1715 | .name = "Jetway TV/Capture JW-TV878-FBK, Kworld KW-TV878RF", |
| 1716 | .video_inputs = 4, |
| 1717 | .audio_inputs = 3, |
| 1718 | .tuner = 0, |
| 1719 | .svhs = 2, |
| 1720 | .gpiomask = 7, |
| 1721 | .muxsel = { 2, 3, 1, 1 }, /* Tuner, SVid, SVHS, SVid to SVHS connector */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1722 | .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] | 1723 | * This card lacks external Audio In, so we mute it on Ext. & Int. |
| 1724 | * The PCB can take a sbx1637/sbx1673, wiring unknown. |
| 1725 | * This card lacks PCI subsystem ID, sigh. |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1726 | * gpiomux =1: lower volume, 2+3: mute |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1727 | * btwincap uses 0x80000/0x80003 |
| 1728 | */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1729 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1730 | .needs_tvaudio = 0, |
| 1731 | .no_msp34xx = 1, |
| 1732 | .pll = PLL_28, |
| 1733 | .tuner_type = 5, |
| 1734 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1735 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1736 | /* Samsung TCPA9095PC27A (BG+DK), philips compatible, w/FM, stereo and |
| 1737 | radio signal strength indicators work fine. */ |
| 1738 | .has_radio = 1, |
| 1739 | /* GPIO Info: |
| 1740 | GPIO0,1: HEF4052 A0,A1 |
| 1741 | GPIO2: HEF4052 nENABLE |
| 1742 | GPIO3-7: n.c. |
| 1743 | GPIO8-13: IRDC357 data0-5 (data6 n.c. ?) [chip not present on my card] |
| 1744 | GPIO14,15: ?? |
| 1745 | GPIO16-21: n.c. |
| 1746 | GPIO22,23: ?? |
| 1747 | ?? : mtu8b56ep microcontroller for IR (GPIO wiring unknown)*/ |
| 1748 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1749 | [BTTV_BOARD_DSP_TCVIDEO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1750 | /* Arthur Tetzlaff-Deas, DSP Design Ltd <software@dspdesign.com> */ |
| 1751 | .name = "DSP Design TCVIDEO", |
| 1752 | .video_inputs = 4, |
| 1753 | .svhs = -1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1754 | .muxsel = { 2, 3, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1755 | .pll = PLL_28, |
| 1756 | .tuner_type = -1, |
| 1757 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1758 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1759 | }, |
| 1760 | |
| 1761 | /* ---- card 0x50 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1762 | [BTTV_BOARD_HAUPPAUGEPVR] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1763 | .name = "Hauppauge WinTV PVR", |
| 1764 | .video_inputs = 4, |
| 1765 | .audio_inputs = 1, |
| 1766 | .tuner = 0, |
| 1767 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1768 | .muxsel = { 2, 0, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1769 | .needs_tvaudio = 1, |
| 1770 | .pll = PLL_28, |
| 1771 | .tuner_type = -1, |
| 1772 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1773 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1774 | |
| 1775 | .gpiomask = 7, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1776 | .gpiomux = {7}, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1777 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1778 | [BTTV_BOARD_GVBCTV5PCI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1779 | .name = "IODATA GV-BCTV5/PCI", |
| 1780 | .video_inputs = 3, |
| 1781 | .audio_inputs = 1, |
| 1782 | .tuner = 0, |
| 1783 | .svhs = 2, |
| 1784 | .gpiomask = 0x0f0f80, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 1785 | .muxsel = {2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 1786 | .gpiomux = {0x030000, 0x010000, 0, 0 }, |
| 1787 | .gpiomute = 0x020000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1788 | .no_msp34xx = 1, |
| 1789 | .pll = PLL_28, |
| 1790 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 1791 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1792 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1793 | .audio_hook = gvbctv5pci_audio, |
| 1794 | .has_radio = 1, |
| 1795 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1796 | [BTTV_BOARD_OSPREY1x0] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1797 | .name = "Osprey 100/150 (878)", /* 0x1(2|3)-45C6-C1 */ |
| 1798 | .video_inputs = 4, /* id-inputs-clock */ |
| 1799 | .audio_inputs = 0, |
| 1800 | .tuner = -1, |
| 1801 | .svhs = 3, |
| 1802 | .muxsel = { 3, 2, 0, 1 }, |
| 1803 | .pll = PLL_28, |
| 1804 | .tuner_type = -1, |
| 1805 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1806 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1807 | .no_msp34xx = 1, |
| 1808 | .no_tda9875 = 1, |
| 1809 | .no_tda7432 = 1, |
| 1810 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1811 | [BTTV_BOARD_OSPREY1x0_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1812 | .name = "Osprey 100/150 (848)", /* 0x04-54C0-C1 & older boards */ |
| 1813 | .video_inputs = 3, |
| 1814 | .audio_inputs = 0, |
| 1815 | .tuner = -1, |
| 1816 | .svhs = 2, |
| 1817 | .muxsel = { 2, 3, 1 }, |
| 1818 | .pll = PLL_28, |
| 1819 | .tuner_type = -1, |
| 1820 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1821 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1822 | .no_msp34xx = 1, |
| 1823 | .no_tda9875 = 1, |
| 1824 | .no_tda7432 = 1, |
| 1825 | }, |
| 1826 | |
| 1827 | /* ---- card 0x54 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1828 | [BTTV_BOARD_OSPREY101_848] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1829 | .name = "Osprey 101 (848)", /* 0x05-40C0-C1 */ |
| 1830 | .video_inputs = 2, |
| 1831 | .audio_inputs = 0, |
| 1832 | .tuner = -1, |
| 1833 | .svhs = 1, |
| 1834 | .muxsel = { 3, 1 }, |
| 1835 | .pll = PLL_28, |
| 1836 | .tuner_type = -1, |
| 1837 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1838 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1839 | .no_msp34xx = 1, |
| 1840 | .no_tda9875 = 1, |
| 1841 | .no_tda7432 = 1, |
| 1842 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1843 | [BTTV_BOARD_OSPREY1x1] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1844 | .name = "Osprey 101/151", /* 0x1(4|5)-0004-C4 */ |
| 1845 | .video_inputs = 1, |
| 1846 | .audio_inputs = 0, |
| 1847 | .tuner = -1, |
| 1848 | .svhs = -1, |
| 1849 | .muxsel = { 0 }, |
| 1850 | .pll = PLL_28, |
| 1851 | .tuner_type = -1, |
| 1852 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1853 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1854 | .no_msp34xx = 1, |
| 1855 | .no_tda9875 = 1, |
| 1856 | .no_tda7432 = 1, |
| 1857 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1858 | [BTTV_BOARD_OSPREY1x1_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1859 | .name = "Osprey 101/151 w/ svid", /* 0x(16|17|20)-00C4-C1 */ |
| 1860 | .video_inputs = 2, |
| 1861 | .audio_inputs = 0, |
| 1862 | .tuner = -1, |
| 1863 | .svhs = 1, |
| 1864 | .muxsel = { 0, 1 }, |
| 1865 | .pll = PLL_28, |
| 1866 | .tuner_type = -1, |
| 1867 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1868 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1869 | .no_msp34xx = 1, |
| 1870 | .no_tda9875 = 1, |
| 1871 | .no_tda7432 = 1, |
| 1872 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1873 | [BTTV_BOARD_OSPREY2xx] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1874 | .name = "Osprey 200/201/250/251", /* 0x1(8|9|E|F)-0004-C4 */ |
| 1875 | .video_inputs = 1, |
| 1876 | .audio_inputs = 1, |
| 1877 | .tuner = -1, |
| 1878 | .svhs = -1, |
| 1879 | .muxsel = { 0 }, |
| 1880 | .pll = PLL_28, |
| 1881 | .tuner_type = UNSET, |
| 1882 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1883 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1884 | .no_msp34xx = 1, |
| 1885 | .no_tda9875 = 1, |
| 1886 | .no_tda7432 = 1, |
| 1887 | }, |
| 1888 | |
| 1889 | /* ---- card 0x58 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1890 | [BTTV_BOARD_OSPREY2x0_SVID] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1891 | .name = "Osprey 200/250", /* 0x1(A|B)-00C4-C1 */ |
| 1892 | .video_inputs = 2, |
| 1893 | .audio_inputs = 1, |
| 1894 | .tuner = -1, |
| 1895 | .svhs = 1, |
| 1896 | .muxsel = { 0, 1 }, |
| 1897 | .pll = PLL_28, |
| 1898 | .tuner_type = UNSET, |
| 1899 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1900 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1901 | .no_msp34xx = 1, |
| 1902 | .no_tda9875 = 1, |
| 1903 | .no_tda7432 = 1, |
| 1904 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1905 | [BTTV_BOARD_OSPREY2x0] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1906 | .name = "Osprey 210/220", /* 0x1(A|B)-04C0-C1 */ |
| 1907 | .video_inputs = 2, |
| 1908 | .audio_inputs = 1, |
| 1909 | .tuner = -1, |
| 1910 | .svhs = 1, |
| 1911 | .muxsel = { 2, 3 }, |
| 1912 | .pll = PLL_28, |
| 1913 | .tuner_type = UNSET, |
| 1914 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1915 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1916 | .no_msp34xx = 1, |
| 1917 | .no_tda9875 = 1, |
| 1918 | .no_tda7432 = 1, |
| 1919 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1920 | [BTTV_BOARD_OSPREY500] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1921 | .name = "Osprey 500", /* 500 */ |
| 1922 | .video_inputs = 2, |
| 1923 | .audio_inputs = 1, |
| 1924 | .tuner = -1, |
| 1925 | .svhs = 1, |
| 1926 | .muxsel = { 2, 3 }, |
| 1927 | .pll = PLL_28, |
| 1928 | .tuner_type = -1, |
| 1929 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1930 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1931 | .no_msp34xx = 1, |
| 1932 | .no_tda9875 = 1, |
| 1933 | .no_tda7432 = 1, |
| 1934 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1935 | [BTTV_BOARD_OSPREY540] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1936 | .name = "Osprey 540", /* 540 */ |
| 1937 | .video_inputs = 4, |
| 1938 | .audio_inputs = 1, |
| 1939 | .tuner = -1, |
| 1940 | #if 0 /* TODO ... */ |
| 1941 | .svhs = OSPREY540_SVID_ANALOG, |
| 1942 | .muxsel = { [OSPREY540_COMP_ANALOG] = 2, |
| 1943 | [OSPREY540_SVID_ANALOG] = 3, }, |
| 1944 | #endif |
| 1945 | .pll = PLL_28, |
| 1946 | .tuner_type = -1, |
| 1947 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1948 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1949 | .no_msp34xx = 1, |
| 1950 | .no_tda9875 = 1, |
| 1951 | .no_tda7432 = 1, |
| 1952 | #if 0 /* TODO ... */ |
| 1953 | .muxsel_hook = osprey_540_muxsel, |
| 1954 | .picture_hook = osprey_540_set_picture, |
| 1955 | #endif |
| 1956 | }, |
| 1957 | |
| 1958 | /* ---- card 0x5C ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1959 | [BTTV_BOARD_OSPREY2000] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1960 | .name = "Osprey 2000", /* 2000 */ |
| 1961 | .video_inputs = 2, |
| 1962 | .audio_inputs = 1, |
| 1963 | .tuner = -1, |
| 1964 | .svhs = 1, |
| 1965 | .muxsel = { 2, 3 }, |
| 1966 | .pll = PLL_28, |
| 1967 | .tuner_type = UNSET, |
| 1968 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1969 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1970 | .no_msp34xx = 1, |
| 1971 | .no_tda9875 = 1, |
| 1972 | .no_tda7432 = 1, /* must avoid, conflicts with the bt860 */ |
| 1973 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1974 | [BTTV_BOARD_IDS_EAGLE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1975 | /* M G Berberich <berberic@forwiss.uni-passau.de> */ |
| 1976 | .name = "IDS Eagle", |
| 1977 | .video_inputs = 4, |
| 1978 | .audio_inputs = 0, |
| 1979 | .tuner = -1, |
| 1980 | .tuner_type = -1, |
| 1981 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1982 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1983 | .svhs = -1, |
| 1984 | .gpiomask = 0, |
| 1985 | .muxsel = { 0, 1, 2, 3 }, |
| 1986 | .muxsel_hook = eagle_muxsel, |
| 1987 | .no_msp34xx = 1, |
| 1988 | .no_tda9875 = 1, |
| 1989 | .pll = PLL_28, |
| 1990 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 1991 | [BTTV_BOARD_PINNACLESAT] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 1992 | .name = "Pinnacle PCTV Sat", |
| 1993 | .video_inputs = 2, |
| 1994 | .audio_inputs = 0, |
| 1995 | .svhs = 1, |
| 1996 | .tuner = -1, |
| 1997 | .tuner_type = -1, |
| 1998 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 1999 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2000 | .no_msp34xx = 1, |
| 2001 | .no_tda9875 = 1, |
| 2002 | .no_tda7432 = 1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2003 | .muxsel = { 3, 0, 1, 2 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2004 | .pll = PLL_28, |
| 2005 | .no_gpioirq = 1, |
| 2006 | .has_dvb = 1, |
| 2007 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2008 | [BTTV_BOARD_FORMAC_PROTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2009 | .name = "Formac ProTV II (bt878)", |
| 2010 | .video_inputs = 4, |
| 2011 | .audio_inputs = 1, |
| 2012 | .tuner = 0, |
| 2013 | .svhs = 3, |
| 2014 | .gpiomask = 2, |
| 2015 | /* TV, Comp1, Composite over SVID con, SVID */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2016 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2017 | .gpiomux = { 2, 2, 0, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2018 | .pll = PLL_28, |
| 2019 | .has_radio = 1, |
| 2020 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2021 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2022 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2023 | /* sound routing: |
| 2024 | GPIO=0x00,0x01,0x03: mute (?) |
| 2025 | 0x02: both TV and radio (tuner: FM1216/I) |
| 2026 | The card has onboard audio connectors labeled "cdrom" and "board", |
| 2027 | not soldered here, though unknown wiring. |
| 2028 | Card lacks: external audio in, pci subsystem id. |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 2029 | */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2030 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2031 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2032 | /* ---- card 0x60 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2033 | [BTTV_BOARD_MACHTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2034 | .name = "MachTV", |
| 2035 | .video_inputs = 3, |
| 2036 | .audio_inputs = 1, |
| 2037 | .tuner = 0, |
| 2038 | .svhs = -1, |
| 2039 | .gpiomask = 7, |
| 2040 | .muxsel = { 2, 3, 1, 1}, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2041 | .gpiomux = { 0, 1, 2, 3}, |
| 2042 | .gpiomute = 4, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2043 | .needs_tvaudio = 1, |
| 2044 | .tuner_type = 5, |
| 2045 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2046 | .radio_addr = ADDR_UNSET, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 2047 | .pll = PLL_28, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2048 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2049 | [BTTV_BOARD_EURESYS_PICOLO] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2050 | .name = "Euresys Picolo", |
| 2051 | .video_inputs = 3, |
| 2052 | .audio_inputs = 0, |
| 2053 | .tuner = -1, |
| 2054 | .svhs = 2, |
| 2055 | .gpiomask = 0, |
| 2056 | .no_msp34xx = 1, |
| 2057 | .no_tda9875 = 1, |
| 2058 | .no_tda7432 = 1, |
| 2059 | .muxsel = { 2, 0, 1}, |
| 2060 | .pll = PLL_28, |
| 2061 | .tuner_type = UNSET, |
| 2062 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2063 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2064 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2065 | [BTTV_BOARD_PV150] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2066 | /* Luc Van Hoeylandt <luc@e-magic.be> */ |
| 2067 | .name = "ProVideo PV150", /* 0x4f */ |
| 2068 | .video_inputs = 2, |
| 2069 | .audio_inputs = 0, |
| 2070 | .tuner = -1, |
| 2071 | .svhs = -1, |
| 2072 | .gpiomask = 0, |
| 2073 | .muxsel = { 2, 3 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2074 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2075 | .needs_tvaudio = 0, |
| 2076 | .no_msp34xx = 1, |
| 2077 | .pll = PLL_28, |
| 2078 | .tuner_type = UNSET, |
| 2079 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2080 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2081 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2082 | [BTTV_BOARD_AD_TVK503] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2083 | /* Hiroshi Takekawa <sian@big.or.jp> */ |
| 2084 | /* This card lacks subsystem ID */ |
| 2085 | .name = "AD-TVK503", /* 0x63 */ |
| 2086 | .video_inputs = 4, |
| 2087 | .audio_inputs = 1, |
| 2088 | .tuner = 0, |
| 2089 | .svhs = 2, |
| 2090 | .gpiomask = 0x001e8007, |
| 2091 | .muxsel = { 2, 3, 1, 0 }, |
| 2092 | /* Tuner, Radio, external, internal, off, on */ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2093 | .gpiomux = { 0x08, 0x0f, 0x0a, 0x08 }, |
| 2094 | .gpiomute = 0x0f, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2095 | .needs_tvaudio = 0, |
| 2096 | .no_msp34xx = 1, |
| 2097 | .pll = PLL_28, |
| 2098 | .tuner_type = 2, |
| 2099 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2100 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2101 | .audio_hook = adtvk503_audio, |
| 2102 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2103 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2104 | /* ---- card 0x64 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2105 | [BTTV_BOARD_HERCULES_SM_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2106 | .name = "Hercules Smart TV Stereo", |
| 2107 | .video_inputs = 4, |
| 2108 | .audio_inputs = 1, |
| 2109 | .tuner = 0, |
| 2110 | .svhs = 2, |
| 2111 | .gpiomask = 0x00, |
| 2112 | .muxsel = { 2, 3, 1, 1 }, |
| 2113 | .needs_tvaudio = 1, |
| 2114 | .no_msp34xx = 1, |
| 2115 | .pll = PLL_28, |
| 2116 | .tuner_type = 5, |
| 2117 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2118 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2119 | /* Notes: |
| 2120 | - card lacks subsystem ID |
| 2121 | - stereo variant w/ daughter board with tda9874a @0xb0 |
| 2122 | - Audio Routing: |
| 2123 | always from tda9874 independent of GPIO (?) |
| 2124 | external line in: unknown |
| 2125 | - Other chips: em78p156elp @ 0x96 (probably IR remote control) |
| 2126 | hef4053 (instead 4052) for unknown function |
| 2127 | */ |
| 2128 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2129 | [BTTV_BOARD_PACETV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2130 | .name = "Pace TV & Radio Card", |
| 2131 | .video_inputs = 4, |
| 2132 | .audio_inputs = 1, |
| 2133 | .tuner = 0, |
| 2134 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2135 | .muxsel = { 2, 3, 1, 1 }, /* Tuner, CVid, SVid, CVid over SVid connector */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2136 | .gpiomask = 0, |
| 2137 | .no_tda9875 = 1, |
| 2138 | .no_tda7432 = 1, |
| 2139 | .tuner_type = 1, |
| 2140 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2141 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2142 | .has_radio = 1, |
| 2143 | .pll = PLL_28, |
| 2144 | /* Bt878, Bt832, FI1246 tuner; no pci subsystem id |
| 2145 | only internal line out: (4pin header) RGGL |
| 2146 | Radio must be decoded by msp3410d (not routed through)*/ |
| 2147 | /* |
| 2148 | .digital_mode = DIGITAL_MODE_CAMERA, todo! |
| 2149 | */ |
| 2150 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2151 | [BTTV_BOARD_IVC200] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2152 | /* Chris Willing <chris@vislab.usyd.edu.au> */ |
| 2153 | .name = "IVC-200", |
| 2154 | .video_inputs = 1, |
| 2155 | .audio_inputs = 0, |
| 2156 | .tuner = -1, |
| 2157 | .tuner_type = -1, |
| 2158 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2159 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2160 | .svhs = -1, |
| 2161 | .gpiomask = 0xdf, |
| 2162 | .muxsel = { 2 }, |
| 2163 | .pll = PLL_28, |
| 2164 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2165 | [BTTV_BOARD_XGUARD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2166 | .name = "Grand X-Guard / Trust 814PCI", |
| 2167 | .video_inputs = 16, |
| 2168 | .audio_inputs = 0, |
| 2169 | .tuner = -1, |
| 2170 | .svhs = -1, |
| 2171 | .tuner_type = 4, |
| 2172 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2173 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2174 | .gpiomask2 = 0xff, |
| 2175 | .muxsel = { 2,2,2,2, 3,3,3,3, 1,1,1,1, 0,0,0,0 }, |
| 2176 | .muxsel_hook = xguard_muxsel, |
| 2177 | .no_msp34xx = 1, |
| 2178 | .no_tda9875 = 1, |
| 2179 | .no_tda7432 = 1, |
| 2180 | .pll = PLL_28, |
| 2181 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2182 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2183 | /* ---- card 0x68 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2184 | [BTTV_BOARD_NEBULA_DIGITV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2185 | .name = "Nebula Electronics DigiTV", |
| 2186 | .video_inputs = 1, |
| 2187 | .tuner = -1, |
| 2188 | .svhs = -1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2189 | .muxsel = { 2, 3, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2190 | .no_msp34xx = 1, |
| 2191 | .no_tda9875 = 1, |
| 2192 | .no_tda7432 = 1, |
| 2193 | .pll = PLL_28, |
| 2194 | .tuner_type = -1, |
| 2195 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2196 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2197 | .has_dvb = 1, |
Mark Weaver | 6c6c0b2 | 2005-11-13 16:07:52 -0800 | [diff] [blame] | 2198 | .has_remote = 1, |
| 2199 | .gpiomask = 0x1b, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2200 | .no_gpioirq = 1, |
| 2201 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2202 | [BTTV_BOARD_PV143] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2203 | /* Jorge Boncompte - DTI2 <jorge@dti2.net> */ |
| 2204 | .name = "ProVideo PV143", |
| 2205 | .video_inputs = 4, |
| 2206 | .audio_inputs = 0, |
| 2207 | .tuner = -1, |
| 2208 | .svhs = -1, |
| 2209 | .gpiomask = 0, |
| 2210 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2211 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2212 | .needs_tvaudio = 0, |
| 2213 | .no_msp34xx = 1, |
| 2214 | .pll = PLL_28, |
| 2215 | .tuner_type = -1, |
| 2216 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2217 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2218 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2219 | [BTTV_BOARD_VD009X1_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2220 | /* M.Klahr@phytec.de */ |
| 2221 | .name = "PHYTEC VD-009-X1 MiniDIN (bt878)", |
| 2222 | .video_inputs = 4, |
| 2223 | .audio_inputs = 0, |
| 2224 | .tuner = -1, /* card has no tuner */ |
| 2225 | .svhs = 3, |
| 2226 | .gpiomask = 0x00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2227 | .muxsel = { 2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2228 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2229 | .needs_tvaudio = 1, |
| 2230 | .pll = PLL_28, |
| 2231 | .tuner_type = -1, |
| 2232 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2233 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2234 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2235 | [BTTV_BOARD_VD009X1_COMBI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2236 | .name = "PHYTEC VD-009-X1 Combi (bt878)", |
| 2237 | .video_inputs = 4, |
| 2238 | .audio_inputs = 0, |
| 2239 | .tuner = -1, /* card has no tuner */ |
| 2240 | .svhs = 3, |
| 2241 | .gpiomask = 0x00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2242 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2243 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2244 | .needs_tvaudio = 1, |
| 2245 | .pll = PLL_28, |
| 2246 | .tuner_type = -1, |
| 2247 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2248 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2249 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2250 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2251 | /* ---- card 0x6c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2252 | [BTTV_BOARD_VD009_MINIDIN] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2253 | .name = "PHYTEC VD-009 MiniDIN (bt878)", |
| 2254 | .video_inputs = 10, |
| 2255 | .audio_inputs = 0, |
| 2256 | .tuner = -1, /* card has no tuner */ |
| 2257 | .svhs = 9, |
| 2258 | .gpiomask = 0x00, |
| 2259 | .gpiomask2 = 0x03, /* gpiomask2 defines the bits used to switch audio |
| 2260 | via the upper nibble of muxsel. here: used for |
| 2261 | xternal video-mux */ |
| 2262 | .muxsel = { 0x02, 0x12, 0x22, 0x32, 0x03, 0x13, 0x23, 0x33, 0x01, 0x00 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2263 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2264 | .needs_tvaudio = 1, |
| 2265 | .pll = PLL_28, |
| 2266 | .tuner_type = -1, |
| 2267 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2268 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2269 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2270 | [BTTV_BOARD_VD009_COMBI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2271 | .name = "PHYTEC VD-009 Combi (bt878)", |
| 2272 | .video_inputs = 10, |
| 2273 | .audio_inputs = 0, |
| 2274 | .tuner = -1, /* card has no tuner */ |
| 2275 | .svhs = 9, |
| 2276 | .gpiomask = 0x00, |
| 2277 | .gpiomask2 = 0x03, /* gpiomask2 defines the bits used to switch audio |
| 2278 | via the upper nibble of muxsel. here: used for |
| 2279 | xternal video-mux */ |
| 2280 | .muxsel = { 0x02, 0x12, 0x22, 0x32, 0x03, 0x13, 0x23, 0x33, 0x01, 0x01 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2281 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2282 | .needs_tvaudio = 1, |
| 2283 | .pll = PLL_28, |
| 2284 | .tuner_type = -1, |
| 2285 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2286 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2287 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2288 | [BTTV_BOARD_IVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2289 | .name = "IVC-100", |
| 2290 | .video_inputs = 4, |
| 2291 | .audio_inputs = 0, |
| 2292 | .tuner = -1, |
| 2293 | .tuner_type = -1, |
| 2294 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2295 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2296 | .svhs = -1, |
| 2297 | .gpiomask = 0xdf, |
| 2298 | .muxsel = { 2, 3, 1, 0 }, |
| 2299 | .pll = PLL_28, |
| 2300 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2301 | [BTTV_BOARD_IVC120] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2302 | /* IVC-120G - Alan Garfield <alan@fromorbit.com> */ |
| 2303 | .name = "IVC-120G", |
| 2304 | .video_inputs = 16, |
| 2305 | .audio_inputs = 0, /* card has no audio */ |
| 2306 | .tuner = -1, /* card has no tuner */ |
| 2307 | .tuner_type = -1, |
| 2308 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2309 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2310 | .svhs = -1, /* card has no svhs */ |
| 2311 | .needs_tvaudio = 0, |
| 2312 | .no_msp34xx = 1, |
| 2313 | .no_tda9875 = 1, |
| 2314 | .no_tda7432 = 1, |
| 2315 | .gpiomask = 0x00, |
| 2316 | .muxsel = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, |
| 2317 | 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10 }, |
| 2318 | .muxsel_hook = ivc120_muxsel, |
| 2319 | .pll = PLL_28, |
| 2320 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2321 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2322 | /* ---- card 0x70 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2323 | [BTTV_BOARD_PC_HDTV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2324 | .name = "pcHDTV HD-2000 TV", |
| 2325 | .video_inputs = 4, |
| 2326 | .audio_inputs = 1, |
| 2327 | .tuner = 0, |
| 2328 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2329 | .muxsel = { 2, 3, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2330 | .tuner_type = TUNER_PHILIPS_ATSC, |
| 2331 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2332 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2333 | .has_dvb = 1, |
| 2334 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2335 | [BTTV_BOARD_TWINHAN_DST] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2336 | .name = "Twinhan DST + clones", |
| 2337 | .no_msp34xx = 1, |
| 2338 | .no_tda9875 = 1, |
| 2339 | .no_tda7432 = 1, |
| 2340 | .tuner_type = TUNER_ABSENT, |
| 2341 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2342 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2343 | .no_video = 1, |
| 2344 | .has_dvb = 1, |
| 2345 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2346 | [BTTV_BOARD_WINFASTVC100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2347 | .name = "Winfast VC100", |
| 2348 | .video_inputs = 3, |
| 2349 | .audio_inputs = 0, |
| 2350 | .svhs = 1, |
| 2351 | .tuner = -1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2352 | .muxsel = { 3, 1, 1, 3 }, /* Vid In, SVid In, Vid over SVid in connector */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2353 | .no_msp34xx = 1, |
| 2354 | .no_tda9875 = 1, |
| 2355 | .no_tda7432 = 1, |
| 2356 | .tuner_type = TUNER_ABSENT, |
| 2357 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2358 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2359 | .pll = PLL_28, |
| 2360 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2361 | [BTTV_BOARD_TEV560] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2362 | .name = "Teppro TEV-560/InterVision IV-560", |
| 2363 | .video_inputs = 3, |
| 2364 | .audio_inputs = 1, |
| 2365 | .tuner = 0, |
| 2366 | .svhs = 2, |
| 2367 | .gpiomask = 3, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2368 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2369 | .gpiomux = { 1, 1, 1, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2370 | .needs_tvaudio = 1, |
| 2371 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2372 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2373 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2374 | .pll = PLL_35, |
| 2375 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2376 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2377 | /* ---- card 0x74 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2378 | [BTTV_BOARD_SIMUS_GVC1100] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2379 | .name = "SIMUS GVC1100", |
| 2380 | .video_inputs = 4, |
| 2381 | .audio_inputs = 0, |
| 2382 | .tuner = -1, |
| 2383 | .svhs = -1, |
| 2384 | .tuner_type = -1, |
| 2385 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2386 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2387 | .pll = PLL_28, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2388 | .muxsel = { 2, 2, 2, 2 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2389 | .gpiomask = 0x3F, |
| 2390 | .muxsel_hook = gvc1100_muxsel, |
| 2391 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2392 | [BTTV_BOARD_NGSTV_PLUS] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2393 | /* Carlos Silva r3pek@r3pek.homelinux.org || card 0x75 */ |
| 2394 | .name = "NGS NGSTV+", |
| 2395 | .video_inputs = 3, |
| 2396 | .tuner = 0, |
| 2397 | .svhs = 2, |
| 2398 | .gpiomask = 0x008007, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2399 | .muxsel = { 2, 3, 0, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2400 | .gpiomux = { 0, 0, 0, 0 }, |
| 2401 | .gpiomute = 0x000003, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2402 | .pll = PLL_28, |
| 2403 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2404 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2405 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2406 | .has_remote = 1, |
| 2407 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2408 | [BTTV_BOARD_LMLBT4] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2409 | /* http://linuxmedialabs.com */ |
| 2410 | .name = "LMLBT4", |
| 2411 | .video_inputs = 4, /* IN1,IN2,IN3,IN4 */ |
| 2412 | .audio_inputs = 0, |
| 2413 | .tuner = -1, |
| 2414 | .svhs = -1, |
| 2415 | .muxsel = { 2, 3, 1, 0 }, |
| 2416 | .no_msp34xx = 1, |
| 2417 | .no_tda9875 = 1, |
| 2418 | .no_tda7432 = 1, |
| 2419 | .needs_tvaudio = 0, |
| 2420 | .tuner_type = -1, |
| 2421 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2422 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2423 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2424 | [BTTV_BOARD_TEKRAM_M205] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2425 | /* Helmroos Harri <harri.helmroos@pp.inet.fi> */ |
| 2426 | .name = "Tekram M205 PRO", |
| 2427 | .video_inputs = 3, |
| 2428 | .audio_inputs = 1, |
| 2429 | .tuner = 0, |
| 2430 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2431 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2432 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2433 | .svhs = 2, |
| 2434 | .needs_tvaudio = 0, |
| 2435 | .gpiomask = 0x68, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2436 | .muxsel = { 2, 3, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2437 | .gpiomux = { 0x68, 0x68, 0x61, 0x61 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2438 | .pll = PLL_28, |
| 2439 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2440 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2441 | /* ---- card 0x78 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2442 | [BTTV_BOARD_CONTVFMI] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2443 | /* Javier Cendan Ares <jcendan@lycos.es> */ |
| 2444 | /* bt878 TV + FM without subsystem ID */ |
| 2445 | .name = "Conceptronic CONTVFMi", |
| 2446 | .video_inputs = 3, |
| 2447 | .audio_inputs = 1, |
| 2448 | .tuner = 0, |
| 2449 | .svhs = 2, |
| 2450 | .gpiomask = 0x008007, |
| 2451 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2452 | .gpiomux = { 0, 1, 2, 2 }, |
| 2453 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2454 | .needs_tvaudio = 0, |
| 2455 | .pll = PLL_28, |
| 2456 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2457 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2458 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2459 | .has_remote = 1, |
| 2460 | .has_radio = 1, |
| 2461 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2462 | [BTTV_BOARD_PICOLO_TETRA_CHIP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2463 | /*Eric DEBIEF <debief@telemsa.com>*/ |
| 2464 | /*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] | 2465 | /* 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] | 2466 | /*0x79 in bttv.h*/ |
| 2467 | .name = "Euresys Picolo Tetra", |
| 2468 | .video_inputs = 4, |
| 2469 | .audio_inputs = 0, |
| 2470 | .tuner = -1, |
| 2471 | .svhs = -1, |
| 2472 | .gpiomask = 0, |
| 2473 | .gpiomask2 = 0x3C<<16,/*Set the GPIO[18]->GPIO[21] as output pin.==> drive the video inputs through analog multiplexers*/ |
| 2474 | .no_msp34xx = 1, |
| 2475 | .no_tda9875 = 1, |
| 2476 | .no_tda7432 = 1, |
| 2477 | .muxsel = {2,2,2,2},/*878A input is always MUX0, see above.*/ |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2478 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2479 | .pll = PLL_28, |
| 2480 | .needs_tvaudio = 0, |
| 2481 | .muxsel_hook = picolo_tetra_muxsel,/*Required as it doesn't follow the classic input selection policy*/ |
| 2482 | .tuner_type = -1, |
| 2483 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2484 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2485 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2486 | [BTTV_BOARD_SPIRIT_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2487 | /* Spirit TV Tuner from http://spiritmodems.com.au */ |
| 2488 | /* Stafford Goodsell <surge@goliath.homeunix.org> */ |
| 2489 | .name = "Spirit TV Tuner", |
| 2490 | .video_inputs = 3, |
| 2491 | .audio_inputs = 1, |
| 2492 | .tuner = 0, |
| 2493 | .svhs = 2, |
| 2494 | .gpiomask = 0x0000000f, |
| 2495 | .muxsel = { 2, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2496 | .gpiomux = { 0x02, 0x00, 0x00, 0x00 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2497 | .tuner_type = TUNER_TEMIC_PAL, |
| 2498 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2499 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2500 | .no_msp34xx = 1, |
| 2501 | .no_tda9875 = 1, |
| 2502 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2503 | [BTTV_BOARD_AVDVBT_771] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2504 | /* Wolfram Joost <wojo@frokaschwei.de> */ |
| 2505 | .name = "AVerMedia AVerTV DVB-T 771", |
| 2506 | .video_inputs = 2, |
| 2507 | .svhs = 1, |
| 2508 | .tuner = -1, |
| 2509 | .tuner_type = TUNER_ABSENT, |
| 2510 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2511 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2512 | .muxsel = { 3 , 3 }, |
| 2513 | .no_msp34xx = 1, |
| 2514 | .no_tda9875 = 1, |
| 2515 | .no_tda7432 = 1, |
| 2516 | .pll = PLL_28, |
| 2517 | .has_dvb = 1, |
| 2518 | .no_gpioirq = 1, |
| 2519 | .has_remote = 1, |
| 2520 | }, |
| 2521 | /* ---- card 0x7c ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2522 | [BTTV_BOARD_AVDVBT_761] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2523 | /* Matt Jesson <dvb@jesson.eclipse.co.uk> */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2524 | /* 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] | 2525 | .name = "AverMedia AverTV DVB-T 761", |
| 2526 | .video_inputs = 2, |
| 2527 | .tuner = -1, |
| 2528 | .svhs = 1, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2529 | .muxsel = { 3, 1, 2, 0 }, /* Comp0, S-Video, ?, ? */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2530 | .no_msp34xx = 1, |
| 2531 | .no_tda9875 = 1, |
| 2532 | .no_tda7432 = 1, |
| 2533 | .pll = PLL_28, |
| 2534 | .tuner_type = -1, |
| 2535 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2536 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2537 | .has_dvb = 1, |
| 2538 | .no_gpioirq = 1, |
| 2539 | .has_remote = 1, |
| 2540 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2541 | [BTTV_BOARD_MATRIX_VISIONSQ] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2542 | /* andre.schwarz@matrix-vision.de */ |
| 2543 | .name = "MATRIX Vision Sigma-SQ", |
| 2544 | .video_inputs = 16, |
| 2545 | .audio_inputs = 0, |
| 2546 | .tuner = -1, |
| 2547 | .svhs = -1, |
| 2548 | .gpiomask = 0x0, |
| 2549 | .muxsel = { 2, 2, 2, 2, 2, 2, 2, 2, |
| 2550 | 3, 3, 3, 3, 3, 3, 3, 3 }, |
| 2551 | .muxsel_hook = sigmaSQ_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2552 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2553 | .no_msp34xx = 1, |
| 2554 | .pll = PLL_28, |
| 2555 | .tuner_type = -1, |
| 2556 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2557 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2558 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2559 | [BTTV_BOARD_MATRIX_VISIONSLC] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2560 | /* andre.schwarz@matrix-vision.de */ |
| 2561 | .name = "MATRIX Vision Sigma-SLC", |
| 2562 | .video_inputs = 4, |
| 2563 | .audio_inputs = 0, |
| 2564 | .tuner = -1, |
| 2565 | .svhs = -1, |
| 2566 | .gpiomask = 0x0, |
| 2567 | .muxsel = { 2, 2, 2, 2 }, |
| 2568 | .muxsel_hook = sigmaSLC_muxsel, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2569 | .gpiomux = { 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2570 | .no_msp34xx = 1, |
| 2571 | .pll = PLL_28, |
| 2572 | .tuner_type = -1, |
| 2573 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2574 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2575 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2576 | /* BTTV_BOARD_APAC_VIEWCOMP */ |
| 2577 | [BTTV_BOARD_APAC_VIEWCOMP] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2578 | /* Attila Kondoros <attila.kondoros@chello.hu> */ |
| 2579 | /* bt878 TV + FM 0x00000000 subsystem ID */ |
| 2580 | .name = "APAC Viewcomp 878(AMAX)", |
| 2581 | .video_inputs = 2, |
| 2582 | .audio_inputs = 1, |
| 2583 | .tuner = 0, |
| 2584 | .svhs = -1, |
| 2585 | .gpiomask = 0xFF, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2586 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2587 | .gpiomux = { 2, 0, 0, 0 }, |
| 2588 | .gpiomute = 10, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2589 | .needs_tvaudio = 0, |
| 2590 | .pll = PLL_28, |
| 2591 | .tuner_type = TUNER_PHILIPS_PAL, |
| 2592 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2593 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2594 | .has_remote = 1, /* miniremote works, see ir-kbd-gpio.c */ |
| 2595 | .has_radio = 1, /* not every card has radio */ |
| 2596 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2597 | |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2598 | /* ---- card 0x80 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2599 | [BTTV_BOARD_DVICO_DVBT_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2600 | /* Chris Pascoe <c.pascoe@itee.uq.edu.au> */ |
| 2601 | .name = "DViCO FusionHDTV DVB-T Lite", |
| 2602 | .tuner = -1, |
| 2603 | .no_msp34xx = 1, |
| 2604 | .no_tda9875 = 1, |
| 2605 | .no_tda7432 = 1, |
| 2606 | .pll = PLL_28, |
| 2607 | .no_video = 1, |
| 2608 | .has_dvb = 1, |
| 2609 | .tuner_type = -1, |
| 2610 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2611 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2612 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2613 | [BTTV_BOARD_VGEAR_MYVCD] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2614 | /* Steven <photon38@pchome.com.tw> */ |
| 2615 | .name = "V-Gear MyVCD", |
| 2616 | .video_inputs = 3, |
| 2617 | .audio_inputs = 1, |
| 2618 | .tuner = 0, |
| 2619 | .svhs = 2, |
| 2620 | .gpiomask = 0x3f, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2621 | .muxsel = {2, 3, 1, 0 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2622 | .gpiomux = {0x31, 0x31, 0x31, 0x31 }, |
| 2623 | .gpiomute = 0x31, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2624 | .no_msp34xx = 1, |
| 2625 | .pll = PLL_28, |
| 2626 | .tuner_type = TUNER_PHILIPS_NTSC_M, |
| 2627 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2628 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2629 | .has_radio = 0, |
| 2630 | #if 0 |
| 2631 | .has_remote = 1, |
| 2632 | #endif |
| 2633 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2634 | [BTTV_BOARD_SUPER_TV] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2635 | /* Rick C <cryptdragoon@gmail.com> */ |
| 2636 | .name = "Super TV Tuner", |
| 2637 | .video_inputs = 4, |
| 2638 | .audio_inputs = 1, |
| 2639 | .tuner = 0, |
| 2640 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2641 | .muxsel = { 2, 3, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2642 | .tuner_type = TUNER_PHILIPS_NTSC, |
| 2643 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2644 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2645 | .gpiomask = 0x008007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2646 | .gpiomux = { 0, 0x000001,0,0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2647 | .needs_tvaudio = 1, |
| 2648 | .has_radio = 1, |
| 2649 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2650 | [BTTV_BOARD_TIBET_CS16] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2651 | /* Chris Fanning <video4linux@haydon.net> */ |
| 2652 | .name = "Tibet Systems 'Progress DVR' CS16", |
| 2653 | .video_inputs = 16, |
| 2654 | .audio_inputs = 0, |
| 2655 | .tuner = -1, |
| 2656 | .svhs = -1, |
| 2657 | .muxsel = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, |
| 2658 | .pll = PLL_28, |
| 2659 | .no_msp34xx = 1, |
| 2660 | .no_tda9875 = 1, |
| 2661 | .no_tda7432 = 1, |
| 2662 | .tuner_type = -1, |
| 2663 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2664 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2665 | .muxsel_hook = tibetCS16_muxsel, |
| 2666 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2667 | [BTTV_BOARD_KODICOM_4400R] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2668 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2669 | /* |
| 2670 | * Note that, because of the card's wiring, the "master" |
| 2671 | * BT878A chip (i.e. the one which controls the analog switch |
| 2672 | * and must use this card type) is the 2nd one detected. The |
| 2673 | * other 3 chips should use card type 0x85, whose description |
| 2674 | * follows this one. There is a EEPROM on the card (which is |
| 2675 | * connected to the I2C of one of those other chips), but is |
| 2676 | * not currently handled. There is also a facility for a |
| 2677 | * "monitor", which is also not currently implemented. |
| 2678 | */ |
| 2679 | .name = "Kodicom 4400R (master)", |
| 2680 | .video_inputs = 16, |
| 2681 | .audio_inputs = 0, |
| 2682 | .tuner = -1, |
| 2683 | .tuner_type = -1, |
| 2684 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2685 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2686 | .svhs = -1, |
| 2687 | /* GPIO bits 0-9 used for analog switch: |
| 2688 | * 00 - 03: camera selector |
| 2689 | * 04 - 06: channel (controller) selector |
| 2690 | * 07: data (1->on, 0->off) |
| 2691 | * 08: strobe |
| 2692 | * 09: reset |
| 2693 | * bit 16 is input from sync separator for the channel |
| 2694 | */ |
| 2695 | .gpiomask = 0x0003ff, |
| 2696 | .no_gpioirq = 1, |
| 2697 | .muxsel = { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 }, |
| 2698 | .pll = PLL_28, |
| 2699 | .no_msp34xx = 1, |
| 2700 | .no_tda7432 = 1, |
| 2701 | .no_tda9875 = 1, |
| 2702 | .muxsel_hook = kodicom4400r_muxsel, |
| 2703 | }, |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2704 | [BTTV_BOARD_KODICOM_4400R_SL] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2705 | /* Bill Brack <wbrack@mmm.com.hk> */ |
| 2706 | /* Note that, for reasons unknown, the "master" BT878A chip (i.e. the |
| 2707 | * one which controls the analog switch, and must use the card type) |
| 2708 | * is the 2nd one detected. The other 3 chips should use this card |
| 2709 | * type |
| 2710 | */ |
| 2711 | .name = "Kodicom 4400R (slave)", |
| 2712 | .video_inputs = 16, |
| 2713 | .audio_inputs = 0, |
| 2714 | .tuner = -1, |
| 2715 | .tuner_type = -1, |
| 2716 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2717 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2718 | .svhs = -1, |
| 2719 | .gpiomask = 0x010000, |
| 2720 | .no_gpioirq = 1, |
| 2721 | .muxsel = { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 }, |
| 2722 | .pll = PLL_28, |
| 2723 | .no_msp34xx = 1, |
| 2724 | .no_tda7432 = 1, |
| 2725 | .no_tda9875 = 1, |
| 2726 | .muxsel_hook = kodicom4400r_muxsel, |
| 2727 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2728 | /* ---- card 0x86---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2729 | [BTTV_BOARD_ADLINK_RTV24] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2730 | /* Michael Henson <mhenson@clarityvi.com> */ |
| 2731 | /* Adlink RTV24 with special unlock codes */ |
| 2732 | .name = "Adlink RTV24", |
| 2733 | .video_inputs = 4, |
| 2734 | .audio_inputs = 1, |
| 2735 | .tuner = 0, |
| 2736 | .svhs = 2, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2737 | .muxsel = { 2, 3, 1, 0 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2738 | .tuner_type = -1, |
| 2739 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2740 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2741 | .pll = PLL_28, |
| 2742 | }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2743 | /* ---- card 0x87---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2744 | [BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2745 | /* Michael Krufky <mkrufky@m1k.net> */ |
| 2746 | .name = "DViCO FusionHDTV 5 Lite", |
| 2747 | .tuner = 0, |
| 2748 | .tuner_type = TUNER_LG_TDVS_H062F, |
| 2749 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2750 | .radio_addr = ADDR_UNSET, |
Michael Krufky | 4b01741 | 2005-11-08 21:37:06 -0800 | [diff] [blame] | 2751 | .video_inputs = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2752 | .audio_inputs = 1, |
| 2753 | .svhs = 2, |
Michael Krufky | 4b01741 | 2005-11-08 21:37:06 -0800 | [diff] [blame] | 2754 | .muxsel = { 2, 3, 1 }, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2755 | .gpiomask = 0x00e00007, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2756 | .gpiomux = { 0x00400005, 0, 0x00000001, 0 }, |
| 2757 | .gpiomute = 0x00c00007, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2758 | .no_msp34xx = 1, |
| 2759 | .no_tda9875 = 1, |
| 2760 | .no_tda7432 = 1, |
| 2761 | .has_dvb = 1, |
| 2762 | }, |
| 2763 | /* ---- card 0x88---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2764 | [BTTV_BOARD_ACORP_Y878F] = { |
Mauro Carvalho Chehab | 2e7c6dc | 2006-04-03 07:53:40 -0300 | [diff] [blame^] | 2765 | /* Mauro Carvalho Chehab <mchehab@infradead.org> */ |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2766 | .name = "Acorp Y878F", |
| 2767 | .video_inputs = 3, |
| 2768 | .audio_inputs = 1, |
| 2769 | .tuner = 0, |
| 2770 | .svhs = 2, |
| 2771 | .gpiomask = 0x01fe00, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2772 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2773 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
| 2774 | .gpiomute = 0x002000, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2775 | .needs_tvaudio = 1, |
| 2776 | .pll = PLL_28, |
| 2777 | .tuner_type = TUNER_YMEC_TVF66T5_B_DFF, |
| 2778 | .tuner_addr = 0xc1 >>1, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2779 | .radio_addr = 0xc1 >>1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2780 | .has_radio = 1, |
| 2781 | }, |
| 2782 | /* ---- card 0x89 ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2783 | [BTTV_BOARD_CONCEPTRONIC_CTVFMI2] = { |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2784 | .name = "Conceptronic CTVFMi v2", |
| 2785 | .video_inputs = 3, |
| 2786 | .audio_inputs = 1, |
| 2787 | .tuner = 0, |
| 2788 | .svhs = 2, |
| 2789 | .gpiomask = 0x001c0007, |
| 2790 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2791 | .gpiomux = { 0, 1, 2, 2 }, |
| 2792 | .gpiomute = 3, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2793 | .needs_tvaudio = 0, |
| 2794 | .pll = PLL_28, |
Ricardo Cerqueira | 24d4122 | 2005-11-08 21:38:21 -0800 | [diff] [blame] | 2795 | .tuner_type = TUNER_TENA_9533_DI, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2796 | .tuner_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2797 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2798 | .has_remote = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2799 | .has_radio = 1, |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 2800 | }, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2801 | /* ---- card 0x8a ---------------------------------- */ |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 2802 | [BTTV_BOARD_PV_BT878P_2E] = { |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2803 | .name = "Prolink Pixelview PV-BT878P+ (Rev.2E)", |
| 2804 | .video_inputs = 5, |
| 2805 | .audio_inputs = 1, |
| 2806 | .tuner = 0, |
| 2807 | .svhs = 3, |
| 2808 | .gpiomask = 0x01fe00, |
| 2809 | .muxsel = { 2,3,1,1,-1 }, |
| 2810 | .digital_mode = DIGITAL_MODE_CAMERA, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2811 | .gpiomux = { 0x00400, 0x10400, 0x04400, 0x80000 }, |
| 2812 | .gpiomute = 0x12400, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2813 | .no_msp34xx = 1, |
| 2814 | .pll = PLL_28, |
| 2815 | .tuner_type = TUNER_LG_PAL_FM, |
| 2816 | .tuner_addr = ADDR_UNSET, |
| 2817 | .radio_addr = ADDR_UNSET, |
| 2818 | .has_remote = 1, |
| 2819 | }, |
| 2820 | /* ---- card 0x8b ---------------------------------- */ |
| 2821 | [BTTV_BOARD_PV_M4900] = { |
| 2822 | /* Sérgio Fortier <sergiofortier@yahoo.com.br> */ |
| 2823 | .name = "Prolink PixelView PlayTV MPEG2 PV-M4900", |
| 2824 | .video_inputs = 3, |
| 2825 | .audio_inputs = 1, |
| 2826 | .tuner = 0, |
| 2827 | .svhs = 2, |
| 2828 | .gpiomask = 0x3f, |
| 2829 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2830 | .gpiomux = { 0x21, 0x20, 0x24, 0x2c }, |
| 2831 | .gpiomute = 0x29, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2832 | .no_msp34xx = 1, |
| 2833 | .pll = PLL_28, |
| 2834 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
| 2835 | .tuner_addr = ADDR_UNSET, |
| 2836 | .radio_addr = ADDR_UNSET, |
| 2837 | .has_radio = 1, |
| 2838 | .has_remote = 1, |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2839 | }, |
Michael Krufky | cf583ac | 2005-11-08 21:37:03 -0800 | [diff] [blame] | 2840 | /* ---- card 0x8c ---------------------------------- */ |
Kenth Andersson | f718e6e | 2005-11-08 21:37:02 -0800 | [diff] [blame] | 2841 | [BTTV_BOARD_OSPREY440] = { |
| 2842 | .name = "Osprey 440", |
| 2843 | .video_inputs = 1, |
| 2844 | .audio_inputs = 1, |
| 2845 | .tuner = -1, |
| 2846 | .svhs = 1, |
| 2847 | .muxsel = { 2 }, |
| 2848 | .pll = PLL_28, |
| 2849 | .tuner_type = UNSET, |
| 2850 | .tuner_addr = ADDR_UNSET, |
| 2851 | .radio_addr = ADDR_UNSET, |
| 2852 | .no_msp34xx = 1, |
| 2853 | .no_tda9875 = 1, |
| 2854 | .no_tda7432 = 1, |
| 2855 | }, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2856 | /* ---- card 0x8d ---------------------------------- */ |
| 2857 | [BTTV_BOARD_ASOUND_SKYEYE] = { |
| 2858 | .name = "Asound Skyeye PCTV", |
| 2859 | .video_inputs = 3, |
| 2860 | .audio_inputs = 1, |
| 2861 | .tuner = 0, |
| 2862 | .svhs = 2, |
| 2863 | .gpiomask = 15, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2864 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2865 | .gpiomux = { 2, 0, 0, 0 }, |
| 2866 | .gpiomute = 1, |
nshmyrev@yandex.ru | 71633c0 | 2005-11-08 21:37:38 -0800 | [diff] [blame] | 2867 | .needs_tvaudio = 1, |
| 2868 | .pll = PLL_28, |
| 2869 | .tuner_type = 2, |
| 2870 | .tuner_addr = ADDR_UNSET, |
| 2871 | .radio_addr = ADDR_UNSET, |
| 2872 | }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2873 | /* ---- card 0x8e ---------------------------------- */ |
| 2874 | [BTTV_BOARD_SABRENT_TVFM] = { |
| 2875 | .name = "Sabrent TV-FM (bttv version)", |
| 2876 | .video_inputs = 3, |
| 2877 | .audio_inputs = 1, |
| 2878 | .tuner = 0, |
| 2879 | .svhs = 2, |
| 2880 | .gpiomask = 0x108007, |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2881 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2882 | .gpiomux = { 100000, 100002, 100002, 100000 }, |
Bill Pechter | 633323f | 2005-11-13 16:07:50 -0800 | [diff] [blame] | 2883 | .no_msp34xx = 1, |
| 2884 | .no_tda9875 = 1, |
| 2885 | .no_tda7432 = 1, |
| 2886 | .pll = PLL_28, |
| 2887 | .tuner_type = TUNER_TNF_5335MF, |
| 2888 | .tuner_addr = ADDR_UNSET, |
| 2889 | .has_radio = 1, |
| 2890 | }, |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2891 | /* ---- card 0x8f ---------------------------------- */ |
| 2892 | [BTTV_BOARD_HAUPPAUGE_IMPACTVCB] = { |
| 2893 | .name = "Hauppauge ImpactVCB (bt878)", |
| 2894 | .video_inputs = 4, |
| 2895 | .audio_inputs = 0, |
| 2896 | .tuner = -1, |
| 2897 | .svhs = -1, |
| 2898 | .gpiomask = 0x0f, /* old: 7 */ |
Michael Krufky | bc28636 | 2006-01-11 19:40:17 -0200 | [diff] [blame] | 2899 | .muxsel = { 0, 1, 3, 2 }, /* Composite 0-3 */ |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 2900 | .no_msp34xx = 1, |
| 2901 | .no_tda9875 = 1, |
| 2902 | .no_tda7432 = 1, |
| 2903 | .tuner_type = -1, |
| 2904 | .tuner_addr = ADDR_UNSET, |
| 2905 | .radio_addr = ADDR_UNSET, |
| 2906 | }, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2907 | [BTTV_BOARD_MACHTV_MAGICTV] = { |
| 2908 | /* Julian Calaby <julian.calaby@gmail.com> |
| 2909 | * Slightly different from original MachTV definition (0x60) |
| 2910 | |
| 2911 | * FIXME: RegSpy says gpiomask should be "0x001c800f", but it |
| 2912 | * stuffs up remote chip. Bug is a pin on the jaecs is not set |
| 2913 | * properly (methinks) causing no keyup bits being set */ |
| 2914 | |
| 2915 | .name = "MagicTV", /* rebranded MachTV */ |
| 2916 | .video_inputs = 3, |
| 2917 | .audio_inputs = 1, |
| 2918 | .tuner = 0, |
| 2919 | .svhs = 2, |
| 2920 | .gpiomask = 7, |
| 2921 | .muxsel = { 2, 3, 1, 1 }, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2922 | .gpiomux = { 0, 1, 2, 3 }, |
| 2923 | .gpiomute = 4, |
Julian Calaby | 2d05ae6 | 2006-01-11 19:40:09 -0200 | [diff] [blame] | 2924 | .tuner_type = TUNER_TEMIC_4009FR5_PAL, |
| 2925 | .tuner_addr = ADDR_UNSET, |
| 2926 | .radio_addr = ADDR_UNSET, |
| 2927 | .pll = PLL_28, |
| 2928 | .has_radio = 1, |
| 2929 | .has_remote = 1, |
| 2930 | }, |
Mauro Carvalho Chehab | 10c2c8b | 2005-11-08 21:36:56 -0800 | [diff] [blame] | 2931 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2932 | |
| 2933 | static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards); |
| 2934 | |
| 2935 | /* ----------------------------------------------------------------------- */ |
| 2936 | |
| 2937 | static unsigned char eeprom_data[256]; |
| 2938 | |
| 2939 | /* |
| 2940 | * identify card |
| 2941 | */ |
| 2942 | void __devinit bttv_idcard(struct bttv *btv) |
| 2943 | { |
| 2944 | unsigned int gpiobits; |
| 2945 | int i,type; |
| 2946 | unsigned short tmp; |
| 2947 | |
| 2948 | /* read PCI subsystem ID */ |
| 2949 | pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_ID, &tmp); |
| 2950 | btv->cardid = tmp << 16; |
| 2951 | pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_VENDOR_ID, &tmp); |
| 2952 | btv->cardid |= tmp; |
| 2953 | |
| 2954 | if (0 != btv->cardid && 0xffffffff != btv->cardid) { |
| 2955 | /* look for the card */ |
| 2956 | for (type = -1, i = 0; cards[i].id != 0; i++) |
| 2957 | if (cards[i].id == btv->cardid) |
| 2958 | type = i; |
| 2959 | |
| 2960 | if (type != -1) { |
| 2961 | /* found it */ |
| 2962 | printk(KERN_INFO "bttv%d: detected: %s [card=%d], " |
| 2963 | "PCI subsystem ID is %04x:%04x\n", |
| 2964 | btv->c.nr,cards[type].name,cards[type].cardnr, |
| 2965 | btv->cardid & 0xffff, |
| 2966 | (btv->cardid >> 16) & 0xffff); |
| 2967 | btv->c.type = cards[type].cardnr; |
| 2968 | } else { |
| 2969 | /* 404 */ |
| 2970 | printk(KERN_INFO "bttv%d: subsystem: %04x:%04x (UNKNOWN)\n", |
| 2971 | btv->c.nr, btv->cardid & 0xffff, |
| 2972 | (btv->cardid >> 16) & 0xffff); |
| 2973 | printk(KERN_DEBUG "please mail id, board name and " |
Michael Krufky | 2a2d857 | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 2974 | "the correct card= insmod option to video4linux-list@redhat.com\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2975 | } |
| 2976 | } |
| 2977 | |
| 2978 | /* let the user override the autodetected type */ |
| 2979 | if (card[btv->c.nr] < bttv_num_tvcards) |
| 2980 | btv->c.type=card[btv->c.nr]; |
| 2981 | |
| 2982 | /* print which card config we are using */ |
| 2983 | printk(KERN_INFO "bttv%d: using: %s [card=%d,%s]\n",btv->c.nr, |
| 2984 | bttv_tvcards[btv->c.type].name, btv->c.type, |
| 2985 | card[btv->c.nr] < bttv_num_tvcards |
| 2986 | ? "insmod option" : "autodetected"); |
| 2987 | |
| 2988 | /* overwrite gpio stuff ?? */ |
| 2989 | if (UNSET == audioall && UNSET == audiomux[0]) |
| 2990 | return; |
| 2991 | |
| 2992 | if (UNSET != audiomux[0]) { |
| 2993 | gpiobits = 0; |
Adrian Bunk | 68a26ae | 2006-04-28 10:48:41 -0300 | [diff] [blame] | 2994 | for (i = 0; i < 4; i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 2995 | bttv_tvcards[btv->c.type].gpiomux[i] = audiomux[i]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2996 | gpiobits |= audiomux[i]; |
| 2997 | } |
| 2998 | } else { |
| 2999 | gpiobits = audioall; |
Adrian Bunk | 68a26ae | 2006-04-28 10:48:41 -0300 | [diff] [blame] | 3000 | for (i = 0; i < 4; i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 3001 | bttv_tvcards[btv->c.type].gpiomux[i] = audioall; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3002 | } |
| 3003 | } |
| 3004 | bttv_tvcards[btv->c.type].gpiomask = (UNSET != gpiomask) ? gpiomask : gpiobits; |
| 3005 | printk(KERN_INFO "bttv%d: gpio config override: mask=0x%x, mux=", |
| 3006 | btv->c.nr,bttv_tvcards[btv->c.type].gpiomask); |
| 3007 | for (i = 0; i < 5; i++) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 3008 | printk("%s0x%x", i ? "," : "", bttv_tvcards[btv->c.type].gpiomux[i]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3009 | } |
| 3010 | printk("\n"); |
| 3011 | } |
| 3012 | |
| 3013 | /* |
| 3014 | * (most) board specific initialisations goes here |
| 3015 | */ |
| 3016 | |
| 3017 | /* Some Modular Technology cards have an eeprom, but no subsystem ID */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 3018 | 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] | 3019 | { |
| 3020 | int type = -1; |
| 3021 | |
| 3022 | if (0 == strncmp(eeprom_data,"GET MM20xPCTV",13)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3023 | type = BTTV_BOARD_MODTEC_205; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3024 | else if (0 == strncmp(eeprom_data+20,"Picolo",7)) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3025 | type = BTTV_BOARD_EURESYS_PICOLO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3026 | else if (eeprom_data[0] == 0x84 && eeprom_data[2]== 0) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3027 | type = BTTV_BOARD_HAUPPAUGE; /* old bt848 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3028 | |
| 3029 | if (-1 != type) { |
| 3030 | btv->c.type = type; |
| 3031 | printk("bttv%d: detected by eeprom: %s [card=%d]\n", |
| 3032 | btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type); |
| 3033 | } |
| 3034 | } |
| 3035 | |
| 3036 | static void flyvideo_gpio(struct bttv *btv) |
| 3037 | { |
| 3038 | int gpio,has_remote,has_radio,is_capture_only,is_lr90,has_tda9820_tda9821; |
| 3039 | int tuner=-1,ttype; |
| 3040 | |
| 3041 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3042 | udelay(8); /* without this we would see the 0x1800 mask */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3043 | gpio = gpio_read(); |
| 3044 | /* FIXME: must restore OUR_EN ??? */ |
| 3045 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3046 | /* all cards provide GPIO info, some have an additional eeprom |
| 3047 | * LR50: GPIO coding can be found lower right CP1 .. CP9 |
| 3048 | * CP9=GPIO23 .. CP1=GPIO15; when OPEN, the corresponding GPIO reads 1. |
| 3049 | * GPIO14-12: n.c. |
| 3050 | * LR90: GP9=GPIO23 .. GP1=GPIO15 (right above the bt878) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3051 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3052 | * lowest 3 bytes are remote control codes (no handshake needed) |
| 3053 | * xxxFFF: No remote control chip soldered |
| 3054 | * xxxF00(LR26/LR50), xxxFE0(LR90): Remote control chip (LVA001 or CF45) soldered |
| 3055 | * Note: Some bits are Audio_Mask ! |
| 3056 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3057 | ttype=(gpio&0x0f0000)>>16; |
| 3058 | switch(ttype) { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3059 | case 0x0: tuner=2; /* NTSC, e.g. TPI8NSR11P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3060 | break; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3061 | case 0x2: tuner=39;/* LG NTSC (newer TAPC series) TAPC-H701P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3062 | break; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3063 | case 0x4: tuner=5; /* Philips PAL TPI8PSB02P, TPI8PSB12P, TPI8PSB12D or FI1216, FM1216 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3064 | break; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3065 | case 0x6: tuner=37;/* LG PAL (newer TAPC series) TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3066 | break; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3067 | case 0xC: tuner=3; /* Philips SECAM(+PAL) FQ1216ME or FI1216MF */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3068 | break; |
| 3069 | default: |
| 3070 | printk(KERN_INFO "bttv%d: FlyVideo_gpio: unknown tuner type.\n", btv->c.nr); |
| 3071 | } |
| 3072 | |
| 3073 | has_remote = gpio & 0x800000; |
| 3074 | has_radio = gpio & 0x400000; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3075 | /* unknown 0x200000; |
| 3076 | * unknown2 0x100000; */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3077 | is_capture_only = !(gpio & 0x008000); /* GPIO15 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3078 | has_tda9820_tda9821 = !(gpio & 0x004000); |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3079 | is_lr90 = !(gpio & 0x002000); /* else LR26/LR50 (LR38/LR51 f. capture only) */ |
| 3080 | /* |
| 3081 | * gpio & 0x001000 output bit for audio routing */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3082 | |
| 3083 | if(is_capture_only) |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3084 | tuner=4; /* No tuner present */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3085 | |
| 3086 | printk(KERN_INFO "bttv%d: FlyVideo Radio=%s RemoteControl=%s Tuner=%d gpio=0x%06x\n", |
| 3087 | btv->c.nr, has_radio? "yes":"no ", has_remote? "yes":"no ", tuner, gpio); |
| 3088 | printk(KERN_INFO "bttv%d: FlyVideo LR90=%s tda9821/tda9820=%s capture_only=%s\n", |
| 3089 | btv->c.nr, is_lr90?"yes":"no ", has_tda9820_tda9821?"yes":"no ", |
| 3090 | is_capture_only?"yes":"no "); |
| 3091 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3092 | if(tuner!= -1) /* only set if known tuner autodetected, else let insmod option through */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3093 | btv->tuner_type = tuner; |
| 3094 | btv->has_radio = has_radio; |
| 3095 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3096 | /* LR90 Audio Routing is done by 2 hef4052, so Audio_Mask has 4 bits: 0x001c80 |
| 3097 | * LR26/LR50 only has 1 hef4052, Audio_Mask 0x000c00 |
| 3098 | * Audio options: from tuner, from tda9821/tda9821(mono,stereo,sap), from tda9874, ext., mute */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3099 | if(has_tda9820_tda9821) btv->audio_hook = lt9415_audio; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3100 | /* todo: if(has_tda9874) btv->audio_hook = fv2000s_audio; */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3101 | } |
| 3102 | |
| 3103 | static int miro_tunermap[] = { 0,6,2,3, 4,5,6,0, 3,0,4,5, 5,2,16,1, |
| 3104 | 14,2,17,1, 4,1,4,3, 1,2,16,1, 4,4,4,4 }; |
| 3105 | static int miro_fmtuner[] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1, |
| 3106 | 1,1,1,1, 1,1,1,0, 0,0,0,0, 0,1,0,0 }; |
| 3107 | |
| 3108 | static void miro_pinnacle_gpio(struct bttv *btv) |
| 3109 | { |
| 3110 | int id,msp,gpio; |
| 3111 | char *info; |
| 3112 | |
| 3113 | gpio_inout(0xffffff, 0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3114 | gpio = gpio_read(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3115 | id = ((gpio>>10) & 63) -1; |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3116 | msp = bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3117 | if (id < 32) { |
| 3118 | btv->tuner_type = miro_tunermap[id]; |
| 3119 | if (0 == (gpio & 0x20)) { |
| 3120 | btv->has_radio = 1; |
| 3121 | if (!miro_fmtuner[id]) { |
| 3122 | btv->has_matchbox = 1; |
| 3123 | btv->mbox_we = (1<<6); |
| 3124 | btv->mbox_most = (1<<7); |
| 3125 | btv->mbox_clk = (1<<8); |
| 3126 | btv->mbox_data = (1<<9); |
| 3127 | btv->mbox_mask = (1<<6)|(1<<7)|(1<<8)|(1<<9); |
| 3128 | } |
| 3129 | } else { |
| 3130 | btv->has_radio = 0; |
| 3131 | } |
| 3132 | if (-1 != msp) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3133 | if (btv->c.type == BTTV_BOARD_MIRO) |
| 3134 | btv->c.type = BTTV_BOARD_MIROPRO; |
| 3135 | if (btv->c.type == BTTV_BOARD_PINNACLE) |
| 3136 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3137 | } |
| 3138 | printk(KERN_INFO |
| 3139 | "bttv%d: miro: id=%d tuner=%d radio=%s stereo=%s\n", |
| 3140 | btv->c.nr, id+1, btv->tuner_type, |
| 3141 | !btv->has_radio ? "no" : |
| 3142 | (btv->has_matchbox ? "matchbox" : "fmtuner"), |
| 3143 | (-1 == msp) ? "no" : "yes"); |
| 3144 | } else { |
| 3145 | /* new cards with microtune tuner */ |
| 3146 | id = 63 - id; |
| 3147 | btv->has_radio = 0; |
| 3148 | switch (id) { |
| 3149 | case 1: |
| 3150 | info = "PAL / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3151 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3152 | break; |
| 3153 | case 2: |
| 3154 | info = "PAL+SECAM / stereo"; |
| 3155 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3156 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3157 | break; |
| 3158 | case 3: |
| 3159 | info = "NTSC / stereo"; |
| 3160 | btv->has_radio = 1; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3161 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3162 | break; |
| 3163 | case 4: |
| 3164 | info = "PAL+SECAM / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3165 | btv->tda9887_conf = TDA9887_QSS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3166 | break; |
| 3167 | case 5: |
| 3168 | info = "NTSC / mono"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3169 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3170 | break; |
| 3171 | case 6: |
| 3172 | info = "NTSC / stereo"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3173 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3174 | break; |
| 3175 | case 7: |
| 3176 | info = "PAL / stereo"; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3177 | btv->tda9887_conf = TDA9887_INTERCARRIER; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3178 | break; |
| 3179 | default: |
| 3180 | info = "oops: unknown card"; |
| 3181 | break; |
| 3182 | } |
| 3183 | if (-1 != msp) |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3184 | btv->c.type = BTTV_BOARD_PINNACLEPRO; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3185 | printk(KERN_INFO |
| 3186 | "bttv%d: pinnacle/mt: id=%d info=\"%s\" radio=%s\n", |
| 3187 | btv->c.nr, id, info, btv->has_radio ? "yes" : "no"); |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3188 | btv->tuner_type = TUNER_MT2032; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3189 | } |
| 3190 | } |
| 3191 | |
| 3192 | /* GPIO21 L: Buffer aktiv, H: Buffer inaktiv */ |
| 3193 | #define LM1882_SYNC_DRIVE 0x200000L |
| 3194 | |
| 3195 | static void init_ids_eagle(struct bttv *btv) |
| 3196 | { |
| 3197 | gpio_inout(0xffffff,0xFFFF37); |
| 3198 | gpio_write(0x200020); |
| 3199 | |
| 3200 | /* flash strobe inverter ?! */ |
| 3201 | gpio_write(0x200024); |
| 3202 | |
| 3203 | /* switch sync drive off */ |
| 3204 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
| 3205 | |
| 3206 | /* set BT848 muxel to 2 */ |
| 3207 | btaor((2)<<5, ~(2<<5), BT848_IFORM); |
| 3208 | } |
| 3209 | |
| 3210 | /* Muxsel helper for the IDS Eagle. |
| 3211 | * the eagles does not use the standard muxsel-bits but |
| 3212 | * has its own multiplexer */ |
| 3213 | static void eagle_muxsel(struct bttv *btv, unsigned int input) |
| 3214 | { |
| 3215 | btaor((2)<<5, ~(3<<5), BT848_IFORM); |
| 3216 | gpio_bits(3,bttv_tvcards[btv->c.type].muxsel[input&7]); |
| 3217 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3218 | /* composite */ |
| 3219 | /* set chroma ADC to sleep */ |
| 3220 | btor(BT848_ADC_C_SLEEP, BT848_ADC); |
| 3221 | /* set to composite video */ |
| 3222 | btand(~BT848_CONTROL_COMP, BT848_E_CONTROL); |
| 3223 | btand(~BT848_CONTROL_COMP, BT848_O_CONTROL); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3224 | |
| 3225 | /* switch sync drive off */ |
| 3226 | gpio_bits(LM1882_SYNC_DRIVE,LM1882_SYNC_DRIVE); |
| 3227 | } |
| 3228 | |
| 3229 | static void gvc1100_muxsel(struct bttv *btv, unsigned int input) |
| 3230 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3231 | static const int masks[] = {0x30, 0x01, 0x12, 0x23}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3232 | gpio_write(masks[input%4]); |
| 3233 | } |
| 3234 | |
| 3235 | /* LMLBT4x initialization - to allow access to GPIO bits for sensors input and |
| 3236 | alarms output |
| 3237 | |
| 3238 | GPIObit | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| 3239 | assignment | TI | O3|INx| O2| O1|IN4|IN3|IN2|IN1| | | |
| 3240 | |
| 3241 | IN - sensor inputs, INx - sensor inputs and TI XORed together |
| 3242 | O1,O2,O3 - alarm outputs (relays) |
| 3243 | |
| 3244 | OUT ENABLE 1 1 0 . 1 1 0 0 . 0 0 0 0 = 0x6C0 |
| 3245 | |
| 3246 | */ |
| 3247 | |
| 3248 | static void init_lmlbt4x(struct bttv *btv) |
| 3249 | { |
| 3250 | printk(KERN_DEBUG "LMLBT4x init\n"); |
| 3251 | btwrite(0x000000, BT848_GPIO_REG_INP); |
| 3252 | gpio_inout(0xffffff, 0x0006C0); |
| 3253 | gpio_write(0x000000); |
| 3254 | } |
| 3255 | |
| 3256 | static void sigmaSQ_muxsel(struct bttv *btv, unsigned int input) |
| 3257 | { |
| 3258 | unsigned int inmux = input % 8; |
| 3259 | gpio_inout( 0xf, 0xf ); |
| 3260 | gpio_bits( 0xf, inmux ); |
| 3261 | } |
| 3262 | |
| 3263 | static void sigmaSLC_muxsel(struct bttv *btv, unsigned int input) |
| 3264 | { |
| 3265 | unsigned int inmux = input % 4; |
| 3266 | gpio_inout( 3<<9, 3<<9 ); |
| 3267 | gpio_bits( 3<<9, inmux<<9 ); |
| 3268 | } |
| 3269 | |
| 3270 | /* ----------------------------------------------------------------------- */ |
| 3271 | |
| 3272 | static void bttv_reset_audio(struct bttv *btv) |
| 3273 | { |
| 3274 | /* |
| 3275 | * BT878A has a audio-reset register. |
| 3276 | * 1. This register is an audio reset function but it is in |
| 3277 | * function-0 (video capture) address space. |
| 3278 | * 2. It is enough to do this once per power-up of the card. |
| 3279 | * 3. There is a typo in the Conexant doc -- it is not at |
| 3280 | * 0x5B, but at 0x058. (B is an odd-number, obviously a typo!). |
| 3281 | * --//Shrikumar 030609 |
| 3282 | */ |
| 3283 | if (btv->id != 878) |
| 3284 | return; |
| 3285 | |
| 3286 | if (bttv_debug) |
| 3287 | printk("bttv%d: BT878A ARESET\n",btv->c.nr); |
| 3288 | btwrite((1<<7), 0x058); |
| 3289 | udelay(10); |
| 3290 | btwrite( 0, 0x058); |
| 3291 | } |
| 3292 | |
| 3293 | /* initialization part one -- before registering i2c bus */ |
| 3294 | void __devinit bttv_init_card1(struct bttv *btv) |
| 3295 | { |
| 3296 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3297 | case BTTV_BOARD_HAUPPAUGE: |
| 3298 | case BTTV_BOARD_HAUPPAUGE878: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3299 | boot_msp34xx(btv,5); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3300 | break; |
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 | { |
| 3327 | int tda9887; |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3328 | int addr=ADDR_UNSET; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3329 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3330 | btv->tuner_type = -1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3331 | |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3332 | if (BTTV_BOARD_UNKNOWN == btv->c.type) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3333 | bttv_readee(btv,eeprom_data,0xa0); |
| 3334 | identify_by_eeprom(btv,eeprom_data); |
| 3335 | } |
| 3336 | |
| 3337 | switch (btv->c.type) { |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3338 | case BTTV_BOARD_MIRO: |
| 3339 | case BTTV_BOARD_MIROPRO: |
| 3340 | case BTTV_BOARD_PINNACLE: |
| 3341 | case BTTV_BOARD_PINNACLEPRO: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3342 | /* miro/pinnacle */ |
| 3343 | miro_pinnacle_gpio(btv); |
| 3344 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3345 | case BTTV_BOARD_FLYVIDEO_98: |
| 3346 | case BTTV_BOARD_MAXI: |
| 3347 | case BTTV_BOARD_LIFE_FLYKIT: |
| 3348 | case BTTV_BOARD_FLYVIDEO: |
| 3349 | case BTTV_BOARD_TYPHOON_TVIEW: |
| 3350 | case BTTV_BOARD_CHRONOS_VS2: |
| 3351 | case BTTV_BOARD_FLYVIDEO_98FM: |
| 3352 | case BTTV_BOARD_FLYVIDEO2000: |
| 3353 | case BTTV_BOARD_FLYVIDEO98EZ: |
| 3354 | case BTTV_BOARD_CONFERENCETV: |
| 3355 | case BTTV_BOARD_LIFETEC_9415: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3356 | flyvideo_gpio(btv); |
| 3357 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3358 | case BTTV_BOARD_HAUPPAUGE: |
| 3359 | case BTTV_BOARD_HAUPPAUGE878: |
| 3360 | case BTTV_BOARD_HAUPPAUGEPVR: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3361 | /* pick up some config infos from the eeprom */ |
| 3362 | bttv_readee(btv,eeprom_data,0xa0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3363 | hauppauge_eeprom(btv); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3364 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3365 | case BTTV_BOARD_AVERMEDIA98: |
| 3366 | case BTTV_BOARD_AVPHONE98: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3367 | bttv_readee(btv,eeprom_data,0xa0); |
| 3368 | avermedia_eeprom(btv); |
| 3369 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3370 | case BTTV_BOARD_PXC200: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3371 | init_PXC200(btv); |
| 3372 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3373 | case BTTV_BOARD_PICOLO_TETRA_CHIP: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3374 | picolo_tetra_init(btv); |
| 3375 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3376 | case BTTV_BOARD_VHX: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3377 | btv->has_radio = 1; |
| 3378 | btv->has_matchbox = 1; |
| 3379 | btv->mbox_we = 0x20; |
| 3380 | btv->mbox_most = 0; |
| 3381 | btv->mbox_clk = 0x08; |
| 3382 | btv->mbox_data = 0x10; |
| 3383 | btv->mbox_mask = 0x38; |
| 3384 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3385 | case BTTV_BOARD_VOBIS_BOOSTAR: |
| 3386 | case BTTV_BOARD_TERRATV: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3387 | terratec_active_radio_upgrade(btv); |
| 3388 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3389 | case BTTV_BOARD_MAGICTVIEW061: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3390 | if (btv->cardid == 0x3002144f) { |
| 3391 | btv->has_radio=1; |
| 3392 | printk("bttv%d: radio detected by subsystem id (CPH05x)\n",btv->c.nr); |
| 3393 | } |
| 3394 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3395 | case BTTV_BOARD_STB2: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3396 | if (btv->cardid == 0x3060121a) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3397 | /* Fix up entry for 3DFX VoodooTV 100, |
| 3398 | which is an OEM STB card variant. */ |
| 3399 | btv->has_radio=0; |
| 3400 | btv->tuner_type=TUNER_TEMIC_NTSC; |
| 3401 | } |
| 3402 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3403 | case BTTV_BOARD_OSPREY1x0: |
| 3404 | case BTTV_BOARD_OSPREY1x0_848: |
| 3405 | case BTTV_BOARD_OSPREY101_848: |
| 3406 | case BTTV_BOARD_OSPREY1x1: |
| 3407 | case BTTV_BOARD_OSPREY1x1_SVID: |
| 3408 | case BTTV_BOARD_OSPREY2xx: |
| 3409 | case BTTV_BOARD_OSPREY2x0_SVID: |
| 3410 | case BTTV_BOARD_OSPREY2x0: |
| 3411 | case BTTV_BOARD_OSPREY500: |
| 3412 | case BTTV_BOARD_OSPREY540: |
| 3413 | case BTTV_BOARD_OSPREY2000: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3414 | bttv_readee(btv,eeprom_data,0xa0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3415 | osprey_eeprom(btv); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3416 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3417 | case BTTV_BOARD_IDS_EAGLE: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3418 | init_ids_eagle(btv); |
| 3419 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3420 | case BTTV_BOARD_MODTEC_205: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3421 | bttv_readee(btv,eeprom_data,0xa0); |
| 3422 | modtec_eeprom(btv); |
| 3423 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3424 | case BTTV_BOARD_LMLBT4: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3425 | init_lmlbt4x(btv); |
| 3426 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3427 | case BTTV_BOARD_TIBET_CS16: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3428 | tibetCS16_init(btv); |
| 3429 | break; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3430 | case BTTV_BOARD_KODICOM_4400R: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3431 | kodicom4400r_init(btv); |
| 3432 | break; |
| 3433 | } |
| 3434 | |
| 3435 | /* pll configuration */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3436 | if (!(btv->id==848 && btv->revision==0x11)) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3437 | /* defaults from card list */ |
| 3438 | if (PLL_28 == bttv_tvcards[btv->c.type].pll) { |
| 3439 | btv->pll.pll_ifreq=28636363; |
| 3440 | btv->pll.pll_crystal=BT848_IFORM_XT0; |
| 3441 | } |
| 3442 | if (PLL_35 == bttv_tvcards[btv->c.type].pll) { |
| 3443 | btv->pll.pll_ifreq=35468950; |
| 3444 | btv->pll.pll_crystal=BT848_IFORM_XT1; |
| 3445 | } |
| 3446 | /* insmod options can override */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3447 | switch (pll[btv->c.nr]) { |
| 3448 | case 0: /* none */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3449 | btv->pll.pll_crystal = 0; |
| 3450 | btv->pll.pll_ifreq = 0; |
| 3451 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3452 | break; |
| 3453 | case 1: /* 28 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3454 | case 28: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3455 | btv->pll.pll_ifreq = 28636363; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3456 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3457 | btv->pll.pll_crystal = BT848_IFORM_XT0; |
| 3458 | break; |
| 3459 | case 2: /* 35 MHz */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3460 | case 35: |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3461 | btv->pll.pll_ifreq = 35468950; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3462 | btv->pll.pll_ofreq = 0; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3463 | btv->pll.pll_crystal = BT848_IFORM_XT1; |
| 3464 | break; |
| 3465 | } |
| 3466 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3467 | btv->pll.pll_current = -1; |
| 3468 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3469 | /* tuner configuration (from card list / autodetect / insmod option) */ |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3470 | if (ADDR_UNSET != bttv_tvcards[btv->c.type].tuner_addr) |
| 3471 | addr = bttv_tvcards[btv->c.type].tuner_addr; |
| 3472 | |
| 3473 | if (UNSET != bttv_tvcards[btv->c.type].tuner_type) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3474 | if(UNSET == btv->tuner_type) |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3475 | btv->tuner_type = bttv_tvcards[btv->c.type].tuner_type; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3476 | if (UNSET != tuner[btv->c.nr]) |
| 3477 | btv->tuner_type = tuner[btv->c.nr]; |
| 3478 | printk("bttv%d: using tuner=%d\n",btv->c.nr,btv->tuner_type); |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3479 | |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3480 | if (btv->tuner_type != UNSET) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3481 | struct tuner_setup tun_setup; |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3482 | |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3483 | tun_setup.mode_mask = T_ANALOG_TV | T_DIGITAL_TV; |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3484 | tun_setup.type = btv->tuner_type; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3485 | tun_setup.addr = addr; |
Mauro Carvalho Chehab | fa9846a | 2005-07-12 13:58:42 -0700 | [diff] [blame] | 3486 | |
| 3487 | bttv_call_i2c_clients(btv, TUNER_SET_TYPE_ADDR, &tun_setup); |
| 3488 | } |
| 3489 | |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3490 | if (btv->tda9887_conf) { |
| 3491 | bttv_call_i2c_clients(btv, TDA9887_SET_CONFIG, |
| 3492 | &btv->tda9887_conf); |
Mauro Carvalho Chehab | f3b512f | 2005-11-08 21:38:23 -0800 | [diff] [blame] | 3493 | } |
| 3494 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3495 | btv->svhs = bttv_tvcards[btv->c.type].svhs; |
| 3496 | if (svhs[btv->c.nr] != UNSET) |
| 3497 | btv->svhs = svhs[btv->c.nr]; |
| 3498 | if (remote[btv->c.nr] != UNSET) |
| 3499 | btv->has_remote = remote[btv->c.nr]; |
| 3500 | |
| 3501 | if (bttv_tvcards[btv->c.type].has_radio) |
| 3502 | btv->has_radio=1; |
| 3503 | if (bttv_tvcards[btv->c.type].has_remote) |
| 3504 | btv->has_remote=1; |
Michael Krufky | 7c08fb0 | 2005-11-08 21:36:21 -0800 | [diff] [blame] | 3505 | if (!bttv_tvcards[btv->c.type].no_gpioirq) |
| 3506 | btv->gpioirq=1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3507 | if (bttv_tvcards[btv->c.type].audio_hook) |
| 3508 | btv->audio_hook=bttv_tvcards[btv->c.type].audio_hook; |
| 3509 | |
| 3510 | if (bttv_tvcards[btv->c.type].digital_mode == DIGITAL_MODE_CAMERA) { |
| 3511 | /* detect Bt832 chip for quartzsight digital camera */ |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3512 | if ((bttv_I2CRead(btv, I2C_ADDR_BT832_ALT1, "Bt832") >=0) || |
| 3513 | (bttv_I2CRead(btv, I2C_ADDR_BT832_ALT2, "Bt832") >=0)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3514 | boot_bt832(btv); |
| 3515 | } |
| 3516 | |
| 3517 | if (!autoload) |
| 3518 | return; |
| 3519 | |
| 3520 | /* try to detect audio/fader chips */ |
| 3521 | if (!bttv_tvcards[btv->c.type].no_msp34xx && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3522 | bttv_I2CRead(btv, I2C_ADDR_MSP3400, "MSP34xx") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3523 | request_module("msp3400"); |
| 3524 | |
| 3525 | if (bttv_tvcards[btv->c.type].msp34xx_alt && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3526 | bttv_I2CRead(btv, I2C_ADDR_MSP3400_ALT, "MSP34xx (alternate address)") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3527 | request_module("msp3400"); |
| 3528 | |
| 3529 | if (!bttv_tvcards[btv->c.type].no_tda9875 && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3530 | bttv_I2CRead(btv, I2C_ADDR_TDA9875, "TDA9875") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3531 | request_module("tda9875"); |
| 3532 | |
| 3533 | if (!bttv_tvcards[btv->c.type].no_tda7432 && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3534 | bttv_I2CRead(btv, I2C_ADDR_TDA7432, "TDA7432") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3535 | request_module("tda7432"); |
| 3536 | |
| 3537 | if (bttv_tvcards[btv->c.type].needs_tvaudio) |
| 3538 | request_module("tvaudio"); |
| 3539 | |
| 3540 | /* tuner modules */ |
| 3541 | tda9887 = 0; |
Hans Verkuil | 39e8f40 | 2006-01-09 15:25:16 -0200 | [diff] [blame] | 3542 | if (btv->tda9887_conf) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3543 | tda9887 = 1; |
| 3544 | if (0 == tda9887 && 0 == bttv_tvcards[btv->c.type].has_dvb && |
Mauro Carvalho Chehab | 09df1c1 | 2006-03-18 08:31:34 -0300 | [diff] [blame] | 3545 | bttv_I2CRead(btv, I2C_ADDR_TDA9887, "TDA9887") >=0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3546 | tda9887 = 1; |
Ricardo Cerqueira | 6e45f5d | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 3547 | /* Hybrid DVB card, DOES have a tda9887 */ |
| 3548 | if (btv->c.type == BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE) |
| 3549 | tda9887 = 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3550 | if((btv->tuner_type == TUNER_PHILIPS_FM1216ME_MK3) || |
| 3551 | (btv->tuner_type == TUNER_PHILIPS_FM1236_MK3) || |
| 3552 | (btv->tuner_type == TUNER_PHILIPS_FM1256_IH3) || |
| 3553 | tda9887) |
| 3554 | request_module("tda9887"); |
| 3555 | if (btv->tuner_type != UNSET) |
| 3556 | request_module("tuner"); |
| 3557 | } |
| 3558 | |
| 3559 | |
| 3560 | /* ----------------------------------------------------------------------- */ |
| 3561 | |
| 3562 | static void modtec_eeprom(struct bttv *btv) |
| 3563 | { |
| 3564 | if( strncmp(&(eeprom_data[0x1e]),"Temic 4066 FY5",14) ==0) { |
| 3565 | btv->tuner_type=TUNER_TEMIC_4066FY5_PAL_I; |
| 3566 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3567 | btv->c.nr,&eeprom_data[0x1e]); |
| 3568 | } else if (strncmp(&(eeprom_data[0x1e]),"Alps TSBB5",10) ==0) { |
| 3569 | btv->tuner_type=TUNER_ALPS_TSBB5_PAL_I; |
| 3570 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3571 | btv->c.nr,&eeprom_data[0x1e]); |
| 3572 | } else if (strncmp(&(eeprom_data[0x1e]),"Philips FM1246",14) ==0) { |
| 3573 | btv->tuner_type=TUNER_PHILIPS_NTSC; |
| 3574 | printk("bttv%d: Modtec: Tuner autodetected by eeprom: %s\n", |
| 3575 | btv->c.nr,&eeprom_data[0x1e]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3576 | } else { |
| 3577 | printk("bttv%d: Modtec: Unknown TunerString: %s\n", |
| 3578 | btv->c.nr,&eeprom_data[0x1e]); |
| 3579 | } |
| 3580 | } |
| 3581 | |
| 3582 | static void __devinit hauppauge_eeprom(struct bttv *btv) |
| 3583 | { |
| 3584 | struct tveeprom tv; |
| 3585 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 3586 | tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3587 | btv->tuner_type = tv.tuner_type; |
| 3588 | btv->has_radio = tv.has_radio; |
Steven Toth | cd1257d | 2006-01-09 15:25:01 -0200 | [diff] [blame] | 3589 | |
| 3590 | printk("bttv%d: Hauppauge eeprom indicates model#%d\n", |
| 3591 | btv->c.nr, tv.model); |
| 3592 | |
| 3593 | /* |
| 3594 | * Some of the 878 boards have duplicate PCI IDs. Switch the board |
| 3595 | * type based on model #. |
| 3596 | */ |
| 3597 | if(tv.model == 64900) { |
| 3598 | printk("bttv%d: Switching board type from %s to %s\n", |
| 3599 | btv->c.nr, |
| 3600 | bttv_tvcards[btv->c.type].name, |
| 3601 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); |
| 3602 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; |
| 3603 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3604 | } |
| 3605 | |
| 3606 | static int terratec_active_radio_upgrade(struct bttv *btv) |
| 3607 | { |
| 3608 | int freq; |
| 3609 | |
| 3610 | btv->has_radio = 1; |
| 3611 | btv->has_matchbox = 1; |
| 3612 | btv->mbox_we = 0x10; |
| 3613 | btv->mbox_most = 0x20; |
| 3614 | btv->mbox_clk = 0x08; |
| 3615 | btv->mbox_data = 0x04; |
| 3616 | btv->mbox_mask = 0x3c; |
| 3617 | |
| 3618 | btv->mbox_iow = 1 << 8; |
| 3619 | btv->mbox_ior = 1 << 9; |
| 3620 | btv->mbox_csel = 1 << 10; |
| 3621 | |
| 3622 | freq=88000/62.5; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3623 | tea5757_write(btv, 5 * freq + 0x358); /* write 0x1ed8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3624 | if (0x1ed8 == tea5757_read(btv)) { |
| 3625 | printk("bttv%d: Terratec Active Radio Upgrade found.\n", |
| 3626 | btv->c.nr); |
| 3627 | btv->has_radio = 1; |
| 3628 | btv->has_matchbox = 1; |
| 3629 | } else { |
| 3630 | btv->has_radio = 0; |
| 3631 | btv->has_matchbox = 0; |
| 3632 | } |
| 3633 | return 0; |
| 3634 | } |
| 3635 | |
| 3636 | |
| 3637 | /* ----------------------------------------------------------------------- */ |
| 3638 | |
| 3639 | /* |
| 3640 | * minimal bootstrap for the WinTV/PVR -- upload altera firmware. |
| 3641 | * |
| 3642 | * The hcwamc.rbf firmware file is on the Hauppauge driver CD. Have |
| 3643 | * a look at Pvr/pvr45xxx.EXE (self-extracting zip archive, can be |
| 3644 | * unpacked with unzip). |
| 3645 | */ |
| 3646 | #define PVR_GPIO_DELAY 10 |
| 3647 | |
| 3648 | #define BTTV_ALT_DATA 0x000001 |
| 3649 | #define BTTV_ALT_DCLK 0x100000 |
| 3650 | #define BTTV_ALT_NCONFIG 0x800000 |
| 3651 | |
| 3652 | static int __devinit pvr_altera_load(struct bttv *btv, u8 *micro, u32 microlen) |
| 3653 | { |
| 3654 | u32 n; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3655 | u8 bits; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3656 | int i; |
| 3657 | |
| 3658 | gpio_inout(0xffffff,BTTV_ALT_DATA|BTTV_ALT_DCLK|BTTV_ALT_NCONFIG); |
| 3659 | gpio_write(0); |
| 3660 | udelay(PVR_GPIO_DELAY); |
| 3661 | |
| 3662 | gpio_write(BTTV_ALT_NCONFIG); |
| 3663 | udelay(PVR_GPIO_DELAY); |
| 3664 | |
| 3665 | for (n = 0; n < microlen; n++) { |
| 3666 | bits = micro[n]; |
| 3667 | for ( i = 0 ; i < 8 ; i++ ) { |
| 3668 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3669 | if (bits & 0x01) |
| 3670 | gpio_bits(BTTV_ALT_DATA,BTTV_ALT_DATA); |
| 3671 | else |
| 3672 | gpio_bits(BTTV_ALT_DATA,0); |
| 3673 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3674 | bits >>= 1; |
| 3675 | } |
| 3676 | } |
| 3677 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3678 | udelay(PVR_GPIO_DELAY); |
| 3679 | |
| 3680 | /* begin Altera init loop (Not necessary,but doesn't hurt) */ |
| 3681 | for (i = 0 ; i < 30 ; i++) { |
| 3682 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3683 | gpio_bits(BTTV_ALT_DCLK,BTTV_ALT_DCLK); |
| 3684 | } |
| 3685 | gpio_bits(BTTV_ALT_DCLK,0); |
| 3686 | return 0; |
| 3687 | } |
| 3688 | |
| 3689 | static int __devinit pvr_boot(struct bttv *btv) |
| 3690 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3691 | const struct firmware *fw_entry; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3692 | int rc; |
| 3693 | |
| 3694 | rc = request_firmware(&fw_entry, "hcwamc.rbf", &btv->c.pci->dev); |
| 3695 | if (rc != 0) { |
| 3696 | printk(KERN_WARNING "bttv%d: no altera firmware [via hotplug]\n", |
| 3697 | btv->c.nr); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3698 | return rc; |
| 3699 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3700 | rc = pvr_altera_load(btv, fw_entry->data, fw_entry->size); |
| 3701 | printk(KERN_INFO "bttv%d: altera firmware upload %s\n", |
| 3702 | btv->c.nr, (rc < 0) ? "failed" : "ok"); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3703 | release_firmware(fw_entry); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3704 | return rc; |
| 3705 | } |
| 3706 | |
| 3707 | /* ----------------------------------------------------------------------- */ |
| 3708 | /* some osprey specific stuff */ |
| 3709 | |
| 3710 | static void __devinit osprey_eeprom(struct bttv *btv) |
| 3711 | { |
| 3712 | int i = 0; |
| 3713 | unsigned char *ee = eeprom_data; |
| 3714 | unsigned long serial = 0; |
| 3715 | |
| 3716 | if (btv->c.type == 0) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3717 | /* this might be an antique... check for MMAC label in eeprom */ |
| 3718 | if ((ee[0]=='M') && (ee[1]=='M') && (ee[2]=='A') && (ee[3]=='C')) { |
| 3719 | unsigned char checksum = 0; |
| 3720 | for (i =0; i<21; i++) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3721 | checksum += ee[i]; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3722 | if (checksum != ee[21]) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3723 | return; |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3724 | btv->c.type = BTTV_BOARD_OSPREY1x0_848; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3725 | for (i = 12; i < 21; i++) |
| 3726 | serial *= 10, serial += ee[i] - '0'; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3727 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3728 | } else { |
| 3729 | unsigned short type; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3730 | int offset = 4*16; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3731 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3732 | for(; offset < 8*16; offset += 16) { |
| 3733 | unsigned short checksum = 0; |
| 3734 | /* verify the checksum */ |
| 3735 | for(i = 0; i<14; i++) checksum += ee[i+offset]; |
| 3736 | checksum = ~checksum; /* no idea why */ |
| 3737 | if ((((checksum>>8)&0x0FF) == ee[offset+14]) && |
Mauro Carvalho Chehab | f2421ca | 2005-11-08 21:37:45 -0800 | [diff] [blame] | 3738 | ((checksum & 0x0FF) == ee[offset+15])) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3739 | break; |
| 3740 | } |
| 3741 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3742 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3743 | if (offset >= 8*16) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3744 | return; |
| 3745 | |
| 3746 | /* found a valid descriptor */ |
| 3747 | type = (ee[offset+4]<<8) | (ee[offset+5]); |
| 3748 | |
| 3749 | switch(type) { |
| 3750 | |
| 3751 | /* 848 based */ |
| 3752 | case 0x0004: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3753 | btv->c.type = BTTV_BOARD_OSPREY1x0_848; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3754 | break; |
| 3755 | case 0x0005: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3756 | btv->c.type = BTTV_BOARD_OSPREY101_848; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3757 | break; |
| 3758 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3759 | /* 878 based */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3760 | case 0x0012: |
| 3761 | case 0x0013: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3762 | btv->c.type = BTTV_BOARD_OSPREY1x0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3763 | break; |
| 3764 | case 0x0014: |
| 3765 | case 0x0015: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3766 | btv->c.type = BTTV_BOARD_OSPREY1x1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3767 | break; |
| 3768 | case 0x0016: |
| 3769 | case 0x0017: |
| 3770 | case 0x0020: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3771 | btv->c.type = BTTV_BOARD_OSPREY1x1_SVID; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3772 | break; |
| 3773 | case 0x0018: |
| 3774 | case 0x0019: |
| 3775 | case 0x001E: |
| 3776 | case 0x001F: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3777 | btv->c.type = BTTV_BOARD_OSPREY2xx; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3778 | break; |
| 3779 | case 0x001A: |
| 3780 | case 0x001B: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3781 | btv->c.type = BTTV_BOARD_OSPREY2x0_SVID; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3782 | break; |
| 3783 | case 0x0040: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3784 | btv->c.type = BTTV_BOARD_OSPREY500; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3785 | break; |
| 3786 | case 0x0050: |
| 3787 | case 0x0056: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3788 | btv->c.type = BTTV_BOARD_OSPREY540; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3789 | /* bttv_osprey_540_init(btv); */ |
| 3790 | break; |
| 3791 | case 0x0060: |
| 3792 | case 0x0070: |
Mauro Carvalho Chehab | 5a25e84 | 2005-11-08 21:36:52 -0800 | [diff] [blame] | 3793 | btv->c.type = BTTV_BOARD_OSPREY2x0; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3794 | /* enable output on select control lines */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3795 | gpio_inout(0xffffff,0x000303); |
| 3796 | break; |
| 3797 | default: |
| 3798 | /* unknown...leave generic, but get serial # */ |
| 3799 | break; |
| 3800 | } |
| 3801 | serial = (ee[offset+6] << 24) |
| 3802 | | (ee[offset+7] << 16) |
| 3803 | | (ee[offset+8] << 8) |
| 3804 | | (ee[offset+9]); |
| 3805 | } |
| 3806 | |
| 3807 | printk(KERN_INFO "bttv%d: osprey eeprom: card=%d name=%s serial=%ld\n", |
| 3808 | btv->c.nr, btv->c.type, bttv_tvcards[btv->c.type].name,serial); |
| 3809 | } |
| 3810 | |
| 3811 | /* ----------------------------------------------------------------------- */ |
| 3812 | /* AVermedia specific stuff, from bktr_card.c */ |
| 3813 | |
| 3814 | static int tuner_0_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3815 | TUNER_PHILIPS_NTSC, TUNER_PHILIPS_PAL /* PAL-BG*/, |
| 3816 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL /* PAL-I*/, |
| 3817 | TUNER_PHILIPS_PAL, TUNER_PHILIPS_PAL, |
| 3818 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_SECAM, |
| 3819 | TUNER_PHILIPS_SECAM, TUNER_PHILIPS_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3820 | TUNER_PHILIPS_FM1216ME_MK3 }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3821 | |
| 3822 | static int tuner_1_table[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3823 | TUNER_TEMIC_NTSC, TUNER_TEMIC_PAL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3824 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
| 3825 | TUNER_TEMIC_PAL, TUNER_TEMIC_PAL, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3826 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_4012FY5, /* TUNER_TEMIC_SECAM */ |
| 3827 | TUNER_TEMIC_4012FY5, TUNER_TEMIC_PAL}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3828 | |
| 3829 | static void __devinit avermedia_eeprom(struct bttv *btv) |
| 3830 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3831 | int tuner_make,tuner_tv_fm,tuner_format,tuner=0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3832 | |
| 3833 | tuner_make = (eeprom_data[0x41] & 0x7); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3834 | tuner_tv_fm = (eeprom_data[0x41] & 0x18) >> 3; |
| 3835 | tuner_format = (eeprom_data[0x42] & 0xf0) >> 4; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3836 | btv->has_remote = (eeprom_data[0x42] & 0x01); |
| 3837 | |
| 3838 | if (tuner_make == 0 || tuner_make == 2) |
| 3839 | if(tuner_format <=0x0a) |
| 3840 | tuner = tuner_0_table[tuner_format]; |
| 3841 | if (tuner_make == 1) |
| 3842 | if(tuner_format <=9) |
| 3843 | tuner = tuner_1_table[tuner_format]; |
| 3844 | |
| 3845 | if (tuner_make == 4) |
| 3846 | if(tuner_format == 0x09) |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3847 | tuner = TUNER_LG_NTSC_NEW_TAPC; /* TAPC-G702P */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3848 | |
| 3849 | printk(KERN_INFO "bttv%d: Avermedia eeprom[0x%02x%02x]: tuner=", |
| 3850 | btv->c.nr,eeprom_data[0x41],eeprom_data[0x42]); |
| 3851 | if(tuner) { |
| 3852 | btv->tuner_type=tuner; |
| 3853 | printk("%d",tuner); |
| 3854 | } else |
| 3855 | printk("Unknown type"); |
| 3856 | printk(" radio:%s remote control:%s\n", |
| 3857 | tuner_tv_fm ? "yes" : "no", |
| 3858 | btv->has_remote ? "yes" : "no"); |
| 3859 | } |
| 3860 | |
| 3861 | /* used on Voodoo TV/FM (Voodoo 200), S0 wired to 0x10000 */ |
| 3862 | void bttv_tda9880_setnorm(struct bttv *btv, int norm) |
| 3863 | { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3864 | /* fix up our card entry */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3865 | if(norm==VIDEO_MODE_NTSC) { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 3866 | bttv_tvcards[BTTV_BOARD_VOODOOTV_FM].gpiomux[TVAUDIO_INPUT_TUNER]=0x957fff; |
| 3867 | bttv_tvcards[BTTV_BOARD_VOODOOTV_FM].gpiomute=0x957fff; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3868 | dprintk("bttv_tda9880_setnorm to NTSC\n"); |
| 3869 | } |
| 3870 | else { |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 3871 | bttv_tvcards[BTTV_BOARD_VOODOOTV_FM].gpiomux[TVAUDIO_INPUT_TUNER]=0x947fff; |
| 3872 | bttv_tvcards[BTTV_BOARD_VOODOOTV_FM].gpiomute=0x947fff; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3873 | dprintk("bttv_tda9880_setnorm to PAL\n"); |
| 3874 | } |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 3875 | /* set GPIO according */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3876 | gpio_bits(bttv_tvcards[btv->c.type].gpiomask, |
Hans Verkuil | 8bf2f8e | 2006-03-18 21:31:00 -0300 | [diff] [blame] | 3877 | bttv_tvcards[btv->c.type].gpiomux[btv->audio]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3878 | } |
| 3879 | |
| 3880 | |
| 3881 | /* |
| 3882 | * reset/enable the MSP on some Hauppauge cards |
David Woodhouse | 93e960f | 2005-11-08 21:36:46 -0800 | [diff] [blame] | 3883 | * Thanks to Kyösti Mälkki (kmalkki@cc.hut.fi)! |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3884 | * |
| 3885 | * Hauppauge: pin 5 |
| 3886 | * Voodoo: pin 20 |
| 3887 | */ |
| 3888 | static void __devinit boot_msp34xx(struct bttv *btv, int pin) |
| 3889 | { |
| 3890 | int mask = (1 << pin); |
| 3891 | |
| 3892 | gpio_inout(mask,mask); |
| 3893 | gpio_bits(mask,0); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3894 | udelay(2500); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3895 | gpio_bits(mask,mask); |
| 3896 | |
| 3897 | if (bttv_gpio) |
| 3898 | bttv_gpio_tracking(btv,"msp34xx"); |
| 3899 | if (bttv_verbose) |
| 3900 | printk(KERN_INFO "bttv%d: Hauppauge/Voodoo msp34xx: reset line " |
| 3901 | "init [%d]\n", btv->c.nr, pin); |
| 3902 | } |
| 3903 | |
| 3904 | static void __devinit boot_bt832(struct bttv *btv) |
| 3905 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3906 | } |
| 3907 | |
| 3908 | /* ----------------------------------------------------------------------- */ |
| 3909 | /* Imagenation L-Model PXC200 Framegrabber */ |
| 3910 | /* This is basically the same procedure as |
| 3911 | * used by Alessandro Rubini in his pxc200 |
| 3912 | * driver, but using BTTV functions */ |
| 3913 | |
| 3914 | static void __devinit init_PXC200(struct bttv *btv) |
| 3915 | { |
| 3916 | static int vals[] __devinitdata = { 0x08, 0x09, 0x0a, 0x0b, 0x0d, 0x0d, |
| 3917 | 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, |
| 3918 | 0x00 }; |
| 3919 | unsigned int i; |
| 3920 | int tmp; |
| 3921 | u32 val; |
| 3922 | |
| 3923 | /* Initialise GPIO-connevted stuff */ |
| 3924 | gpio_inout(0xffffff, (1<<13)); |
| 3925 | gpio_write(0); |
| 3926 | udelay(3); |
| 3927 | gpio_write(1<<13); |
| 3928 | /* GPIO inputs are pulled up, so no need to drive |
| 3929 | * reset pin any longer */ |
| 3930 | gpio_bits(0xffffff, 0); |
| 3931 | if (bttv_gpio) |
| 3932 | bttv_gpio_tracking(btv,"pxc200"); |
| 3933 | |
| 3934 | /* we could/should try and reset/control the AD pots? but |
| 3935 | right now we simply turned off the crushing. Without |
| 3936 | this the AGC drifts drifts |
| 3937 | remember the EN is reverse logic --> |
| 3938 | setting BT848_ADC_AGC_EN disable the AGC |
| 3939 | tboult@eecs.lehigh.edu |
| 3940 | */ |
| 3941 | |
| 3942 | btwrite(BT848_ADC_RESERVED|BT848_ADC_AGC_EN, BT848_ADC); |
| 3943 | |
| 3944 | /* Initialise MAX517 DAC */ |
| 3945 | printk(KERN_INFO "Setting DAC reference voltage level ...\n"); |
| 3946 | bttv_I2CWrite(btv,0x5E,0,0x80,1); |
| 3947 | |
| 3948 | /* Initialise 12C508 PIC */ |
| 3949 | /* The I2CWrite and I2CRead commmands are actually to the |
| 3950 | * same chips - but the R/W bit is included in the address |
| 3951 | * argument so the numbers are different */ |
| 3952 | |
| 3953 | |
| 3954 | printk(KERN_INFO "Initialising 12C508 PIC chip ...\n"); |
| 3955 | |
| 3956 | /* First of all, enable the clock line. This is used in the PXC200-F */ |
| 3957 | val = btread(BT848_GPIO_DMA_CTL); |
| 3958 | val |= BT848_GPIO_DMA_CTL_GPCLKMODE; |
| 3959 | btwrite(val, BT848_GPIO_DMA_CTL); |
| 3960 | |
| 3961 | /* Then, push to 0 the reset pin long enough to reset the * |
| 3962 | * device same as above for the reset line, but not the same |
| 3963 | * value sent to the GPIO-connected stuff |
| 3964 | * which one is the good one? */ |
| 3965 | gpio_inout(0xffffff,(1<<2)); |
| 3966 | gpio_write(0); |
| 3967 | udelay(10); |
| 3968 | gpio_write(1<<2); |
| 3969 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 3970 | for (i = 0; i < ARRAY_SIZE(vals); i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3971 | tmp=bttv_I2CWrite(btv,0x1E,0,vals[i],1); |
| 3972 | if (tmp != -1) { |
| 3973 | printk(KERN_INFO |
| 3974 | "I2C Write(%2.2x) = %i\nI2C Read () = %2.2x\n\n", |
| 3975 | vals[i],tmp,bttv_I2CRead(btv,0x1F,NULL)); |
| 3976 | } |
| 3977 | } |
| 3978 | |
| 3979 | printk(KERN_INFO "PXC200 Initialised.\n"); |
| 3980 | } |
| 3981 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 3982 | |
| 3983 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 3984 | /* ----------------------------------------------------------------------- */ |
| 3985 | /* |
| 3986 | * The Adlink RTV-24 (aka Angelo) has some special initialisation to unlock |
| 3987 | * it. This apparently involves the following procedure for each 878 chip: |
| 3988 | * |
| 3989 | * 1) write 0x00C3FEFF to the GPIO_OUT_EN register |
| 3990 | * |
| 3991 | * 2) write to GPIO_DATA |
| 3992 | * - 0x0E |
| 3993 | * - sleep 1ms |
| 3994 | * - 0x10 + 0x0E |
| 3995 | * - sleep 10ms |
| 3996 | * - 0x0E |
| 3997 | * read from GPIO_DATA into buf (uint_32) |
| 3998 | * - if ( data>>18 & 0x01 != 0) || ( buf>>19 & 0x01 != 1 ) |
| 3999 | * error. ERROR_CPLD_Check_Failed stop. |
| 4000 | * |
| 4001 | * 3) write to GPIO_DATA |
| 4002 | * - write 0x4400 + 0x0E |
| 4003 | * - sleep 10ms |
| 4004 | * - write 0x4410 + 0x0E |
| 4005 | * - sleep 1ms |
| 4006 | * - write 0x0E |
| 4007 | * read from GPIO_DATA into buf (uint_32) |
| 4008 | * - if ( buf>>18 & 0x01 ) || ( buf>>19 && 0x01 != 0 ) |
| 4009 | * error. ERROR_CPLD_Check_Failed. |
| 4010 | */ |
| 4011 | /* ----------------------------------------------------------------------- */ |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 4012 | static void |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4013 | init_RTV24 (struct bttv *btv) |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4014 | { |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4015 | uint32_t dataRead = 0; |
| 4016 | long watchdog_value = 0x0E; |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4017 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4018 | printk (KERN_INFO |
| 4019 | "bttv%d: Adlink RTV-24 initialisation in progress ...\n", |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4020 | btv->c.nr); |
| 4021 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4022 | btwrite (0x00c3feff, BT848_GPIO_OUT_EN); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4023 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4024 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
| 4025 | msleep (1); |
| 4026 | btwrite (0x10 + watchdog_value, BT848_GPIO_DATA); |
| 4027 | msleep (10); |
| 4028 | btwrite (0 + watchdog_value, BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4029 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4030 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4031 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4032 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 1)) { |
| 4033 | printk (KERN_INFO |
| 4034 | "bttv%d: Adlink RTV-24 initialisation(1) ERROR_CPLD_Check_Failed (read %d)\n", |
| 4035 | btv->c.nr, dataRead); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4036 | } |
| 4037 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4038 | btwrite (0x4400 + watchdog_value, BT848_GPIO_DATA); |
| 4039 | msleep (10); |
| 4040 | btwrite (0x4410 + watchdog_value, BT848_GPIO_DATA); |
| 4041 | msleep (1); |
| 4042 | btwrite (watchdog_value, BT848_GPIO_DATA); |
| 4043 | msleep (1); |
| 4044 | dataRead = btread (BT848_GPIO_DATA); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4045 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4046 | if ((((dataRead >> 18) & 0x01) != 0) || (((dataRead >> 19) & 0x01) != 0)) { |
| 4047 | printk (KERN_INFO |
| 4048 | "bttv%d: Adlink RTV-24 initialisation(2) ERROR_CPLD_Check_Failed (read %d)\n", |
| 4049 | btv->c.nr, dataRead); |
| 4050 | |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4051 | return; |
| 4052 | } |
| 4053 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4054 | printk (KERN_INFO |
| 4055 | "bttv%d: Adlink RTV-24 initialisation complete.\n", btv->c.nr); |
Peter Skipworth | 93b43f1 | 2005-06-23 22:04:45 -0700 | [diff] [blame] | 4056 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4057 | |
Mauro Carvalho Chehab | 2d03e28 | 2005-06-23 22:04:58 -0700 | [diff] [blame] | 4058 | |
| 4059 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4060 | /* ----------------------------------------------------------------------- */ |
| 4061 | /* Miro Pro radio stuff -- the tea5757 is connected to some GPIO ports */ |
| 4062 | /* |
| 4063 | * Copyright (c) 1999 Csaba Halasz <qgehali@uni-miskolc.hu> |
| 4064 | * This code is placed under the terms of the GNU General Public License |
| 4065 | * |
| 4066 | * Brutally hacked by Dan Sheridan <dan.sheridan@contact.org.uk> djs52 8/3/00 |
| 4067 | */ |
| 4068 | |
| 4069 | static void bus_low(struct bttv *btv, int bit) |
| 4070 | { |
| 4071 | if (btv->mbox_ior) { |
| 4072 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4073 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4074 | udelay(5); |
| 4075 | } |
| 4076 | |
| 4077 | gpio_bits(bit,0); |
| 4078 | udelay(5); |
| 4079 | |
| 4080 | if (btv->mbox_ior) { |
| 4081 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4082 | udelay(5); |
| 4083 | } |
| 4084 | } |
| 4085 | |
| 4086 | static void bus_high(struct bttv *btv, int bit) |
| 4087 | { |
| 4088 | if (btv->mbox_ior) { |
| 4089 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4090 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4091 | udelay(5); |
| 4092 | } |
| 4093 | |
| 4094 | gpio_bits(bit,bit); |
| 4095 | udelay(5); |
| 4096 | |
| 4097 | if (btv->mbox_ior) { |
| 4098 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4099 | udelay(5); |
| 4100 | } |
| 4101 | } |
| 4102 | |
| 4103 | static int bus_in(struct bttv *btv, int bit) |
| 4104 | { |
| 4105 | if (btv->mbox_ior) { |
| 4106 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4107 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4108 | udelay(5); |
| 4109 | |
| 4110 | gpio_bits(btv->mbox_iow | btv->mbox_csel, 0); |
| 4111 | udelay(5); |
| 4112 | } |
| 4113 | return gpio_read() & (bit); |
| 4114 | } |
| 4115 | |
| 4116 | /* TEA5757 register bits */ |
| 4117 | #define TEA_FREQ 0:14 |
| 4118 | #define TEA_BUFFER 15:15 |
| 4119 | |
| 4120 | #define TEA_SIGNAL_STRENGTH 16:17 |
| 4121 | |
| 4122 | #define TEA_PORT1 18:18 |
| 4123 | #define TEA_PORT0 19:19 |
| 4124 | |
| 4125 | #define TEA_BAND 20:21 |
| 4126 | #define TEA_BAND_FM 0 |
| 4127 | #define TEA_BAND_MW 1 |
| 4128 | #define TEA_BAND_LW 2 |
| 4129 | #define TEA_BAND_SW 3 |
| 4130 | |
| 4131 | #define TEA_MONO 22:22 |
| 4132 | #define TEA_ALLOW_STEREO 0 |
| 4133 | #define TEA_FORCE_MONO 1 |
| 4134 | |
| 4135 | #define TEA_SEARCH_DIRECTION 23:23 |
| 4136 | #define TEA_SEARCH_DOWN 0 |
| 4137 | #define TEA_SEARCH_UP 1 |
| 4138 | |
| 4139 | #define TEA_STATUS 24:24 |
| 4140 | #define TEA_STATUS_TUNED 0 |
| 4141 | #define TEA_STATUS_SEARCHING 1 |
| 4142 | |
| 4143 | /* Low-level stuff */ |
| 4144 | static int tea5757_read(struct bttv *btv) |
| 4145 | { |
| 4146 | unsigned long timeout; |
| 4147 | int value = 0; |
| 4148 | int i; |
| 4149 | |
| 4150 | /* better safe than sorry */ |
| 4151 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we); |
| 4152 | |
| 4153 | if (btv->mbox_ior) { |
| 4154 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4155 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4156 | udelay(5); |
| 4157 | } |
| 4158 | |
| 4159 | if (bttv_gpio) |
| 4160 | bttv_gpio_tracking(btv,"tea5757 read"); |
| 4161 | |
| 4162 | bus_low(btv,btv->mbox_we); |
| 4163 | bus_low(btv,btv->mbox_clk); |
| 4164 | |
| 4165 | udelay(10); |
| 4166 | timeout= jiffies + HZ; |
| 4167 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4168 | /* wait for DATA line to go low; error if it doesn't */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4169 | while (bus_in(btv,btv->mbox_data) && time_before(jiffies, timeout)) |
| 4170 | schedule(); |
| 4171 | if (bus_in(btv,btv->mbox_data)) { |
| 4172 | printk(KERN_WARNING "bttv%d: tea5757: read timeout\n",btv->c.nr); |
| 4173 | return -1; |
| 4174 | } |
| 4175 | |
| 4176 | dprintk("bttv%d: tea5757:",btv->c.nr); |
| 4177 | for(i = 0; i < 24; i++) |
| 4178 | { |
| 4179 | udelay(5); |
| 4180 | bus_high(btv,btv->mbox_clk); |
| 4181 | udelay(5); |
| 4182 | dprintk("%c",(bus_in(btv,btv->mbox_most) == 0)?'T':'-'); |
| 4183 | bus_low(btv,btv->mbox_clk); |
| 4184 | value <<= 1; |
| 4185 | value |= (bus_in(btv,btv->mbox_data) == 0)?0:1; /* MSB first */ |
| 4186 | dprintk("%c", (bus_in(btv,btv->mbox_most) == 0)?'S':'M'); |
| 4187 | } |
| 4188 | dprintk("\nbttv%d: tea5757: read 0x%X\n", btv->c.nr, value); |
| 4189 | return value; |
| 4190 | } |
| 4191 | |
| 4192 | static int tea5757_write(struct bttv *btv, int value) |
| 4193 | { |
| 4194 | int i; |
| 4195 | int reg = value; |
| 4196 | |
| 4197 | gpio_inout(btv->mbox_mask, btv->mbox_clk | btv->mbox_we | btv->mbox_data); |
| 4198 | |
| 4199 | if (btv->mbox_ior) { |
| 4200 | gpio_bits(btv->mbox_ior | btv->mbox_iow | btv->mbox_csel, |
| 4201 | btv->mbox_ior | btv->mbox_iow | btv->mbox_csel); |
| 4202 | udelay(5); |
| 4203 | } |
| 4204 | if (bttv_gpio) |
| 4205 | bttv_gpio_tracking(btv,"tea5757 write"); |
| 4206 | |
| 4207 | dprintk("bttv%d: tea5757: write 0x%X\n", btv->c.nr, value); |
| 4208 | bus_low(btv,btv->mbox_clk); |
| 4209 | bus_high(btv,btv->mbox_we); |
| 4210 | for(i = 0; i < 25; i++) |
| 4211 | { |
| 4212 | if (reg & 0x1000000) |
| 4213 | bus_high(btv,btv->mbox_data); |
| 4214 | else |
| 4215 | bus_low(btv,btv->mbox_data); |
| 4216 | reg <<= 1; |
| 4217 | bus_high(btv,btv->mbox_clk); |
| 4218 | udelay(10); |
| 4219 | bus_low(btv,btv->mbox_clk); |
| 4220 | udelay(10); |
| 4221 | } |
| 4222 | bus_low(btv,btv->mbox_we); /* unmute !!! */ |
| 4223 | return 0; |
| 4224 | } |
| 4225 | |
| 4226 | void tea5757_set_freq(struct bttv *btv, unsigned short freq) |
| 4227 | { |
| 4228 | dprintk("tea5757_set_freq %d\n",freq); |
| 4229 | tea5757_write(btv, 5 * freq + 0x358); /* add 10.7MHz (see docs) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4230 | } |
| 4231 | |
| 4232 | |
| 4233 | /* ----------------------------------------------------------------------- */ |
| 4234 | /* winview */ |
| 4235 | |
Adrian Bunk | 943a490 | 2005-12-01 00:51:35 -0800 | [diff] [blame] | 4236 | static void winview_audio(struct bttv *btv, struct video_audio *v, int set) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4237 | { |
| 4238 | /* PT2254A programming Jon Tombs, jon@gte.esi.us.es */ |
| 4239 | int bits_out, loops, vol, data; |
| 4240 | |
| 4241 | if (!set) { |
| 4242 | /* Fixed by Leandro Lucarella <luca@linuxmendoza.org.ar (07/31/01) */ |
| 4243 | v->flags |= VIDEO_AUDIO_VOLUME; |
| 4244 | return; |
| 4245 | } |
| 4246 | |
| 4247 | /* 32 levels logarithmic */ |
| 4248 | vol = 32 - ((v->volume>>11)); |
| 4249 | /* units */ |
| 4250 | bits_out = (PT2254_DBS_IN_2>>(vol%5)); |
| 4251 | /* tens */ |
| 4252 | bits_out |= (PT2254_DBS_IN_10>>(vol/5)); |
| 4253 | bits_out |= PT2254_L_CHANNEL | PT2254_R_CHANNEL; |
| 4254 | data = gpio_read(); |
| 4255 | data &= ~(WINVIEW_PT2254_CLK| WINVIEW_PT2254_DATA| |
| 4256 | WINVIEW_PT2254_STROBE); |
| 4257 | for (loops = 17; loops >= 0 ; loops--) { |
| 4258 | if (bits_out & (1<<loops)) |
| 4259 | data |= WINVIEW_PT2254_DATA; |
| 4260 | else |
| 4261 | data &= ~WINVIEW_PT2254_DATA; |
| 4262 | gpio_write(data); |
| 4263 | udelay(5); |
| 4264 | data |= WINVIEW_PT2254_CLK; |
| 4265 | gpio_write(data); |
| 4266 | udelay(5); |
| 4267 | data &= ~WINVIEW_PT2254_CLK; |
| 4268 | gpio_write(data); |
| 4269 | } |
| 4270 | data |= WINVIEW_PT2254_STROBE; |
| 4271 | data &= ~WINVIEW_PT2254_DATA; |
| 4272 | gpio_write(data); |
| 4273 | udelay(10); |
| 4274 | data &= ~WINVIEW_PT2254_STROBE; |
| 4275 | gpio_write(data); |
| 4276 | } |
| 4277 | |
| 4278 | /* ----------------------------------------------------------------------- */ |
| 4279 | /* mono/stereo control for various cards (which don't use i2c chips but */ |
| 4280 | /* connect something to the GPIO pins */ |
| 4281 | |
| 4282 | static void |
| 4283 | gvbctv3pci_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4284 | { |
| 4285 | unsigned int con = 0; |
| 4286 | |
| 4287 | if (set) { |
| 4288 | gpio_inout(0x300, 0x300); |
| 4289 | if (v->mode & VIDEO_SOUND_LANG1) |
| 4290 | con = 0x000; |
| 4291 | if (v->mode & VIDEO_SOUND_LANG2) |
| 4292 | con = 0x300; |
| 4293 | if (v->mode & VIDEO_SOUND_STEREO) |
| 4294 | con = 0x200; |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4295 | /* if (v->mode & VIDEO_SOUND_MONO) |
| 4296 | * con = 0x100; */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4297 | gpio_bits(0x300, con); |
| 4298 | } else { |
| 4299 | v->mode = VIDEO_SOUND_STEREO | |
| 4300 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4301 | } |
| 4302 | } |
| 4303 | |
| 4304 | static void |
| 4305 | gvbctv5pci_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4306 | { |
| 4307 | unsigned int val, con; |
| 4308 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4309 | if (btv->radio_user) |
| 4310 | return; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4311 | |
| 4312 | val = gpio_read(); |
| 4313 | if (set) { |
| 4314 | con = 0x000; |
| 4315 | if (v->mode & VIDEO_SOUND_LANG2) { |
| 4316 | if (v->mode & VIDEO_SOUND_LANG1) { |
| 4317 | /* LANG1 + LANG2 */ |
| 4318 | con = 0x100; |
| 4319 | } |
| 4320 | else { |
| 4321 | /* LANG2 */ |
| 4322 | con = 0x300; |
| 4323 | } |
| 4324 | } |
| 4325 | if (con != (val & 0x300)) { |
| 4326 | gpio_bits(0x300, con); |
| 4327 | if (bttv_gpio) |
| 4328 | bttv_gpio_tracking(btv,"gvbctv5pci"); |
| 4329 | } |
| 4330 | } else { |
| 4331 | switch (val & 0x70) { |
| 4332 | case 0x10: |
| 4333 | v->mode = VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4334 | break; |
| 4335 | case 0x30: |
| 4336 | v->mode = VIDEO_SOUND_LANG2; |
| 4337 | break; |
| 4338 | case 0x50: |
| 4339 | v->mode = VIDEO_SOUND_LANG1; |
| 4340 | break; |
| 4341 | case 0x60: |
| 4342 | v->mode = VIDEO_SOUND_STEREO; |
| 4343 | break; |
| 4344 | case 0x70: |
| 4345 | v->mode = VIDEO_SOUND_MONO; |
| 4346 | break; |
| 4347 | default: |
| 4348 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
| 4349 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4350 | } |
| 4351 | } |
| 4352 | } |
| 4353 | |
| 4354 | /* |
| 4355 | * Mario Medina Nussbaum <medisoft@alohabbs.org.mx> |
| 4356 | * I discover that on BT848_GPIO_DATA address a byte 0xcce enable stereo, |
| 4357 | * 0xdde enables mono and 0xccd enables sap |
| 4358 | * |
| 4359 | * Petr Vandrovec <VANDROVE@vc.cvut.cz> |
| 4360 | * P.S.: At least mask in line above is wrong - GPIO pins 3,2 select |
| 4361 | * input/output sound connection, so both must be set for output mode. |
| 4362 | * |
| 4363 | * Looks like it's needed only for the "tvphone", the "tvphone 98" |
| 4364 | * handles this with a tda9840 |
| 4365 | * |
| 4366 | */ |
| 4367 | static void |
| 4368 | avermedia_tvphone_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4369 | { |
| 4370 | int val = 0; |
| 4371 | |
| 4372 | if (set) { |
| 4373 | if (v->mode & VIDEO_SOUND_LANG2) /* SAP */ |
| 4374 | val = 0x02; |
| 4375 | if (v->mode & VIDEO_SOUND_STEREO) |
| 4376 | val = 0x01; |
| 4377 | if (val) { |
| 4378 | gpio_bits(0x03,val); |
| 4379 | if (bttv_gpio) |
| 4380 | bttv_gpio_tracking(btv,"avermedia"); |
| 4381 | } |
| 4382 | } else { |
| 4383 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
| 4384 | VIDEO_SOUND_LANG1; |
| 4385 | return; |
| 4386 | } |
| 4387 | } |
| 4388 | |
| 4389 | static void |
| 4390 | avermedia_tv_stereo_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4391 | { |
| 4392 | int val = 0; |
| 4393 | |
| 4394 | if (set) { |
| 4395 | if (v->mode & VIDEO_SOUND_LANG2) /* SAP */ |
| 4396 | val = 0x01; |
| 4397 | if (v->mode & VIDEO_SOUND_STEREO) /* STEREO */ |
| 4398 | val = 0x02; |
| 4399 | btaor(val, ~0x03, BT848_GPIO_DATA); |
| 4400 | if (bttv_gpio) |
| 4401 | bttv_gpio_tracking(btv,"avermedia"); |
| 4402 | } else { |
| 4403 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
| 4404 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4405 | return; |
| 4406 | } |
| 4407 | } |
| 4408 | |
| 4409 | /* Lifetec 9415 handling */ |
| 4410 | static void |
| 4411 | lt9415_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4412 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4413 | int val = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4414 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4415 | if (gpio_read() & 0x4000) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4416 | v->mode = VIDEO_SOUND_MONO; |
| 4417 | return; |
| 4418 | } |
| 4419 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4420 | if (set) { |
| 4421 | if (v->mode & VIDEO_SOUND_LANG2) /* A2 SAP */ |
| 4422 | val = 0x0080; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4423 | if (v->mode & VIDEO_SOUND_STEREO) /* A2 stereo */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4424 | val = 0x0880; |
| 4425 | if ((v->mode & VIDEO_SOUND_LANG1) || |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4426 | (v->mode & VIDEO_SOUND_MONO)) |
| 4427 | val = 0; |
| 4428 | gpio_bits(0x0880, val); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4429 | if (bttv_gpio) |
| 4430 | bttv_gpio_tracking(btv,"lt9415"); |
| 4431 | } else { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4432 | /* autodetect doesn't work with this card :-( */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4433 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4434 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4435 | return; |
| 4436 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4437 | } |
| 4438 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4439 | /* TDA9821 on TerraTV+ Bt848, Bt878 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4440 | static void |
| 4441 | terratv_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4442 | { |
| 4443 | unsigned int con = 0; |
| 4444 | |
| 4445 | if (set) { |
| 4446 | gpio_inout(0x180000,0x180000); |
| 4447 | if (v->mode & VIDEO_SOUND_LANG2) |
| 4448 | con = 0x080000; |
| 4449 | if (v->mode & VIDEO_SOUND_STEREO) |
| 4450 | con = 0x180000; |
| 4451 | gpio_bits(0x180000, con); |
| 4452 | if (bttv_gpio) |
| 4453 | bttv_gpio_tracking(btv,"terratv"); |
| 4454 | } else { |
| 4455 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
| 4456 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4457 | } |
| 4458 | } |
| 4459 | |
| 4460 | static void |
| 4461 | winfast2000_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4462 | { |
| 4463 | unsigned long val = 0; |
| 4464 | |
| 4465 | if (set) { |
| 4466 | /*btor (0xc32000, BT848_GPIO_OUT_EN);*/ |
| 4467 | if (v->mode & VIDEO_SOUND_MONO) /* Mono */ |
| 4468 | val = 0x420000; |
| 4469 | if (v->mode & VIDEO_SOUND_LANG1) /* Mono */ |
| 4470 | val = 0x420000; |
| 4471 | if (v->mode & VIDEO_SOUND_LANG2) /* SAP */ |
| 4472 | val = 0x410000; |
| 4473 | if (v->mode & VIDEO_SOUND_STEREO) /* Stereo */ |
| 4474 | val = 0x020000; |
| 4475 | if (val) { |
| 4476 | gpio_bits(0x430000, val); |
| 4477 | if (bttv_gpio) |
| 4478 | bttv_gpio_tracking(btv,"winfast2000"); |
| 4479 | } |
| 4480 | } else { |
| 4481 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
| 4482 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4483 | } |
| 4484 | } |
| 4485 | |
| 4486 | /* |
| 4487 | * Dariusz Kowalewski <darekk@automex.pl> |
| 4488 | * sound control for Prolink PV-BT878P+9B (PixelView PlayTV Pro FM+NICAM |
| 4489 | * revision 9B has on-board TDA9874A sound decoder). |
| 4490 | * |
| 4491 | * Note: There are card variants without tda9874a. Forcing the "stereo sound route" |
| 4492 | * will mute this cards. |
| 4493 | */ |
| 4494 | static void |
| 4495 | pvbt878p9b_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4496 | { |
| 4497 | unsigned int val = 0; |
| 4498 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4499 | if (btv->radio_user) |
| 4500 | return; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4501 | |
| 4502 | if (set) { |
| 4503 | if (v->mode & VIDEO_SOUND_MONO) { |
| 4504 | val = 0x01; |
| 4505 | } |
| 4506 | if ((v->mode & (VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2)) |
| 4507 | || (v->mode & VIDEO_SOUND_STEREO)) { |
| 4508 | val = 0x02; |
| 4509 | } |
| 4510 | if (val) { |
| 4511 | gpio_bits(0x03,val); |
| 4512 | if (bttv_gpio) |
| 4513 | bttv_gpio_tracking(btv,"pvbt878p9b"); |
| 4514 | } |
| 4515 | } else { |
| 4516 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
| 4517 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4518 | } |
| 4519 | } |
| 4520 | |
| 4521 | /* |
| 4522 | * Dariusz Kowalewski <darekk@automex.pl> |
| 4523 | * sound control for FlyVideo 2000S (with tda9874 decoder) |
| 4524 | * based on pvbt878p9b_audio() - this is not tested, please fix!!! |
| 4525 | */ |
| 4526 | static void |
| 4527 | fv2000s_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4528 | { |
| 4529 | unsigned int val = 0xffff; |
| 4530 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4531 | if (btv->radio_user) |
| 4532 | return; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4533 | if (set) { |
| 4534 | if (v->mode & VIDEO_SOUND_MONO) { |
| 4535 | val = 0x0000; |
| 4536 | } |
| 4537 | if ((v->mode & (VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2)) |
| 4538 | || (v->mode & VIDEO_SOUND_STEREO)) { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4539 | val = 0x1080; /*-dk-???: 0x0880, 0x0080, 0x1800 ... */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4540 | } |
| 4541 | if (val != 0xffff) { |
| 4542 | gpio_bits(0x1800, val); |
| 4543 | if (bttv_gpio) |
| 4544 | bttv_gpio_tracking(btv,"fv2000s"); |
| 4545 | } |
| 4546 | } else { |
| 4547 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
| 4548 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4549 | } |
| 4550 | } |
| 4551 | |
| 4552 | /* |
| 4553 | * sound control for Canopus WinDVR PCI |
| 4554 | * Masaki Suzuki <masaki@btree.org> |
| 4555 | */ |
| 4556 | static void |
| 4557 | windvr_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4558 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4559 | unsigned long val = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4560 | |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4561 | if (set) { |
| 4562 | if (v->mode & VIDEO_SOUND_MONO) |
| 4563 | val = 0x040000; |
| 4564 | if (v->mode & VIDEO_SOUND_LANG1) |
| 4565 | val = 0; |
| 4566 | if (v->mode & VIDEO_SOUND_LANG2) |
| 4567 | val = 0x100000; |
| 4568 | if (v->mode & VIDEO_SOUND_STEREO) |
| 4569 | val = 0; |
| 4570 | if (val) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4571 | gpio_bits(0x140000, val); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4572 | if (bttv_gpio) |
Mauro Carvalho Chehab | f2421ca | 2005-11-08 21:37:45 -0800 | [diff] [blame] | 4573 | bttv_gpio_tracking(btv,"windvr"); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4574 | } |
| 4575 | } else { |
| 4576 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
| 4577 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4578 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4579 | } |
| 4580 | |
| 4581 | /* |
| 4582 | * sound control for AD-TVK503 |
| 4583 | * Hiroshi Takekawa <sian@big.or.jp> |
| 4584 | */ |
| 4585 | static void |
| 4586 | adtvk503_audio(struct bttv *btv, struct video_audio *v, int set) |
| 4587 | { |
| 4588 | unsigned int con = 0xffffff; |
| 4589 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4590 | /* btaor(0x1e0000, ~0x1e0000, BT848_GPIO_OUT_EN); */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4591 | |
| 4592 | if (set) { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4593 | /* btor(***, BT848_GPIO_OUT_EN); */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4594 | if (v->mode & VIDEO_SOUND_LANG1) |
| 4595 | con = 0x00000000; |
| 4596 | if (v->mode & VIDEO_SOUND_LANG2) |
| 4597 | con = 0x00180000; |
| 4598 | if (v->mode & VIDEO_SOUND_STEREO) |
| 4599 | con = 0x00000000; |
| 4600 | if (v->mode & VIDEO_SOUND_MONO) |
| 4601 | con = 0x00060000; |
| 4602 | if (con != 0xffffff) { |
| 4603 | gpio_bits(0x1e0000,con); |
| 4604 | if (bttv_gpio) |
| 4605 | bttv_gpio_tracking(btv, "adtvk503"); |
| 4606 | } |
| 4607 | } else { |
| 4608 | v->mode = VIDEO_SOUND_MONO | VIDEO_SOUND_STEREO | |
| 4609 | VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; |
| 4610 | } |
| 4611 | } |
| 4612 | |
| 4613 | /* RemoteVision MX (rv605) muxsel helper [Miguel Freitas] |
| 4614 | * |
| 4615 | * This is needed because rv605 don't use a normal multiplex, but a crosspoint |
| 4616 | * switch instead (CD22M3494E). This IC can have multiple active connections |
| 4617 | * between Xn (input) and Yn (output) pins. We need to clear any existing |
| 4618 | * connection prior to establish a new one, pulsing the STROBE pin. |
| 4619 | * |
| 4620 | * The board hardwire Y0 (xpoint) to MUX1 and MUXOUT to Yin. |
| 4621 | * GPIO pins are wired as: |
| 4622 | * GPIO[0:3] - AX[0:3] (xpoint) - P1[0:3] (microcontroler) |
| 4623 | * GPIO[4:6] - AY[0:2] (xpoint) - P1[4:6] (microcontroler) |
| 4624 | * GPIO[7] - DATA (xpoint) - P1[7] (microcontroler) |
| 4625 | * GPIO[8] - - P3[5] (microcontroler) |
| 4626 | * GPIO[9] - RESET (xpoint) - P3[6] (microcontroler) |
| 4627 | * GPIO[10] - STROBE (xpoint) - P3[7] (microcontroler) |
| 4628 | * GPINTR - - P3[4] (microcontroler) |
| 4629 | * |
| 4630 | * The microcontroler is a 80C32 like. It should be possible to change xpoint |
| 4631 | * configuration either directly (as we are doing) or using the microcontroler |
| 4632 | * which is also wired to I2C interface. I have no further info on the |
| 4633 | * microcontroler features, one would need to disassembly the firmware. |
| 4634 | * note: the vendor refused to give any information on this product, all |
| 4635 | * that stuff was found using a multimeter! :) |
| 4636 | */ |
| 4637 | static void rv605_muxsel(struct bttv *btv, unsigned int input) |
| 4638 | { |
| 4639 | /* reset all conections */ |
| 4640 | gpio_bits(0x200,0x200); |
| 4641 | mdelay(1); |
| 4642 | gpio_bits(0x200,0x000); |
| 4643 | mdelay(1); |
| 4644 | |
| 4645 | /* create a new conection */ |
| 4646 | gpio_bits(0x480,0x080); |
| 4647 | gpio_bits(0x480,0x480); |
| 4648 | mdelay(1); |
| 4649 | gpio_bits(0x480,0x080); |
| 4650 | mdelay(1); |
| 4651 | } |
| 4652 | |
| 4653 | /* Tibet Systems 'Progress DVR' CS16 muxsel helper [Chris Fanning] |
| 4654 | * |
| 4655 | * The CS16 (available on eBay cheap) is a PCI board with four Fusion |
| 4656 | * 878A chips, a PCI bridge, an Atmel microcontroller, four sync seperator |
| 4657 | * chips, ten eight input analog multiplexors, a not chip and a few |
| 4658 | * other components. |
| 4659 | * |
| 4660 | * 16 inputs on a secondary bracket are provided and can be selected |
| 4661 | * from each of the four capture chips. Two of the eight input |
| 4662 | * multiplexors are used to select from any of the 16 input signals. |
| 4663 | * |
| 4664 | * Unsupported hardware capabilities: |
| 4665 | * . A video output monitor on the secondary bracket can be selected from |
| 4666 | * one of the 878A chips. |
| 4667 | * . Another passthrough but I haven't spent any time investigating it. |
| 4668 | * . Digital I/O (logic level connected to GPIO) is available from an |
| 4669 | * onboard header. |
| 4670 | * |
| 4671 | * The on chip input mux should always be set to 2. |
| 4672 | * GPIO[16:19] - Video input selection |
| 4673 | * GPIO[0:3] - Video output monitor select (only available from one 878A) |
| 4674 | * GPIO[?:?] - Digital I/O. |
| 4675 | * |
| 4676 | * There is an ATMEL microcontroller with an 8031 core on board. I have not |
| 4677 | * determined what function (if any) it provides. With the microcontroller |
| 4678 | * and sync seperator chips a guess is that it might have to do with video |
| 4679 | * switching and maybe some digital I/O. |
| 4680 | */ |
| 4681 | static void tibetCS16_muxsel(struct bttv *btv, unsigned int input) |
| 4682 | { |
| 4683 | /* video mux */ |
| 4684 | gpio_bits(0x0f0000, input << 16); |
| 4685 | } |
| 4686 | |
| 4687 | static void tibetCS16_init(struct bttv *btv) |
| 4688 | { |
| 4689 | /* enable gpio bits, mask obtained via btSpy */ |
| 4690 | gpio_inout(0xffffff, 0x0f7fff); |
| 4691 | gpio_write(0x0f7fff); |
| 4692 | } |
| 4693 | |
| 4694 | /* |
| 4695 | * The following routines for the Kodicom-4400r get a little mind-twisting. |
| 4696 | * There is a "master" controller and three "slave" controllers, together |
| 4697 | * an analog switch which connects any of 16 cameras to any of the BT87A's. |
| 4698 | * The analog switch is controlled by the "master", but the detection order |
| 4699 | * of the four BT878A chips is in an order which I just don't understand. |
| 4700 | * The "master" is actually the second controller to be detected. The |
| 4701 | * logic on the board uses logical numbers for the 4 controlers, but |
| 4702 | * those numbers are different from the detection sequence. When working |
| 4703 | * with the analog switch, we need to "map" from the detection sequence |
| 4704 | * over to the board's logical controller number. This mapping sequence |
| 4705 | * is {3, 0, 2, 1}, i.e. the first controller to be detected is logical |
| 4706 | * unit 3, the second (which is the master) is logical unit 0, etc. |
| 4707 | * We need to maintain the status of the analog switch (which of the 16 |
| 4708 | * cameras is connected to which of the 4 controllers). Rather than |
| 4709 | * add to the bttv structure for this, we use the data reserved for |
| 4710 | * the mbox (unused for this card type). |
| 4711 | */ |
| 4712 | |
| 4713 | /* |
| 4714 | * First a routine to set the analog switch, which controls which camera |
| 4715 | * is routed to which controller. The switch comprises an X-address |
| 4716 | * (gpio bits 0-3, representing the camera, ranging from 0-15), and a |
| 4717 | * Y-address (gpio bits 4-6, representing the controller, ranging from 0-3). |
| 4718 | * A data value (gpio bit 7) of '1' enables the switch, and '0' disables |
| 4719 | * the switch. A STROBE bit (gpio bit 8) latches the data value into the |
| 4720 | * specified address. The idea is to set the address and data, then bring |
| 4721 | * STROBE high, and finally bring STROBE back to low. |
| 4722 | */ |
| 4723 | static void kodicom4400r_write(struct bttv *btv, |
| 4724 | unsigned char xaddr, |
| 4725 | unsigned char yaddr, |
| 4726 | unsigned char data) { |
| 4727 | unsigned int udata; |
| 4728 | |
| 4729 | udata = (data << 7) | ((yaddr&3) << 4) | (xaddr&0xf); |
| 4730 | gpio_bits(0x1ff, udata); /* write ADDR and DAT */ |
| 4731 | gpio_bits(0x1ff, udata | (1 << 8)); /* strobe high */ |
| 4732 | gpio_bits(0x1ff, udata); /* strobe low */ |
| 4733 | } |
| 4734 | |
| 4735 | /* |
| 4736 | * Next the mux select. Both the "master" and "slave" 'cards' (controllers) |
| 4737 | * use this routine. The routine finds the "master" for the card, maps |
| 4738 | * the controller number from the detected position over to the logical |
| 4739 | * number, writes the appropriate data to the analog switch, and housekeeps |
| 4740 | * the local copy of the switch information. The parameter 'input' is the |
| 4741 | * requested camera number (0 - 15). |
| 4742 | */ |
| 4743 | static void kodicom4400r_muxsel(struct bttv *btv, unsigned int input) |
| 4744 | { |
| 4745 | char *sw_status; |
| 4746 | int xaddr, yaddr; |
| 4747 | struct bttv *mctlr; |
| 4748 | static unsigned char map[4] = {3, 0, 2, 1}; |
| 4749 | |
| 4750 | mctlr = master[btv->c.nr]; |
| 4751 | if (mctlr == NULL) { /* ignore if master not yet detected */ |
| 4752 | return; |
| 4753 | } |
| 4754 | yaddr = (btv->c.nr - mctlr->c.nr + 1) & 3; /* the '&' is for safety */ |
| 4755 | yaddr = map[yaddr]; |
| 4756 | sw_status = (char *)(&mctlr->mbox_we); |
| 4757 | xaddr = input & 0xf; |
| 4758 | /* Check if the controller/camera pair has changed, else ignore */ |
| 4759 | if (sw_status[yaddr] != xaddr) |
| 4760 | { |
| 4761 | /* "open" the old switch, "close" the new one, save the new */ |
| 4762 | kodicom4400r_write(mctlr, sw_status[yaddr], yaddr, 0); |
| 4763 | sw_status[yaddr] = xaddr; |
| 4764 | kodicom4400r_write(mctlr, xaddr, yaddr, 1); |
| 4765 | } |
| 4766 | } |
| 4767 | |
| 4768 | /* |
| 4769 | * During initialisation, we need to reset the analog switch. We |
| 4770 | * also preset the switch to map the 4 connectors on the card to the |
| 4771 | * *user's* (see above description of kodicom4400r_muxsel) channels |
| 4772 | * 0 through 3 |
| 4773 | */ |
| 4774 | static void kodicom4400r_init(struct bttv *btv) |
| 4775 | { |
| 4776 | char *sw_status = (char *)(&btv->mbox_we); |
| 4777 | int ix; |
| 4778 | |
| 4779 | gpio_inout(0x0003ff, 0x0003ff); |
| 4780 | gpio_write(1 << 9); /* reset MUX */ |
| 4781 | gpio_write(0); |
| 4782 | /* Preset camera 0 to the 4 controllers */ |
| 4783 | for (ix=0; ix<4; ix++) { |
| 4784 | sw_status[ix] = ix; |
| 4785 | kodicom4400r_write(btv, ix, ix, 1); |
| 4786 | } |
| 4787 | /* |
| 4788 | * Since this is the "master", we need to set up the |
| 4789 | * other three controller chips' pointers to this structure |
| 4790 | * for later use in the muxsel routine. |
| 4791 | */ |
| 4792 | if ((btv->c.nr<1) || (btv->c.nr>BTTV_MAX-3)) |
| 4793 | return; |
| 4794 | master[btv->c.nr-1] = btv; |
| 4795 | master[btv->c.nr] = btv; |
| 4796 | master[btv->c.nr+1] = btv; |
| 4797 | master[btv->c.nr+2] = btv; |
| 4798 | } |
| 4799 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4800 | /* The Grandtec X-Guard framegrabber card uses two Dual 4-channel |
| 4801 | * video multiplexers to provide up to 16 video inputs. These |
| 4802 | * multiplexers are controlled by the lower 8 GPIO pins of the |
| 4803 | * bt878. The multiplexers probably Pericom PI5V331Q or similar. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4804 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4805 | * xxx0 is pin xxx of multiplexer U5, |
| 4806 | * yyy1 is pin yyy of multiplexer U2 |
| 4807 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4808 | #define ENA0 0x01 |
| 4809 | #define ENB0 0x02 |
| 4810 | #define ENA1 0x04 |
| 4811 | #define ENB1 0x08 |
| 4812 | |
| 4813 | #define IN10 0x10 |
| 4814 | #define IN00 0x20 |
| 4815 | #define IN11 0x40 |
| 4816 | #define IN01 0x80 |
| 4817 | |
| 4818 | static void xguard_muxsel(struct bttv *btv, unsigned int input) |
| 4819 | { |
| 4820 | static const int masks[] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4821 | ENB0, ENB0|IN00, ENB0|IN10, ENB0|IN00|IN10, |
| 4822 | ENA0, ENA0|IN00, ENA0|IN10, ENA0|IN00|IN10, |
| 4823 | ENB1, ENB1|IN01, ENB1|IN11, ENB1|IN01|IN11, |
| 4824 | ENA1, ENA1|IN01, ENA1|IN11, ENA1|IN01|IN11, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4825 | }; |
| 4826 | gpio_write(masks[input%16]); |
| 4827 | } |
| 4828 | static void picolo_tetra_init(struct bttv *btv) |
| 4829 | { |
| 4830 | /*This is the video input redirection fonctionality : I DID NOT USED IT. */ |
| 4831 | btwrite (0x08<<16,BT848_GPIO_DATA);/*GPIO[19] [==> 4053 B+C] set to 1 */ |
| 4832 | btwrite (0x04<<16,BT848_GPIO_DATA);/*GPIO[18] [==> 4053 A] set to 1*/ |
| 4833 | } |
| 4834 | static void picolo_tetra_muxsel (struct bttv* btv, unsigned int input) |
| 4835 | { |
| 4836 | |
| 4837 | dprintk (KERN_DEBUG "bttv%d : picolo_tetra_muxsel => input = %d\n",btv->c.nr,input); |
| 4838 | /*Just set the right path in the analog multiplexers : channel 1 -> 4 ==> Analog Mux ==> MUX0*/ |
| 4839 | /*GPIO[20]&GPIO[21] used to choose the right input*/ |
| 4840 | btwrite (input<<20,BT848_GPIO_DATA); |
| 4841 | |
| 4842 | } |
| 4843 | |
| 4844 | /* |
| 4845 | * ivc120_muxsel [Added by Alan Garfield <alan@fromorbit.com>] |
| 4846 | * |
| 4847 | * The IVC120G security card has 4 i2c controlled TDA8540 matrix |
| 4848 | * swichers to provide 16 channels to MUX0. The TDA8540's have |
| 4849 | * 4 indepedant outputs and as such the IVC120G also has the |
| 4850 | * optional "Monitor Out" bus. This allows the card to be looking |
| 4851 | * at one input while the monitor is looking at another. |
| 4852 | * |
| 4853 | * Since I've couldn't be bothered figuring out how to add an |
| 4854 | * independant muxsel for the monitor bus, I've just set it to |
| 4855 | * whatever the card is looking at. |
| 4856 | * |
| 4857 | * OUT0 of the TDA8540's is connected to MUX0 (0x03) |
| 4858 | * OUT1 of the TDA8540's is connected to "Monitor Out" (0x0C) |
| 4859 | * |
| 4860 | * TDA8540_ALT3 IN0-3 = Channel 13 - 16 (0x03) |
| 4861 | * TDA8540_ALT4 IN0-3 = Channel 1 - 4 (0x03) |
| 4862 | * TDA8540_ALT5 IN0-3 = Channel 5 - 8 (0x03) |
| 4863 | * TDA8540_ALT6 IN0-3 = Channel 9 - 12 (0x03) |
| 4864 | * |
| 4865 | */ |
| 4866 | |
| 4867 | /* All 7 possible sub-ids for the TDA8540 Matrix Switcher */ |
| 4868 | #define I2C_TDA8540 0x90 |
| 4869 | #define I2C_TDA8540_ALT1 0x92 |
| 4870 | #define I2C_TDA8540_ALT2 0x94 |
| 4871 | #define I2C_TDA8540_ALT3 0x96 |
| 4872 | #define I2C_TDA8540_ALT4 0x98 |
| 4873 | #define I2C_TDA8540_ALT5 0x9a |
| 4874 | #define I2C_TDA8540_ALT6 0x9c |
| 4875 | |
| 4876 | static void ivc120_muxsel(struct bttv *btv, unsigned int input) |
| 4877 | { |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4878 | /* Simple maths */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4879 | int key = input % 4; |
| 4880 | int matrix = input / 4; |
| 4881 | |
| 4882 | dprintk("bttv%d: ivc120_muxsel: Input - %02d | TDA - %02d | In - %02d\n", |
| 4883 | btv->c.nr, input, matrix, key); |
| 4884 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4885 | /* Handles the input selection on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4886 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x00, |
| 4887 | ((matrix == 3) ? (key | key << 2) : 0x00), 1); |
| 4888 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x00, |
| 4889 | ((matrix == 0) ? (key | key << 2) : 0x00), 1); |
| 4890 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x00, |
| 4891 | ((matrix == 1) ? (key | key << 2) : 0x00), 1); |
| 4892 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x00, |
| 4893 | ((matrix == 2) ? (key | key << 2) : 0x00), 1); |
| 4894 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4895 | /* Handles the output enables on the TDA8540's */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4896 | bttv_I2CWrite(btv, I2C_TDA8540_ALT3, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4897 | ((matrix == 3) ? 0x03 : 0x00), 1); /* 13 - 16 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4898 | bttv_I2CWrite(btv, I2C_TDA8540_ALT4, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4899 | ((matrix == 0) ? 0x03 : 0x00), 1); /* 1-4 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4900 | bttv_I2CWrite(btv, I2C_TDA8540_ALT5, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4901 | ((matrix == 1) ? 0x03 : 0x00), 1); /* 5-8 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4902 | bttv_I2CWrite(btv, I2C_TDA8540_ALT6, 0x02, |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4903 | ((matrix == 2) ? 0x03 : 0x00), 1); /* 9-12 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4904 | |
Mauro Carvalho Chehab | 24a70fd | 2005-09-09 13:03:39 -0700 | [diff] [blame] | 4905 | /* Selects MUX0 for input on the 878 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4906 | btaor((0)<<5, ~(3<<5), BT848_IFORM); |
| 4907 | } |
| 4908 | |
| 4909 | |
| 4910 | /* PXC200 muxsel helper |
| 4911 | * luke@syseng.anu.edu.au |
| 4912 | * another transplant |
| 4913 | * from Alessandro Rubini (rubini@linux.it) |
| 4914 | * |
| 4915 | * There are 4 kinds of cards: |
| 4916 | * PXC200L which is bt848 |
| 4917 | * PXC200F which is bt848 with PIC controlling mux |
| 4918 | * PXC200AL which is bt878 |
| 4919 | * PXC200AF which is bt878 with PIC controlling mux |
| 4920 | */ |
| 4921 | #define PX_CFG_PXC200F 0x01 |
| 4922 | #define PX_FLAG_PXC200A 0x00001000 /* a pxc200A is bt-878 based */ |
| 4923 | #define PX_I2C_PIC 0x0f |
| 4924 | #define PX_PXC200A_CARDID 0x200a1295 |
| 4925 | #define PX_I2C_CMD_CFG 0x00 |
| 4926 | |
| 4927 | static void PXC200_muxsel(struct bttv *btv, unsigned int input) |
| 4928 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4929 | int rc; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4930 | long mux; |
| 4931 | int bitmask; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4932 | unsigned char buf[2]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4933 | |
| 4934 | /* Read PIC config to determine if this is a PXC200F */ |
| 4935 | /* PX_I2C_CMD_CFG*/ |
| 4936 | buf[0]=0; |
| 4937 | buf[1]=0; |
| 4938 | rc=bttv_I2CWrite(btv,(PX_I2C_PIC<<1),buf[0],buf[1],1); |
| 4939 | if (rc) { |
| 4940 | printk(KERN_DEBUG "bttv%d: PXC200_muxsel: pic cfg write failed:%d\n", btv->c.nr,rc); |
| 4941 | /* not PXC ? do nothing */ |
| 4942 | return; |
| 4943 | } |
| 4944 | |
| 4945 | rc=bttv_I2CRead(btv,(PX_I2C_PIC<<1),NULL); |
| 4946 | if (!(rc & PX_CFG_PXC200F)) { |
| 4947 | printk(KERN_DEBUG "bttv%d: PXC200_muxsel: not PXC200F rc:%d \n", btv->c.nr,rc); |
| 4948 | return; |
| 4949 | } |
| 4950 | |
| 4951 | |
| 4952 | /* The multiplexer in the 200F is handled by the GPIO port */ |
| 4953 | /* get correct mapping between inputs */ |
| 4954 | /* mux = bttv_tvcards[btv->type].muxsel[input] & 3; */ |
| 4955 | /* ** not needed!? */ |
| 4956 | mux = input; |
| 4957 | |
| 4958 | /* make sure output pins are enabled */ |
| 4959 | /* bitmask=0x30f; */ |
| 4960 | bitmask=0x302; |
| 4961 | /* check whether we have a PXC200A */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4962 | if (btv->cardid == PX_PXC200A_CARDID) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4963 | bitmask ^= 0x180; /* use 7 and 9, not 8 and 9 */ |
| 4964 | bitmask |= 7<<4; /* the DAC */ |
| 4965 | } |
| 4966 | btwrite(bitmask, BT848_GPIO_OUT_EN); |
| 4967 | |
| 4968 | bitmask = btread(BT848_GPIO_DATA); |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4969 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4970 | bitmask = (bitmask & ~0x280) | ((mux & 2) << 8) | ((mux & 1) << 7); |
| 4971 | else /* older device */ |
| 4972 | bitmask = (bitmask & ~0x300) | ((mux & 3) << 8); |
| 4973 | btwrite(bitmask,BT848_GPIO_DATA); |
| 4974 | |
| 4975 | /* |
| 4976 | * Was "to be safe, set the bt848 to input 0" |
| 4977 | * Actually, since it's ok at load time, better not messing |
| 4978 | * with these bits (on PXC200AF you need to set mux 2 here) |
| 4979 | * |
| 4980 | * needed because bttv-driver sets mux before calling this function |
| 4981 | */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 4982 | if (btv->cardid == PX_PXC200A_CARDID) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4983 | btaor(2<<5, ~BT848_IFORM_MUXSEL, BT848_IFORM); |
| 4984 | else /* older device */ |
| 4985 | btand(~BT848_IFORM_MUXSEL,BT848_IFORM); |
| 4986 | |
| 4987 | printk(KERN_DEBUG "bttv%d: setting input channel to:%d\n", btv->c.nr,(int)mux); |
| 4988 | } |
| 4989 | |
| 4990 | /* ----------------------------------------------------------------------- */ |
| 4991 | /* motherboard chipset specific stuff */ |
| 4992 | |
| 4993 | void __devinit bttv_check_chipset(void) |
| 4994 | { |
| 4995 | int pcipci_fail = 0; |
| 4996 | struct pci_dev *dev = NULL; |
| 4997 | |
| 4998 | if (pci_pci_problems & PCIPCI_FAIL) |
| 4999 | pcipci_fail = 1; |
| 5000 | if (pci_pci_problems & (PCIPCI_TRITON|PCIPCI_NATOMA|PCIPCI_VIAETBF)) |
| 5001 | triton1 = 1; |
| 5002 | if (pci_pci_problems & PCIPCI_VSFX) |
| 5003 | vsfx = 1; |
| 5004 | #ifdef PCIPCI_ALIMAGIK |
| 5005 | if (pci_pci_problems & PCIPCI_ALIMAGIK) |
| 5006 | latency = 0x0A; |
| 5007 | #endif |
| 5008 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5009 | |
| 5010 | /* print warnings about any quirks found */ |
| 5011 | if (triton1) |
| 5012 | printk(KERN_INFO "bttv: Host bridge needs ETBF enabled.\n"); |
| 5013 | if (vsfx) |
| 5014 | printk(KERN_INFO "bttv: Host bridge needs VSFX enabled.\n"); |
| 5015 | if (pcipci_fail) { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 5016 | printk(KERN_INFO "bttv: bttv and your chipset may not work " |
| 5017 | "together.\n"); |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 5018 | if (!no_overlay) { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 5019 | printk(KERN_INFO "bttv: overlay will be disabled.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5020 | no_overlay = 1; |
Mauro Carvalho Chehab | 4dcef52 | 2005-08-04 12:53:30 -0700 | [diff] [blame] | 5021 | } else { |
Mauro Carvalho Chehab | 9050d94 | 2006-03-10 16:46:50 -0300 | [diff] [blame] | 5022 | printk(KERN_INFO "bttv: overlay forced. Use this " |
| 5023 | "option at your own risk.\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5024 | } |
| 5025 | } |
| 5026 | if (UNSET != latency) |
| 5027 | printk(KERN_INFO "bttv: pci latency fixup [%d]\n",latency); |
Mauro Carvalho Chehab | 2bfa1ac | 2005-11-08 21:36:51 -0800 | [diff] [blame] | 5028 | while ((dev = pci_get_device(PCI_VENDOR_ID_INTEL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5029 | PCI_DEVICE_ID_INTEL_82441, dev))) { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 5030 | unsigned char b; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5031 | pci_read_config_byte(dev, 0x53, &b); |
| 5032 | if (bttv_debug) |
| 5033 | printk(KERN_INFO "bttv: Host bridge: 82441FX Natoma, " |
| 5034 | "bufcon=0x%02x\n",b); |
| 5035 | } |
| 5036 | } |
| 5037 | |
| 5038 | int __devinit bttv_handle_chipset(struct bttv *btv) |
| 5039 | { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 5040 | unsigned char command; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5041 | |
| 5042 | if (!triton1 && !vsfx && UNSET == latency) |
| 5043 | return 0; |
| 5044 | |
| 5045 | if (bttv_verbose) { |
| 5046 | if (triton1) |
| 5047 | printk(KERN_INFO "bttv%d: enabling ETBF (430FX/VP3 compatibilty)\n",btv->c.nr); |
| 5048 | if (vsfx && btv->id >= 878) |
| 5049 | printk(KERN_INFO "bttv%d: enabling VSFX\n",btv->c.nr); |
| 5050 | if (UNSET != latency) |
| 5051 | printk(KERN_INFO "bttv%d: setting pci timer to %d\n", |
| 5052 | btv->c.nr,latency); |
| 5053 | } |
| 5054 | |
| 5055 | if (btv->id < 878) { |
| 5056 | /* bt848 (mis)uses a bit in the irq mask for etbf */ |
| 5057 | if (triton1) |
| 5058 | btv->triton1 = BT848_INT_ETBF; |
| 5059 | } else { |
| 5060 | /* bt878 has a bit in the pci config space for it */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 5061 | pci_read_config_byte(btv->c.pci, BT878_DEVCTRL, &command); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5062 | if (triton1) |
| 5063 | command |= BT878_EN_TBFX; |
| 5064 | if (vsfx) |
| 5065 | command |= BT878_EN_VSFX; |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 5066 | pci_write_config_byte(btv->c.pci, BT878_DEVCTRL, command); |
| 5067 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5068 | if (UNSET != latency) |
| 5069 | pci_write_config_byte(btv->c.pci, PCI_LATENCY_TIMER, latency); |
| 5070 | return 0; |
| 5071 | } |
| 5072 | |
| 5073 | |
| 5074 | /* |
| 5075 | * Local variables: |
| 5076 | * c-basic-offset: 8 |
| 5077 | * End: |
| 5078 | */ |