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