akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1 | /* |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2 | em28xx-cards.c - driver for Empia EM2800/EM2820/2840 USB |
| 3 | video capture devices |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 4 | |
Mauro Carvalho Chehab | f7abcd3 | 2005-11-08 21:38:25 -0800 | [diff] [blame] | 5 | Copyright (C) 2005 Ludovico Cavedon <cavedon@sssup.it> |
| 6 | Markus Rechberger <mrechberger@gmail.com> |
Mauro Carvalho Chehab | 2e7c6dc | 2006-04-03 07:53:40 -0300 | [diff] [blame] | 7 | Mauro Carvalho Chehab <mchehab@infradead.org> |
Mauro Carvalho Chehab | f7abcd3 | 2005-11-08 21:38:25 -0800 | [diff] [blame] | 8 | Sascha Sommer <saschasommer@freenet.de> |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 9 | |
| 10 | This program is free software; you can redistribute it and/or modify |
| 11 | it under the terms of the GNU General Public License as published by |
| 12 | the Free Software Foundation; either version 2 of the License, or |
| 13 | (at your option) any later version. |
| 14 | |
| 15 | This program is distributed in the hope that it will be useful, |
| 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | GNU General Public License for more details. |
| 19 | |
| 20 | You should have received a copy of the GNU General Public License |
| 21 | along with this program; if not, write to the Free Software |
| 22 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 23 | */ |
| 24 | |
| 25 | #include <linux/init.h> |
| 26 | #include <linux/module.h> |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 27 | #include <linux/delay.h> |
| 28 | #include <linux/i2c.h> |
| 29 | #include <linux/usb.h> |
| 30 | #include <media/tuner.h> |
Hans Verkuil | 2474ed4 | 2006-03-19 12:35:57 -0300 | [diff] [blame] | 31 | #include <media/msp3400.h> |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 32 | #include <media/saa7115.h> |
| 33 | #include <media/tvp5150.h> |
Mauro Carvalho Chehab | 1f6173e | 2005-11-08 21:37:16 -0800 | [diff] [blame] | 34 | #include <media/tveeprom.h> |
Mauro Carvalho Chehab | 9bb13a6 | 2006-01-09 15:25:37 -0200 | [diff] [blame] | 35 | #include <media/v4l2-common.h> |
Hans Verkuil | 38f9d30 | 2008-07-23 05:09:15 -0300 | [diff] [blame] | 36 | #include <media/v4l2-chip-ident.h> |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 37 | |
Mauro Carvalho Chehab | f7abcd3 | 2005-11-08 21:38:25 -0800 | [diff] [blame] | 38 | #include "em28xx.h" |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 39 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 40 | static int tuner = -1; |
| 41 | module_param(tuner, int, 0444); |
| 42 | MODULE_PARM_DESC(tuner, "tuner type"); |
| 43 | |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 44 | static unsigned int disable_ir; |
| 45 | module_param(disable_ir, int, 0444); |
| 46 | MODULE_PARM_DESC(disable_ir, "disable infrared remote support"); |
| 47 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 48 | struct em28xx_hash_table { |
| 49 | unsigned long hash; |
| 50 | unsigned int model; |
| 51 | unsigned int tuner; |
| 52 | }; |
| 53 | |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 54 | struct em28xx_board em28xx_boards[] = { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 55 | [EM2750_BOARD_UNKNOWN] = { |
| 56 | .name = "Unknown EM2750/EM2751 webcam grabber", |
| 57 | .vchannels = 1, |
| 58 | .input = { { |
| 59 | .type = EM28XX_VMUX_COMPOSITE1, |
| 60 | .vmux = 0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 61 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 62 | } }, |
| 63 | }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 64 | [EM2800_BOARD_UNKNOWN] = { |
| 65 | .name = "Unknown EM2800 video grabber", |
| 66 | .is_em2800 = 1, |
| 67 | .vchannels = 2, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 68 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 69 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 70 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 71 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 72 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 73 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 74 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 75 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 76 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 77 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 78 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 79 | }, |
| 80 | [EM2820_BOARD_UNKNOWN] = { |
Mauro Carvalho Chehab | 3dbd85b | 2007-11-03 08:07:07 -0300 | [diff] [blame] | 81 | .name = "Unknown EM2750/28xx video grabber", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 82 | .is_em2800 = 0, |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 83 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 84 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 85 | [EM2750_BOARD_DLCW_130] = { |
| 86 | /* Beijing Huaqi Information Digital Technology Co., Ltd */ |
| 87 | .name = "Huaqi DLCW-130", |
| 88 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 89 | .vchannels = 1, |
| 90 | .input = { { |
| 91 | .type = EM28XX_VMUX_COMPOSITE1, |
| 92 | .vmux = 0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 93 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 94 | } }, |
| 95 | }, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 96 | [EM2820_BOARD_KWORLD_PVRTV2800RF] = { |
Markus Rechberger | 33ccaa3 | 2006-02-07 06:25:41 -0200 | [diff] [blame] | 97 | .name = "Kworld PVR TV 2800 RF", |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 98 | .is_em2800 = 0, |
| 99 | .vchannels = 2, |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 100 | .tuner_type = TUNER_TEMIC_PAL, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 101 | .tda9887_conf = TDA9887_PRESENT, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 102 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 103 | .input = { { |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 104 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 105 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 106 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 107 | }, { |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 108 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 109 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 110 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 111 | } }, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 112 | }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 113 | [EM2820_BOARD_TERRATEC_CINERGY_250] = { |
| 114 | .name = "Terratec Cinergy 250 USB", |
| 115 | .vchannels = 3, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 116 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 117 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 118 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 119 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 120 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 121 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 122 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 123 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 124 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 125 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 126 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 127 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 128 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 129 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 130 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 131 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 132 | }, |
| 133 | [EM2820_BOARD_PINNACLE_USB_2] = { |
| 134 | .name = "Pinnacle PCTV USB 2", |
| 135 | .vchannels = 3, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 136 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 137 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 138 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 139 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 140 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 141 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 142 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 143 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 144 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 145 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 146 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 147 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 148 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 149 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 150 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 151 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 152 | }, |
| 153 | [EM2820_BOARD_HAUPPAUGE_WINTV_USB_2] = { |
| 154 | .name = "Hauppauge WinTV USB 2", |
| 155 | .vchannels = 3, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 156 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 157 | .tda9887_conf = TDA9887_PRESENT | |
| 158 | TDA9887_PORT1_ACTIVE| |
| 159 | TDA9887_PORT2_ACTIVE, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 160 | .decoder = EM28XX_TVP5150, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 161 | .has_msp34xx = 1, |
| 162 | /*FIXME: S-Video not tested */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 163 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 164 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 165 | .vmux = TVP5150_COMPOSITE0, |
Hans Verkuil | 2474ed4 | 2006-03-19 12:35:57 -0300 | [diff] [blame] | 166 | .amux = MSP_INPUT_DEFAULT, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 167 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 168 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 169 | .vmux = TVP5150_SVIDEO, |
Hans Verkuil | 0715172 | 2006-04-01 18:03:23 -0300 | [diff] [blame] | 170 | .amux = MSP_INPUT(MSP_IN_SCART1, MSP_IN_TUNER1, |
| 171 | MSP_DSP_IN_SCART, MSP_DSP_IN_SCART), |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 172 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 173 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 174 | [EM2820_BOARD_DLINK_USB_TV] = { |
| 175 | .name = "D-Link DUB-T210 TV Tuner", |
| 176 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 177 | .vchannels = 3, |
| 178 | .is_em2800 = 0, |
| 179 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 180 | .tda9887_conf = TDA9887_PRESENT, |
| 181 | .decoder = EM28XX_SAA7113, |
| 182 | .input = { { |
| 183 | .type = EM28XX_VMUX_TELEVISION, |
| 184 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 185 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 186 | }, { |
| 187 | .type = EM28XX_VMUX_COMPOSITE1, |
| 188 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 189 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 190 | }, { |
| 191 | .type = EM28XX_VMUX_SVIDEO, |
| 192 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 193 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 194 | } }, |
| 195 | }, |
| 196 | [EM2820_BOARD_HERCULES_SMART_TV_USB2] = { |
| 197 | .name = "Hercules Smart TV USB 2.0", |
| 198 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 199 | .vchannels = 3, |
| 200 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 201 | .tda9887_conf = TDA9887_PRESENT, |
| 202 | .decoder = EM28XX_SAA7113, |
| 203 | .input = { { |
| 204 | .type = EM28XX_VMUX_TELEVISION, |
| 205 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 206 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 207 | }, { |
| 208 | .type = EM28XX_VMUX_COMPOSITE1, |
| 209 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 210 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 211 | }, { |
| 212 | .type = EM28XX_VMUX_SVIDEO, |
| 213 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 214 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 215 | } }, |
| 216 | }, |
| 217 | [EM2820_BOARD_PINNACLE_USB_2_FM1216ME] = { |
| 218 | .name = "Pinnacle PCTV USB 2 (Philips FM1216ME)", |
| 219 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 220 | .vchannels = 3, |
| 221 | .is_em2800 = 0, |
| 222 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 223 | .tda9887_conf = TDA9887_PRESENT, |
| 224 | .decoder = EM28XX_SAA7113, |
| 225 | .input = { { |
| 226 | .type = EM28XX_VMUX_TELEVISION, |
| 227 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 228 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 229 | }, { |
| 230 | .type = EM28XX_VMUX_COMPOSITE1, |
| 231 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 232 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 233 | }, { |
| 234 | .type = EM28XX_VMUX_SVIDEO, |
| 235 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 236 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 237 | } }, |
| 238 | }, |
| 239 | [EM2820_BOARD_GADMEI_UTV310] = { |
| 240 | .name = "Gadmei UTV310", |
| 241 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 242 | .vchannels = 3, |
| 243 | .tuner_type = TUNER_TNF_5335MF, |
| 244 | .tda9887_conf = TDA9887_PRESENT, |
| 245 | .decoder = EM28XX_SAA7113, |
| 246 | .input = { { |
| 247 | .type = EM28XX_VMUX_TELEVISION, |
| 248 | .vmux = SAA7115_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 249 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 250 | }, { |
| 251 | .type = EM28XX_VMUX_COMPOSITE1, |
| 252 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 253 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 254 | }, { |
| 255 | .type = EM28XX_VMUX_SVIDEO, |
| 256 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 257 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 258 | } }, |
| 259 | }, |
| 260 | [EM2820_BOARD_LEADTEK_WINFAST_USBII_DELUXE] = { |
| 261 | .name = "Leadtek Winfast USB II Deluxe", |
| 262 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 263 | .vchannels = 3, |
| 264 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 265 | .tda9887_conf = TDA9887_PRESENT, |
| 266 | .decoder = EM28XX_SAA7114, |
| 267 | .input = { { |
| 268 | .type = EM28XX_VMUX_TELEVISION, |
| 269 | .vmux = 2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 270 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 271 | }, { |
| 272 | .type = EM28XX_VMUX_COMPOSITE1, |
| 273 | .vmux = 0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 274 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 275 | }, { |
| 276 | .type = EM28XX_VMUX_SVIDEO, |
| 277 | .vmux = 9, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 278 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 279 | } }, |
| 280 | }, |
| 281 | [EM2820_BOARD_PINNACLE_DVC_100] = { |
| 282 | .name = "Pinnacle Dazzle DVC 100", |
| 283 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 284 | .vchannels = 3, |
| 285 | .decoder = EM28XX_SAA7113, |
| 286 | .input = { { |
| 287 | .type = EM28XX_VMUX_COMPOSITE1, |
| 288 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 289 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 290 | }, { |
| 291 | .type = EM28XX_VMUX_SVIDEO, |
| 292 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 293 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 294 | } }, |
| 295 | }, |
| 296 | [EM2820_BOARD_VIDEOLOGY_20K14XUSB] = { |
| 297 | .name = "Videology 20K14XUSB USB2.0", |
| 298 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 299 | .vchannels = 1, |
| 300 | .input = { { |
| 301 | .type = EM28XX_VMUX_COMPOSITE1, |
| 302 | .vmux = 0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 303 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 304 | } }, |
| 305 | }, |
| 306 | [EM2821_BOARD_PROLINK_PLAYTV_USB2] = { |
| 307 | .name = "SIIG AVTuner-PVR/Prolink PlayTV USB 2.0", |
| 308 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 309 | .vchannels = 3, |
| 310 | .is_em2800 = 0, |
| 311 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, /* unknown? */ |
| 312 | .tda9887_conf = TDA9887_PRESENT, /* unknown? */ |
| 313 | .decoder = EM28XX_SAA7113, |
| 314 | .input = { { |
| 315 | .type = EM28XX_VMUX_TELEVISION, |
| 316 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 317 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 318 | }, { |
| 319 | .type = EM28XX_VMUX_COMPOSITE1, |
| 320 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 321 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 322 | }, { |
| 323 | .type = EM28XX_VMUX_SVIDEO, |
| 324 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 325 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 326 | } }, |
| 327 | }, |
| 328 | [EM2821_BOARD_SUPERCOMP_USB_2] = { |
| 329 | .name = "Supercomp USB 2.0 TV", |
| 330 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 331 | .vchannels = 3, |
| 332 | .is_em2800 = 0, |
| 333 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 334 | .tda9887_conf = TDA9887_PRESENT | |
| 335 | TDA9887_PORT1_ACTIVE | |
| 336 | TDA9887_PORT2_ACTIVE, |
| 337 | .decoder = EM28XX_SAA7113, |
| 338 | .input = { { |
| 339 | .type = EM28XX_VMUX_TELEVISION, |
| 340 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 341 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 342 | }, { |
| 343 | .type = EM28XX_VMUX_COMPOSITE1, |
| 344 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 345 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 346 | }, { |
| 347 | .type = EM28XX_VMUX_SVIDEO, |
| 348 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 349 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 350 | } }, |
| 351 | }, |
| 352 | [EM2821_BOARD_USBGEAR_VD204] = { |
| 353 | .name = "Usbgear VD204v9", |
| 354 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 355 | .vchannels = 2, |
| 356 | .decoder = EM28XX_SAA7113, |
| 357 | .input = { { |
| 358 | .type = EM28XX_VMUX_COMPOSITE1, |
| 359 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 360 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 361 | }, { |
| 362 | .type = EM28XX_VMUX_SVIDEO, |
| 363 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 364 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 365 | } }, |
| 366 | }, |
| 367 | [EM2860_BOARD_NETGMBH_CAM] = { |
| 368 | /* Beijing Huaqi Information Digital Technology Co., Ltd */ |
| 369 | .name = "NetGMBH Cam", |
| 370 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 371 | .vchannels = 1, |
| 372 | .input = { { |
| 373 | .type = EM28XX_VMUX_COMPOSITE1, |
| 374 | .vmux = 0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 375 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 376 | } }, |
| 377 | }, |
| 378 | [EM2860_BOARD_TYPHOON_DVD_MAKER] = { |
| 379 | .name = "Typhoon DVD Maker", |
| 380 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 381 | .vchannels = 2, |
| 382 | .decoder = EM28XX_SAA7113, |
| 383 | .input = { { |
| 384 | .type = EM28XX_VMUX_COMPOSITE1, |
| 385 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 386 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 387 | }, { |
| 388 | .type = EM28XX_VMUX_SVIDEO, |
| 389 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 390 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 391 | } }, |
| 392 | }, |
| 393 | [EM2860_BOARD_GADMEI_UTV330] = { |
| 394 | .name = "Gadmei UTV330", |
| 395 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 396 | .vchannels = 3, |
| 397 | .tuner_type = TUNER_TNF_5335MF, |
| 398 | .tda9887_conf = TDA9887_PRESENT, |
| 399 | .decoder = EM28XX_SAA7113, |
| 400 | .input = { { |
| 401 | .type = EM28XX_VMUX_TELEVISION, |
| 402 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 403 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 404 | }, { |
| 405 | .type = EM28XX_VMUX_COMPOSITE1, |
| 406 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 407 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 408 | }, { |
| 409 | .type = EM28XX_VMUX_SVIDEO, |
| 410 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 411 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 412 | } }, |
| 413 | }, |
| 414 | [EM2860_BOARD_TERRATEC_HYBRID_XS] = { |
| 415 | .name = "Terratec Cinergy A Hybrid XS", |
| 416 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 417 | .vchannels = 3, |
| 418 | .tuner_type = TUNER_XC2028, |
| 419 | .decoder = EM28XX_TVP5150, |
| 420 | .input = { { |
| 421 | .type = EM28XX_VMUX_TELEVISION, |
| 422 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 423 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 424 | }, { |
| 425 | .type = EM28XX_VMUX_COMPOSITE1, |
| 426 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 427 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 428 | }, { |
| 429 | .type = EM28XX_VMUX_SVIDEO, |
| 430 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 431 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 432 | } }, |
| 433 | }, |
| 434 | [EM2861_BOARD_KWORLD_PVRTV_300U] = { |
| 435 | .name = "KWorld PVRTV 300U", |
| 436 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 437 | .vchannels = 3, |
| 438 | .tuner_type = TUNER_XC2028, |
| 439 | .decoder = EM28XX_TVP5150, |
| 440 | .input = { { |
| 441 | .type = EM28XX_VMUX_TELEVISION, |
| 442 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 443 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 444 | }, { |
| 445 | .type = EM28XX_VMUX_COMPOSITE1, |
| 446 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 447 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 448 | }, { |
| 449 | .type = EM28XX_VMUX_SVIDEO, |
| 450 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 451 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 452 | } }, |
| 453 | }, |
| 454 | [EM2861_BOARD_YAKUMO_MOVIE_MIXER] = { |
| 455 | .name = "Yakumo MovieMixer", |
| 456 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 457 | .vchannels = 1, |
| 458 | .decoder = EM28XX_TVP5150, |
| 459 | .input = { { |
| 460 | .type = EM28XX_VMUX_TELEVISION, |
| 461 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 462 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 463 | }, { |
| 464 | .type = EM28XX_VMUX_COMPOSITE1, |
| 465 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 466 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 467 | }, { |
| 468 | .type = EM28XX_VMUX_SVIDEO, |
| 469 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 470 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 471 | } }, |
| 472 | }, |
| 473 | [EM2861_BOARD_PLEXTOR_PX_TV100U] = { |
| 474 | .name = "Plextor ConvertX PX-TV100U", |
| 475 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 476 | .vchannels = 3, |
| 477 | .tuner_type = TUNER_TNF_5335MF, |
| 478 | .tda9887_conf = TDA9887_PRESENT, |
| 479 | .decoder = EM28XX_TVP5150, |
| 480 | .input = { { |
| 481 | .type = EM28XX_VMUX_TELEVISION, |
| 482 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 483 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 484 | }, { |
| 485 | .type = EM28XX_VMUX_COMPOSITE1, |
| 486 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 487 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 488 | }, { |
| 489 | .type = EM28XX_VMUX_SVIDEO, |
| 490 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 491 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 492 | } }, |
| 493 | }, |
| 494 | [EM2870_BOARD_TERRATEC_XS] = { |
| 495 | .name = "Terratec Cinergy T XS", |
| 496 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 497 | .tuner_type = TUNER_XC2028, |
| 498 | }, |
| 499 | [EM2870_BOARD_TERRATEC_XS_MT2060] = { |
| 500 | .name = "Terratec Cinergy T XS (MT2060)", |
| 501 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 502 | .tuner_type = TUNER_ABSENT, /* MT2060 */ |
| 503 | }, |
| 504 | [EM2870_BOARD_KWORLD_350U] = { |
| 505 | .name = "Kworld 350 U DVB-T", |
| 506 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 507 | .tuner_type = TUNER_XC2028, |
| 508 | }, |
| 509 | [EM2870_BOARD_KWORLD_355U] = { |
| 510 | .name = "Kworld 355 U DVB-T", |
| 511 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 512 | }, |
| 513 | [EM2870_BOARD_PINNACLE_PCTV_DVB] = { |
| 514 | .name = "Pinnacle PCTV DVB-T", |
| 515 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 516 | .tuner_type = TUNER_ABSENT, /* MT2060 */ |
| 517 | }, |
| 518 | [EM2870_BOARD_COMPRO_VIDEOMATE] = { |
| 519 | .name = "Compro, VideoMate U3", |
| 520 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 521 | .tuner_type = TUNER_ABSENT, /* MT2060 */ |
| 522 | }, |
| 523 | [EM2880_BOARD_TERRATEC_HYBRID_XS_FR] = { |
| 524 | .name = "Terratec Hybrid XS Secam", |
| 525 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 526 | .vchannels = 3, |
| 527 | .has_msp34xx = 1, |
| 528 | .tuner_type = TUNER_XC2028, |
| 529 | .decoder = EM28XX_TVP5150, |
| 530 | .input = { { |
| 531 | .type = EM28XX_VMUX_TELEVISION, |
| 532 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 533 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 534 | }, { |
| 535 | .type = EM28XX_VMUX_COMPOSITE1, |
| 536 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 537 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 538 | }, { |
| 539 | .type = EM28XX_VMUX_SVIDEO, |
| 540 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 541 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 542 | } }, |
| 543 | }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 544 | [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900] = { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 545 | .name = "Hauppauge WinTV HVR 900", |
| 546 | .vchannels = 3, |
| 547 | .tda9887_conf = TDA9887_PRESENT, |
| 548 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 5add9a6 | 2007-11-22 12:08:53 -0300 | [diff] [blame] | 549 | .mts_firmware = 1, |
Devin Heitmueller | b38cc64 | 2008-06-09 14:59:05 -0300 | [diff] [blame] | 550 | .has_dvb = 1, |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 551 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 552 | .input = { { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 553 | .type = EM28XX_VMUX_TELEVISION, |
| 554 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 555 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 556 | }, { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 557 | .type = EM28XX_VMUX_COMPOSITE1, |
| 558 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 559 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 560 | }, { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 561 | .type = EM28XX_VMUX_SVIDEO, |
| 562 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 563 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 564 | } }, |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 565 | }, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 566 | [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2] = { |
| 567 | .name = "Hauppauge WinTV HVR 900 (R2)", |
| 568 | .vchannels = 3, |
| 569 | .tda9887_conf = TDA9887_PRESENT, |
| 570 | .tuner_type = TUNER_XC2028, |
| 571 | .mts_firmware = 1, |
| 572 | .decoder = EM28XX_TVP5150, |
| 573 | .input = { { |
| 574 | .type = EM28XX_VMUX_TELEVISION, |
| 575 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 576 | .amux = EM28XX_AMUX_VIDEO, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 577 | }, { |
| 578 | .type = EM28XX_VMUX_COMPOSITE1, |
| 579 | .vmux = TVP5150_COMPOSITE1, |
Wiktor Grebla | db98fb8 | 2008-09-28 01:37:48 -0300 | [diff] [blame] | 580 | .amux = 3, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 581 | }, { |
| 582 | .type = EM28XX_VMUX_SVIDEO, |
| 583 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 584 | .amux = EM28XX_AMUX_LINE_IN, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 585 | } }, |
| 586 | }, |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 587 | [EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950] = { |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 588 | .name = "Hauppauge WinTV HVR 950", |
| 589 | .vchannels = 3, |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 590 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 591 | .mts_firmware = 1, |
| 592 | .has_12mhz_i2s = 1, |
Mauro Carvalho Chehab | 227ad4a | 2008-04-17 21:37:40 -0300 | [diff] [blame] | 593 | .has_dvb = 1, |
Devin Heitmueller | 4b92253 | 2008-11-13 03:15:55 -0300 | [diff] [blame] | 594 | .ir_codes = ir_codes_hauppauge_new, |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 595 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 596 | .input = { { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 597 | .type = EM28XX_VMUX_TELEVISION, |
| 598 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 599 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 600 | }, { |
Mauro Carvalho Chehab | 7d070e2 | 2007-11-01 21:52:58 -0300 | [diff] [blame] | 601 | .type = EM28XX_VMUX_COMPOSITE1, |
| 602 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 603 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 604 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 605 | .type = EM28XX_VMUX_SVIDEO, |
| 606 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 607 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 608 | } }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 609 | }, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 610 | [EM2880_BOARD_PINNACLE_PCTV_HD_PRO] = { |
| 611 | .name = "Pinnacle PCTV HD Pro Stick", |
| 612 | .vchannels = 3, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 613 | .tuner_type = TUNER_XC2028, |
| 614 | .mts_firmware = 1, |
| 615 | .has_12mhz_i2s = 1, |
| 616 | .has_dvb = 1, |
Devin Heitmueller | 4b92253 | 2008-11-13 03:15:55 -0300 | [diff] [blame] | 617 | .ir_codes = ir_codes_pinnacle_pctv_hd, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 618 | .decoder = EM28XX_TVP5150, |
| 619 | .input = { { |
| 620 | .type = EM28XX_VMUX_TELEVISION, |
| 621 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 622 | .amux = EM28XX_AMUX_VIDEO, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 623 | }, { |
| 624 | .type = EM28XX_VMUX_COMPOSITE1, |
| 625 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 626 | .amux = EM28XX_AMUX_LINE_IN, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 627 | }, { |
| 628 | .type = EM28XX_VMUX_SVIDEO, |
| 629 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 630 | .amux = EM28XX_AMUX_LINE_IN, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 631 | } }, |
| 632 | }, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 633 | [EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600] = { |
| 634 | .name = "AMD ATI TV Wonder HD 600", |
| 635 | .vchannels = 3, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 636 | .tuner_type = TUNER_XC2028, |
| 637 | .mts_firmware = 1, |
| 638 | .has_12mhz_i2s = 1, |
| 639 | .has_dvb = 1, |
Devin Heitmueller | 60245e8 | 2008-11-16 08:03:53 -0300 | [diff] [blame] | 640 | .ir_codes = ir_codes_ati_tv_wonder_hd_600, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 641 | .decoder = EM28XX_TVP5150, |
| 642 | .input = { { |
| 643 | .type = EM28XX_VMUX_TELEVISION, |
| 644 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 645 | .amux = EM28XX_AMUX_VIDEO, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 646 | }, { |
| 647 | .type = EM28XX_VMUX_COMPOSITE1, |
| 648 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 649 | .amux = EM28XX_AMUX_LINE_IN, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 650 | }, { |
| 651 | .type = EM28XX_VMUX_SVIDEO, |
| 652 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 653 | .amux = EM28XX_AMUX_LINE_IN, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 654 | } }, |
| 655 | }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 656 | [EM2880_BOARD_TERRATEC_HYBRID_XS] = { |
| 657 | .name = "Terratec Hybrid XS", |
| 658 | .vchannels = 3, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 659 | .tuner_type = TUNER_XC2028, |
| 660 | .decoder = EM28XX_TVP5150, |
reinhard schwab | 655b840 | 2008-07-26 10:47:00 -0300 | [diff] [blame] | 661 | .has_dvb = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 662 | .input = { { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 663 | .type = EM28XX_VMUX_TELEVISION, |
| 664 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 665 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 666 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 667 | .type = EM28XX_VMUX_COMPOSITE1, |
| 668 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 669 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 670 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 671 | .type = EM28XX_VMUX_SVIDEO, |
| 672 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 673 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 674 | } }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 675 | }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 676 | /* maybe there's a reason behind it why Terratec sells the Hybrid XS |
| 677 | as Prodigy XS with a different PID, let's keep it separated for now |
| 678 | maybe we'll need it lateron */ |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 679 | [EM2880_BOARD_TERRATEC_PRODIGY_XS] = { |
| 680 | .name = "Terratec Prodigy XS", |
| 681 | .vchannels = 3, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 682 | .tuner_type = TUNER_XC2028, |
| 683 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 684 | .input = { { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 685 | .type = EM28XX_VMUX_TELEVISION, |
| 686 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 687 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 688 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 689 | .type = EM28XX_VMUX_COMPOSITE1, |
| 690 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 691 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 692 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 693 | .type = EM28XX_VMUX_SVIDEO, |
| 694 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 695 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 696 | } }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 697 | }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 698 | [EM2820_BOARD_MSI_VOX_USB_2] = { |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 699 | .name = "MSI VOX USB 2.0", |
| 700 | .vchannels = 3, |
| 701 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 702 | .tda9887_conf = TDA9887_PRESENT | |
| 703 | TDA9887_PORT1_ACTIVE | |
| 704 | TDA9887_PORT2_ACTIVE, |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 705 | .max_range_640_480 = 1, |
| 706 | |
| 707 | .decoder = EM28XX_SAA7114, |
| 708 | .input = { { |
| 709 | .type = EM28XX_VMUX_TELEVISION, |
| 710 | .vmux = SAA7115_COMPOSITE4, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 711 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 712 | }, { |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 713 | .type = EM28XX_VMUX_COMPOSITE1, |
| 714 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 715 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 716 | }, { |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 717 | .type = EM28XX_VMUX_SVIDEO, |
| 718 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 719 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 720 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 721 | }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 722 | [EM2800_BOARD_TERRATEC_CINERGY_200] = { |
| 723 | .name = "Terratec Cinergy 200 USB", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 724 | .is_em2800 = 1, |
| 725 | .vchannels = 3, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 726 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 727 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 728 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 729 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 730 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 731 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 732 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 733 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 734 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 735 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 736 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 737 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 738 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 739 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 740 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 741 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 742 | }, |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 743 | [EM2800_BOARD_GRABBEEX_USB2800] = { |
| 744 | .name = "eMPIA Technology, Inc. GrabBeeX+ Video Encoder", |
| 745 | .is_em2800 = 1, |
| 746 | .vchannels = 2, |
| 747 | .decoder = EM28XX_SAA7113, |
| 748 | .input = { { |
| 749 | .type = EM28XX_VMUX_COMPOSITE1, |
| 750 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 751 | .amux = EM28XX_AMUX_LINE_IN, |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 752 | }, { |
| 753 | .type = EM28XX_VMUX_SVIDEO, |
| 754 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 755 | .amux = EM28XX_AMUX_LINE_IN, |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 756 | } }, |
| 757 | }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 758 | [EM2800_BOARD_LEADTEK_WINFAST_USBII] = { |
| 759 | .name = "Leadtek Winfast USB II", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 760 | .is_em2800 = 1, |
| 761 | .vchannels = 3, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 762 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 763 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 764 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 765 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 766 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 767 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 768 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 769 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 770 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 771 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 772 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 773 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 774 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 775 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 776 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 777 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 778 | }, |
| 779 | [EM2800_BOARD_KWORLD_USB2800] = { |
| 780 | .name = "Kworld USB2800", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 781 | .is_em2800 = 1, |
| 782 | .vchannels = 3, |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 783 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 784 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 785 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 786 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 787 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 788 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 789 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 790 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 791 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 792 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 793 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 794 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 795 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 796 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 797 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 798 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 799 | }, |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 800 | [EM2820_BOARD_PINNACLE_DVC_90] = { |
Aurelien Jarno | aec2aef | 2007-12-17 13:49:17 -0300 | [diff] [blame] | 801 | .name = "Pinnacle Dazzle DVC 90/DVC 100", |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 802 | .vchannels = 3, |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 803 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 804 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 805 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 806 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 807 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 808 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 809 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 810 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 811 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 812 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 813 | } }, |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 814 | }, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 815 | [EM2800_BOARD_VGEAR_POCKETTV] = { |
| 816 | .name = "V-Gear PocketTV", |
| 817 | .is_em2800 = 1, |
| 818 | .vchannels = 3, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 819 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 820 | .tda9887_conf = TDA9887_PRESENT, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 821 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 822 | .input = { { |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 823 | .type = EM28XX_VMUX_TELEVISION, |
| 824 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 825 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 826 | }, { |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 827 | .type = EM28XX_VMUX_COMPOSITE1, |
| 828 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 829 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 830 | }, { |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 831 | .type = EM28XX_VMUX_SVIDEO, |
| 832 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 833 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 834 | } }, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 835 | }, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 836 | [EM2820_BOARD_PROLINK_PLAYTV_USB2] = { |
| 837 | .name = "Pixelview Prolink PlayTV USB 2.0", |
| 838 | .vchannels = 3, |
| 839 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 840 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 841 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 842 | .input = { { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 843 | .type = EM28XX_VMUX_TELEVISION, |
| 844 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 30e4ac7 | 2008-11-20 13:43:05 -0300 | [diff] [blame] | 845 | .amux = EM28XX_AMUX_VIDEO, |
| 846 | .aout = EM28XX_AOUT_MONO | /* I2S */ |
| 847 | EM28XX_AOUT_MASTER, /* Line out pin */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 848 | }, { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 849 | .type = EM28XX_VMUX_COMPOSITE1, |
| 850 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 7463dda | 2008-02-05 22:29:26 -0300 | [diff] [blame] | 851 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 852 | }, { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 853 | .type = EM28XX_VMUX_SVIDEO, |
| 854 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 7463dda | 2008-02-05 22:29:26 -0300 | [diff] [blame] | 855 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 856 | } }, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 857 | }, |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 858 | [EM2860_BOARD_POINTNIX_INTRAORAL_CAMERA] = { |
| 859 | .name = "PointNix Intra-Oral Camera", |
| 860 | .has_snapshot_button = 1, |
| 861 | .vchannels = 1, |
| 862 | .tda9887_conf = TDA9887_PRESENT, |
| 863 | .tuner_type = TUNER_ABSENT, |
| 864 | .decoder = EM28XX_SAA7113, |
| 865 | .input = { { |
| 866 | .type = EM28XX_VMUX_SVIDEO, |
| 867 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 868 | .amux = EM28XX_AMUX_VIDEO, |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 869 | } }, |
| 870 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 871 | [EM2880_BOARD_MSI_DIGIVOX_AD] = { |
| 872 | .name = "MSI DigiVox A/D", |
| 873 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 874 | .vchannels = 3, |
| 875 | .tuner_type = TUNER_XC2028, |
| 876 | .decoder = EM28XX_TVP5150, |
| 877 | .input = { { |
| 878 | .type = EM28XX_VMUX_TELEVISION, |
| 879 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 880 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 881 | }, { |
| 882 | .type = EM28XX_VMUX_COMPOSITE1, |
| 883 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 884 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 885 | }, { |
| 886 | .type = EM28XX_VMUX_SVIDEO, |
| 887 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 888 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 889 | } }, |
| 890 | }, |
| 891 | [EM2880_BOARD_MSI_DIGIVOX_AD_II] = { |
| 892 | .name = "MSI DigiVox A/D II", |
| 893 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 894 | .vchannels = 3, |
| 895 | .tuner_type = TUNER_XC2028, |
| 896 | .decoder = EM28XX_TVP5150, |
| 897 | .input = { { |
| 898 | .type = EM28XX_VMUX_TELEVISION, |
| 899 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 900 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 901 | }, { |
| 902 | .type = EM28XX_VMUX_COMPOSITE1, |
| 903 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 904 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 905 | }, { |
| 906 | .type = EM28XX_VMUX_SVIDEO, |
| 907 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 908 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 909 | } }, |
| 910 | }, |
| 911 | [EM2880_BOARD_KWORLD_DVB_305U] = { |
| 912 | .name = "KWorld DVB-T 305U", |
| 913 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 914 | .vchannels = 3, |
| 915 | .tuner_type = TUNER_XC2028, |
| 916 | .decoder = EM28XX_TVP5150, |
| 917 | .input = { { |
| 918 | .type = EM28XX_VMUX_TELEVISION, |
| 919 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 920 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 921 | }, { |
| 922 | .type = EM28XX_VMUX_COMPOSITE1, |
| 923 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 924 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 925 | }, { |
| 926 | .type = EM28XX_VMUX_SVIDEO, |
| 927 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 928 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 929 | } }, |
| 930 | }, |
| 931 | [EM2880_BOARD_KWORLD_DVB_310U] = { |
| 932 | .name = "KWorld DVB-T 310U", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 933 | .vchannels = 3, |
| 934 | .tuner_type = TUNER_XC2028, |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 935 | .has_dvb = 1, |
| 936 | .mts_firmware = 1, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 937 | .decoder = EM28XX_TVP5150, |
| 938 | .input = { { |
| 939 | .type = EM28XX_VMUX_TELEVISION, |
| 940 | .vmux = TVP5150_COMPOSITE0, |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 941 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 942 | }, { |
| 943 | .type = EM28XX_VMUX_COMPOSITE1, |
| 944 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | a42aa19 | 2008-11-19 11:08:53 -0300 | [diff] [blame] | 945 | .amux = EM28XX_AMUX_LINE_IN, |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 946 | }, { /* S-video has not been tested yet */ |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 947 | .type = EM28XX_VMUX_SVIDEO, |
| 948 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | a42aa19 | 2008-11-19 11:08:53 -0300 | [diff] [blame] | 949 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 950 | } }, |
| 951 | }, |
| 952 | [EM2881_BOARD_DNT_DA2_HYBRID] = { |
| 953 | .name = "DNT DA2 Hybrid", |
| 954 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 955 | .vchannels = 3, |
| 956 | .tuner_type = TUNER_XC2028, |
| 957 | .decoder = EM28XX_TVP5150, |
| 958 | .input = { { |
| 959 | .type = EM28XX_VMUX_TELEVISION, |
| 960 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 961 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 962 | }, { |
| 963 | .type = EM28XX_VMUX_COMPOSITE1, |
| 964 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 965 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 966 | }, { |
| 967 | .type = EM28XX_VMUX_SVIDEO, |
| 968 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 969 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 970 | } }, |
| 971 | }, |
| 972 | [EM2881_BOARD_PINNACLE_HYBRID_PRO] = { |
| 973 | .name = "Pinnacle Hybrid Pro", |
| 974 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 975 | .vchannels = 3, |
| 976 | .tuner_type = TUNER_XC2028, |
| 977 | .decoder = EM28XX_TVP5150, |
| 978 | .input = { { |
| 979 | .type = EM28XX_VMUX_TELEVISION, |
| 980 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 981 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 982 | }, { |
| 983 | .type = EM28XX_VMUX_COMPOSITE1, |
| 984 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 985 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 986 | }, { |
| 987 | .type = EM28XX_VMUX_SVIDEO, |
| 988 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 989 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 990 | } }, |
| 991 | }, |
| 992 | [EM2882_BOARD_PINNACLE_HYBRID_PRO] = { |
| 993 | .name = "Pinnacle Hybrid Pro (2)", |
| 994 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 995 | .vchannels = 3, |
| 996 | .tuner_type = TUNER_XC2028, |
Eugeniy Meshcheryakov | a674a3b | 2008-08-01 08:23:41 -0300 | [diff] [blame] | 997 | .mts_firmware = 1, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 998 | .decoder = EM28XX_TVP5150, |
| 999 | .input = { { |
| 1000 | .type = EM28XX_VMUX_TELEVISION, |
| 1001 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1002 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1003 | }, { |
| 1004 | .type = EM28XX_VMUX_COMPOSITE1, |
| 1005 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1006 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1007 | }, { |
| 1008 | .type = EM28XX_VMUX_SVIDEO, |
| 1009 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1010 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1011 | } }, |
| 1012 | }, |
| 1013 | [EM2882_BOARD_KWORLD_VS_DVBT] = { |
| 1014 | .name = "Kworld VS-DVB-T 323UR", |
| 1015 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1016 | .vchannels = 3, |
| 1017 | .tuner_type = TUNER_XC2028, |
| 1018 | .decoder = EM28XX_TVP5150, |
| 1019 | .input = { { |
| 1020 | .type = EM28XX_VMUX_TELEVISION, |
| 1021 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1022 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1023 | }, { |
| 1024 | .type = EM28XX_VMUX_COMPOSITE1, |
| 1025 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1026 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1027 | }, { |
| 1028 | .type = EM28XX_VMUX_SVIDEO, |
| 1029 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1030 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1031 | } }, |
| 1032 | }, |
| 1033 | [EM2882_BOARD_TERRATEC_HYBRID_XS] = { |
| 1034 | .name = "Terratec Hybrid XS (em2882)", |
| 1035 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1036 | .vchannels = 3, |
| 1037 | .tuner_type = TUNER_XC2028, |
| 1038 | .decoder = EM28XX_TVP5150, |
| 1039 | .input = { { |
| 1040 | .type = EM28XX_VMUX_TELEVISION, |
| 1041 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1042 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1043 | }, { |
| 1044 | .type = EM28XX_VMUX_COMPOSITE1, |
| 1045 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1046 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1047 | }, { |
| 1048 | .type = EM28XX_VMUX_SVIDEO, |
| 1049 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1050 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1051 | } }, |
| 1052 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1053 | [EM2883_BOARD_KWORLD_HYBRID_A316] = { |
| 1054 | .name = "Kworld PlusTV HD Hybrid 330", |
| 1055 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1056 | .vchannels = 3, |
| 1057 | .is_em2800 = 0, |
| 1058 | .tuner_type = TUNER_XC2028, |
| 1059 | .decoder = EM28XX_TVP5150, |
| 1060 | .input = { { |
| 1061 | .type = EM28XX_VMUX_TELEVISION, |
| 1062 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1063 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1064 | }, { |
| 1065 | .type = EM28XX_VMUX_COMPOSITE1, |
| 1066 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1067 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1068 | }, { |
| 1069 | .type = EM28XX_VMUX_SVIDEO, |
| 1070 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1071 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1072 | } }, |
| 1073 | }, |
Mauro Carvalho Chehab | ee281b8 | 2008-07-27 16:58:04 -0300 | [diff] [blame] | 1074 | [EM2820_BOARD_COMPRO_VIDEOMATE_FORYOU] = { |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 1075 | .name = "Compro VideoMate ForYou/Stereo", |
| 1076 | .vchannels = 2, |
| 1077 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 1078 | .tda9887_conf = TDA9887_PRESENT, |
| 1079 | .decoder = EM28XX_TVP5150, |
| 1080 | .input = { { |
| 1081 | .type = EM28XX_VMUX_TELEVISION, |
| 1082 | .vmux = TVP5150_COMPOSITE0, |
| 1083 | .amux = EM28XX_AMUX_LINE_IN, |
| 1084 | }, { |
| 1085 | .type = EM28XX_VMUX_SVIDEO, |
| 1086 | .vmux = TVP5150_SVIDEO, |
| 1087 | .amux = EM28XX_AMUX_LINE_IN, |
| 1088 | } }, |
| 1089 | }, |
Devin Heitmueller | 864ec0b | 2008-11-12 02:05:28 -0300 | [diff] [blame] | 1090 | [EM2874_BOARD_PINNACLE_PCTV_80E] = { |
| 1091 | .name = "Pinnacle PCTV HD Mini", |
| 1092 | .vchannels = 0, |
| 1093 | .tuner_type = TUNER_ABSENT, |
| 1094 | .has_dvb = 1, |
Devin Heitmueller | 4b92253 | 2008-11-13 03:15:55 -0300 | [diff] [blame] | 1095 | .ir_codes = ir_codes_pinnacle_pctv_hd, |
Devin Heitmueller | 864ec0b | 2008-11-12 02:05:28 -0300 | [diff] [blame] | 1096 | .decoder = EM28XX_NODECODER, |
| 1097 | #ifdef DJH_DEBUG |
| 1098 | .input = { { |
| 1099 | .type = EM28XX_VMUX_TELEVISION, |
| 1100 | .vmux = TVP5150_COMPOSITE0, |
| 1101 | .amux = EM28XX_AMUX_LINE_IN, |
| 1102 | } }, |
| 1103 | #endif |
| 1104 | }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1105 | }; |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1106 | const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1107 | |
| 1108 | /* table of devices that work with this driver */ |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1109 | struct usb_device_id em28xx_id_table [] = { |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1110 | { USB_DEVICE(0xeb1a, 0x2750), |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1111 | .driver_info = EM2750_BOARD_UNKNOWN }, |
| 1112 | { USB_DEVICE(0xeb1a, 0x2751), |
| 1113 | .driver_info = EM2750_BOARD_UNKNOWN }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1114 | { USB_DEVICE(0xeb1a, 0x2800), |
| 1115 | .driver_info = EM2800_BOARD_UNKNOWN }, |
| 1116 | { USB_DEVICE(0xeb1a, 0x2820), |
| 1117 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1118 | { USB_DEVICE(0xeb1a, 0x2821), |
Douglas Schilling Landgraf | a50f4a44 | 2008-09-08 03:23:55 -0300 | [diff] [blame] | 1119 | .driver_info = EM2820_BOARD_PROLINK_PLAYTV_USB2 }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1120 | { USB_DEVICE(0xeb1a, 0x2860), |
| 1121 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1122 | { USB_DEVICE(0xeb1a, 0x2861), |
| 1123 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1124 | { USB_DEVICE(0xeb1a, 0x2870), |
| 1125 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1126 | { USB_DEVICE(0xeb1a, 0x2881), |
| 1127 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1128 | { USB_DEVICE(0xeb1a, 0x2883), |
| 1129 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1130 | { USB_DEVICE(0xeb1a, 0xe300), |
| 1131 | .driver_info = EM2861_BOARD_KWORLD_PVRTV_300U }, |
| 1132 | { USB_DEVICE(0xeb1a, 0xe305), |
| 1133 | .driver_info = EM2880_BOARD_KWORLD_DVB_305U }, |
| 1134 | { USB_DEVICE(0xeb1a, 0xe310), |
| 1135 | .driver_info = EM2880_BOARD_MSI_DIGIVOX_AD }, |
| 1136 | { USB_DEVICE(0xeb1a, 0xa316), |
| 1137 | .driver_info = EM2883_BOARD_KWORLD_HYBRID_A316 }, |
| 1138 | { USB_DEVICE(0xeb1a, 0xe320), |
| 1139 | .driver_info = EM2880_BOARD_MSI_DIGIVOX_AD_II }, |
| 1140 | { USB_DEVICE(0xeb1a, 0xe323), |
| 1141 | .driver_info = EM2882_BOARD_KWORLD_VS_DVBT }, |
| 1142 | { USB_DEVICE(0xeb1a, 0xe350), |
| 1143 | .driver_info = EM2870_BOARD_KWORLD_350U }, |
| 1144 | { USB_DEVICE(0xeb1a, 0xe355), |
| 1145 | .driver_info = EM2870_BOARD_KWORLD_355U }, |
| 1146 | { USB_DEVICE(0xeb1a, 0x2801), |
| 1147 | .driver_info = EM2800_BOARD_GRABBEEX_USB2800 }, |
| 1148 | { USB_DEVICE(0xeb1a, 0xe357), |
| 1149 | .driver_info = EM2870_BOARD_KWORLD_355U }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1150 | { USB_DEVICE(0x0ccd, 0x0036), |
| 1151 | .driver_info = EM2820_BOARD_TERRATEC_CINERGY_250 }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1152 | { USB_DEVICE(0x0ccd, 0x004c), |
| 1153 | .driver_info = EM2880_BOARD_TERRATEC_HYBRID_XS_FR }, |
| 1154 | { USB_DEVICE(0x0ccd, 0x004f), |
| 1155 | .driver_info = EM2860_BOARD_TERRATEC_HYBRID_XS }, |
| 1156 | { USB_DEVICE(0x0ccd, 0x005e), |
| 1157 | .driver_info = EM2882_BOARD_TERRATEC_HYBRID_XS }, |
| 1158 | { USB_DEVICE(0x0ccd, 0x0042), |
| 1159 | .driver_info = EM2880_BOARD_TERRATEC_HYBRID_XS }, |
| 1160 | { USB_DEVICE(0x0ccd, 0x0043), |
| 1161 | .driver_info = EM2870_BOARD_TERRATEC_XS }, |
| 1162 | { USB_DEVICE(0x0ccd, 0x0047), |
| 1163 | .driver_info = EM2880_BOARD_TERRATEC_PRODIGY_XS }, |
| 1164 | { USB_DEVICE(0x185b, 0x2870), |
| 1165 | .driver_info = EM2870_BOARD_COMPRO_VIDEOMATE }, |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 1166 | { USB_DEVICE(0x185b, 0x2041), |
Mauro Carvalho Chehab | ee281b8 | 2008-07-27 16:58:04 -0300 | [diff] [blame] | 1167 | .driver_info = EM2820_BOARD_COMPRO_VIDEOMATE_FORYOU }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1168 | { USB_DEVICE(0x2040, 0x4200), |
| 1169 | .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 }, |
Mauro Carvalho Chehab | 15b9bec | 2008-01-13 12:02:20 -0300 | [diff] [blame] | 1170 | { USB_DEVICE(0x2040, 0x4201), |
| 1171 | .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1172 | { USB_DEVICE(0x2040, 0x6500), |
| 1173 | .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900 }, |
Luc Saillard | 427d20c | 2008-01-30 17:23:00 -0300 | [diff] [blame] | 1174 | { USB_DEVICE(0x2040, 0x6502), |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1175 | .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 1176 | { USB_DEVICE(0x2040, 0x6513), /* HCW HVR-980 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1177 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 1178 | { USB_DEVICE(0x2040, 0x6517), /* HP HVR-950 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1179 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 1180 | { USB_DEVICE(0x2040, 0x651b), /* RP HVR-950 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1181 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 1182 | { USB_DEVICE(0x2040, 0x651f), /* HCW HVR-850 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1183 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1184 | { USB_DEVICE(0x0438, 0xb002), |
| 1185 | .driver_info = EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600 }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1186 | { USB_DEVICE(0x2001, 0xf112), |
| 1187 | .driver_info = EM2820_BOARD_DLINK_USB_TV }, |
| 1188 | { USB_DEVICE(0x2304, 0x0207), |
| 1189 | .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, |
| 1190 | { USB_DEVICE(0x2304, 0x0208), |
| 1191 | .driver_info = EM2820_BOARD_PINNACLE_USB_2 }, |
| 1192 | { USB_DEVICE(0x2304, 0x021a), |
| 1193 | .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, |
| 1194 | { USB_DEVICE(0x2304, 0x0226), |
| 1195 | .driver_info = EM2882_BOARD_PINNACLE_HYBRID_PRO }, |
| 1196 | { USB_DEVICE(0x2304, 0x0227), |
| 1197 | .driver_info = EM2880_BOARD_PINNACLE_PCTV_HD_PRO }, |
Devin Heitmueller | 864ec0b | 2008-11-12 02:05:28 -0300 | [diff] [blame] | 1198 | { USB_DEVICE(0x2304, 0x023f), |
| 1199 | .driver_info = EM2874_BOARD_PINNACLE_PCTV_80E }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1200 | { USB_DEVICE(0x0413, 0x6023), |
| 1201 | .driver_info = EM2800_BOARD_LEADTEK_WINFAST_USBII }, |
| 1202 | { USB_DEVICE(0x093b, 0xa005), |
| 1203 | .driver_info = EM2861_BOARD_PLEXTOR_PX_TV100U }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1204 | { }, |
| 1205 | }; |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1206 | MODULE_DEVICE_TABLE(usb, em28xx_id_table); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1207 | |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1208 | /* |
| 1209 | * Reset sequences for analog/digital modes |
| 1210 | */ |
| 1211 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1212 | /* Reset for the most [analog] boards */ |
| 1213 | static struct em28xx_reg_seq default_analog[] = { |
| 1214 | {EM28XX_R08_GPIO, 0x6d, ~EM_GPIO_4, 10}, |
| 1215 | { -1, -1, -1, -1}, |
| 1216 | }; |
| 1217 | |
| 1218 | /* Reset for the most [digital] boards */ |
| 1219 | static struct em28xx_reg_seq default_digital[] = { |
| 1220 | {EM28XX_R08_GPIO, 0x6e, ~EM_GPIO_4, 10}, |
| 1221 | { -1, -1, -1, -1}, |
| 1222 | }; |
| 1223 | |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1224 | /* Board Hauppauge WinTV HVR 900 analog */ |
Mauro Carvalho Chehab | e54318e | 2008-04-18 18:34:31 -0300 | [diff] [blame] | 1225 | static struct em28xx_reg_seq hauppauge_wintv_hvr_900_analog[] = { |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1226 | {EM28XX_R08_GPIO, 0x2d, ~EM_GPIO_4, 10}, |
| 1227 | {0x05, 0xff, 0x10, 10}, |
| 1228 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1229 | }; |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1230 | |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1231 | /* Board Hauppauge WinTV HVR 900 digital */ |
Mauro Carvalho Chehab | e54318e | 2008-04-18 18:34:31 -0300 | [diff] [blame] | 1232 | static struct em28xx_reg_seq hauppauge_wintv_hvr_900_digital[] = { |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1233 | {EM28XX_R08_GPIO, 0x2e, ~EM_GPIO_4, 10}, |
| 1234 | {EM2880_R04_GPO, 0x04, 0x0f, 10}, |
| 1235 | {EM2880_R04_GPO, 0x0c, 0x0f, 10}, |
| 1236 | { -1, -1, -1, -1}, |
| 1237 | }; |
| 1238 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1239 | /* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */ |
| 1240 | static struct em28xx_reg_seq em2880_msi_digivox_ad_analog[] = { |
| 1241 | {EM28XX_R08_GPIO, 0x69, ~EM_GPIO_4, 10}, |
| 1242 | { -1, -1, -1, -1}, |
| 1243 | }; |
| 1244 | |
| 1245 | /* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */ |
| 1246 | static struct em28xx_reg_seq em2880_msi_digivox_ad_digital[] = { |
| 1247 | {EM28XX_R08_GPIO, 0x6a, ~EM_GPIO_4, 10}, |
| 1248 | { -1, -1, -1, -1}, |
| 1249 | }; |
| 1250 | |
| 1251 | /* Board - EM2870 Kworld 355u |
| 1252 | Analog - No input analog */ |
| 1253 | static struct em28xx_reg_seq em2870_kworld_355u_digital[] = { |
| 1254 | {EM2880_R04_GPO, 0x01, 0xff, 10}, |
| 1255 | { -1, -1, -1, -1}, |
| 1256 | }; |
| 1257 | |
| 1258 | /* Callback for the most boards */ |
| 1259 | static struct em28xx_reg_seq default_callback[] = { |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1260 | {EM28XX_R08_GPIO, EM_GPIO_4, EM_GPIO_4, 10}, |
| 1261 | {EM28XX_R08_GPIO, 0, EM_GPIO_4, 10}, |
| 1262 | {EM28XX_R08_GPIO, EM_GPIO_4, EM_GPIO_4, 10}, |
| 1263 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1264 | }; |
| 1265 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1266 | /* Callback for EM2882 TERRATEC HYBRID XS */ |
| 1267 | static struct em28xx_reg_seq em2882_terratec_hybrid_xs_digital[] = { |
| 1268 | {EM28XX_R08_GPIO, 0x2e, 0xff, 6}, |
| 1269 | {EM28XX_R08_GPIO, 0x3e, ~EM_GPIO_4, 6}, |
| 1270 | {EM2880_R04_GPO, 0x04, 0xff, 10}, |
| 1271 | {EM2880_R04_GPO, 0x0c, 0xff, 10}, |
| 1272 | { -1, -1, -1, -1}, |
| 1273 | }; |
| 1274 | |
Devin Heitmueller | 864ec0b | 2008-11-12 02:05:28 -0300 | [diff] [blame] | 1275 | /* Pinnacle PCTV HD Mini (80e) GPIOs |
| 1276 | 0-5: not used |
| 1277 | 6: demod reset, active low |
| 1278 | 7: LED on, active high */ |
| 1279 | static struct em28xx_reg_seq em2874_pinnacle_80e_digital[] = { |
| 1280 | {EM28XX_R06_I2C_CLK, 0x45, 0xff, 10}, /*400 KHz*/ |
| 1281 | {EM2874_R80_GPIO, 0x80, 0xff, 100},/*Demod reset*/ |
| 1282 | {EM2874_R80_GPIO, 0xc0, 0xff, 10}, |
| 1283 | { -1, -1, -1, -1}, |
| 1284 | }; |
| 1285 | |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1286 | /* |
| 1287 | * EEPROM hash table for devices with generic USB IDs |
| 1288 | */ |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 1289 | static struct em28xx_hash_table em28xx_eeprom_hash [] = { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 1290 | /* P/N: SA 60002070465 Tuner: TVF7533-MF */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1291 | {0x6ce05a8f, EM2820_BOARD_PROLINK_PLAYTV_USB2, TUNER_YMEC_TVF_5533MF}, |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 1292 | {0x966a0441, EM2880_BOARD_KWORLD_DVB_310U, TUNER_XC2028}, |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1293 | }; |
| 1294 | |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 1295 | /* I2C devicelist hash table for devices with generic USB IDs */ |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1296 | static struct em28xx_hash_table em28xx_i2c_hash[] = { |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1297 | {0xb06a32c3, EM2800_BOARD_TERRATEC_CINERGY_200, TUNER_LG_PAL_NEW_TAPC}, |
| 1298 | {0xf51200e3, EM2800_BOARD_VGEAR_POCKETTV, TUNER_LG_PAL_NEW_TAPC}, |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 1299 | {0x1ba50080, EM2860_BOARD_POINTNIX_INTRAORAL_CAMERA, TUNER_ABSENT}, |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1300 | }; |
| 1301 | |
Michael Krufky | d7cba04 | 2008-09-12 13:31:45 -0300 | [diff] [blame] | 1302 | int em28xx_tuner_callback(void *ptr, int component, int command, int arg) |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1303 | { |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1304 | int rc = 0; |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1305 | struct em28xx *dev = ptr; |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1306 | |
| 1307 | if (dev->tuner_type != TUNER_XC2028) |
| 1308 | return 0; |
| 1309 | |
| 1310 | if (command != XC2028_TUNER_RESET) |
| 1311 | return 0; |
| 1312 | |
| 1313 | if (dev->mode == EM28XX_ANALOG_MODE) |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1314 | rc = em28xx_gpio_set(dev, dev->tun_analog_gpio); |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1315 | else |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1316 | rc = em28xx_gpio_set(dev, dev->tun_digital_gpio); |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1317 | |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1318 | return rc; |
| 1319 | } |
| 1320 | EXPORT_SYMBOL_GPL(em28xx_tuner_callback); |
| 1321 | |
| 1322 | static void em28xx_set_model(struct em28xx *dev) |
| 1323 | { |
| 1324 | dev->is_em2800 = em28xx_boards[dev->model].is_em2800; |
| 1325 | dev->has_msp34xx = em28xx_boards[dev->model].has_msp34xx; |
| 1326 | dev->tda9887_conf = em28xx_boards[dev->model].tda9887_conf; |
| 1327 | dev->decoder = em28xx_boards[dev->model].decoder; |
| 1328 | dev->video_inputs = em28xx_boards[dev->model].vchannels; |
| 1329 | dev->has_12mhz_i2s = em28xx_boards[dev->model].has_12mhz_i2s; |
| 1330 | dev->max_range_640_480 = em28xx_boards[dev->model].max_range_640_480; |
| 1331 | dev->has_dvb = em28xx_boards[dev->model].has_dvb; |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 1332 | dev->has_snapshot_button = em28xx_boards[dev->model].has_snapshot_button; |
Devin Heitmueller | 4b92253 | 2008-11-13 03:15:55 -0300 | [diff] [blame] | 1333 | dev->ir_codes = em28xx_boards[dev->model].ir_codes; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1334 | dev->valid = em28xx_boards[dev->model].valid; |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1335 | } |
| 1336 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1337 | /* Since em28xx_pre_card_setup() requires a proper dev->model, |
| 1338 | * this won't work for boards with generic PCI IDs |
| 1339 | */ |
Markus Rechberger | a94e95b | 2006-01-23 17:11:10 -0200 | [diff] [blame] | 1340 | void em28xx_pre_card_setup(struct em28xx *dev) |
| 1341 | { |
Mauro Carvalho Chehab | 89b329e | 2008-04-17 21:42:14 -0300 | [diff] [blame] | 1342 | int rc; |
| 1343 | |
Devin Heitmueller | 6a1acc3 | 2008-11-12 02:05:06 -0300 | [diff] [blame] | 1344 | /* Set the default GPO/GPIO for legacy devices */ |
| 1345 | dev->reg_gpo_num = EM2880_R04_GPO; |
| 1346 | dev->reg_gpio_num = EM28XX_R08_GPIO; |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1347 | |
Mauro Carvalho Chehab | 89b329e | 2008-04-17 21:42:14 -0300 | [diff] [blame] | 1348 | dev->wait_after_write = 5; |
Devin Heitmueller | 6a1acc3 | 2008-11-12 02:05:06 -0300 | [diff] [blame] | 1349 | |
| 1350 | /* Based on the Chip ID, set the device configuration */ |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 1351 | rc = em28xx_read_reg(dev, EM28XX_R0A_CHIPID); |
Mauro Carvalho Chehab | 89b329e | 2008-04-17 21:42:14 -0300 | [diff] [blame] | 1352 | if (rc > 0) { |
Devin Heitmueller | 600bd7f | 2008-11-12 02:05:02 -0300 | [diff] [blame] | 1353 | dev->chip_id = rc; |
Mauro Carvalho Chehab | 89b329e | 2008-04-17 21:42:14 -0300 | [diff] [blame] | 1354 | switch (rc) { |
Devin Heitmueller | 67c96f6 | 2008-11-18 05:05:46 -0300 | [diff] [blame] | 1355 | case CHIP_ID_EM2750: |
| 1356 | em28xx_info("chip ID is em2750\n"); |
| 1357 | break; |
Mauro Carvalho Chehab | f09fb53 | 2008-11-16 10:40:21 -0300 | [diff] [blame] | 1358 | case CHIP_ID_EM2820: |
| 1359 | em28xx_info("chip ID is em2820\n"); |
| 1360 | break; |
| 1361 | case CHIP_ID_EM2840: |
| 1362 | em28xx_info("chip ID is em2840\n"); |
| 1363 | break; |
Devin Heitmueller | a8a1f8c | 2008-06-10 12:35:42 -0300 | [diff] [blame] | 1364 | case CHIP_ID_EM2860: |
| 1365 | em28xx_info("chip ID is em2860\n"); |
| 1366 | break; |
Devin Heitmueller | 5caeba0 | 2008-11-12 02:04:48 -0300 | [diff] [blame] | 1367 | case CHIP_ID_EM2874: |
| 1368 | em28xx_info("chip ID is em2874\n"); |
Devin Heitmueller | 6a1acc3 | 2008-11-12 02:05:06 -0300 | [diff] [blame] | 1369 | dev->reg_gpio_num = EM2874_R80_GPIO; |
Devin Heitmueller | 5caeba0 | 2008-11-12 02:04:48 -0300 | [diff] [blame] | 1370 | dev->wait_after_write = 0; |
| 1371 | break; |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 1372 | case CHIP_ID_EM2883: |
Mauro Carvalho Chehab | 89b329e | 2008-04-17 21:42:14 -0300 | [diff] [blame] | 1373 | em28xx_info("chip ID is em2882/em2883\n"); |
| 1374 | dev->wait_after_write = 0; |
| 1375 | break; |
| 1376 | default: |
| 1377 | em28xx_info("em28xx chip ID = %d\n", rc); |
| 1378 | } |
| 1379 | } |
Devin Heitmueller | 6a1acc3 | 2008-11-12 02:05:06 -0300 | [diff] [blame] | 1380 | |
| 1381 | /* Prepopulate cached GPO register content */ |
| 1382 | rc = em28xx_read_reg(dev, dev->reg_gpo_num); |
| 1383 | if (rc >= 0) |
| 1384 | dev->reg_gpo = rc; |
| 1385 | |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1386 | em28xx_set_model(dev); |
| 1387 | |
Markus Rechberger | a94e95b | 2006-01-23 17:11:10 -0200 | [diff] [blame] | 1388 | /* request some modules */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1389 | switch (dev->model) { |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1390 | case EM2880_BOARD_TERRATEC_PRODIGY_XS: |
| 1391 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1392 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1393 | case EM2860_BOARD_TERRATEC_HYBRID_XS: |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1394 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950: |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1395 | case EM2880_BOARD_PINNACLE_PCTV_HD_PRO: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1396 | case EM2882_BOARD_PINNACLE_HYBRID_PRO: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1397 | case EM2883_BOARD_KWORLD_HYBRID_A316: |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1398 | case EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600: |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1399 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1400 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1401 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1402 | EM28XX_I2C_FREQ_100_KHZ); |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1403 | msleep(50); |
Markus Rechberger | a94e95b | 2006-01-23 17:11:10 -0200 | [diff] [blame] | 1404 | |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1405 | /* Sets GPO/GPIO sequences for this device */ |
| 1406 | dev->analog_gpio = hauppauge_wintv_hvr_900_analog; |
| 1407 | dev->digital_gpio = hauppauge_wintv_hvr_900_digital; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1408 | dev->tun_analog_gpio = default_callback; |
| 1409 | dev->tun_digital_gpio = default_callback; |
| 1410 | break; |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1411 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1412 | case EM2882_BOARD_TERRATEC_HYBRID_XS: |
| 1413 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1414 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1415 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1416 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1417 | msleep(50); |
| 1418 | |
| 1419 | /* should be added ir_codes here */ |
| 1420 | |
| 1421 | /* Sets GPO/GPIO sequences for this device */ |
| 1422 | dev->analog_gpio = hauppauge_wintv_hvr_900_analog; |
| 1423 | dev->digital_gpio = hauppauge_wintv_hvr_900_digital; |
| 1424 | dev->tun_analog_gpio = default_callback; |
| 1425 | dev->tun_digital_gpio = em2882_terratec_hybrid_xs_digital; |
| 1426 | break; |
| 1427 | |
| 1428 | case EM2880_BOARD_TERRATEC_HYBRID_XS_FR: |
| 1429 | case EM2880_BOARD_TERRATEC_HYBRID_XS: |
| 1430 | case EM2870_BOARD_TERRATEC_XS: |
| 1431 | case EM2881_BOARD_PINNACLE_HYBRID_PRO: |
| 1432 | case EM2880_BOARD_KWORLD_DVB_310U: |
| 1433 | case EM2870_BOARD_KWORLD_350U: |
| 1434 | case EM2881_BOARD_DNT_DA2_HYBRID: |
| 1435 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1436 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1437 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1438 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1439 | msleep(50); |
| 1440 | |
| 1441 | /* NOTE: EM2881_DNT_DA2_HYBRID spend 140 msleep for digital |
| 1442 | and analog commands. If this commands doesn't work, |
| 1443 | add this timer. */ |
| 1444 | |
| 1445 | /* Sets GPO/GPIO sequences for this device */ |
| 1446 | dev->analog_gpio = default_analog; |
| 1447 | dev->digital_gpio = default_digital; |
| 1448 | dev->tun_analog_gpio = default_callback; |
| 1449 | dev->tun_digital_gpio = default_callback; |
| 1450 | break; |
| 1451 | |
| 1452 | case EM2880_BOARD_MSI_DIGIVOX_AD: |
| 1453 | case EM2880_BOARD_MSI_DIGIVOX_AD_II: |
| 1454 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1455 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1456 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1457 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1458 | msleep(50); |
| 1459 | |
| 1460 | /* Sets GPO/GPIO sequences for this device */ |
| 1461 | dev->analog_gpio = em2880_msi_digivox_ad_analog; |
| 1462 | dev->digital_gpio = em2880_msi_digivox_ad_digital; |
| 1463 | dev->tun_analog_gpio = default_callback; |
| 1464 | dev->tun_digital_gpio = default_callback; |
| 1465 | break; |
| 1466 | |
| 1467 | case EM2750_BOARD_UNKNOWN: |
| 1468 | case EM2750_BOARD_DLCW_130: |
| 1469 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x0a", 1); |
| 1470 | break; |
| 1471 | |
| 1472 | case EM2861_BOARD_PLEXTOR_PX_TV100U: |
| 1473 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1474 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1475 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1476 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1477 | /* FIXME guess */ |
| 1478 | /* Turn on analog audio output */ |
| 1479 | em28xx_write_regs_req(dev, 0x00, 0x08, "\xfd", 1); |
| 1480 | break; |
| 1481 | |
| 1482 | case EM2861_BOARD_KWORLD_PVRTV_300U: |
| 1483 | case EM2880_BOARD_KWORLD_DVB_305U: |
| 1484 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1485 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1486 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1487 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1488 | msleep(10); |
| 1489 | em28xx_write_regs(dev, 0x08, "\x6d", 1); |
| 1490 | msleep(10); |
| 1491 | em28xx_write_regs(dev, 0x08, "\x7d", 1); |
| 1492 | msleep(10); |
| 1493 | break; |
| 1494 | |
| 1495 | case EM2870_BOARD_KWORLD_355U: |
| 1496 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1497 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1498 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1499 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1500 | msleep(50); |
| 1501 | |
| 1502 | /* Sets GPO/GPIO sequences for this device */ |
| 1503 | dev->digital_gpio = em2870_kworld_355u_digital; |
| 1504 | break; |
| 1505 | |
| 1506 | case EM2870_BOARD_COMPRO_VIDEOMATE: |
| 1507 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1508 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1509 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1510 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1511 | /* TODO: someone can do some cleanup here... |
| 1512 | not everything's needed */ |
| 1513 | em28xx_write_regs(dev, 0x04, "\x00", 1); |
| 1514 | msleep(10); |
| 1515 | em28xx_write_regs(dev, 0x04, "\x01", 1); |
| 1516 | msleep(10); |
| 1517 | em28xx_write_regs(dev, 0x08, "\xfd", 1); |
| 1518 | mdelay(70); |
| 1519 | em28xx_write_regs(dev, 0x08, "\xfc", 1); |
| 1520 | mdelay(70); |
| 1521 | em28xx_write_regs(dev, 0x08, "\xdc", 1); |
| 1522 | mdelay(70); |
| 1523 | em28xx_write_regs(dev, 0x08, "\xfc", 1); |
| 1524 | mdelay(70); |
| 1525 | break; |
| 1526 | |
| 1527 | case EM2870_BOARD_TERRATEC_XS_MT2060: |
| 1528 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1529 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1530 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1531 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1532 | /* this device needs some gpio writes to get the DVB-T |
| 1533 | demod work */ |
| 1534 | em28xx_write_regs(dev, 0x08, "\xfe", 1); |
| 1535 | mdelay(70); |
| 1536 | em28xx_write_regs(dev, 0x08, "\xde", 1); |
| 1537 | mdelay(70); |
| 1538 | dev->em28xx_write_regs(dev, 0x08, "\xfe", 1); |
| 1539 | mdelay(70); |
| 1540 | break; |
| 1541 | |
| 1542 | case EM2870_BOARD_PINNACLE_PCTV_DVB: |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1543 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1544 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1545 | EM28XX_I2C_FREQ_100_KHZ); |
| 1546 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1547 | /* this device needs some gpio writes to get the |
| 1548 | DVB-T demod work */ |
| 1549 | em28xx_write_regs(dev, 0x08, "\xfe", 1); |
| 1550 | mdelay(70); |
| 1551 | em28xx_write_regs(dev, 0x08, "\xde", 1); |
| 1552 | mdelay(70); |
| 1553 | em28xx_write_regs(dev, 0x08, "\xfe", 1); |
| 1554 | mdelay(70); |
| 1555 | /* switch em2880 rc protocol */ |
| 1556 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x22", 1); |
| 1557 | /* should be added ir_codes here */ |
| 1558 | break; |
| 1559 | |
| 1560 | case EM2820_BOARD_GADMEI_UTV310: |
| 1561 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1562 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1563 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1564 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1565 | /* Turn on analog audio output */ |
| 1566 | em28xx_write_regs_req(dev, 0x00, 0x08, "\xfd", 1); |
| 1567 | break; |
| 1568 | |
| 1569 | case EM2860_BOARD_GADMEI_UTV330: |
| 1570 | /* Turn on IR */ |
| 1571 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x07", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1572 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1573 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1574 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1575 | /* should be added ir_codes here */ |
| 1576 | break; |
| 1577 | |
| 1578 | case EM2820_BOARD_MSI_VOX_USB_2: |
| 1579 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1580 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1581 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1582 | EM28XX_I2C_FREQ_100_KHZ); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1583 | /* enables audio for that device */ |
| 1584 | em28xx_write_regs_req(dev, 0x00, 0x08, "\xfd", 1); |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1585 | break; |
Devin Heitmueller | 864ec0b | 2008-11-12 02:05:28 -0300 | [diff] [blame] | 1586 | |
| 1587 | case EM2874_BOARD_PINNACLE_PCTV_80E: |
Devin Heitmueller | 23159a0 | 2008-11-20 09:53:05 -0300 | [diff] [blame] | 1588 | /* Set 400 KHz clock and select secondary i2c bus */ |
| 1589 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, |
| 1590 | EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1591 | EM2874_I2C_SECONDARY_BUS_SELECT | |
| 1592 | EM28XX_I2C_FREQ_400_KHZ); |
Devin Heitmueller | 864ec0b | 2008-11-12 02:05:28 -0300 | [diff] [blame] | 1593 | |
| 1594 | dev->digital_gpio = em2874_pinnacle_80e_digital; |
| 1595 | break; |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1596 | } |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1597 | |
| 1598 | em28xx_gpio_set(dev, dev->tun_analog_gpio); |
| 1599 | em28xx_set_mode(dev, EM28XX_ANALOG_MODE); |
| 1600 | |
| 1601 | /* Unlock device */ |
| 1602 | em28xx_set_mode(dev, EM28XX_MODE_UNDEFINED); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1603 | } |
| 1604 | |
Mauro Carvalho Chehab | e54318e | 2008-04-18 18:34:31 -0300 | [diff] [blame] | 1605 | static void em28xx_setup_xc3028(struct em28xx *dev, struct xc2028_ctrl *ctl) |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1606 | { |
| 1607 | memset(ctl, 0, sizeof(*ctl)); |
| 1608 | |
| 1609 | ctl->fname = XC2028_DEFAULT_FIRMWARE; |
| 1610 | ctl->max_len = 64; |
| 1611 | ctl->mts = em28xx_boards[dev->model].mts_firmware; |
| 1612 | |
| 1613 | switch (dev->model) { |
Mauro Carvalho Chehab | e77ebda | 2008-04-18 18:37:25 -0300 | [diff] [blame] | 1614 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: |
| 1615 | ctl->demod = XC3028_FE_ZARLINK456; |
| 1616 | break; |
reinhard schwab | 655b840 | 2008-07-26 10:47:00 -0300 | [diff] [blame] | 1617 | case EM2880_BOARD_TERRATEC_HYBRID_XS: |
| 1618 | ctl->demod = XC3028_FE_ZARLINK456; |
| 1619 | break; |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1620 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2: |
| 1621 | /* djh - Not sure which demod we need here */ |
| 1622 | ctl->demod = XC3028_FE_DEFAULT; |
| 1623 | break; |
Devin Heitmueller | 5ea7fe4 | 2008-09-16 02:02:12 -0300 | [diff] [blame] | 1624 | case EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600: |
| 1625 | ctl->demod = XC3028_FE_DEFAULT; |
| 1626 | ctl->fname = XC3028L_DEFAULT_FIRMWARE; |
| 1627 | break; |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1628 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950: |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1629 | case EM2880_BOARD_PINNACLE_PCTV_HD_PRO: |
Mauro Carvalho Chehab | e77ebda | 2008-04-18 18:37:25 -0300 | [diff] [blame] | 1630 | /* FIXME: Better to specify the needed IF */ |
Devin Heitmueller | bdfbf95 | 2008-04-17 21:38:27 -0300 | [diff] [blame] | 1631 | ctl->demod = XC3028_FE_DEFAULT; |
| 1632 | break; |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1633 | default: |
| 1634 | ctl->demod = XC3028_FE_OREN538; |
| 1635 | } |
| 1636 | } |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1637 | |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1638 | static void em28xx_config_tuner(struct em28xx *dev) |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1639 | { |
| 1640 | struct v4l2_priv_tun_config xc2028_cfg; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1641 | struct tuner_setup tun_setup; |
| 1642 | struct v4l2_frequency f; |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1643 | |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 1644 | if (dev->tuner_type == TUNER_ABSENT) |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1645 | return; |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1646 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1647 | tun_setup.mode_mask = T_ANALOG_TV | T_RADIO; |
| 1648 | tun_setup.type = dev->tuner_type; |
| 1649 | tun_setup.addr = dev->tuner_addr; |
| 1650 | tun_setup.tuner_callback = em28xx_tuner_callback; |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1651 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1652 | em28xx_i2c_call_clients(dev, TUNER_SET_TYPE_ADDR, &tun_setup); |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1653 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1654 | if (dev->tuner_type == TUNER_XC2028) { |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1655 | struct xc2028_ctrl ctl; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1656 | |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1657 | em28xx_setup_xc3028(dev, &ctl); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1658 | |
| 1659 | xc2028_cfg.tuner = TUNER_XC2028; |
| 1660 | xc2028_cfg.priv = &ctl; |
| 1661 | |
| 1662 | em28xx_i2c_call_clients(dev, TUNER_SET_CONFIG, &xc2028_cfg); |
| 1663 | } |
| 1664 | |
| 1665 | /* configure tuner */ |
| 1666 | f.tuner = 0; |
| 1667 | f.type = V4L2_TUNER_ANALOG_TV; |
| 1668 | f.frequency = 9076; /* just a magic number */ |
| 1669 | dev->ctl_freq = f.frequency; |
| 1670 | em28xx_i2c_call_clients(dev, VIDIOC_S_FREQUENCY, &f); |
| 1671 | } |
| 1672 | |
| 1673 | static int em28xx_hint_board(struct em28xx *dev) |
| 1674 | { |
| 1675 | int i; |
| 1676 | |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 1677 | /* HINT method: EEPROM |
| 1678 | * |
| 1679 | * This method works only for boards with eeprom. |
| 1680 | * Uses a hash of all eeprom bytes. The hash should be |
| 1681 | * unique for a vendor/tuner pair. |
| 1682 | * There are a high chance that tuners for different |
| 1683 | * video standards produce different hashes. |
| 1684 | */ |
| 1685 | for (i = 0; i < ARRAY_SIZE(em28xx_eeprom_hash); i++) { |
| 1686 | if (dev->hash == em28xx_eeprom_hash[i].hash) { |
| 1687 | dev->model = em28xx_eeprom_hash[i].model; |
| 1688 | dev->tuner_type = em28xx_eeprom_hash[i].tuner; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1689 | |
| 1690 | em28xx_errdev("Your board has no unique USB ID.\n"); |
| 1691 | em28xx_errdev("A hint were successfully done, " |
| 1692 | "based on eeprom hash.\n"); |
| 1693 | em28xx_errdev("This method is not 100%% failproof.\n"); |
| 1694 | em28xx_errdev("If the board were missdetected, " |
| 1695 | "please email this log to:\n"); |
| 1696 | em28xx_errdev("\tV4L Mailing List " |
| 1697 | " <video4linux-list@redhat.com>\n"); |
| 1698 | em28xx_errdev("Board detected as %s\n", |
| 1699 | em28xx_boards[dev->model].name); |
| 1700 | |
| 1701 | return 0; |
| 1702 | } |
| 1703 | } |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1704 | |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 1705 | /* HINT method: I2C attached devices |
| 1706 | * |
| 1707 | * This method works for all boards. |
| 1708 | * Uses a hash of i2c scanned devices. |
| 1709 | * Devices with the same i2c attached chips will |
| 1710 | * be considered equal. |
| 1711 | * This method is less precise than the eeprom one. |
| 1712 | */ |
| 1713 | |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1714 | /* user did not request i2c scanning => do it now */ |
| 1715 | if (!dev->i2c_hash) |
| 1716 | em28xx_do_i2c_scan(dev); |
| 1717 | |
| 1718 | for (i = 0; i < ARRAY_SIZE(em28xx_i2c_hash); i++) { |
| 1719 | if (dev->i2c_hash == em28xx_i2c_hash[i].hash) { |
| 1720 | dev->model = em28xx_i2c_hash[i].model; |
| 1721 | dev->tuner_type = em28xx_i2c_hash[i].tuner; |
| 1722 | em28xx_errdev("Your board has no unique USB ID.\n"); |
| 1723 | em28xx_errdev("A hint were successfully done, " |
| 1724 | "based on i2c devicelist hash.\n"); |
| 1725 | em28xx_errdev("This method is not 100%% failproof.\n"); |
| 1726 | em28xx_errdev("If the board were missdetected, " |
| 1727 | "please email this log to:\n"); |
| 1728 | em28xx_errdev("\tV4L Mailing List " |
| 1729 | " <video4linux-list@redhat.com>\n"); |
| 1730 | em28xx_errdev("Board detected as %s\n", |
| 1731 | em28xx_boards[dev->model].name); |
| 1732 | |
| 1733 | return 0; |
| 1734 | } |
| 1735 | } |
| 1736 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1737 | em28xx_errdev("Your board has no unique USB ID and thus need a " |
| 1738 | "hint to be detected.\n"); |
| 1739 | em28xx_errdev("You may try to use card=<n> insmod option to " |
| 1740 | "workaround that.\n"); |
| 1741 | em28xx_errdev("Please send an email with this log to:\n"); |
| 1742 | em28xx_errdev("\tV4L Mailing List <video4linux-list@redhat.com>\n"); |
| 1743 | em28xx_errdev("Board eeprom hash is 0x%08lx\n", dev->hash); |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1744 | em28xx_errdev("Board i2c devicelist hash is 0x%08lx\n", dev->i2c_hash); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1745 | |
| 1746 | em28xx_errdev("Here is a list of valid choices for the card=<n>" |
| 1747 | " insmod option:\n"); |
| 1748 | for (i = 0; i < em28xx_bcount; i++) { |
| 1749 | em28xx_errdev(" card=%d -> %s\n", |
| 1750 | i, em28xx_boards[i].name); |
| 1751 | } |
| 1752 | return -1; |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1753 | } |
| 1754 | |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1755 | /* ----------------------------------------------------------------------- */ |
| 1756 | void em28xx_set_ir(struct em28xx *dev, struct IR_i2c *ir) |
| 1757 | { |
| 1758 | if (disable_ir) { |
| 1759 | ir->get_key = NULL; |
| 1760 | return ; |
| 1761 | } |
| 1762 | |
| 1763 | /* detect & configure */ |
| 1764 | switch (dev->model) { |
| 1765 | case (EM2800_BOARD_UNKNOWN): |
| 1766 | break; |
| 1767 | case (EM2820_BOARD_UNKNOWN): |
| 1768 | break; |
| 1769 | case (EM2800_BOARD_TERRATEC_CINERGY_200): |
| 1770 | case (EM2820_BOARD_TERRATEC_CINERGY_250): |
| 1771 | ir->ir_codes = ir_codes_em_terratec; |
| 1772 | ir->get_key = em28xx_get_key_terratec; |
| 1773 | snprintf(ir->c.name, sizeof(ir->c.name), |
| 1774 | "i2c IR (EM28XX Terratec)"); |
| 1775 | break; |
| 1776 | case (EM2820_BOARD_PINNACLE_USB_2): |
| 1777 | ir->ir_codes = ir_codes_pinnacle_grey; |
| 1778 | ir->get_key = em28xx_get_key_pinnacle_usb_grey; |
| 1779 | snprintf(ir->c.name, sizeof(ir->c.name), |
| 1780 | "i2c IR (EM28XX Pinnacle PCTV)"); |
| 1781 | break; |
| 1782 | case (EM2820_BOARD_HAUPPAUGE_WINTV_USB_2): |
| 1783 | ir->ir_codes = ir_codes_hauppauge_new; |
| 1784 | ir->get_key = em28xx_get_key_em_haup; |
| 1785 | snprintf(ir->c.name, sizeof(ir->c.name), |
| 1786 | "i2c IR (EM2840 Hauppauge)"); |
| 1787 | break; |
| 1788 | case (EM2820_BOARD_MSI_VOX_USB_2): |
| 1789 | break; |
| 1790 | case (EM2800_BOARD_LEADTEK_WINFAST_USBII): |
| 1791 | break; |
| 1792 | case (EM2800_BOARD_KWORLD_USB2800): |
| 1793 | break; |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 1794 | case (EM2800_BOARD_GRABBEEX_USB2800): |
| 1795 | break; |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1796 | } |
| 1797 | } |
| 1798 | |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1799 | void em28xx_card_setup(struct em28xx *dev) |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1800 | { |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 1801 | em28xx_set_model(dev); |
| 1802 | |
| 1803 | dev->tuner_type = em28xx_boards[dev->model].tuner_type; |
Mauro Carvalho Chehab | 31e0530 | 2008-11-20 18:47:37 -0300 | [diff] [blame^] | 1804 | if (em28xx_boards[dev->model].tuner_addr) |
| 1805 | dev->tuner_addr = em28xx_boards[dev->model].tuner_addr; |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 1806 | |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1807 | /* request some modules */ |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1808 | switch (dev->model) { |
| 1809 | case EM2820_BOARD_HAUPPAUGE_WINTV_USB_2: |
Mauro Carvalho Chehab | 98ae127 | 2007-11-05 09:30:39 -0300 | [diff] [blame] | 1810 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1811 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2: |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1812 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950: |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1813 | { |
| 1814 | struct tveeprom tv; |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1815 | #ifdef CONFIG_MODULES |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1816 | request_module("tveeprom"); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1817 | #endif |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1818 | /* Call first TVeeprom */ |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1819 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1820 | dev->i2c_client.addr = 0xa0 >> 1; |
| 1821 | tveeprom_hauppauge_analog(&dev->i2c_client, &tv, dev->eedata); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1822 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1823 | dev->tuner_type = tv.tuner_type; |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 1824 | |
Hans Verkuil | 38f9d30 | 2008-07-23 05:09:15 -0300 | [diff] [blame] | 1825 | if (tv.audio_processor == V4L2_IDENT_MSPX4XX) { |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1826 | dev->i2s_speed = 2048000; |
| 1827 | dev->has_msp34xx = 1; |
| 1828 | } |
Mauro Carvalho Chehab | 98ae127 | 2007-11-05 09:30:39 -0300 | [diff] [blame] | 1829 | #ifdef CONFIG_MODULES |
| 1830 | if (tv.has_ir) |
| 1831 | request_module("ir-kbd-i2c"); |
| 1832 | #endif |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1833 | break; |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1834 | } |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1835 | case EM2820_BOARD_KWORLD_PVRTV2800RF: |
| 1836 | /* GPIO enables sound on KWORLD PVR TV 2800RF */ |
| 1837 | em28xx_write_regs_req(dev, 0x00, 0x08, "\xf9", 1); |
| 1838 | break; |
| 1839 | case EM2820_BOARD_UNKNOWN: |
| 1840 | case EM2800_BOARD_UNKNOWN: |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 1841 | /* |
| 1842 | * The K-WORLD DVB-T 310U is detected as an MSI Digivox AD. |
| 1843 | * |
| 1844 | * This occurs because they share identical USB vendor and |
| 1845 | * product IDs. |
| 1846 | * |
| 1847 | * What we do here is look up the EEPROM hash of the K-WORLD |
| 1848 | * and if it is found then we decide that we do not have |
| 1849 | * a DIGIVOX and reset the device to the K-WORLD instead. |
| 1850 | * |
| 1851 | * This solution is only valid if they do not share eeprom |
| 1852 | * hash identities which has not been determined as yet. |
| 1853 | */ |
| 1854 | case EM2880_BOARD_MSI_DIGIVOX_AD: |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 1855 | if (!em28xx_hint_board(dev)) |
| 1856 | em28xx_set_model(dev); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1857 | break; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1858 | } |
| 1859 | |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 1860 | if (dev->has_snapshot_button) |
| 1861 | em28xx_register_snapshot_button(dev); |
| 1862 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1863 | if (dev->valid == EM28XX_BOARD_NOT_VALIDATED) { |
| 1864 | em28xx_errdev("\n\n"); |
| 1865 | em28xx_errdev("The support for this board weren't " |
| 1866 | "valid yet.\n"); |
| 1867 | em28xx_errdev("Please send a report of having this working\n"); |
| 1868 | em28xx_errdev("not to V4L mailing list (and/or to other " |
| 1869 | "addresses)\n\n"); |
| 1870 | } |
| 1871 | |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 1872 | /* Allow override tuner type by a module parameter */ |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1873 | if (tuner >= 0) |
| 1874 | dev->tuner_type = tuner; |
| 1875 | |
| 1876 | #ifdef CONFIG_MODULES |
| 1877 | /* request some modules */ |
| 1878 | if (dev->has_msp34xx) |
| 1879 | request_module("msp3400"); |
| 1880 | if (dev->decoder == EM28XX_SAA7113 || dev->decoder == EM28XX_SAA7114) |
| 1881 | request_module("saa7115"); |
| 1882 | if (dev->decoder == EM28XX_TVP5150) |
| 1883 | request_module("tvp5150"); |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 1884 | if (dev->tuner_type != TUNER_ABSENT) |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1885 | request_module("tuner"); |
| 1886 | #endif |
| 1887 | |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1888 | em28xx_config_tuner(dev); |
Mauro Carvalho Chehab | a924a49 | 2008-11-12 08:41:29 -0300 | [diff] [blame] | 1889 | |
| 1890 | em28xx_ir_init(dev); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1891 | } |