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> |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 9 | Copyright (C) 2012 Frank Schäfer <fschaefer.oss@googlemail.com> |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 10 | |
| 11 | This program is free software; you can redistribute it and/or modify |
| 12 | it under the terms of the GNU General Public License as published by |
| 13 | the Free Software Foundation; either version 2 of the License, or |
| 14 | (at your option) any later version. |
| 15 | |
| 16 | This program is distributed in the hope that it will be useful, |
| 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | GNU General Public License for more details. |
| 20 | |
| 21 | You should have received a copy of the GNU General Public License |
| 22 | along with this program; if not, write to the Free Software |
| 23 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 24 | */ |
| 25 | |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 26 | #include "em28xx.h" |
| 27 | |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 28 | #include <linux/init.h> |
| 29 | #include <linux/module.h> |
Tejun Heo | 5a0e3ad | 2010-03-24 17:04:11 +0900 | [diff] [blame] | 30 | #include <linux/slab.h> |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 31 | #include <linux/delay.h> |
| 32 | #include <linux/i2c.h> |
| 33 | #include <linux/usb.h> |
| 34 | #include <media/tuner.h> |
Mauro Carvalho Chehab | d647f0b | 2015-11-13 19:40:07 -0200 | [diff] [blame] | 35 | #include <media/drv-intf/msp3400.h> |
Mauro Carvalho Chehab | b5dcee2 | 2015-11-10 12:01:44 -0200 | [diff] [blame] | 36 | #include <media/i2c/saa7115.h> |
Javier Martinez Canillas | b802fb9 | 2016-02-05 17:09:56 -0200 | [diff] [blame] | 37 | #include <dt-bindings/media/tvp5150.h> |
Mauro Carvalho Chehab | b5dcee2 | 2015-11-10 12:01:44 -0200 | [diff] [blame] | 38 | #include <media/i2c/tvaudio.h> |
Douglas Schilling Landgraf | f2cf250 | 2009-03-31 17:10:58 -0300 | [diff] [blame] | 39 | #include <media/i2c-addr.h> |
Mauro Carvalho Chehab | 1f6173e | 2005-11-08 21:37:16 -0800 | [diff] [blame] | 40 | #include <media/tveeprom.h> |
Mauro Carvalho Chehab | 9bb13a6 | 2006-01-09 15:25:37 -0200 | [diff] [blame] | 41 | #include <media/v4l2-common.h> |
Matthieu Rogez | 0899f62 | 2016-03-04 18:33:08 -0300 | [diff] [blame] | 42 | #include <sound/ac97_codec.h> |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 43 | |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 44 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 45 | #define DRIVER_NAME "em28xx" |
| 46 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 47 | static int tuner = -1; |
| 48 | module_param(tuner, int, 0444); |
| 49 | MODULE_PARM_DESC(tuner, "tuner type"); |
| 50 | |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 51 | static unsigned int disable_ir; |
| 52 | module_param(disable_ir, int, 0444); |
| 53 | MODULE_PARM_DESC(disable_ir, "disable infrared remote support"); |
| 54 | |
Devin Heitmueller | e2a1b79 | 2009-05-27 23:44:10 -0300 | [diff] [blame] | 55 | static unsigned int disable_usb_speed_check; |
| 56 | module_param(disable_usb_speed_check, int, 0444); |
| 57 | MODULE_PARM_DESC(disable_usb_speed_check, |
| 58 | "override min bandwidth requirement of 480M bps"); |
| 59 | |
Devin Heitmueller | d3829fa | 2013-01-04 16:16:24 -0300 | [diff] [blame] | 60 | static unsigned int card[] = {[0 ... (EM28XX_MAXBOARDS - 1)] = -1U }; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 61 | module_param_array(card, int, NULL, 0444); |
| 62 | MODULE_PARM_DESC(card, "card type"); |
| 63 | |
Frank Schaefer | 7e5d74e | 2012-12-26 15:12:37 -0300 | [diff] [blame] | 64 | static int usb_xfer_mode = -1; |
| 65 | module_param(usb_xfer_mode, int, 0444); |
| 66 | MODULE_PARM_DESC(usb_xfer_mode, |
| 67 | "USB transfer mode for frame data (-1 = auto, 0 = prefer isoc, 1 = prefer bulk)"); |
Frank Schaefer | 454fe92 | 2012-11-08 14:11:53 -0300 | [diff] [blame] | 68 | |
Chris Rankin | 38b61eb | 2011-08-20 08:21:03 -0300 | [diff] [blame] | 69 | /* Bitmask marking allocated devices from 0 to EM28XX_MAXBOARDS - 1 */ |
Fengguang Wu | 9e8ca38 | 2014-01-15 18:50:26 -0300 | [diff] [blame] | 70 | static DECLARE_BITMAP(em28xx_devused, EM28XX_MAXBOARDS); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 71 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 72 | struct em28xx_hash_table { |
| 73 | unsigned long hash; |
| 74 | unsigned int model; |
| 75 | unsigned int tuner; |
| 76 | }; |
| 77 | |
Ezequiel Garcia | 60332f0 | 2012-04-28 09:57:01 -0300 | [diff] [blame] | 78 | static void em28xx_pre_card_setup(struct em28xx *dev); |
| 79 | |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 80 | /* |
| 81 | * Reset sequences for analog/digital modes |
| 82 | */ |
| 83 | |
| 84 | /* Reset for the most [analog] boards */ |
| 85 | static struct em28xx_reg_seq default_analog[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 86 | {EM2820_R08_GPIO_CTRL, 0x6d, ~EM_GPIO_4, 10}, |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 87 | { -1, -1, -1, -1}, |
| 88 | }; |
| 89 | |
| 90 | /* Reset for the most [digital] boards */ |
| 91 | static struct em28xx_reg_seq default_digital[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 92 | {EM2820_R08_GPIO_CTRL, 0x6e, ~EM_GPIO_4, 10}, |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 93 | { -1, -1, -1, -1}, |
| 94 | }; |
| 95 | |
| 96 | /* Board Hauppauge WinTV HVR 900 analog */ |
| 97 | static struct em28xx_reg_seq hauppauge_wintv_hvr_900_analog[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 98 | {EM2820_R08_GPIO_CTRL, 0x2d, ~EM_GPIO_4, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 99 | { 0x05, 0xff, 0x10, 10}, |
| 100 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 101 | }; |
| 102 | |
| 103 | /* Board Hauppauge WinTV HVR 900 digital */ |
| 104 | static struct em28xx_reg_seq hauppauge_wintv_hvr_900_digital[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 105 | {EM2820_R08_GPIO_CTRL, 0x2e, ~EM_GPIO_4, 10}, |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 106 | {EM2880_R04_GPO, 0x04, 0x0f, 10}, |
| 107 | {EM2880_R04_GPO, 0x0c, 0x0f, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 108 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 109 | }; |
| 110 | |
Devin Heitmueller | 7030f52 | 2011-03-13 02:04:53 -0300 | [diff] [blame] | 111 | /* Board Hauppauge WinTV HVR 900 (R2) digital */ |
| 112 | static struct em28xx_reg_seq hauppauge_wintv_hvr_900R2_digital[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 113 | {EM2820_R08_GPIO_CTRL, 0x2e, ~EM_GPIO_4, 10}, |
Devin Heitmueller | 7030f52 | 2011-03-13 02:04:53 -0300 | [diff] [blame] | 114 | {EM2880_R04_GPO, 0x0c, 0x0f, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 115 | { -1, -1, -1, -1}, |
Devin Heitmueller | 7030f52 | 2011-03-13 02:04:53 -0300 | [diff] [blame] | 116 | }; |
| 117 | |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 118 | /* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */ |
| 119 | static struct em28xx_reg_seq em2880_msi_digivox_ad_analog[] = { |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 120 | {EM2820_R08_GPIO_CTRL, 0x69, ~EM_GPIO_4, 10}, |
| 121 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 122 | }; |
| 123 | |
| 124 | /* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */ |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 125 | |
| 126 | /* Board - EM2870 Kworld 355u |
| 127 | Analog - No input analog */ |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 128 | |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 129 | /* Board - EM2882 Kworld 315U digital */ |
| 130 | static struct em28xx_reg_seq em2882_kworld_315u_digital[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 131 | {EM2820_R08_GPIO_CTRL, 0xff, 0xff, 10}, |
| 132 | {EM2820_R08_GPIO_CTRL, 0xfe, 0xff, 10}, |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 133 | {EM2880_R04_GPO, 0x04, 0xff, 10}, |
| 134 | {EM2880_R04_GPO, 0x0c, 0xff, 10}, |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 135 | {EM2820_R08_GPIO_CTRL, 0x7e, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 136 | { -1, -1, -1, -1}, |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 137 | }; |
| 138 | |
| 139 | static struct em28xx_reg_seq em2882_kworld_315u_tuner_gpio[] = { |
| 140 | {EM2880_R04_GPO, 0x08, 0xff, 10}, |
| 141 | {EM2880_R04_GPO, 0x0c, 0xff, 10}, |
| 142 | {EM2880_R04_GPO, 0x08, 0xff, 10}, |
| 143 | {EM2880_R04_GPO, 0x0c, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 144 | { -1, -1, -1, -1}, |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 145 | }; |
| 146 | |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 147 | static struct em28xx_reg_seq kworld_330u_analog[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 148 | {EM2820_R08_GPIO_CTRL, 0x6d, ~EM_GPIO_4, 10}, |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 149 | {EM2880_R04_GPO, 0x00, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 150 | { -1, -1, -1, -1}, |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 151 | }; |
| 152 | |
| 153 | static struct em28xx_reg_seq kworld_330u_digital[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 154 | {EM2820_R08_GPIO_CTRL, 0x6e, ~EM_GPIO_4, 10}, |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 155 | {EM2880_R04_GPO, 0x08, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 156 | { -1, -1, -1, -1}, |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 157 | }; |
| 158 | |
Devin Heitmueller | 1985922 | 2009-06-19 00:33:54 -0300 | [diff] [blame] | 159 | /* Evga inDtube |
| 160 | GPIO0 - Enable digital power (s5h1409) - low to enable |
| 161 | GPIO1 - Enable analog power (tvp5150/emp202) - low to enable |
| 162 | GPIO4 - xc3028 reset |
| 163 | GOP3 - s5h1409 reset |
| 164 | */ |
| 165 | static struct em28xx_reg_seq evga_indtube_analog[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 166 | {EM2820_R08_GPIO_CTRL, 0x79, 0xff, 60}, |
Devin Heitmueller | 1985922 | 2009-06-19 00:33:54 -0300 | [diff] [blame] | 167 | { -1, -1, -1, -1}, |
| 168 | }; |
| 169 | |
| 170 | static struct em28xx_reg_seq evga_indtube_digital[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 171 | {EM2820_R08_GPIO_CTRL, 0x7a, 0xff, 1}, |
Devin Heitmueller | 1985922 | 2009-06-19 00:33:54 -0300 | [diff] [blame] | 172 | {EM2880_R04_GPO, 0x04, 0xff, 10}, |
| 173 | {EM2880_R04_GPO, 0x0c, 0xff, 1}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 174 | { -1, -1, -1, -1}, |
Devin Heitmueller | 1985922 | 2009-06-19 00:33:54 -0300 | [diff] [blame] | 175 | }; |
| 176 | |
Jarod Wilson | 7e48b30 | 2010-03-07 17:55:43 -0300 | [diff] [blame] | 177 | /* |
Jean-Francois Thibert | 6dbea9f | 2013-10-09 11:18:05 -0300 | [diff] [blame] | 178 | * KWorld PlusTV 340U, UB435-Q and UB435-Q V2 (ATSC) GPIOs map: |
Jarod Wilson | 7e48b30 | 2010-03-07 17:55:43 -0300 | [diff] [blame] | 179 | * EM_GPIO_0 - currently unknown |
| 180 | * EM_GPIO_1 - LED disable/enable (1 = off, 0 = on) |
| 181 | * EM_GPIO_2 - currently unknown |
| 182 | * EM_GPIO_3 - currently unknown |
| 183 | * EM_GPIO_4 - TDA18271HD/C1 tuner (1 = active, 0 = in reset) |
| 184 | * EM_GPIO_5 - LGDT3304 ATSC/QAM demod (1 = active, 0 = in reset) |
| 185 | * EM_GPIO_6 - currently unknown |
| 186 | * EM_GPIO_7 - currently unknown |
| 187 | */ |
| 188 | static struct em28xx_reg_seq kworld_a340_digital[] = { |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 189 | {EM2820_R08_GPIO_CTRL, 0x6d, ~EM_GPIO_4, 10}, |
| 190 | { -1, -1, -1, -1}, |
Jarod Wilson | 7e48b30 | 2010-03-07 17:55:43 -0300 | [diff] [blame] | 191 | }; |
| 192 | |
Mauro Carvalho Chehab | 02bc1f5 | 2014-03-03 16:28:39 -0300 | [diff] [blame] | 193 | static struct em28xx_reg_seq kworld_ub435q_v3_digital[] = { |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 194 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 100}, |
| 195 | {EM2874_R80_GPIO_P0_CTRL, 0xfe, 0xff, 100}, |
Mauro Carvalho Chehab | 02bc1f5 | 2014-03-03 16:28:39 -0300 | [diff] [blame] | 196 | {EM2874_R80_GPIO_P0_CTRL, 0xbe, 0xff, 100}, |
| 197 | {EM2874_R80_GPIO_P0_CTRL, 0xfe, 0xff, 100}, |
| 198 | { -1, -1, -1, -1}, |
| 199 | }; |
| 200 | |
Devin Heitmueller | d5b3ba9 | 2009-07-08 21:51:35 -0300 | [diff] [blame] | 201 | /* Pinnacle Hybrid Pro eb1a:2881 */ |
| 202 | static struct em28xx_reg_seq pinnacle_hybrid_pro_analog[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 203 | {EM2820_R08_GPIO_CTRL, 0xfd, ~EM_GPIO_4, 10}, |
Devin Heitmueller | d5b3ba9 | 2009-07-08 21:51:35 -0300 | [diff] [blame] | 204 | { -1, -1, -1, -1}, |
| 205 | }; |
| 206 | |
| 207 | static struct em28xx_reg_seq pinnacle_hybrid_pro_digital[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 208 | {EM2820_R08_GPIO_CTRL, 0x6e, ~EM_GPIO_4, 10}, |
Devin Heitmueller | d5b3ba9 | 2009-07-08 21:51:35 -0300 | [diff] [blame] | 209 | {EM2880_R04_GPO, 0x04, 0xff, 100},/* zl10353 reset */ |
| 210 | {EM2880_R04_GPO, 0x0c, 0xff, 1}, |
| 211 | { -1, -1, -1, -1}, |
| 212 | }; |
| 213 | |
Michel Garnier | cec4e6c | 2010-10-16 14:42:01 -0300 | [diff] [blame] | 214 | static struct em28xx_reg_seq terratec_cinergy_USB_XS_FR_analog[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 215 | {EM2820_R08_GPIO_CTRL, 0x6d, ~EM_GPIO_4, 10}, |
Michel Garnier | cec4e6c | 2010-10-16 14:42:01 -0300 | [diff] [blame] | 216 | {EM2880_R04_GPO, 0x00, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 217 | { -1, -1, -1, -1}, |
Michel Garnier | cec4e6c | 2010-10-16 14:42:01 -0300 | [diff] [blame] | 218 | }; |
| 219 | |
| 220 | static struct em28xx_reg_seq terratec_cinergy_USB_XS_FR_digital[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 221 | {EM2820_R08_GPIO_CTRL, 0x6e, ~EM_GPIO_4, 10}, |
Michel Garnier | cec4e6c | 2010-10-16 14:42:01 -0300 | [diff] [blame] | 222 | {EM2880_R04_GPO, 0x08, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 223 | { -1, -1, -1, -1}, |
Michel Garnier | cec4e6c | 2010-10-16 14:42:01 -0300 | [diff] [blame] | 224 | }; |
| 225 | |
Devin Heitmueller | 38b2df9 | 2012-08-13 21:18:02 -0300 | [diff] [blame] | 226 | /* PCTV HD Mini (80e) GPIOs |
| 227 | 0-5: not used |
| 228 | 6: demod reset, active low |
| 229 | 7: LED on, active high */ |
| 230 | static struct em28xx_reg_seq em2874_pctv_80e_digital[] = { |
| 231 | {EM28XX_R06_I2C_CLK, 0x45, 0xff, 10}, /*400 KHz*/ |
Mauro Carvalho Chehab | 88e4fcd | 2014-03-04 20:49:07 -0300 | [diff] [blame] | 232 | {EM2874_R80_GPIO_P0_CTRL, 0x00, 0xff, 100},/*Demod reset*/ |
| 233 | {EM2874_R80_GPIO_P0_CTRL, 0x40, 0xff, 10}, |
Devin Heitmueller | 38b2df9 | 2012-08-13 21:18:02 -0300 | [diff] [blame] | 234 | { -1, -1, -1, -1}, |
| 235 | }; |
| 236 | |
Antti Palosaari | 285eb1a | 2009-09-15 14:42:13 -0300 | [diff] [blame] | 237 | /* eb1a:2868 Reddo DVB-C USB TV Box |
| 238 | GPIO4 - CU1216L NIM |
| 239 | Other GPIOs seems to be don't care. */ |
| 240 | static struct em28xx_reg_seq reddo_dvb_c_usb_box[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 241 | {EM2820_R08_GPIO_CTRL, 0xfe, 0xff, 10}, |
| 242 | {EM2820_R08_GPIO_CTRL, 0xde, 0xff, 10}, |
| 243 | {EM2820_R08_GPIO_CTRL, 0xfe, 0xff, 10}, |
| 244 | {EM2820_R08_GPIO_CTRL, 0xff, 0xff, 10}, |
| 245 | {EM2820_R08_GPIO_CTRL, 0x7f, 0xff, 10}, |
| 246 | {EM2820_R08_GPIO_CTRL, 0x6f, 0xff, 10}, |
| 247 | {EM2820_R08_GPIO_CTRL, 0xff, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 248 | { -1, -1, -1, -1}, |
Antti Palosaari | 285eb1a | 2009-09-15 14:42:13 -0300 | [diff] [blame] | 249 | }; |
Devin Heitmueller | d5b3ba9 | 2009-07-08 21:51:35 -0300 | [diff] [blame] | 250 | |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 251 | /* Callback for the most boards */ |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 252 | static struct em28xx_reg_seq default_tuner_gpio[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 253 | {EM2820_R08_GPIO_CTRL, EM_GPIO_4, EM_GPIO_4, 10}, |
| 254 | {EM2820_R08_GPIO_CTRL, 0, EM_GPIO_4, 10}, |
| 255 | {EM2820_R08_GPIO_CTRL, EM_GPIO_4, EM_GPIO_4, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 256 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 257 | }; |
| 258 | |
Vitaly Wool | 2bd1d9e | 2009-03-04 08:27:52 -0300 | [diff] [blame] | 259 | /* Mute/unmute */ |
| 260 | static struct em28xx_reg_seq compro_unmute_tv_gpio[] = { |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 261 | {EM2820_R08_GPIO_CTRL, 5, 7, 10}, |
| 262 | { -1, -1, -1, -1}, |
Vitaly Wool | 2bd1d9e | 2009-03-04 08:27:52 -0300 | [diff] [blame] | 263 | }; |
| 264 | |
| 265 | static struct em28xx_reg_seq compro_unmute_svid_gpio[] = { |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 266 | {EM2820_R08_GPIO_CTRL, 4, 7, 10}, |
| 267 | { -1, -1, -1, -1}, |
Vitaly Wool | 2bd1d9e | 2009-03-04 08:27:52 -0300 | [diff] [blame] | 268 | }; |
| 269 | |
| 270 | static struct em28xx_reg_seq compro_mute_gpio[] = { |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 271 | {EM2820_R08_GPIO_CTRL, 6, 7, 10}, |
| 272 | { -1, -1, -1, -1}, |
Vitaly Wool | 2bd1d9e | 2009-03-04 08:27:52 -0300 | [diff] [blame] | 273 | }; |
| 274 | |
Mauro Carvalho Chehab | 766ed64 | 2009-05-24 00:46:01 -0300 | [diff] [blame] | 275 | /* Terratec AV350 */ |
| 276 | static struct em28xx_reg_seq terratec_av350_mute_gpio[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 277 | {EM2820_R08_GPIO_CTRL, 0xff, 0x7f, 10}, |
Mauro Carvalho Chehab | 766ed64 | 2009-05-24 00:46:01 -0300 | [diff] [blame] | 278 | { -1, -1, -1, -1}, |
| 279 | }; |
| 280 | |
| 281 | static struct em28xx_reg_seq terratec_av350_unmute_gpio[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 282 | {EM2820_R08_GPIO_CTRL, 0xff, 0xff, 10}, |
Mauro Carvalho Chehab | 766ed64 | 2009-05-24 00:46:01 -0300 | [diff] [blame] | 283 | { -1, -1, -1, -1}, |
| 284 | }; |
Mauro Carvalho Chehab | 02e7804 | 2009-06-29 11:35:05 -0300 | [diff] [blame] | 285 | |
| 286 | static struct em28xx_reg_seq silvercrest_reg_seq[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 287 | {EM2820_R08_GPIO_CTRL, 0xff, 0xff, 10}, |
| 288 | {EM2820_R08_GPIO_CTRL, 0x01, 0xf7, 10}, |
Mauro Carvalho Chehab | 02e7804 | 2009-06-29 11:35:05 -0300 | [diff] [blame] | 289 | { -1, -1, -1, -1}, |
| 290 | }; |
| 291 | |
Mauro Carvalho Chehab | 694a101 | 2009-11-26 21:26:13 -0300 | [diff] [blame] | 292 | static struct em28xx_reg_seq vc211a_enable[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 293 | {EM2820_R08_GPIO_CTRL, 0xff, 0x07, 10}, |
| 294 | {EM2820_R08_GPIO_CTRL, 0xff, 0x0f, 10}, |
| 295 | {EM2820_R08_GPIO_CTRL, 0xff, 0x0b, 10}, |
Mauro Carvalho Chehab | 694a101 | 2009-11-26 21:26:13 -0300 | [diff] [blame] | 296 | { -1, -1, -1, -1}, |
| 297 | }; |
| 298 | |
Andrea.Amorosi76@gmail.com | 7ca7ef6 | 2010-02-09 17:53:38 -0300 | [diff] [blame] | 299 | static struct em28xx_reg_seq dikom_dk300_digital[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 300 | {EM2820_R08_GPIO_CTRL, 0x6e, ~EM_GPIO_4, 10}, |
Andrea.Amorosi76@gmail.com | 7ca7ef6 | 2010-02-09 17:53:38 -0300 | [diff] [blame] | 301 | {EM2880_R04_GPO, 0x08, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 302 | { -1, -1, -1, -1}, |
Andrea.Amorosi76@gmail.com | 7ca7ef6 | 2010-02-09 17:53:38 -0300 | [diff] [blame] | 303 | }; |
| 304 | |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 305 | /* Reset for the most [digital] boards */ |
| 306 | static struct em28xx_reg_seq leadership_digital[] = { |
Frank Schaefer | 907d109 | 2013-06-03 14:12:02 -0300 | [diff] [blame] | 307 | {EM2874_R80_GPIO_P0_CTRL, 0x70, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 308 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 309 | }; |
| 310 | |
| 311 | static struct em28xx_reg_seq leadership_reset[] = { |
Frank Schaefer | 907d109 | 2013-06-03 14:12:02 -0300 | [diff] [blame] | 312 | {EM2874_R80_GPIO_P0_CTRL, 0xf0, 0xff, 10}, |
| 313 | {EM2874_R80_GPIO_P0_CTRL, 0xb0, 0xff, 10}, |
| 314 | {EM2874_R80_GPIO_P0_CTRL, 0xf0, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 315 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 316 | }; |
| 317 | |
Antti Palosaari | 460312e | 2011-05-25 17:03:50 -0300 | [diff] [blame] | 318 | /* 2013:024f PCTV nanoStick T2 290e |
Antti Palosaari | d6a5f92 | 2011-04-07 16:34:44 -0300 | [diff] [blame] | 319 | * GPIO_6 - demod reset |
| 320 | * GPIO_7 - LED |
| 321 | */ |
| 322 | static struct em28xx_reg_seq pctv_290e[] = { |
Frank Schaefer | 907d109 | 2013-06-03 14:12:02 -0300 | [diff] [blame] | 323 | {EM2874_R80_GPIO_P0_CTRL, 0x00, 0xff, 80}, |
| 324 | {EM2874_R80_GPIO_P0_CTRL, 0x40, 0xff, 80}, /* GPIO_6 = 1 */ |
| 325 | {EM2874_R80_GPIO_P0_CTRL, 0xc0, 0xff, 80}, /* GPIO_7 = 1 */ |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 326 | { -1, -1, -1, -1}, |
Antti Palosaari | d6a5f92 | 2011-04-07 16:34:44 -0300 | [diff] [blame] | 327 | }; |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 328 | |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 329 | #if 0 |
| 330 | static struct em28xx_reg_seq terratec_h5_gpio[] = { |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 331 | {EM2820_R08_GPIO_CTRL, 0xff, 0xff, 10}, |
Frank Schaefer | 907d109 | 2013-06-03 14:12:02 -0300 | [diff] [blame] | 332 | {EM2874_R80_GPIO_P0_CTRL, 0xf6, 0xff, 100}, |
| 333 | {EM2874_R80_GPIO_P0_CTRL, 0xf2, 0xff, 50}, |
| 334 | {EM2874_R80_GPIO_P0_CTRL, 0xf6, 0xff, 50}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 335 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 336 | }; |
| 337 | |
| 338 | static struct em28xx_reg_seq terratec_h5_digital[] = { |
Frank Schaefer | 907d109 | 2013-06-03 14:12:02 -0300 | [diff] [blame] | 339 | {EM2874_R80_GPIO_P0_CTRL, 0xf6, 0xff, 10}, |
| 340 | {EM2874_R80_GPIO_P0_CTRL, 0xe6, 0xff, 100}, |
| 341 | {EM2874_R80_GPIO_P0_CTRL, 0xa6, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 342 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 343 | }; |
| 344 | #endif |
| 345 | |
Antti Palosaari | 3658871 | 2011-08-01 01:15:30 -0300 | [diff] [blame] | 346 | /* 2013:024f PCTV DVB-S2 Stick 460e |
| 347 | * GPIO_0 - POWER_ON |
| 348 | * GPIO_1 - BOOST |
| 349 | * GPIO_2 - VUV_LNB (red LED) |
| 350 | * GPIO_3 - EXT_12V |
| 351 | * GPIO_4 - INT_DEM (DEMOD GPIO_0) |
| 352 | * GPIO_5 - INT_LNB |
| 353 | * GPIO_6 - RESET_DEM |
| 354 | * GPIO_7 - LED (green LED) |
| 355 | */ |
| 356 | static struct em28xx_reg_seq pctv_460e[] = { |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 357 | {EM2874_R80_GPIO_P0_CTRL, 0x01, 0xff, 50}, |
| 358 | { 0x0d, 0xff, 0xff, 50}, |
| 359 | {EM2874_R80_GPIO_P0_CTRL, 0x41, 0xff, 50}, /* GPIO_6=1 */ |
| 360 | { 0x0d, 0x42, 0xff, 50}, |
| 361 | {EM2874_R80_GPIO_P0_CTRL, 0x61, 0xff, 50}, /* GPIO_5=1 */ |
| 362 | { -1, -1, -1, -1}, |
Antti Palosaari | 3658871 | 2011-08-01 01:15:30 -0300 | [diff] [blame] | 363 | }; |
| 364 | |
Mauro Carvalho Chehab | 4159d01 | 2013-02-28 10:35:56 -0300 | [diff] [blame] | 365 | static struct em28xx_reg_seq c3tech_digital_duo_digital[] = { |
Frank Schaefer | 907d109 | 2013-06-03 14:12:02 -0300 | [diff] [blame] | 366 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 10}, |
| 367 | {EM2874_R80_GPIO_P0_CTRL, 0xfd, 0xff, 10}, /* xc5000 reset */ |
| 368 | {EM2874_R80_GPIO_P0_CTRL, 0xf9, 0xff, 35}, |
| 369 | {EM2874_R80_GPIO_P0_CTRL, 0xfd, 0xff, 10}, |
| 370 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 10}, |
| 371 | {EM2874_R80_GPIO_P0_CTRL, 0xfe, 0xff, 10}, |
| 372 | {EM2874_R80_GPIO_P0_CTRL, 0xbe, 0xff, 10}, |
| 373 | {EM2874_R80_GPIO_P0_CTRL, 0xfe, 0xff, 20}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 374 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | 4159d01 | 2013-02-28 10:35:56 -0300 | [diff] [blame] | 375 | }; |
| 376 | |
Antti Palosaari | ec57336 | 2013-02-25 09:01:13 -0300 | [diff] [blame] | 377 | /* |
| 378 | * 2013:0258 PCTV DVB-S2 Stick (461e) |
| 379 | * GPIO 0 = POWER_ON |
| 380 | * GPIO 1 = BOOST |
| 381 | * GPIO 2 = VUV_LNB (red LED) |
| 382 | * GPIO 3 = #EXT_12V |
| 383 | * GPIO 4 = INT_DEM |
| 384 | * GPIO 5 = INT_LNB |
| 385 | * GPIO 6 = #RESET_DEM |
| 386 | * GPIO 7 = P07_LED (green LED) |
| 387 | */ |
| 388 | static struct em28xx_reg_seq pctv_461e[] = { |
| 389 | {EM2874_R80_GPIO_P0_CTRL, 0x7f, 0xff, 0}, |
| 390 | {0x0d, 0xff, 0xff, 0}, |
| 391 | {EM2874_R80_GPIO_P0_CTRL, 0x3f, 0xff, 100}, /* reset demod */ |
| 392 | {EM2874_R80_GPIO_P0_CTRL, 0x7f, 0xff, 200}, /* reset demod */ |
| 393 | {0x0d, 0x42, 0xff, 0}, |
| 394 | {EM2874_R80_GPIO_P0_CTRL, 0xeb, 0xff, 0}, |
| 395 | {EM2874_R5F_TS_ENABLE, 0x84, 0x84, 0}, /* parallel? | null discard */ |
| 396 | { -1, -1, -1, -1}, |
| 397 | }; |
| 398 | |
Mauro Carvalho Chehab | 8503232 | 2011-11-24 15:01:45 -0200 | [diff] [blame] | 399 | #if 0 |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 400 | static struct em28xx_reg_seq hauppauge_930c_gpio[] = { |
Frank Schaefer | 907d109 | 2013-06-03 14:12:02 -0300 | [diff] [blame] | 401 | {EM2874_R80_GPIO_P0_CTRL, 0x6f, 0xff, 10}, |
| 402 | {EM2874_R80_GPIO_P0_CTRL, 0x4f, 0xff, 10}, /* xc5000 reset */ |
| 403 | {EM2874_R80_GPIO_P0_CTRL, 0x6f, 0xff, 10}, |
| 404 | {EM2874_R80_GPIO_P0_CTRL, 0x4f, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 405 | { -1, -1, -1, -1}, |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 406 | }; |
| 407 | |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 408 | static struct em28xx_reg_seq hauppauge_930c_digital[] = { |
Frank Schaefer | 907d109 | 2013-06-03 14:12:02 -0300 | [diff] [blame] | 409 | {EM2874_R80_GPIO_P0_CTRL, 0xf6, 0xff, 10}, |
| 410 | {EM2874_R80_GPIO_P0_CTRL, 0xe6, 0xff, 100}, |
| 411 | {EM2874_R80_GPIO_P0_CTRL, 0xa6, 0xff, 10}, |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 412 | { -1, -1, -1, -1}, |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 413 | }; |
| 414 | #endif |
| 415 | |
Antti Palosaari | 3553085 | 2012-03-18 18:09:01 -0300 | [diff] [blame] | 416 | /* 1b80:e425 MaxMedia UB425-TC |
Jakob Haufe | 7c1dfdb | 2013-04-13 11:03:37 -0300 | [diff] [blame] | 417 | * 1b80:e1cc Delock 61959 |
Antti Palosaari | 3553085 | 2012-03-18 18:09:01 -0300 | [diff] [blame] | 418 | * GPIO_6 - demod reset, 0=active |
| 419 | * GPIO_7 - LED, 0=active |
| 420 | */ |
| 421 | static struct em28xx_reg_seq maxmedia_ub425_tc[] = { |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 422 | {EM2874_R80_GPIO_P0_CTRL, 0x83, 0xff, 100}, |
| 423 | {EM2874_R80_GPIO_P0_CTRL, 0xc3, 0xff, 100}, /* GPIO_6 = 1 */ |
| 424 | {EM2874_R80_GPIO_P0_CTRL, 0x43, 0xff, 000}, /* GPIO_7 = 0 */ |
| 425 | { -1, -1, -1, -1}, |
Antti Palosaari | 3553085 | 2012-03-18 18:09:01 -0300 | [diff] [blame] | 426 | }; |
| 427 | |
Ivan Kalvachev | fa5527c | 2012-03-19 20:09:55 -0300 | [diff] [blame] | 428 | /* 2304:0242 PCTV QuatroStick (510e) |
| 429 | * GPIO_2: decoder reset, 0=active |
| 430 | * GPIO_4: decoder suspend, 0=active |
| 431 | * GPIO_6: demod reset, 0=active |
| 432 | * GPIO_7: LED, 1=active |
| 433 | */ |
| 434 | static struct em28xx_reg_seq pctv_510e[] = { |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 435 | {EM2874_R80_GPIO_P0_CTRL, 0x10, 0xff, 100}, |
| 436 | {EM2874_R80_GPIO_P0_CTRL, 0x14, 0xff, 100}, /* GPIO_2 = 1 */ |
| 437 | {EM2874_R80_GPIO_P0_CTRL, 0x54, 0xff, 050}, /* GPIO_6 = 1 */ |
| 438 | { -1, -1, -1, -1}, |
Ivan Kalvachev | fa5527c | 2012-03-19 20:09:55 -0300 | [diff] [blame] | 439 | }; |
| 440 | |
Antti Palosaari | c247d7b | 2012-03-19 11:48:19 -0300 | [diff] [blame] | 441 | /* 2013:0251 PCTV QuatroStick nano (520e) |
| 442 | * GPIO_2: decoder reset, 0=active |
| 443 | * GPIO_4: decoder suspend, 0=active |
| 444 | * GPIO_6: demod reset, 0=active |
| 445 | * GPIO_7: LED, 1=active |
| 446 | */ |
| 447 | static struct em28xx_reg_seq pctv_520e[] = { |
Frank Schaefer | b68cafc | 2013-10-10 14:36:30 -0300 | [diff] [blame] | 448 | {EM2874_R80_GPIO_P0_CTRL, 0x10, 0xff, 100}, |
| 449 | {EM2874_R80_GPIO_P0_CTRL, 0x14, 0xff, 100}, /* GPIO_2 = 1 */ |
| 450 | {EM2874_R80_GPIO_P0_CTRL, 0x54, 0xff, 050}, /* GPIO_6 = 1 */ |
| 451 | {EM2874_R80_GPIO_P0_CTRL, 0xd4, 0xff, 000}, /* GPIO_7 = 1 */ |
| 452 | { -1, -1, -1, -1}, |
Antti Palosaari | c247d7b | 2012-03-19 11:48:19 -0300 | [diff] [blame] | 453 | }; |
| 454 | |
Frank Schaefer | 0c37e73 | 2013-12-01 18:06:57 -0300 | [diff] [blame] | 455 | /* 1ae7:9003/9004 SpeedLink Vicious And Devine Laplace webcam |
| 456 | * reg 0x80/0x84: |
| 457 | * GPIO_0: capturing LED, 0=on, 1=off |
| 458 | * GPIO_2: AV mute button, 0=pressed, 1=unpressed |
| 459 | * GPIO 3: illumination button, 0=pressed, 1=unpressed |
| 460 | * GPIO_6: illumination/flash LED, 0=on, 1=off |
| 461 | * reg 0x81/0x85: |
| 462 | * GPIO_7: snapshot button, 0=pressed, 1=unpressed |
| 463 | */ |
| 464 | static struct em28xx_reg_seq speedlink_vad_laplace_reg_seq[] = { |
| 465 | {EM2820_R08_GPIO_CTRL, 0xf7, 0xff, 10}, |
| 466 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xb2, 10}, |
| 467 | { -1, -1, -1, -1}, |
| 468 | }; |
| 469 | |
Antti Palosaari | 1922924 | 2014-04-10 22:11:27 -0300 | [diff] [blame] | 470 | static struct em28xx_reg_seq pctv_292e[] = { |
| 471 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 0}, |
| 472 | {0x0d, 0xff, 0xff, 950}, |
| 473 | {EM2874_R80_GPIO_P0_CTRL, 0xbd, 0xff, 100}, |
| 474 | {EM2874_R80_GPIO_P0_CTRL, 0xfd, 0xff, 410}, |
| 475 | {EM2874_R80_GPIO_P0_CTRL, 0x7d, 0xff, 300}, |
| 476 | {EM2874_R80_GPIO_P0_CTRL, 0x7c, 0xff, 60}, |
| 477 | {0x0d, 0x42, 0xff, 50}, |
| 478 | {EM2874_R5F_TS_ENABLE, 0x85, 0xff, 0}, |
| 479 | {-1, -1, -1, -1}, |
| 480 | }; |
| 481 | |
Olli Salonen | fc30dd76 | 2014-11-24 03:57:34 -0300 | [diff] [blame] | 482 | static struct em28xx_reg_seq terratec_t2_stick_hd[] = { |
| 483 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 0}, |
| 484 | {0x0d, 0xff, 0xff, 600}, |
| 485 | {EM2874_R80_GPIO_P0_CTRL, 0xfc, 0xff, 10}, |
| 486 | {EM2874_R80_GPIO_P0_CTRL, 0xbc, 0xff, 100}, |
| 487 | {EM2874_R80_GPIO_P0_CTRL, 0xfc, 0xff, 100}, |
| 488 | {EM2874_R80_GPIO_P0_CTRL, 0x00, 0xff, 300}, |
| 489 | {EM2874_R80_GPIO_P0_CTRL, 0xf8, 0xff, 100}, |
| 490 | {EM2874_R80_GPIO_P0_CTRL, 0xfc, 0xff, 300}, |
| 491 | {0x0d, 0x42, 0xff, 1000}, |
| 492 | {EM2874_R5F_TS_ENABLE, 0x85, 0xff, 0}, |
| 493 | {-1, -1, -1, -1}, |
| 494 | }; |
| 495 | |
Satoshi Nagahama | ab4d145 | 2016-05-06 16:35:05 -0300 | [diff] [blame] | 496 | static struct em28xx_reg_seq plex_px_bcud[] = { |
| 497 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 0}, |
| 498 | {0x0d, 0xff, 0xff, 0}, |
| 499 | {EM2874_R50_IR_CONFIG, 0x01, 0xff, 0}, |
| 500 | {EM28XX_R06_I2C_CLK, 0x40, 0xff, 0}, |
| 501 | {EM2874_R80_GPIO_P0_CTRL, 0xfd, 0xff, 100}, |
| 502 | {EM28XX_R12_VINENABLE, 0x20, 0x20, 0}, |
| 503 | {0x0d, 0x42, 0xff, 1000}, |
| 504 | {EM2874_R80_GPIO_P0_CTRL, 0xfc, 0xff, 10}, |
| 505 | {EM2874_R80_GPIO_P0_CTRL, 0xfd, 0xff, 10}, |
| 506 | {0x73, 0xfd, 0xff, 100}, |
| 507 | {-1, -1, -1, -1}, |
| 508 | }; |
| 509 | |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 510 | /* |
Olli Salonen | 11a2a94 | 2016-04-04 12:12:52 -0300 | [diff] [blame] | 511 | * 2040:0265 Hauppauge WinTV-dualHD DVB |
| 512 | * reg 0x80/0x84: |
| 513 | * GPIO_0: Yellow LED tuner 1, 0=on, 1=off |
| 514 | * GPIO_1: Green LED tuner 1, 0=on, 1=off |
| 515 | * GPIO_2: Yellow LED tuner 2, 0=on, 1=off |
| 516 | * GPIO_3: Green LED tuner 2, 0=on, 1=off |
| 517 | * GPIO_5: Reset #2, 0=active |
| 518 | * GPIO_6: Reset #1, 0=active |
| 519 | */ |
| 520 | static struct em28xx_reg_seq hauppauge_dualhd_dvb[] = { |
| 521 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 0}, |
| 522 | {0x0d, 0xff, 0xff, 200}, |
| 523 | {0x50, 0x04, 0xff, 300}, |
| 524 | {EM2874_R80_GPIO_P0_CTRL, 0xbf, 0xff, 100}, /* demod 1 reset */ |
| 525 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 100}, |
| 526 | {EM2874_R80_GPIO_P0_CTRL, 0xdf, 0xff, 100}, /* demod 2 reset */ |
| 527 | {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 100}, |
| 528 | {EM2874_R5F_TS_ENABLE, 0x44, 0xff, 50}, |
| 529 | {EM2874_R5D_TS1_PKT_SIZE, 0x05, 0xff, 50}, |
| 530 | {EM2874_R5E_TS2_PKT_SIZE, 0x05, 0xff, 50}, |
| 531 | {-1, -1, -1, -1}, |
| 532 | }; |
| 533 | |
| 534 | /* |
Frank Schaefer | f5222609 | 2013-12-01 18:06:52 -0300 | [diff] [blame] | 535 | * Button definitions |
| 536 | */ |
| 537 | static struct em28xx_button std_snapshot_button[] = { |
| 538 | { |
| 539 | .role = EM28XX_BUTTON_SNAPSHOT, |
| 540 | .reg_r = EM28XX_R0C_USBSUSP, |
| 541 | .reg_clearing = EM28XX_R0C_USBSUSP, |
| 542 | .mask = EM28XX_R0C_USBSUSP_SNAPSHOT, |
| 543 | .inverted = 0, |
| 544 | }, |
| 545 | {-1, 0, 0, 0, 0}, |
| 546 | }; |
| 547 | |
Frank Schaefer | 0c37e73 | 2013-12-01 18:06:57 -0300 | [diff] [blame] | 548 | static struct em28xx_button speedlink_vad_laplace_buttons[] = { |
| 549 | { |
| 550 | .role = EM28XX_BUTTON_SNAPSHOT, |
| 551 | .reg_r = EM2874_R85_GPIO_P1_STATE, |
| 552 | .mask = 0x80, |
| 553 | .inverted = 1, |
| 554 | }, |
| 555 | { |
| 556 | .role = EM28XX_BUTTON_ILLUMINATION, |
| 557 | .reg_r = EM2874_R84_GPIO_P0_STATE, |
| 558 | .mask = 0x08, |
| 559 | .inverted = 1, |
| 560 | }, |
| 561 | {-1, 0, 0, 0, 0}, |
| 562 | }; |
| 563 | |
| 564 | /* |
| 565 | * LED definitions |
| 566 | */ |
| 567 | static struct em28xx_led speedlink_vad_laplace_leds[] = { |
| 568 | { |
| 569 | .role = EM28XX_LED_ANALOG_CAPTURING, |
| 570 | .gpio_reg = EM2874_R80_GPIO_P0_CTRL, |
| 571 | .gpio_mask = 0x01, |
| 572 | .inverted = 1, |
| 573 | }, |
| 574 | { |
| 575 | .role = EM28XX_LED_ILLUMINATION, |
| 576 | .gpio_reg = EM2874_R80_GPIO_P0_CTRL, |
| 577 | .gpio_mask = 0x40, |
| 578 | .inverted = 1, |
| 579 | }, |
| 580 | {-1, 0, 0, 0}, |
| 581 | }; |
| 582 | |
Mauro Carvalho Chehab | 59432be | 2014-03-04 12:34:34 -0300 | [diff] [blame] | 583 | static struct em28xx_led kworld_ub435q_v3_leds[] = { |
| 584 | { |
| 585 | .role = EM28XX_LED_DIGITAL_CAPTURING, |
| 586 | .gpio_reg = EM2874_R80_GPIO_P0_CTRL, |
| 587 | .gpio_mask = 0x80, |
| 588 | .inverted = 1, |
| 589 | }, |
| 590 | {-1, 0, 0, 0}, |
| 591 | }; |
| 592 | |
Mauro Carvalho Chehab | 88e4fcd | 2014-03-04 20:49:07 -0300 | [diff] [blame] | 593 | static struct em28xx_led pctv_80e_leds[] = { |
| 594 | { |
| 595 | .role = EM28XX_LED_DIGITAL_CAPTURING, |
| 596 | .gpio_reg = EM2874_R80_GPIO_P0_CTRL, |
| 597 | .gpio_mask = 0x80, |
| 598 | .inverted = 0, |
| 599 | }, |
| 600 | {-1, 0, 0, 0}, |
| 601 | }; |
| 602 | |
Matthieu Rogez | 565e37d | 2016-02-28 08:26:22 -0300 | [diff] [blame] | 603 | static struct em28xx_led terratec_grabby_leds[] = { |
| 604 | { |
| 605 | .role = EM28XX_LED_ANALOG_CAPTURING, |
| 606 | .gpio_reg = EM2820_R08_GPIO_CTRL, |
| 607 | .gpio_mask = EM_GPIO_3, |
| 608 | .inverted = 1, |
| 609 | }, |
| 610 | {-1, 0, 0, 0}, |
| 611 | }; |
| 612 | |
Olli Salonen | 11a2a94 | 2016-04-04 12:12:52 -0300 | [diff] [blame] | 613 | static struct em28xx_led hauppauge_dualhd_leds[] = { |
| 614 | { |
| 615 | .role = EM28XX_LED_DIGITAL_CAPTURING, |
| 616 | .gpio_reg = EM2874_R80_GPIO_P0_CTRL, |
| 617 | .gpio_mask = EM_GPIO_1, |
| 618 | .inverted = 1, |
| 619 | }, |
| 620 | { |
| 621 | .role = EM28XX_LED_DIGITAL_CAPTURING_TS2, |
| 622 | .gpio_reg = EM2874_R80_GPIO_P0_CTRL, |
| 623 | .gpio_mask = EM_GPIO_3, |
| 624 | .inverted = 1, |
| 625 | }, |
| 626 | {-1, 0, 0, 0}, |
| 627 | }; |
| 628 | |
Frank Schaefer | f5222609 | 2013-12-01 18:06:52 -0300 | [diff] [blame] | 629 | /* |
Mauro Carvalho Chehab | 0ec202d | 2008-11-25 13:16:13 -0300 | [diff] [blame] | 630 | * Board definitions |
| 631 | */ |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 632 | struct em28xx_board em28xx_boards[] = { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 633 | [EM2750_BOARD_UNKNOWN] = { |
Mauro Carvalho Chehab | 8b22079 | 2009-07-12 10:56:21 -0300 | [diff] [blame] | 634 | .name = "EM2710/EM2750/EM2751 webcam grabber", |
Mauro Carvalho Chehab | 3d3215c | 2009-08-10 10:29:27 -0300 | [diff] [blame] | 635 | .xclk = EM28XX_XCLK_FREQUENCY_20MHZ, |
Mauro Carvalho Chehab | 8a2e699 | 2009-07-12 10:26:36 -0300 | [diff] [blame] | 636 | .tuner_type = TUNER_ABSENT, |
| 637 | .is_webcam = 1, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 638 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 639 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 640 | .vmux = 0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 641 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | b80fd2d | 2009-07-14 21:08:22 -0300 | [diff] [blame] | 642 | .gpio = silvercrest_reg_seq, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 643 | } }, |
| 644 | }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 645 | [EM2800_BOARD_UNKNOWN] = { |
| 646 | .name = "Unknown EM2800 video grabber", |
| 647 | .is_em2800 = 1, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 648 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 649 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | 1c67e76 | 2008-11-27 07:46:59 -0300 | [diff] [blame] | 650 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 651 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 652 | .type = EM28XX_VMUX_COMPOSITE, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 653 | .vmux = SAA7115_COMPOSITE0, |
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 | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 656 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 657 | .vmux = SAA7115_SVIDEO3, |
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 | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 660 | }, |
| 661 | [EM2820_BOARD_UNKNOWN] = { |
Mauro Carvalho Chehab | a2070c6 | 2008-11-25 07:05:06 -0300 | [diff] [blame] | 662 | .name = "Unknown EM2750/28xx video grabber", |
| 663 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b04fb66 | 2009-07-13 01:28:21 -0300 | [diff] [blame] | 664 | .is_webcam = 1, /* To enable sensor probe */ |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 665 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 666 | [EM2750_BOARD_DLCW_130] = { |
| 667 | /* Beijing Huaqi Information Digital Technology Co., Ltd */ |
| 668 | .name = "Huaqi DLCW-130", |
| 669 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Mauro Carvalho Chehab | a2070c6 | 2008-11-25 07:05:06 -0300 | [diff] [blame] | 670 | .xclk = EM28XX_XCLK_FREQUENCY_48MHZ, |
Mauro Carvalho Chehab | 8a2e699 | 2009-07-12 10:26:36 -0300 | [diff] [blame] | 671 | .tuner_type = TUNER_ABSENT, |
| 672 | .is_webcam = 1, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 673 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 674 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 675 | .vmux = 0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 676 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 677 | } }, |
| 678 | }, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 679 | [EM2820_BOARD_KWORLD_PVRTV2800RF] = { |
Markus Rechberger | 33ccaa3 | 2006-02-07 06:25:41 -0200 | [diff] [blame] | 680 | .name = "Kworld PVR TV 2800 RF", |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 681 | .tuner_type = TUNER_TEMIC_PAL, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 682 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 683 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 684 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 685 | .type = EM28XX_VMUX_COMPOSITE, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 686 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 687 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 688 | }, { |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 689 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 690 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 691 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 692 | } }, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 693 | }, |
Douglas Schilling Landgraf | f7fe3e6 | 2009-01-19 09:31:55 -0300 | [diff] [blame] | 694 | [EM2820_BOARD_GADMEI_TVR200] = { |
| 695 | .name = "Gadmei TVR200", |
| 696 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 697 | .tda9887_conf = TDA9887_PRESENT, |
| 698 | .decoder = EM28XX_SAA711X, |
| 699 | .input = { { |
| 700 | .type = EM28XX_VMUX_TELEVISION, |
| 701 | .vmux = SAA7115_COMPOSITE2, |
| 702 | .amux = EM28XX_AMUX_LINE_IN, |
| 703 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 704 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | f7fe3e6 | 2009-01-19 09:31:55 -0300 | [diff] [blame] | 705 | .vmux = SAA7115_COMPOSITE0, |
| 706 | .amux = EM28XX_AMUX_LINE_IN, |
| 707 | }, { |
| 708 | .type = EM28XX_VMUX_SVIDEO, |
| 709 | .vmux = SAA7115_SVIDEO3, |
| 710 | .amux = EM28XX_AMUX_LINE_IN, |
| 711 | } }, |
| 712 | }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 713 | [EM2820_BOARD_TERRATEC_CINERGY_250] = { |
| 714 | .name = "Terratec Cinergy 250 USB", |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 715 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
Mauro Carvalho Chehab | ac07bb7 | 2009-09-08 14:04:41 -0300 | [diff] [blame] | 716 | .has_ir_i2c = 1, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 717 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 718 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 719 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 720 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 721 | .vmux = SAA7115_COMPOSITE2, |
Frank Schaefer | 5e8d02b | 2013-01-05 08:44:09 -0300 | [diff] [blame] | 722 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 723 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 724 | .type = EM28XX_VMUX_COMPOSITE, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 725 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 726 | .amux = EM28XX_AMUX_LINE_IN, |
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_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 729 | .vmux = SAA7115_SVIDEO3, |
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 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 732 | }, |
| 733 | [EM2820_BOARD_PINNACLE_USB_2] = { |
| 734 | .name = "Pinnacle PCTV USB 2", |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 735 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
Mauro Carvalho Chehab | ac07bb7 | 2009-09-08 14:04:41 -0300 | [diff] [blame] | 736 | .has_ir_i2c = 1, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 737 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 738 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 739 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 740 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 741 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 742 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 743 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 744 | .type = EM28XX_VMUX_COMPOSITE, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 745 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 746 | .amux = EM28XX_AMUX_LINE_IN, |
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_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 749 | .vmux = SAA7115_SVIDEO3, |
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 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 752 | }, |
| 753 | [EM2820_BOARD_HAUPPAUGE_WINTV_USB_2] = { |
| 754 | .name = "Hauppauge WinTV USB 2", |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 755 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 756 | .tda9887_conf = TDA9887_PRESENT | |
Nicola Soranzo | a1a6ee7 | 2009-02-10 23:28:24 -0300 | [diff] [blame] | 757 | TDA9887_PORT1_ACTIVE | |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 758 | TDA9887_PORT2_ACTIVE, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 759 | .decoder = EM28XX_TVP5150, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 760 | .has_msp34xx = 1, |
Mauro Carvalho Chehab | ac07bb7 | 2009-09-08 14:04:41 -0300 | [diff] [blame] | 761 | .has_ir_i2c = 1, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 762 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 763 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 764 | .vmux = TVP5150_COMPOSITE0, |
Hans Verkuil | 2474ed4 | 2006-03-19 12:35:57 -0300 | [diff] [blame] | 765 | .amux = MSP_INPUT_DEFAULT, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 766 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 767 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 768 | .vmux = TVP5150_SVIDEO, |
Hans Verkuil | 0715172 | 2006-04-01 18:03:23 -0300 | [diff] [blame] | 769 | .amux = MSP_INPUT(MSP_IN_SCART1, MSP_IN_TUNER1, |
| 770 | MSP_DSP_IN_SCART, MSP_DSP_IN_SCART), |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 771 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 772 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 773 | [EM2820_BOARD_DLINK_USB_TV] = { |
| 774 | .name = "D-Link DUB-T210 TV Tuner", |
| 775 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 776 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 777 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 778 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 779 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 780 | .type = EM28XX_VMUX_TELEVISION, |
| 781 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 782 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 783 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 784 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 785 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 786 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 787 | }, { |
| 788 | .type = EM28XX_VMUX_SVIDEO, |
| 789 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 790 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 791 | } }, |
| 792 | }, |
| 793 | [EM2820_BOARD_HERCULES_SMART_TV_USB2] = { |
| 794 | .name = "Hercules Smart TV USB 2.0", |
| 795 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 796 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 797 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 798 | .decoder = EM28XX_SAA711X, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 799 | .input = { { |
| 800 | .type = EM28XX_VMUX_TELEVISION, |
| 801 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 802 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 803 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 804 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 805 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 806 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 807 | }, { |
| 808 | .type = EM28XX_VMUX_SVIDEO, |
| 809 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 810 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 811 | } }, |
| 812 | }, |
| 813 | [EM2820_BOARD_PINNACLE_USB_2_FM1216ME] = { |
| 814 | .name = "Pinnacle PCTV USB 2 (Philips FM1216ME)", |
| 815 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 816 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 817 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 818 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 819 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 820 | .type = EM28XX_VMUX_TELEVISION, |
| 821 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 822 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 823 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 824 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 825 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 826 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 827 | }, { |
| 828 | .type = EM28XX_VMUX_SVIDEO, |
| 829 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 830 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 831 | } }, |
| 832 | }, |
| 833 | [EM2820_BOARD_GADMEI_UTV310] = { |
| 834 | .name = "Gadmei UTV310", |
| 835 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 836 | .tuner_type = TUNER_TNF_5335MF, |
| 837 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 838 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 839 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 840 | .type = EM28XX_VMUX_TELEVISION, |
| 841 | .vmux = SAA7115_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 842 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 843 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 844 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 845 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 846 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 847 | }, { |
| 848 | .type = EM28XX_VMUX_SVIDEO, |
| 849 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 850 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 851 | } }, |
| 852 | }, |
| 853 | [EM2820_BOARD_LEADTEK_WINFAST_USBII_DELUXE] = { |
| 854 | .name = "Leadtek Winfast USB II Deluxe", |
| 855 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 856 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
Magnus Alm | ca39d84 | 2009-11-13 05:48:24 -0300 | [diff] [blame] | 857 | .has_ir_i2c = 1, |
| 858 | .tvaudio_addr = 0x58, |
| 859 | .tda9887_conf = TDA9887_PRESENT | |
| 860 | TDA9887_PORT2_ACTIVE | |
| 861 | TDA9887_QSS, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 862 | .decoder = EM28XX_SAA711X, |
Magnus Alm | ca39d84 | 2009-11-13 05:48:24 -0300 | [diff] [blame] | 863 | .adecoder = EM28XX_TVAUDIO, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 864 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 865 | .type = EM28XX_VMUX_TELEVISION, |
Magnus Alm | ca39d84 | 2009-11-13 05:48:24 -0300 | [diff] [blame] | 866 | .vmux = SAA7115_COMPOSITE4, |
| 867 | .amux = EM28XX_AMUX_AUX, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 868 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 869 | .type = EM28XX_VMUX_COMPOSITE, |
Magnus Alm | ca39d84 | 2009-11-13 05:48:24 -0300 | [diff] [blame] | 870 | .vmux = SAA7115_COMPOSITE5, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 871 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 872 | }, { |
| 873 | .type = EM28XX_VMUX_SVIDEO, |
Magnus Alm | ca39d84 | 2009-11-13 05:48:24 -0300 | [diff] [blame] | 874 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 875 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 876 | } }, |
Magnus Alm | ca39d84 | 2009-11-13 05:48:24 -0300 | [diff] [blame] | 877 | .radio = { |
| 878 | .type = EM28XX_RADIO, |
| 879 | .amux = EM28XX_AMUX_AUX, |
| 880 | } |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 881 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 882 | [EM2820_BOARD_VIDEOLOGY_20K14XUSB] = { |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 883 | .name = "Videology 20K14XUSB USB2.0", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 884 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Mauro Carvalho Chehab | 8a2e699 | 2009-07-12 10:26:36 -0300 | [diff] [blame] | 885 | .tuner_type = TUNER_ABSENT, |
| 886 | .is_webcam = 1, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 887 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 888 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 889 | .vmux = 0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 890 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 891 | } }, |
| 892 | }, |
Mauro Carvalho Chehab | 02e7804 | 2009-06-29 11:35:05 -0300 | [diff] [blame] | 893 | [EM2820_BOARD_SILVERCREST_WEBCAM] = { |
| 894 | .name = "Silvercrest Webcam 1.3mpix", |
| 895 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | c43221d | 2009-07-12 10:23:23 -0300 | [diff] [blame] | 896 | .is_webcam = 1, |
Mauro Carvalho Chehab | 02e7804 | 2009-06-29 11:35:05 -0300 | [diff] [blame] | 897 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 898 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 02e7804 | 2009-06-29 11:35:05 -0300 | [diff] [blame] | 899 | .vmux = 0, |
| 900 | .amux = EM28XX_AMUX_VIDEO, |
| 901 | .gpio = silvercrest_reg_seq, |
| 902 | } }, |
| 903 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 904 | [EM2821_BOARD_SUPERCOMP_USB_2] = { |
| 905 | .name = "Supercomp USB 2.0 TV", |
| 906 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 907 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 908 | .tda9887_conf = TDA9887_PRESENT | |
| 909 | TDA9887_PORT1_ACTIVE | |
| 910 | TDA9887_PORT2_ACTIVE, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 911 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 912 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 913 | .type = EM28XX_VMUX_TELEVISION, |
| 914 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 915 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 916 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 917 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 918 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 919 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 920 | }, { |
| 921 | .type = EM28XX_VMUX_SVIDEO, |
| 922 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 923 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 924 | } }, |
| 925 | }, |
| 926 | [EM2821_BOARD_USBGEAR_VD204] = { |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 927 | .name = "Usbgear VD204v9", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 928 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Mauro Carvalho Chehab | 1c67e76 | 2008-11-27 07:46:59 -0300 | [diff] [blame] | 929 | .tuner_type = TUNER_ABSENT, /* Capture only device */ |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 930 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 931 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 932 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 933 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 934 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 935 | }, { |
| 936 | .type = EM28XX_VMUX_SVIDEO, |
| 937 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 938 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 939 | } }, |
| 940 | }, |
| 941 | [EM2860_BOARD_NETGMBH_CAM] = { |
| 942 | /* Beijing Huaqi Information Digital Technology Co., Ltd */ |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 943 | .name = "NetGMBH Cam", |
| 944 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Mauro Carvalho Chehab | 8a2e699 | 2009-07-12 10:26:36 -0300 | [diff] [blame] | 945 | .tuner_type = TUNER_ABSENT, |
| 946 | .is_webcam = 1, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 947 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 948 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 949 | .vmux = 0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 950 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 951 | } }, |
| 952 | }, |
| 953 | [EM2860_BOARD_TYPHOON_DVD_MAKER] = { |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 954 | .name = "Typhoon DVD Maker", |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 955 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | 1c67e76 | 2008-11-27 07:46:59 -0300 | [diff] [blame] | 956 | .tuner_type = TUNER_ABSENT, /* Capture only device */ |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 957 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 958 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 959 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 960 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 961 | }, { |
| 962 | .type = EM28XX_VMUX_SVIDEO, |
| 963 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 964 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 965 | } }, |
| 966 | }, |
| 967 | [EM2860_BOARD_GADMEI_UTV330] = { |
| 968 | .name = "Gadmei UTV330", |
| 969 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 970 | .tuner_type = TUNER_TNF_5335MF, |
| 971 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 972 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 973 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 974 | .type = EM28XX_VMUX_TELEVISION, |
| 975 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 976 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 977 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 978 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 979 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 980 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 981 | }, { |
| 982 | .type = EM28XX_VMUX_SVIDEO, |
| 983 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 984 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 985 | } }, |
| 986 | }, |
Mauro Carvalho Chehab | 6d888a6 | 2009-08-30 13:05:56 -0300 | [diff] [blame] | 987 | [EM2861_BOARD_GADMEI_UTV330PLUS] = { |
| 988 | .name = "Gadmei UTV330+", |
| 989 | .tuner_type = TUNER_TNF_5335MF, |
| 990 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 02858ee | 2010-04-02 20:01:00 -0300 | [diff] [blame] | 991 | .ir_codes = RC_MAP_GADMEI_RM008Z, |
Mauro Carvalho Chehab | 6d888a6 | 2009-08-30 13:05:56 -0300 | [diff] [blame] | 992 | .decoder = EM28XX_SAA711X, |
| 993 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, |
| 994 | .input = { { |
| 995 | .type = EM28XX_VMUX_TELEVISION, |
| 996 | .vmux = SAA7115_COMPOSITE2, |
| 997 | .amux = EM28XX_AMUX_VIDEO, |
| 998 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 999 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 6d888a6 | 2009-08-30 13:05:56 -0300 | [diff] [blame] | 1000 | .vmux = SAA7115_COMPOSITE0, |
| 1001 | .amux = EM28XX_AMUX_LINE_IN, |
| 1002 | }, { |
| 1003 | .type = EM28XX_VMUX_SVIDEO, |
| 1004 | .vmux = SAA7115_SVIDEO3, |
| 1005 | .amux = EM28XX_AMUX_LINE_IN, |
| 1006 | } }, |
| 1007 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1008 | [EM2860_BOARD_TERRATEC_HYBRID_XS] = { |
| 1009 | .name = "Terratec Cinergy A Hybrid XS", |
| 1010 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1011 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1012 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1013 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1014 | |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1015 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1016 | .type = EM28XX_VMUX_TELEVISION, |
| 1017 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1018 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1019 | .gpio = hauppauge_wintv_hvr_900_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1020 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1021 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1022 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1023 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1024 | .gpio = hauppauge_wintv_hvr_900_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1025 | }, { |
| 1026 | .type = EM28XX_VMUX_SVIDEO, |
| 1027 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1028 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1029 | .gpio = hauppauge_wintv_hvr_900_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1030 | } }, |
| 1031 | }, |
| 1032 | [EM2861_BOARD_KWORLD_PVRTV_300U] = { |
| 1033 | .name = "KWorld PVRTV 300U", |
| 1034 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1035 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1036 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1037 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1038 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1039 | .type = EM28XX_VMUX_TELEVISION, |
| 1040 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1041 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1042 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1043 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1044 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1045 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1046 | }, { |
| 1047 | .type = EM28XX_VMUX_SVIDEO, |
| 1048 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1049 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1050 | } }, |
| 1051 | }, |
| 1052 | [EM2861_BOARD_YAKUMO_MOVIE_MIXER] = { |
| 1053 | .name = "Yakumo MovieMixer", |
Nicola Soranzo | a1a6ee7 | 2009-02-10 23:28:24 -0300 | [diff] [blame] | 1054 | .tuner_type = TUNER_ABSENT, /* Capture only device */ |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1055 | .decoder = EM28XX_TVP5150, |
| 1056 | .input = { { |
| 1057 | .type = EM28XX_VMUX_TELEVISION, |
| 1058 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1059 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1060 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1061 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1062 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1063 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1064 | }, { |
| 1065 | .type = EM28XX_VMUX_SVIDEO, |
| 1066 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1067 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1068 | } }, |
| 1069 | }, |
Devin Heitmueller | 443fed9 | 2010-03-19 23:53:12 -0300 | [diff] [blame] | 1070 | [EM2860_BOARD_TVP5150_REFERENCE_DESIGN] = { |
| 1071 | .name = "EM2860/TVP5150 Reference Design", |
| 1072 | .tuner_type = TUNER_ABSENT, /* Capture only device */ |
| 1073 | .decoder = EM28XX_TVP5150, |
| 1074 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1075 | .type = EM28XX_VMUX_COMPOSITE, |
Devin Heitmueller | 443fed9 | 2010-03-19 23:53:12 -0300 | [diff] [blame] | 1076 | .vmux = TVP5150_COMPOSITE1, |
| 1077 | .amux = EM28XX_AMUX_LINE_IN, |
| 1078 | }, { |
| 1079 | .type = EM28XX_VMUX_SVIDEO, |
| 1080 | .vmux = TVP5150_SVIDEO, |
| 1081 | .amux = EM28XX_AMUX_LINE_IN, |
| 1082 | } }, |
| 1083 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1084 | [EM2861_BOARD_PLEXTOR_PX_TV100U] = { |
| 1085 | .name = "Plextor ConvertX PX-TV100U", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1086 | .tuner_type = TUNER_TNF_5335MF, |
Mauro Carvalho Chehab | 0a6e44d | 2009-07-29 01:39:12 -0300 | [diff] [blame] | 1087 | .xclk = EM28XX_XCLK_I2S_MSB_TIMING | |
| 1088 | EM28XX_XCLK_FREQUENCY_12MHZ, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1089 | .tda9887_conf = TDA9887_PRESENT, |
| 1090 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | 0a6e44d | 2009-07-29 01:39:12 -0300 | [diff] [blame] | 1091 | .has_msp34xx = 1, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1092 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1093 | .type = EM28XX_VMUX_TELEVISION, |
| 1094 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1095 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 0a6e44d | 2009-07-29 01:39:12 -0300 | [diff] [blame] | 1096 | .gpio = pinnacle_hybrid_pro_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1097 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1098 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1099 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1100 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 0a6e44d | 2009-07-29 01:39:12 -0300 | [diff] [blame] | 1101 | .gpio = pinnacle_hybrid_pro_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1102 | }, { |
| 1103 | .type = EM28XX_VMUX_SVIDEO, |
| 1104 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1105 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 0a6e44d | 2009-07-29 01:39:12 -0300 | [diff] [blame] | 1106 | .gpio = pinnacle_hybrid_pro_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1107 | } }, |
| 1108 | }, |
Mauro Carvalho Chehab | 1c67e76 | 2008-11-27 07:46:59 -0300 | [diff] [blame] | 1109 | |
| 1110 | /* Those boards with em2870 are DVB Only*/ |
| 1111 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1112 | [EM2870_BOARD_TERRATEC_XS] = { |
| 1113 | .name = "Terratec Cinergy T XS", |
| 1114 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1115 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1116 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1117 | }, |
| 1118 | [EM2870_BOARD_TERRATEC_XS_MT2060] = { |
| 1119 | .name = "Terratec Cinergy T XS (MT2060)", |
Alberto Mardegan | 8c47311 | 2015-10-27 17:24:14 -0200 | [diff] [blame] | 1120 | .xclk = EM28XX_XCLK_IR_RC5_MODE | |
| 1121 | EM28XX_XCLK_FREQUENCY_12MHZ, |
| 1122 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1123 | .tuner_type = TUNER_ABSENT, /* MT2060 */ |
Alberto Mardegan | 8c47311 | 2015-10-27 17:24:14 -0200 | [diff] [blame] | 1124 | .has_dvb = 1, |
| 1125 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1126 | }, |
| 1127 | [EM2870_BOARD_KWORLD_350U] = { |
| 1128 | .name = "Kworld 350 U DVB-T", |
| 1129 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1130 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1131 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1132 | }, |
| 1133 | [EM2870_BOARD_KWORLD_355U] = { |
| 1134 | .name = "Kworld 355 U DVB-T", |
| 1135 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Aivar Päkk | 1985f6f | 2011-12-11 18:15:00 -0300 | [diff] [blame] | 1136 | .tuner_type = TUNER_ABSENT, |
| 1137 | .tuner_gpio = default_tuner_gpio, |
| 1138 | .has_dvb = 1, |
| 1139 | .dvb_gpio = default_digital, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1140 | }, |
| 1141 | [EM2870_BOARD_PINNACLE_PCTV_DVB] = { |
| 1142 | .name = "Pinnacle PCTV DVB-T", |
| 1143 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1144 | .tuner_type = TUNER_ABSENT, /* MT2060 */ |
Mauro Carvalho Chehab | a2070c6 | 2008-11-25 07:05:06 -0300 | [diff] [blame] | 1145 | /* djh - I have serious doubts this is right... */ |
| 1146 | .xclk = EM28XX_XCLK_IR_RC5_MODE | |
| 1147 | EM28XX_XCLK_FREQUENCY_10MHZ, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1148 | }, |
| 1149 | [EM2870_BOARD_COMPRO_VIDEOMATE] = { |
| 1150 | .name = "Compro, VideoMate U3", |
| 1151 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1152 | .tuner_type = TUNER_ABSENT, /* MT2060 */ |
| 1153 | }, |
Mauro Carvalho Chehab | 1c67e76 | 2008-11-27 07:46:59 -0300 | [diff] [blame] | 1154 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1155 | [EM2880_BOARD_TERRATEC_HYBRID_XS_FR] = { |
| 1156 | .name = "Terratec Hybrid XS Secam", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1157 | .has_msp34xx = 1, |
| 1158 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1159 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1160 | .decoder = EM28XX_TVP5150, |
Catimimi | 6563801 | 2010-02-18 18:06:32 -0300 | [diff] [blame] | 1161 | .has_dvb = 1, |
Michel Garnier | cec4e6c | 2010-10-16 14:42:01 -0300 | [diff] [blame] | 1162 | .dvb_gpio = terratec_cinergy_USB_XS_FR_digital, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1163 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1164 | .type = EM28XX_VMUX_TELEVISION, |
| 1165 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1166 | .amux = EM28XX_AMUX_VIDEO, |
Michel Garnier | cec4e6c | 2010-10-16 14:42:01 -0300 | [diff] [blame] | 1167 | .gpio = terratec_cinergy_USB_XS_FR_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1168 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1169 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1170 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1171 | .amux = EM28XX_AMUX_LINE_IN, |
Michel Garnier | cec4e6c | 2010-10-16 14:42:01 -0300 | [diff] [blame] | 1172 | .gpio = terratec_cinergy_USB_XS_FR_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1173 | }, { |
| 1174 | .type = EM28XX_VMUX_SVIDEO, |
| 1175 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1176 | .amux = EM28XX_AMUX_LINE_IN, |
Michel Garnier | cec4e6c | 2010-10-16 14:42:01 -0300 | [diff] [blame] | 1177 | .gpio = terratec_cinergy_USB_XS_FR_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1178 | } }, |
| 1179 | }, |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 1180 | [EM2884_BOARD_TERRATEC_H5] = { |
| 1181 | .name = "Terratec Cinergy H5", |
| 1182 | .has_dvb = 1, |
| 1183 | #if 0 |
| 1184 | .tuner_type = TUNER_PHILIPS_TDA8290, |
| 1185 | .tuner_addr = 0x41, |
| 1186 | .dvb_gpio = terratec_h5_digital, /* FIXME: probably wrong */ |
| 1187 | .tuner_gpio = terratec_h5_gpio, |
Mauro Carvalho Chehab | de72405 | 2011-11-20 11:23:24 -0200 | [diff] [blame] | 1188 | #else |
| 1189 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 1190 | #endif |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 1191 | .def_i2c_bus = 1, |
| 1192 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 1193 | EM28XX_I2C_FREQ_400_KHZ, |
| 1194 | }, |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 1195 | [EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C] = { |
| 1196 | .name = "Hauppauge WinTV HVR 930C", |
| 1197 | .has_dvb = 1, |
Mauro Carvalho Chehab | de72405 | 2011-11-20 11:23:24 -0200 | [diff] [blame] | 1198 | #if 0 /* FIXME: Add analog support */ |
| 1199 | .tuner_type = TUNER_XC5000, |
| 1200 | .tuner_addr = 0x41, |
| 1201 | .dvb_gpio = hauppauge_930c_digital, |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 1202 | .tuner_gpio = hauppauge_930c_gpio, |
Mauro Carvalho Chehab | de72405 | 2011-11-20 11:23:24 -0200 | [diff] [blame] | 1203 | #else |
| 1204 | .tuner_type = TUNER_ABSENT, |
| 1205 | #endif |
Mauro Carvalho Chehab | dfbbf5d | 2011-11-20 12:16:25 -0200 | [diff] [blame] | 1206 | .ir_codes = RC_MAP_HAUPPAUGE, |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 1207 | .def_i2c_bus = 1, |
| 1208 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 1209 | EM28XX_I2C_FREQ_400_KHZ, |
| 1210 | }, |
Mauro Carvalho Chehab | 4159d01 | 2013-02-28 10:35:56 -0300 | [diff] [blame] | 1211 | [EM2884_BOARD_C3TECH_DIGITAL_DUO] = { |
| 1212 | .name = "C3 Tech Digital Duo HDTV/SDTV USB", |
| 1213 | .has_dvb = 1, |
| 1214 | /* FIXME: Add analog support - need a saa7136 driver */ |
| 1215 | .tuner_type = TUNER_ABSENT, /* Digital-only TDA18271HD */ |
| 1216 | .ir_codes = RC_MAP_EMPTY, |
| 1217 | .def_i2c_bus = 1, |
| 1218 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE, |
| 1219 | .dvb_gpio = c3tech_digital_duo_digital, |
| 1220 | }, |
Andreas Oberritter | a1ed02e | 2011-11-16 11:06:50 -0300 | [diff] [blame] | 1221 | [EM2884_BOARD_CINERGY_HTC_STICK] = { |
| 1222 | .name = "Terratec Cinergy HTC Stick", |
| 1223 | .has_dvb = 1, |
Martin Blumenstingl | c8dce00 | 2012-06-12 18:19:28 -0300 | [diff] [blame] | 1224 | .ir_codes = RC_MAP_NEC_TERRATEC_CINERGY_XS, |
| 1225 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 1226 | .def_i2c_bus = 1, |
| 1227 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1228 | EM28XX_I2C_FREQ_400_KHZ, |
| 1229 | }, |
Gilles Risch | 1fe0fbd | 2015-03-01 17:11:05 -0300 | [diff] [blame] | 1230 | [EM2884_BOARD_ELGATO_EYETV_HYBRID_2008] = { |
| 1231 | .name = "Elgato EyeTV Hybrid 2008 INT", |
| 1232 | .has_dvb = 1, |
| 1233 | .ir_codes = RC_MAP_NEC_TERRATEC_CINERGY_XS, |
| 1234 | .tuner_type = TUNER_ABSENT, |
| 1235 | .def_i2c_bus = 1, |
| 1236 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1237 | EM28XX_I2C_FREQ_400_KHZ, |
| 1238 | }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1239 | [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900] = { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 1240 | .name = "Hauppauge WinTV HVR 900", |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 1241 | .tda9887_conf = TDA9887_PRESENT, |
| 1242 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1243 | .tuner_gpio = default_tuner_gpio, |
Mauro Carvalho Chehab | 5add9a6 | 2007-11-22 12:08:53 -0300 | [diff] [blame] | 1244 | .mts_firmware = 1, |
Mauro Carvalho Chehab | a2070c6 | 2008-11-25 07:05:06 -0300 | [diff] [blame] | 1245 | .has_dvb = 1, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1246 | .dvb_gpio = hauppauge_wintv_hvr_900_digital, |
Mauro Carvalho Chehab | af86ce7 | 2011-01-24 12:18:48 -0300 | [diff] [blame] | 1247 | .ir_codes = RC_MAP_HAUPPAUGE, |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 1248 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1249 | .input = { { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 1250 | .type = EM28XX_VMUX_TELEVISION, |
| 1251 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1252 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1253 | .gpio = hauppauge_wintv_hvr_900_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1254 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1255 | .type = EM28XX_VMUX_COMPOSITE, |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 1256 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1257 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1258 | .gpio = hauppauge_wintv_hvr_900_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1259 | }, { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 1260 | .type = EM28XX_VMUX_SVIDEO, |
| 1261 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1262 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1263 | .gpio = hauppauge_wintv_hvr_900_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1264 | } }, |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 1265 | }, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1266 | [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2] = { |
| 1267 | .name = "Hauppauge WinTV HVR 900 (R2)", |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1268 | .tda9887_conf = TDA9887_PRESENT, |
| 1269 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1270 | .tuner_gpio = default_tuner_gpio, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1271 | .mts_firmware = 1, |
Devin Heitmueller | 75e2b86 | 2011-03-13 02:01:02 -0300 | [diff] [blame] | 1272 | .has_dvb = 1, |
Devin Heitmueller | 7030f52 | 2011-03-13 02:04:53 -0300 | [diff] [blame] | 1273 | .dvb_gpio = hauppauge_wintv_hvr_900R2_digital, |
Mauro Carvalho Chehab | af86ce7 | 2011-01-24 12:18:48 -0300 | [diff] [blame] | 1274 | .ir_codes = RC_MAP_HAUPPAUGE, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1275 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1276 | .input = { { |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1277 | .type = EM28XX_VMUX_TELEVISION, |
| 1278 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1279 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1280 | .gpio = hauppauge_wintv_hvr_900_analog, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1281 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1282 | .type = EM28XX_VMUX_COMPOSITE, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1283 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | a5942b5 | 2008-11-27 07:44:00 -0300 | [diff] [blame] | 1284 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1285 | .gpio = hauppauge_wintv_hvr_900_analog, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1286 | }, { |
| 1287 | .type = EM28XX_VMUX_SVIDEO, |
| 1288 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1289 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1290 | .gpio = hauppauge_wintv_hvr_900_analog, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1291 | } }, |
| 1292 | }, |
Douglas Schilling Landgraf | f89bc32 | 2008-12-01 21:01:04 -0300 | [diff] [blame] | 1293 | [EM2883_BOARD_HAUPPAUGE_WINTV_HVR_850] = { |
| 1294 | .name = "Hauppauge WinTV HVR 850", |
| 1295 | .tuner_type = TUNER_XC2028, |
| 1296 | .tuner_gpio = default_tuner_gpio, |
| 1297 | .mts_firmware = 1, |
| 1298 | .has_dvb = 1, |
| 1299 | .dvb_gpio = hauppauge_wintv_hvr_900_digital, |
Mauro Carvalho Chehab | af86ce7 | 2011-01-24 12:18:48 -0300 | [diff] [blame] | 1300 | .ir_codes = RC_MAP_HAUPPAUGE, |
Douglas Schilling Landgraf | f89bc32 | 2008-12-01 21:01:04 -0300 | [diff] [blame] | 1301 | .decoder = EM28XX_TVP5150, |
| 1302 | .input = { { |
| 1303 | .type = EM28XX_VMUX_TELEVISION, |
| 1304 | .vmux = TVP5150_COMPOSITE0, |
| 1305 | .amux = EM28XX_AMUX_VIDEO, |
| 1306 | .gpio = hauppauge_wintv_hvr_900_analog, |
| 1307 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1308 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | f89bc32 | 2008-12-01 21:01:04 -0300 | [diff] [blame] | 1309 | .vmux = TVP5150_COMPOSITE1, |
| 1310 | .amux = EM28XX_AMUX_LINE_IN, |
| 1311 | .gpio = hauppauge_wintv_hvr_900_analog, |
| 1312 | }, { |
| 1313 | .type = EM28XX_VMUX_SVIDEO, |
| 1314 | .vmux = TVP5150_SVIDEO, |
| 1315 | .amux = EM28XX_AMUX_LINE_IN, |
| 1316 | .gpio = hauppauge_wintv_hvr_900_analog, |
| 1317 | } }, |
| 1318 | }, |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1319 | [EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950] = { |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 1320 | .name = "Hauppauge WinTV HVR 950", |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 1321 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1322 | .tuner_gpio = default_tuner_gpio, |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 1323 | .mts_firmware = 1, |
Mauro Carvalho Chehab | 227ad4a | 2008-04-17 21:37:40 -0300 | [diff] [blame] | 1324 | .has_dvb = 1, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1325 | .dvb_gpio = hauppauge_wintv_hvr_900_digital, |
Mauro Carvalho Chehab | 15195d3 | 2011-01-24 12:18:47 -0300 | [diff] [blame] | 1326 | .ir_codes = RC_MAP_HAUPPAUGE, |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 1327 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1328 | .input = { { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1329 | .type = EM28XX_VMUX_TELEVISION, |
| 1330 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1331 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1332 | .gpio = hauppauge_wintv_hvr_900_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1333 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1334 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 7d070e2 | 2007-11-01 21:52:58 -0300 | [diff] [blame] | 1335 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1336 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1337 | .gpio = hauppauge_wintv_hvr_900_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1338 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1339 | .type = EM28XX_VMUX_SVIDEO, |
| 1340 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1341 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1342 | .gpio = hauppauge_wintv_hvr_900_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1343 | } }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1344 | }, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1345 | [EM2880_BOARD_PINNACLE_PCTV_HD_PRO] = { |
| 1346 | .name = "Pinnacle PCTV HD Pro Stick", |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1347 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1348 | .tuner_gpio = default_tuner_gpio, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1349 | .mts_firmware = 1, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1350 | .has_dvb = 1, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1351 | .dvb_gpio = hauppauge_wintv_hvr_900_digital, |
Mauro Carvalho Chehab | 02858ee | 2010-04-02 20:01:00 -0300 | [diff] [blame] | 1352 | .ir_codes = RC_MAP_PINNACLE_PCTV_HD, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1353 | .decoder = EM28XX_TVP5150, |
| 1354 | .input = { { |
| 1355 | .type = EM28XX_VMUX_TELEVISION, |
| 1356 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1357 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1358 | .gpio = hauppauge_wintv_hvr_900_analog, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1359 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1360 | .type = EM28XX_VMUX_COMPOSITE, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1361 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1362 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1363 | .gpio = hauppauge_wintv_hvr_900_analog, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1364 | }, { |
| 1365 | .type = EM28XX_VMUX_SVIDEO, |
| 1366 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1367 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1368 | .gpio = hauppauge_wintv_hvr_900_analog, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1369 | } }, |
| 1370 | }, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1371 | [EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600] = { |
| 1372 | .name = "AMD ATI TV Wonder HD 600", |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1373 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1374 | .tuner_gpio = default_tuner_gpio, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1375 | .mts_firmware = 1, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1376 | .has_dvb = 1, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1377 | .dvb_gpio = hauppauge_wintv_hvr_900_digital, |
Mauro Carvalho Chehab | 02858ee | 2010-04-02 20:01:00 -0300 | [diff] [blame] | 1378 | .ir_codes = RC_MAP_ATI_TV_WONDER_HD_600, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1379 | .decoder = EM28XX_TVP5150, |
| 1380 | .input = { { |
| 1381 | .type = EM28XX_VMUX_TELEVISION, |
| 1382 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1383 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1384 | .gpio = hauppauge_wintv_hvr_900_analog, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1385 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1386 | .type = EM28XX_VMUX_COMPOSITE, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1387 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1388 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1389 | .gpio = hauppauge_wintv_hvr_900_analog, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1390 | }, { |
| 1391 | .type = EM28XX_VMUX_SVIDEO, |
| 1392 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1393 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1394 | .gpio = hauppauge_wintv_hvr_900_analog, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1395 | } }, |
| 1396 | }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1397 | [EM2880_BOARD_TERRATEC_HYBRID_XS] = { |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1398 | .name = "Terratec Hybrid XS", |
| 1399 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1400 | .tuner_gpio = default_tuner_gpio, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1401 | .decoder = EM28XX_TVP5150, |
reinhard schwab | 655b840 | 2008-07-26 10:47:00 -0300 | [diff] [blame] | 1402 | .has_dvb = 1, |
Devin Heitmueller | f797608 | 2009-06-22 22:32:32 -0300 | [diff] [blame] | 1403 | .dvb_gpio = default_digital, |
Mauro Carvalho Chehab | 02858ee | 2010-04-02 20:01:00 -0300 | [diff] [blame] | 1404 | .ir_codes = RC_MAP_TERRATEC_CINERGY_XS, |
Devin Heitmueller | 8cd9aae | 2009-08-03 23:56:51 -0300 | [diff] [blame] | 1405 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, /* NEC IR */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1406 | .input = { { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1407 | .type = EM28XX_VMUX_TELEVISION, |
| 1408 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1409 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1410 | .gpio = default_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1411 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1412 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1413 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1414 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1415 | .gpio = default_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1416 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1417 | .type = EM28XX_VMUX_SVIDEO, |
| 1418 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1419 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1420 | .gpio = default_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1421 | } }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1422 | }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1423 | /* maybe there's a reason behind it why Terratec sells the Hybrid XS |
| 1424 | as Prodigy XS with a different PID, let's keep it separated for now |
| 1425 | maybe we'll need it lateron */ |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1426 | [EM2880_BOARD_TERRATEC_PRODIGY_XS] = { |
| 1427 | .name = "Terratec Prodigy XS", |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1428 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1429 | .tuner_gpio = default_tuner_gpio, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1430 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1431 | .input = { { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1432 | .type = EM28XX_VMUX_TELEVISION, |
| 1433 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1434 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1435 | .gpio = hauppauge_wintv_hvr_900_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1436 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1437 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1438 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1439 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1440 | .gpio = hauppauge_wintv_hvr_900_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1441 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1442 | .type = EM28XX_VMUX_SVIDEO, |
| 1443 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1444 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1445 | .gpio = hauppauge_wintv_hvr_900_analog, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1446 | } }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 1447 | }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1448 | [EM2820_BOARD_MSI_VOX_USB_2] = { |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1449 | .name = "MSI VOX USB 2.0", |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1450 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 1451 | .tda9887_conf = TDA9887_PRESENT | |
| 1452 | TDA9887_PORT1_ACTIVE | |
| 1453 | TDA9887_PORT2_ACTIVE, |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1454 | .max_range_640_480 = 1, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 1455 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1456 | .input = { { |
| 1457 | .type = EM28XX_VMUX_TELEVISION, |
| 1458 | .vmux = SAA7115_COMPOSITE4, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1459 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1460 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1461 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1462 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1463 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1464 | }, { |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1465 | .type = EM28XX_VMUX_SVIDEO, |
| 1466 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1467 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1468 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1469 | }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1470 | [EM2800_BOARD_TERRATEC_CINERGY_200] = { |
| 1471 | .name = "Terratec Cinergy 200 USB", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1472 | .is_em2800 = 1, |
Mauro Carvalho Chehab | ac07bb7 | 2009-09-08 14:04:41 -0300 | [diff] [blame] | 1473 | .has_ir_i2c = 1, |
Sascha Sommer | 53b667e | 2012-01-08 16:41:22 -0300 | [diff] [blame] | 1474 | .tuner_type = TUNER_LG_TALN, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1475 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 1476 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1477 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1478 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1479 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1480 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1481 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1482 | .type = EM28XX_VMUX_COMPOSITE, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1483 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1484 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1485 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1486 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1487 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1488 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1489 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1490 | }, |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 1491 | [EM2800_BOARD_GRABBEEX_USB2800] = { |
Nicola Soranzo | a1a6ee7 | 2009-02-10 23:28:24 -0300 | [diff] [blame] | 1492 | .name = "eMPIA Technology, Inc. GrabBeeX+ Video Encoder", |
| 1493 | .is_em2800 = 1, |
| 1494 | .decoder = EM28XX_SAA711X, |
| 1495 | .tuner_type = TUNER_ABSENT, /* capture only board */ |
| 1496 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1497 | .type = EM28XX_VMUX_COMPOSITE, |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 1498 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1499 | .amux = EM28XX_AMUX_LINE_IN, |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 1500 | }, { |
| 1501 | .type = EM28XX_VMUX_SVIDEO, |
| 1502 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1503 | .amux = EM28XX_AMUX_LINE_IN, |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 1504 | } }, |
| 1505 | }, |
Mauro Carvalho Chehab | 694a101 | 2009-11-26 21:26:13 -0300 | [diff] [blame] | 1506 | [EM2800_BOARD_VC211A] = { |
| 1507 | .name = "Actionmaster/LinXcel/Digitus VC211A", |
| 1508 | .is_em2800 = 1, |
| 1509 | .tuner_type = TUNER_ABSENT, /* Capture-only board */ |
| 1510 | .decoder = EM28XX_SAA711X, |
| 1511 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1512 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 694a101 | 2009-11-26 21:26:13 -0300 | [diff] [blame] | 1513 | .vmux = SAA7115_COMPOSITE0, |
| 1514 | .amux = EM28XX_AMUX_LINE_IN, |
| 1515 | .gpio = vc211a_enable, |
| 1516 | }, { |
| 1517 | .type = EM28XX_VMUX_SVIDEO, |
| 1518 | .vmux = SAA7115_SVIDEO3, |
| 1519 | .amux = EM28XX_AMUX_LINE_IN, |
| 1520 | .gpio = vc211a_enable, |
| 1521 | } }, |
| 1522 | }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1523 | [EM2800_BOARD_LEADTEK_WINFAST_USBII] = { |
| 1524 | .name = "Leadtek Winfast USB II", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1525 | .is_em2800 = 1, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1526 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 1527 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 1528 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1529 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1530 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1531 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1532 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1533 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1534 | .type = EM28XX_VMUX_COMPOSITE, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1535 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1536 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1537 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1538 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1539 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1540 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1541 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1542 | }, |
| 1543 | [EM2800_BOARD_KWORLD_USB2800] = { |
| 1544 | .name = "Kworld USB2800", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1545 | .is_em2800 = 1, |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 1546 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1547 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 1548 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1549 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1550 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1551 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1552 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1553 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1554 | .type = EM28XX_VMUX_COMPOSITE, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1555 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1556 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1557 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1558 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1559 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1560 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1561 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 1562 | }, |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 1563 | [EM2820_BOARD_PINNACLE_DVC_90] = { |
Douglas Schilling Landgraf | ea47689 | 2009-09-06 18:41:59 -0300 | [diff] [blame] | 1564 | .name = "Pinnacle Dazzle DVC 90/100/101/107 / Kaiser Baas Video to DVD maker " |
Don Kramer | 74e07f3 | 2012-01-02 16:15:44 -0300 | [diff] [blame] | 1565 | "/ Kworld DVD Maker 2 / Plextor ConvertX PX-AV100U", |
Mauro Carvalho Chehab | 1c67e76 | 2008-11-27 07:46:59 -0300 | [diff] [blame] | 1566 | .tuner_type = TUNER_ABSENT, /* capture only board */ |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 1567 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1568 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1569 | .type = EM28XX_VMUX_COMPOSITE, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1570 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1571 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1572 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1573 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 1574 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1575 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1576 | } }, |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 1577 | }, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 1578 | [EM2800_BOARD_VGEAR_POCKETTV] = { |
| 1579 | .name = "V-Gear PocketTV", |
| 1580 | .is_em2800 = 1, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 1581 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 1582 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 1583 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1584 | .input = { { |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 1585 | .type = EM28XX_VMUX_TELEVISION, |
| 1586 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1587 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1588 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1589 | .type = EM28XX_VMUX_COMPOSITE, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 1590 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1591 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1592 | }, { |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 1593 | .type = EM28XX_VMUX_SVIDEO, |
| 1594 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1595 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1596 | } }, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 1597 | }, |
Douglas Schilling Landgraf | 1e1addd | 2008-12-27 21:38:14 -0300 | [diff] [blame] | 1598 | [EM2820_BOARD_PROLINK_PLAYTV_BOX4_USB2] = { |
| 1599 | .name = "Pixelview PlayTV Box 4 USB 2.0", |
| 1600 | .tda9887_conf = TDA9887_PRESENT, |
| 1601 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
| 1602 | .decoder = EM28XX_SAA711X, |
| 1603 | .input = { { |
| 1604 | .type = EM28XX_VMUX_TELEVISION, |
| 1605 | .vmux = SAA7115_COMPOSITE2, |
| 1606 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 1607 | .aout = EM28XX_AOUT_MONO | /* I2S */ |
Douglas Schilling Landgraf | 1e1addd | 2008-12-27 21:38:14 -0300 | [diff] [blame] | 1608 | EM28XX_AOUT_MASTER, /* Line out pin */ |
| 1609 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1610 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 1e1addd | 2008-12-27 21:38:14 -0300 | [diff] [blame] | 1611 | .vmux = SAA7115_COMPOSITE0, |
| 1612 | .amux = EM28XX_AMUX_LINE_IN, |
| 1613 | }, { |
| 1614 | .type = EM28XX_VMUX_SVIDEO, |
| 1615 | .vmux = SAA7115_SVIDEO3, |
| 1616 | .amux = EM28XX_AMUX_LINE_IN, |
| 1617 | } }, |
| 1618 | }, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 1619 | [EM2820_BOARD_PROLINK_PLAYTV_USB2] = { |
Douglas Schilling Landgraf | 1f372a9 | 2009-02-25 16:54:31 -0300 | [diff] [blame] | 1620 | .name = "SIIG AVTuner-PVR / Pixelview Prolink PlayTV USB 2.0", |
Frank Schaefer | f5222609 | 2013-12-01 18:06:52 -0300 | [diff] [blame] | 1621 | .buttons = std_snapshot_button, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 1622 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 1623 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
Mauro Carvalho Chehab | 41a5e7e | 2016-01-29 10:11:57 -0200 | [diff] [blame] | 1624 | .tuner_addr = 0x60, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 1625 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1626 | .input = { { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 1627 | .type = EM28XX_VMUX_TELEVISION, |
| 1628 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 30e4ac7 | 2008-11-20 13:43:05 -0300 | [diff] [blame] | 1629 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 1630 | .aout = EM28XX_AOUT_MONO | /* I2S */ |
Mauro Carvalho Chehab | 30e4ac7 | 2008-11-20 13:43:05 -0300 | [diff] [blame] | 1631 | EM28XX_AOUT_MASTER, /* Line out pin */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1632 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1633 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 1634 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 7463dda | 2008-02-05 22:29:26 -0300 | [diff] [blame] | 1635 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1636 | }, { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 1637 | .type = EM28XX_VMUX_SVIDEO, |
| 1638 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 7463dda | 2008-02-05 22:29:26 -0300 | [diff] [blame] | 1639 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1640 | } }, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 1641 | }, |
Devin Heitmueller | 3ed58ba | 2009-05-27 23:27:26 -0300 | [diff] [blame] | 1642 | [EM2860_BOARD_SAA711X_REFERENCE_DESIGN] = { |
| 1643 | .name = "EM2860/SAA711X Reference Design", |
Frank Schaefer | f5222609 | 2013-12-01 18:06:52 -0300 | [diff] [blame] | 1644 | .buttons = std_snapshot_button, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1645 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | ec5de99 | 2008-11-25 09:43:29 -0300 | [diff] [blame] | 1646 | .decoder = EM28XX_SAA711X, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1647 | .input = { { |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 1648 | .type = EM28XX_VMUX_SVIDEO, |
| 1649 | .vmux = SAA7115_SVIDEO3, |
Devin Heitmueller | 3ed58ba | 2009-05-27 23:27:26 -0300 | [diff] [blame] | 1650 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1651 | .type = EM28XX_VMUX_COMPOSITE, |
Devin Heitmueller | 3ed58ba | 2009-05-27 23:27:26 -0300 | [diff] [blame] | 1652 | .vmux = SAA7115_COMPOSITE0, |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 1653 | } }, |
| 1654 | }, |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 1655 | |
Mauro Carvalho Chehab | ebaefdb | 2011-06-01 10:16:25 -0300 | [diff] [blame] | 1656 | [EM2874_BOARD_LEADERSHIP_ISDBT] = { |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 1657 | .def_i2c_bus = 1, |
| 1658 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 1659 | EM28XX_I2C_FREQ_100_KHZ, |
| 1660 | .xclk = EM28XX_XCLK_FREQUENCY_10MHZ, |
| 1661 | .name = "EM2874 Leadership ISDBT", |
| 1662 | .tuner_type = TUNER_ABSENT, |
| 1663 | .tuner_gpio = leadership_reset, |
| 1664 | .dvb_gpio = leadership_digital, |
| 1665 | .has_dvb = 1, |
| 1666 | }, |
| 1667 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1668 | [EM2880_BOARD_MSI_DIGIVOX_AD] = { |
| 1669 | .name = "MSI DigiVox A/D", |
| 1670 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1671 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1672 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1673 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1674 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1675 | .type = EM28XX_VMUX_TELEVISION, |
| 1676 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1677 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1678 | .gpio = em2880_msi_digivox_ad_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1679 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1680 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1681 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1682 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1683 | .gpio = em2880_msi_digivox_ad_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1684 | }, { |
| 1685 | .type = EM28XX_VMUX_SVIDEO, |
| 1686 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1687 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1688 | .gpio = em2880_msi_digivox_ad_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1689 | } }, |
| 1690 | }, |
| 1691 | [EM2880_BOARD_MSI_DIGIVOX_AD_II] = { |
| 1692 | .name = "MSI DigiVox A/D II", |
| 1693 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1694 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1695 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1696 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1697 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1698 | .type = EM28XX_VMUX_TELEVISION, |
| 1699 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1700 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1701 | .gpio = em2880_msi_digivox_ad_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1702 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1703 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1704 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1705 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1706 | .gpio = em2880_msi_digivox_ad_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1707 | }, { |
| 1708 | .type = EM28XX_VMUX_SVIDEO, |
| 1709 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1710 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1711 | .gpio = em2880_msi_digivox_ad_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1712 | } }, |
| 1713 | }, |
| 1714 | [EM2880_BOARD_KWORLD_DVB_305U] = { |
| 1715 | .name = "KWorld DVB-T 305U", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1716 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1717 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1718 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1719 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1720 | .type = EM28XX_VMUX_TELEVISION, |
| 1721 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1722 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1723 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1724 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1725 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1726 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1727 | }, { |
| 1728 | .type = EM28XX_VMUX_SVIDEO, |
| 1729 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1730 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1731 | } }, |
| 1732 | }, |
| 1733 | [EM2880_BOARD_KWORLD_DVB_310U] = { |
| 1734 | .name = "KWorld DVB-T 310U", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1735 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1736 | .tuner_gpio = default_tuner_gpio, |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 1737 | .has_dvb = 1, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1738 | .dvb_gpio = default_digital, |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 1739 | .mts_firmware = 1, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1740 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1741 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1742 | .type = EM28XX_VMUX_TELEVISION, |
| 1743 | .vmux = TVP5150_COMPOSITE0, |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 1744 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1745 | .gpio = default_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1746 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1747 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1748 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | a42aa19 | 2008-11-19 11:08:53 -0300 | [diff] [blame] | 1749 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1750 | .gpio = default_analog, |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 1751 | }, { /* S-video has not been tested yet */ |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1752 | .type = EM28XX_VMUX_SVIDEO, |
| 1753 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | a42aa19 | 2008-11-19 11:08:53 -0300 | [diff] [blame] | 1754 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1755 | .gpio = default_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1756 | } }, |
| 1757 | }, |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 1758 | [EM2882_BOARD_KWORLD_ATSC_315U] = { |
| 1759 | .name = "KWorld ATSC 315U HDTV TV Box", |
| 1760 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1761 | .tuner_type = TUNER_THOMSON_DTT761X, |
| 1762 | .tuner_gpio = em2882_kworld_315u_tuner_gpio, |
| 1763 | .tda9887_conf = TDA9887_PRESENT, |
| 1764 | .decoder = EM28XX_SAA711X, |
| 1765 | .has_dvb = 1, |
| 1766 | .dvb_gpio = em2882_kworld_315u_digital, |
Mauro Carvalho Chehab | 02858ee | 2010-04-02 20:01:00 -0300 | [diff] [blame] | 1767 | .ir_codes = RC_MAP_KWORLD_315U, |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 1768 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, |
| 1769 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE, |
| 1770 | /* Analog mode - still not ready */ |
| 1771 | /*.input = { { |
| 1772 | .type = EM28XX_VMUX_TELEVISION, |
| 1773 | .vmux = SAA7115_COMPOSITE2, |
| 1774 | .amux = EM28XX_AMUX_VIDEO, |
| 1775 | .gpio = em2882_kworld_315u_analog, |
| 1776 | .aout = EM28XX_AOUT_PCM_IN | EM28XX_AOUT_PCM_STEREO, |
| 1777 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1778 | .type = EM28XX_VMUX_COMPOSITE, |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 1779 | .vmux = SAA7115_COMPOSITE0, |
| 1780 | .amux = EM28XX_AMUX_LINE_IN, |
| 1781 | .gpio = em2882_kworld_315u_analog1, |
| 1782 | .aout = EM28XX_AOUT_PCM_IN | EM28XX_AOUT_PCM_STEREO, |
| 1783 | }, { |
| 1784 | .type = EM28XX_VMUX_SVIDEO, |
| 1785 | .vmux = SAA7115_SVIDEO3, |
| 1786 | .amux = EM28XX_AMUX_LINE_IN, |
| 1787 | .gpio = em2882_kworld_315u_analog1, |
| 1788 | .aout = EM28XX_AOUT_PCM_IN | EM28XX_AOUT_PCM_STEREO, |
| 1789 | } }, */ |
| 1790 | }, |
Douglas Schilling Landgraf | e5db5d4 | 2009-04-09 18:24:34 -0300 | [diff] [blame] | 1791 | [EM2880_BOARD_EMPIRE_DUAL_TV] = { |
| 1792 | .name = "Empire dual TV", |
| 1793 | .tuner_type = TUNER_XC2028, |
| 1794 | .tuner_gpio = default_tuner_gpio, |
| 1795 | .has_dvb = 1, |
| 1796 | .dvb_gpio = default_digital, |
| 1797 | .mts_firmware = 1, |
| 1798 | .decoder = EM28XX_TVP5150, |
| 1799 | .input = { { |
| 1800 | .type = EM28XX_VMUX_TELEVISION, |
| 1801 | .vmux = TVP5150_COMPOSITE0, |
| 1802 | .amux = EM28XX_AMUX_VIDEO, |
| 1803 | .gpio = default_analog, |
| 1804 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1805 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | e5db5d4 | 2009-04-09 18:24:34 -0300 | [diff] [blame] | 1806 | .vmux = TVP5150_COMPOSITE1, |
| 1807 | .amux = EM28XX_AMUX_LINE_IN, |
| 1808 | .gpio = default_analog, |
| 1809 | }, { |
| 1810 | .type = EM28XX_VMUX_SVIDEO, |
| 1811 | .vmux = TVP5150_SVIDEO, |
| 1812 | .amux = EM28XX_AMUX_LINE_IN, |
| 1813 | .gpio = default_analog, |
| 1814 | } }, |
| 1815 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1816 | [EM2881_BOARD_DNT_DA2_HYBRID] = { |
| 1817 | .name = "DNT DA2 Hybrid", |
| 1818 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1819 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1820 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1821 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1822 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1823 | .type = EM28XX_VMUX_TELEVISION, |
| 1824 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1825 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1826 | .gpio = default_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1827 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1828 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1829 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1830 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1831 | .gpio = default_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1832 | }, { |
| 1833 | .type = EM28XX_VMUX_SVIDEO, |
| 1834 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1835 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1836 | .gpio = default_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1837 | } }, |
| 1838 | }, |
| 1839 | [EM2881_BOARD_PINNACLE_HYBRID_PRO] = { |
| 1840 | .name = "Pinnacle Hybrid Pro", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1841 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1842 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1843 | .decoder = EM28XX_TVP5150, |
Devin Heitmueller | d5b3ba9 | 2009-07-08 21:51:35 -0300 | [diff] [blame] | 1844 | .has_dvb = 1, |
| 1845 | .dvb_gpio = pinnacle_hybrid_pro_digital, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1846 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1847 | .type = EM28XX_VMUX_TELEVISION, |
| 1848 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1849 | .amux = EM28XX_AMUX_VIDEO, |
Devin Heitmueller | d5b3ba9 | 2009-07-08 21:51:35 -0300 | [diff] [blame] | 1850 | .gpio = pinnacle_hybrid_pro_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1851 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1852 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1853 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1854 | .amux = EM28XX_AMUX_LINE_IN, |
Devin Heitmueller | d5b3ba9 | 2009-07-08 21:51:35 -0300 | [diff] [blame] | 1855 | .gpio = pinnacle_hybrid_pro_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1856 | }, { |
| 1857 | .type = EM28XX_VMUX_SVIDEO, |
| 1858 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1859 | .amux = EM28XX_AMUX_LINE_IN, |
Devin Heitmueller | d5b3ba9 | 2009-07-08 21:51:35 -0300 | [diff] [blame] | 1860 | .gpio = pinnacle_hybrid_pro_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1861 | } }, |
| 1862 | }, |
Devin Heitmueller | 09bc194 | 2011-03-13 02:07:54 -0300 | [diff] [blame] | 1863 | [EM2882_BOARD_PINNACLE_HYBRID_PRO_330E] = { |
| 1864 | .name = "Pinnacle Hybrid Pro (330e)", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1865 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1866 | .tuner_gpio = default_tuner_gpio, |
Eugeniy Meshcheryakov | a674a3b | 2008-08-01 08:23:41 -0300 | [diff] [blame] | 1867 | .mts_firmware = 1, |
Devin Heitmueller | ad9b4bb | 2011-03-13 02:09:59 -0300 | [diff] [blame] | 1868 | .has_dvb = 1, |
| 1869 | .dvb_gpio = hauppauge_wintv_hvr_900R2_digital, |
Devin Heitmueller | 9b316d6 | 2011-03-13 02:18:34 -0300 | [diff] [blame] | 1870 | .ir_codes = RC_MAP_PINNACLE_PCTV_HD, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1871 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1872 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1873 | .type = EM28XX_VMUX_TELEVISION, |
| 1874 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1875 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1876 | .gpio = hauppauge_wintv_hvr_900_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1877 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1878 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1879 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1880 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1881 | .gpio = hauppauge_wintv_hvr_900_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1882 | }, { |
| 1883 | .type = EM28XX_VMUX_SVIDEO, |
| 1884 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1885 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1886 | .gpio = hauppauge_wintv_hvr_900_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1887 | } }, |
| 1888 | }, |
| 1889 | [EM2882_BOARD_KWORLD_VS_DVBT] = { |
| 1890 | .name = "Kworld VS-DVB-T 323UR", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1891 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1892 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1893 | .decoder = EM28XX_TVP5150, |
Antonio Larrosa | 811fab6 | 2010-03-04 22:19:48 -0300 | [diff] [blame] | 1894 | .mts_firmware = 1, |
| 1895 | .has_dvb = 1, |
| 1896 | .dvb_gpio = kworld_330u_digital, |
| 1897 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, /* NEC IR */ |
Mauro Carvalho Chehab | 02858ee | 2010-04-02 20:01:00 -0300 | [diff] [blame] | 1898 | .ir_codes = RC_MAP_KWORLD_315U, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1899 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1900 | .type = EM28XX_VMUX_TELEVISION, |
| 1901 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1902 | .amux = EM28XX_AMUX_VIDEO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1903 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1904 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1905 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1906 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1907 | }, { |
| 1908 | .type = EM28XX_VMUX_SVIDEO, |
| 1909 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1910 | .amux = EM28XX_AMUX_LINE_IN, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1911 | } }, |
| 1912 | }, |
| 1913 | [EM2882_BOARD_TERRATEC_HYBRID_XS] = { |
Philippe Bourdin | 9124544 | 2010-10-31 09:57:58 -0300 | [diff] [blame] | 1914 | .name = "Terratec Cinnergy Hybrid T USB XS (em2882)", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1915 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1916 | .tuner_gpio = default_tuner_gpio, |
Uroš Vampl | ec994d0 | 2009-09-30 22:53:37 -0300 | [diff] [blame] | 1917 | .mts_firmware = 1, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1918 | .decoder = EM28XX_TVP5150, |
Uroš Vampl | ec994d0 | 2009-09-30 22:53:37 -0300 | [diff] [blame] | 1919 | .has_dvb = 1, |
| 1920 | .dvb_gpio = hauppauge_wintv_hvr_900_digital, |
Mauro Carvalho Chehab | 02858ee | 2010-04-02 20:01:00 -0300 | [diff] [blame] | 1921 | .ir_codes = RC_MAP_TERRATEC_CINERGY_XS, |
Uroš Vampl | ec994d0 | 2009-09-30 22:53:37 -0300 | [diff] [blame] | 1922 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1923 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1924 | .type = EM28XX_VMUX_TELEVISION, |
| 1925 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1926 | .amux = EM28XX_AMUX_VIDEO, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1927 | .gpio = hauppauge_wintv_hvr_900_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1928 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1929 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1930 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1931 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1932 | .gpio = hauppauge_wintv_hvr_900_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1933 | }, { |
| 1934 | .type = EM28XX_VMUX_SVIDEO, |
| 1935 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1936 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 122b77e | 2008-11-27 07:42:26 -0300 | [diff] [blame] | 1937 | .gpio = hauppauge_wintv_hvr_900_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1938 | } }, |
| 1939 | }, |
Andrea.Amorosi76@gmail.com | 7ca7ef6 | 2010-02-09 17:53:38 -0300 | [diff] [blame] | 1940 | [EM2882_BOARD_DIKOM_DK300] = { |
| 1941 | .name = "Dikom DK300", |
| 1942 | .tuner_type = TUNER_XC2028, |
| 1943 | .tuner_gpio = default_tuner_gpio, |
| 1944 | .decoder = EM28XX_TVP5150, |
| 1945 | .mts_firmware = 1, |
| 1946 | .has_dvb = 1, |
| 1947 | .dvb_gpio = dikom_dk300_digital, |
| 1948 | .input = { { |
| 1949 | .type = EM28XX_VMUX_TELEVISION, |
| 1950 | .vmux = TVP5150_COMPOSITE0, |
| 1951 | .amux = EM28XX_AMUX_VIDEO, |
| 1952 | .gpio = default_analog, |
| 1953 | } }, |
| 1954 | }, |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 1955 | [EM2883_BOARD_KWORLD_HYBRID_330U] = { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1956 | .name = "Kworld PlusTV HD Hybrid 330", |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1957 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 1958 | .tuner_gpio = default_tuner_gpio, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1959 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | be2c6db | 2008-12-09 15:43:10 -0300 | [diff] [blame] | 1960 | .mts_firmware = 1, |
| 1961 | .has_dvb = 1, |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 1962 | .dvb_gpio = kworld_330u_digital, |
| 1963 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, |
Nicola Soranzo | a1a6ee7 | 2009-02-10 23:28:24 -0300 | [diff] [blame] | 1964 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
| 1965 | EM28XX_I2C_EEPROM_ON_BOARD | |
| 1966 | EM28XX_I2C_EEPROM_KEY_VALID, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1967 | .input = { { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1968 | .type = EM28XX_VMUX_TELEVISION, |
| 1969 | .vmux = TVP5150_COMPOSITE0, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1970 | .amux = EM28XX_AMUX_VIDEO, |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 1971 | .gpio = kworld_330u_analog, |
| 1972 | .aout = EM28XX_AOUT_PCM_IN | EM28XX_AOUT_PCM_STEREO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1973 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 1974 | .type = EM28XX_VMUX_COMPOSITE, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1975 | .vmux = TVP5150_COMPOSITE1, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1976 | .amux = EM28XX_AMUX_LINE_IN, |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 1977 | .gpio = kworld_330u_analog, |
| 1978 | .aout = EM28XX_AOUT_PCM_IN | EM28XX_AOUT_PCM_STEREO, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1979 | }, { |
| 1980 | .type = EM28XX_VMUX_SVIDEO, |
| 1981 | .vmux = TVP5150_SVIDEO, |
Mauro Carvalho Chehab | 8a5caa6 | 2008-11-19 11:10:50 -0300 | [diff] [blame] | 1982 | .amux = EM28XX_AMUX_LINE_IN, |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 1983 | .gpio = kworld_330u_analog, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1984 | } }, |
| 1985 | }, |
Mauro Carvalho Chehab | ee281b8 | 2008-07-27 16:58:04 -0300 | [diff] [blame] | 1986 | [EM2820_BOARD_COMPRO_VIDEOMATE_FORYOU] = { |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 1987 | .name = "Compro VideoMate ForYou/Stereo", |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 1988 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
Douglas Schilling Landgraf | f2cf250 | 2009-03-31 17:10:58 -0300 | [diff] [blame] | 1989 | .tvaudio_addr = 0xb0, |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 1990 | .tda9887_conf = TDA9887_PRESENT, |
| 1991 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | df7fa09 | 2009-02-25 09:06:13 -0300 | [diff] [blame] | 1992 | .adecoder = EM28XX_TVAUDIO, |
Vitaly Wool | 2bd1d9e | 2009-03-04 08:27:52 -0300 | [diff] [blame] | 1993 | .mute_gpio = compro_mute_gpio, |
Mauro Carvalho Chehab | d4d889e | 2008-11-25 09:10:25 -0300 | [diff] [blame] | 1994 | .input = { { |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 1995 | .type = EM28XX_VMUX_TELEVISION, |
| 1996 | .vmux = TVP5150_COMPOSITE0, |
Vitaly Wool | 2bd1d9e | 2009-03-04 08:27:52 -0300 | [diff] [blame] | 1997 | .amux = EM28XX_AMUX_VIDEO, |
| 1998 | .gpio = compro_unmute_tv_gpio, |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 1999 | }, { |
| 2000 | .type = EM28XX_VMUX_SVIDEO, |
| 2001 | .vmux = TVP5150_SVIDEO, |
| 2002 | .amux = EM28XX_AMUX_LINE_IN, |
Vitaly Wool | 2bd1d9e | 2009-03-04 08:27:52 -0300 | [diff] [blame] | 2003 | .gpio = compro_unmute_svid_gpio, |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 2004 | } }, |
| 2005 | }, |
Mauro Carvalho Chehab | 0bf4f6c | 2009-02-11 14:13:20 -0300 | [diff] [blame] | 2006 | [EM2860_BOARD_KAIOMY_TVNPC_U2] = { |
| 2007 | .name = "Kaiomy TVnPC U2", |
| 2008 | .vchannels = 3, |
| 2009 | .tuner_type = TUNER_XC2028, |
| 2010 | .tuner_addr = 0x61, |
| 2011 | .mts_firmware = 1, |
| 2012 | .decoder = EM28XX_TVP5150, |
| 2013 | .tuner_gpio = default_tuner_gpio, |
Mauro Carvalho Chehab | 02858ee | 2010-04-02 20:01:00 -0300 | [diff] [blame] | 2014 | .ir_codes = RC_MAP_KAIOMY, |
Mauro Carvalho Chehab | 0bf4f6c | 2009-02-11 14:13:20 -0300 | [diff] [blame] | 2015 | .input = { { |
| 2016 | .type = EM28XX_VMUX_TELEVISION, |
| 2017 | .vmux = TVP5150_COMPOSITE0, |
| 2018 | .amux = EM28XX_AMUX_VIDEO, |
| 2019 | |
| 2020 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2021 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 0bf4f6c | 2009-02-11 14:13:20 -0300 | [diff] [blame] | 2022 | .vmux = TVP5150_COMPOSITE1, |
| 2023 | .amux = EM28XX_AMUX_LINE_IN, |
| 2024 | }, { |
| 2025 | .type = EM28XX_VMUX_SVIDEO, |
| 2026 | .vmux = TVP5150_SVIDEO, |
| 2027 | .amux = EM28XX_AMUX_LINE_IN, |
| 2028 | } }, |
| 2029 | .radio = { |
| 2030 | .type = EM28XX_RADIO, |
| 2031 | .amux = EM28XX_AMUX_LINE_IN, |
| 2032 | } |
Mauro Carvalho Chehab | 56ee380 | 2009-02-11 14:18:36 -0300 | [diff] [blame] | 2033 | }, |
| 2034 | [EM2860_BOARD_EASYCAP] = { |
| 2035 | .name = "Easy Cap Capture DC-60", |
| 2036 | .vchannels = 2, |
| 2037 | .tuner_type = TUNER_ABSENT, |
| 2038 | .decoder = EM28XX_SAA711X, |
| 2039 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2040 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 56ee380 | 2009-02-11 14:18:36 -0300 | [diff] [blame] | 2041 | .vmux = SAA7115_COMPOSITE0, |
| 2042 | .amux = EM28XX_AMUX_LINE_IN, |
| 2043 | }, { |
| 2044 | .type = EM28XX_VMUX_SVIDEO, |
| 2045 | .vmux = SAA7115_SVIDEO3, |
| 2046 | .amux = EM28XX_AMUX_LINE_IN, |
| 2047 | } }, |
| 2048 | }, |
Indika Katugampala | f74a61e3 | 2009-02-11 11:13:05 -0300 | [diff] [blame] | 2049 | [EM2820_BOARD_IODATA_GVMVP_SZ] = { |
| 2050 | .name = "IO-DATA GV-MVP/SZ", |
| 2051 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 2052 | .tuner_gpio = default_tuner_gpio, |
| 2053 | .tda9887_conf = TDA9887_PRESENT, |
| 2054 | .decoder = EM28XX_TVP5150, |
| 2055 | .input = { { |
| 2056 | .type = EM28XX_VMUX_TELEVISION, |
| 2057 | .vmux = TVP5150_COMPOSITE0, |
| 2058 | .amux = EM28XX_AMUX_VIDEO, |
| 2059 | }, { /* Composite has not been tested yet */ |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2060 | .type = EM28XX_VMUX_COMPOSITE, |
Indika Katugampala | f74a61e3 | 2009-02-11 11:13:05 -0300 | [diff] [blame] | 2061 | .vmux = TVP5150_COMPOSITE1, |
| 2062 | .amux = EM28XX_AMUX_VIDEO, |
| 2063 | }, { /* S-video has not been tested yet */ |
| 2064 | .type = EM28XX_VMUX_SVIDEO, |
| 2065 | .vmux = TVP5150_SVIDEO, |
| 2066 | .amux = EM28XX_AMUX_VIDEO, |
| 2067 | } }, |
| 2068 | }, |
Mauro Carvalho Chehab | 4557af9 | 2009-05-23 09:58:52 -0300 | [diff] [blame] | 2069 | [EM2860_BOARD_TERRATEC_GRABBY] = { |
| 2070 | .name = "Terratec Grabby", |
| 2071 | .vchannels = 2, |
| 2072 | .tuner_type = TUNER_ABSENT, |
| 2073 | .decoder = EM28XX_SAA711X, |
| 2074 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, |
| 2075 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2076 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 4557af9 | 2009-05-23 09:58:52 -0300 | [diff] [blame] | 2077 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | a3fa904 | 2010-10-25 17:51:15 -0300 | [diff] [blame] | 2078 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 4557af9 | 2009-05-23 09:58:52 -0300 | [diff] [blame] | 2079 | }, { |
| 2080 | .type = EM28XX_VMUX_SVIDEO, |
| 2081 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | a3fa904 | 2010-10-25 17:51:15 -0300 | [diff] [blame] | 2082 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | 4557af9 | 2009-05-23 09:58:52 -0300 | [diff] [blame] | 2083 | } }, |
Matthieu Rogez | dd837fb | 2016-02-28 08:26:21 -0300 | [diff] [blame] | 2084 | .buttons = std_snapshot_button, |
Matthieu Rogez | 565e37d | 2016-02-28 08:26:22 -0300 | [diff] [blame] | 2085 | .leds = terratec_grabby_leds, |
Mauro Carvalho Chehab | 4557af9 | 2009-05-23 09:58:52 -0300 | [diff] [blame] | 2086 | }, |
Mauro Carvalho Chehab | 766ed64 | 2009-05-24 00:46:01 -0300 | [diff] [blame] | 2087 | [EM2860_BOARD_TERRATEC_AV350] = { |
| 2088 | .name = "Terratec AV350", |
| 2089 | .vchannels = 2, |
| 2090 | .tuner_type = TUNER_ABSENT, |
| 2091 | .decoder = EM28XX_TVP5150, |
| 2092 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, |
| 2093 | .mute_gpio = terratec_av350_mute_gpio, |
| 2094 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2095 | .type = EM28XX_VMUX_COMPOSITE, |
Mauro Carvalho Chehab | 766ed64 | 2009-05-24 00:46:01 -0300 | [diff] [blame] | 2096 | .vmux = TVP5150_COMPOSITE1, |
| 2097 | .amux = EM28XX_AUDIO_SRC_LINE, |
Jean Delvare | 1df8e98 | 2009-05-13 16:48:07 -0300 | [diff] [blame] | 2098 | .gpio = terratec_av350_unmute_gpio, |
Mauro Carvalho Chehab | 766ed64 | 2009-05-24 00:46:01 -0300 | [diff] [blame] | 2099 | |
| 2100 | }, { |
| 2101 | .type = EM28XX_VMUX_SVIDEO, |
| 2102 | .vmux = TVP5150_SVIDEO, |
| 2103 | .amux = EM28XX_AUDIO_SRC_LINE, |
Jean Delvare | 1df8e98 | 2009-05-13 16:48:07 -0300 | [diff] [blame] | 2104 | .gpio = terratec_av350_unmute_gpio, |
Mauro Carvalho Chehab | 766ed64 | 2009-05-24 00:46:01 -0300 | [diff] [blame] | 2105 | } }, |
| 2106 | }, |
Adrian Taylor | 8298f2f | 2010-10-20 07:55:33 -0300 | [diff] [blame] | 2107 | |
| 2108 | [EM2860_BOARD_ELGATO_VIDEO_CAPTURE] = { |
| 2109 | .name = "Elgato Video Capture", |
| 2110 | .decoder = EM28XX_SAA711X, |
| 2111 | .tuner_type = TUNER_ABSENT, /* Capture only device */ |
| 2112 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2113 | .type = EM28XX_VMUX_COMPOSITE, |
Adrian Taylor | 8298f2f | 2010-10-20 07:55:33 -0300 | [diff] [blame] | 2114 | .vmux = SAA7115_COMPOSITE0, |
| 2115 | .amux = EM28XX_AMUX_LINE_IN, |
| 2116 | }, { |
| 2117 | .type = EM28XX_VMUX_SVIDEO, |
| 2118 | .vmux = SAA7115_SVIDEO3, |
| 2119 | .amux = EM28XX_AMUX_LINE_IN, |
| 2120 | } }, |
| 2121 | }, |
| 2122 | |
Devin Heitmueller | 1985922 | 2009-06-19 00:33:54 -0300 | [diff] [blame] | 2123 | [EM2882_BOARD_EVGA_INDTUBE] = { |
| 2124 | .name = "Evga inDtube", |
| 2125 | .tuner_type = TUNER_XC2028, |
| 2126 | .tuner_gpio = default_tuner_gpio, |
| 2127 | .decoder = EM28XX_TVP5150, |
Devin Heitmueller | a4c4730 | 2009-06-20 21:34:42 -0300 | [diff] [blame] | 2128 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, /* NEC IR */ |
Devin Heitmueller | 1985922 | 2009-06-19 00:33:54 -0300 | [diff] [blame] | 2129 | .mts_firmware = 1, |
| 2130 | .has_dvb = 1, |
| 2131 | .dvb_gpio = evga_indtube_digital, |
Mauro Carvalho Chehab | 02858ee | 2010-04-02 20:01:00 -0300 | [diff] [blame] | 2132 | .ir_codes = RC_MAP_EVGA_INDTUBE, |
Devin Heitmueller | 1985922 | 2009-06-19 00:33:54 -0300 | [diff] [blame] | 2133 | .input = { { |
| 2134 | .type = EM28XX_VMUX_TELEVISION, |
| 2135 | .vmux = TVP5150_COMPOSITE0, |
| 2136 | .amux = EM28XX_AMUX_VIDEO, |
| 2137 | .gpio = evga_indtube_analog, |
| 2138 | }, { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2139 | .type = EM28XX_VMUX_COMPOSITE, |
Devin Heitmueller | 1985922 | 2009-06-19 00:33:54 -0300 | [diff] [blame] | 2140 | .vmux = TVP5150_COMPOSITE1, |
| 2141 | .amux = EM28XX_AMUX_LINE_IN, |
| 2142 | .gpio = evga_indtube_analog, |
| 2143 | }, { |
| 2144 | .type = EM28XX_VMUX_SVIDEO, |
| 2145 | .vmux = TVP5150_SVIDEO, |
| 2146 | .amux = EM28XX_AMUX_LINE_IN, |
| 2147 | .gpio = evga_indtube_analog, |
| 2148 | } }, |
| 2149 | }, |
Antti Palosaari | 285eb1a | 2009-09-15 14:42:13 -0300 | [diff] [blame] | 2150 | /* eb1a:2868 Empia EM2870 + Philips CU1216L NIM (Philips TDA10023 + |
| 2151 | Infineon TUA6034) */ |
| 2152 | [EM2870_BOARD_REDDO_DVB_C_USB_BOX] = { |
| 2153 | .name = "Reddo DVB-C USB TV Box", |
| 2154 | .tuner_type = TUNER_ABSENT, |
Antti Palosaari | 28f4ddd1 | 2009-10-04 12:59:35 -0300 | [diff] [blame] | 2155 | .tuner_gpio = reddo_dvb_c_usb_box, |
Antti Palosaari | 285eb1a | 2009-09-15 14:42:13 -0300 | [diff] [blame] | 2156 | .has_dvb = 1, |
Antti Palosaari | 285eb1a | 2009-09-15 14:42:13 -0300 | [diff] [blame] | 2157 | }, |
Jarod Wilson | 7e48b30 | 2010-03-07 17:55:43 -0300 | [diff] [blame] | 2158 | /* 1b80:a340 - Empia EM2870, NXP TDA18271HD and LG DT3304, sold |
| 2159 | * initially as the KWorld PlusTV 340U, then as the UB435-Q. |
| 2160 | * Early variants have a TDA18271HD/C1, later ones a TDA18271HD/C2 */ |
| 2161 | [EM2870_BOARD_KWORLD_A340] = { |
| 2162 | .name = "KWorld PlusTV 340U or UB435-Q (ATSC)", |
| 2163 | .tuner_type = TUNER_ABSENT, /* Digital-only TDA18271HD */ |
| 2164 | .has_dvb = 1, |
| 2165 | .dvb_gpio = kworld_a340_digital, |
| 2166 | .tuner_gpio = default_tuner_gpio, |
| 2167 | }, |
Antti Palosaari | 460312e | 2011-05-25 17:03:50 -0300 | [diff] [blame] | 2168 | /* 2013:024f PCTV nanoStick T2 290e. |
Antti Palosaari | d6a5f92 | 2011-04-07 16:34:44 -0300 | [diff] [blame] | 2169 | * Empia EM28174, Sony CXD2820R and NXP TDA18271HD/C2 */ |
| 2170 | [EM28174_BOARD_PCTV_290E] = { |
Antti Palosaari | 460312e | 2011-05-25 17:03:50 -0300 | [diff] [blame] | 2171 | .name = "PCTV nanoStick T2 290e", |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 2172 | .def_i2c_bus = 1, |
| 2173 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_FREQ_100_KHZ, |
Antti Palosaari | d6a5f92 | 2011-04-07 16:34:44 -0300 | [diff] [blame] | 2174 | .tuner_type = TUNER_ABSENT, |
| 2175 | .tuner_gpio = pctv_290e, |
| 2176 | .has_dvb = 1, |
Antti Palosaari | ff7b929 | 2011-05-25 17:00:35 -0300 | [diff] [blame] | 2177 | .ir_codes = RC_MAP_PINNACLE_PCTV_HD, |
Antti Palosaari | d6a5f92 | 2011-04-07 16:34:44 -0300 | [diff] [blame] | 2178 | }, |
Antti Palosaari | 3658871 | 2011-08-01 01:15:30 -0300 | [diff] [blame] | 2179 | /* 2013:024f PCTV DVB-S2 Stick 460e |
| 2180 | * Empia EM28174, NXP TDA10071, Conexant CX24118A and Allegro A8293 */ |
| 2181 | [EM28174_BOARD_PCTV_460E] = { |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 2182 | .def_i2c_bus = 1, |
| 2183 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_FREQ_400_KHZ, |
Antti Palosaari | 3658871 | 2011-08-01 01:15:30 -0300 | [diff] [blame] | 2184 | .name = "PCTV DVB-S2 Stick (460e)", |
| 2185 | .tuner_type = TUNER_ABSENT, |
| 2186 | .tuner_gpio = pctv_460e, |
| 2187 | .has_dvb = 1, |
| 2188 | .ir_codes = RC_MAP_PINNACLE_PCTV_HD, |
| 2189 | }, |
Gareth Williams | 4d28d3d | 2011-12-24 05:47:29 -0300 | [diff] [blame] | 2190 | /* eb1a:5006 Honestech VIDBOX NW03 |
| 2191 | * Empia EM2860, Philips SAA7113, Empia EMP202, No Tuner */ |
| 2192 | [EM2860_BOARD_HT_VIDBOX_NW03] = { |
| 2193 | .name = "Honestech Vidbox NW03", |
| 2194 | .tuner_type = TUNER_ABSENT, |
| 2195 | .decoder = EM28XX_SAA711X, |
| 2196 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2197 | .type = EM28XX_VMUX_COMPOSITE, |
Gareth Williams | 4d28d3d | 2011-12-24 05:47:29 -0300 | [diff] [blame] | 2198 | .vmux = SAA7115_COMPOSITE0, |
| 2199 | .amux = EM28XX_AMUX_LINE_IN, |
| 2200 | }, { |
| 2201 | .type = EM28XX_VMUX_SVIDEO, |
| 2202 | .vmux = SAA7115_SVIDEO3, /* S-VIDEO needs confirming */ |
| 2203 | .amux = EM28XX_AMUX_LINE_IN, |
| 2204 | } }, |
| 2205 | }, |
Antti Palosaari | 3553085 | 2012-03-18 18:09:01 -0300 | [diff] [blame] | 2206 | /* 1b80:e425 MaxMedia UB425-TC |
| 2207 | * Empia EM2874B + Micronas DRX 3913KA2 + NXP TDA18271HDC2 */ |
| 2208 | [EM2874_BOARD_MAXMEDIA_UB425_TC] = { |
| 2209 | .name = "MaxMedia UB425-TC", |
| 2210 | .tuner_type = TUNER_ABSENT, |
| 2211 | .tuner_gpio = maxmedia_ub425_tc, |
| 2212 | .has_dvb = 1, |
Antti Palosaari | 831378d | 2013-04-12 13:59:03 -0300 | [diff] [blame] | 2213 | .ir_codes = RC_MAP_REDDO, |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 2214 | .def_i2c_bus = 1, |
| 2215 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
Antti Palosaari | 3553085 | 2012-03-18 18:09:01 -0300 | [diff] [blame] | 2216 | EM28XX_I2C_FREQ_400_KHZ, |
| 2217 | }, |
Ivan Kalvachev | fa5527c | 2012-03-19 20:09:55 -0300 | [diff] [blame] | 2218 | /* 2304:0242 PCTV QuatroStick (510e) |
| 2219 | * Empia EM2884 + Micronas DRX 3926K + NXP TDA18271HDC2 */ |
| 2220 | [EM2884_BOARD_PCTV_510E] = { |
| 2221 | .name = "PCTV QuatroStick (510e)", |
| 2222 | .tuner_type = TUNER_ABSENT, |
| 2223 | .tuner_gpio = pctv_510e, |
| 2224 | .has_dvb = 1, |
| 2225 | .ir_codes = RC_MAP_PINNACLE_PCTV_HD, |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 2226 | .def_i2c_bus = 1, |
| 2227 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
Ivan Kalvachev | fa5527c | 2012-03-19 20:09:55 -0300 | [diff] [blame] | 2228 | EM28XX_I2C_FREQ_400_KHZ, |
| 2229 | }, |
Antti Palosaari | c247d7b | 2012-03-19 11:48:19 -0300 | [diff] [blame] | 2230 | /* 2013:0251 PCTV QuatroStick nano (520e) |
| 2231 | * Empia EM2884 + Micronas DRX 3926K + NXP TDA18271HDC2 */ |
| 2232 | [EM2884_BOARD_PCTV_520E] = { |
| 2233 | .name = "PCTV QuatroStick nano (520e)", |
| 2234 | .tuner_type = TUNER_ABSENT, |
| 2235 | .tuner_gpio = pctv_520e, |
| 2236 | .has_dvb = 1, |
| 2237 | .ir_codes = RC_MAP_PINNACLE_PCTV_HD, |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 2238 | .def_i2c_bus = 1, |
| 2239 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
Antti Palosaari | c247d7b | 2012-03-19 11:48:19 -0300 | [diff] [blame] | 2240 | EM28XX_I2C_FREQ_400_KHZ, |
| 2241 | }, |
Martin Blumenstingl | 8904013 | 2012-10-04 14:22:54 -0300 | [diff] [blame] | 2242 | [EM2884_BOARD_TERRATEC_HTC_USB_XS] = { |
| 2243 | .name = "Terratec Cinergy HTC USB XS", |
| 2244 | .has_dvb = 1, |
| 2245 | .ir_codes = RC_MAP_NEC_TERRATEC_CINERGY_XS, |
| 2246 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 2247 | .def_i2c_bus = 1, |
| 2248 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
Martin Blumenstingl | 8904013 | 2012-10-04 14:22:54 -0300 | [diff] [blame] | 2249 | EM28XX_I2C_FREQ_400_KHZ, |
| 2250 | }, |
Jakob Haufe | 7c1dfdb | 2013-04-13 11:03:37 -0300 | [diff] [blame] | 2251 | /* 1b80:e1cc Delock 61959 |
| 2252 | * Empia EM2874B + Micronas DRX 3913KA2 + NXP TDA18271HDC2 |
Mauro Carvalho Chehab | ce67943 | 2013-12-22 13:13:41 -0300 | [diff] [blame] | 2253 | * mostly the same as MaxMedia UB-425-TC but different remote */ |
Jakob Haufe | 7c1dfdb | 2013-04-13 11:03:37 -0300 | [diff] [blame] | 2254 | [EM2874_BOARD_DELOCK_61959] = { |
| 2255 | .name = "Delock 61959", |
| 2256 | .tuner_type = TUNER_ABSENT, |
| 2257 | .tuner_gpio = maxmedia_ub425_tc, |
| 2258 | .has_dvb = 1, |
| 2259 | .ir_codes = RC_MAP_DELOCK_61959, |
| 2260 | .def_i2c_bus = 1, |
| 2261 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
| 2262 | EM28XX_I2C_FREQ_400_KHZ, |
| 2263 | }, |
Jean-Francois Thibert | 6dbea9f | 2013-10-09 11:18:05 -0300 | [diff] [blame] | 2264 | /* |
| 2265 | * 1b80:e346 KWorld USB ATSC TV Stick UB435-Q V2 |
| 2266 | * Empia EM2874B + LG DT3305 + NXP TDA18271HDC2 |
| 2267 | */ |
| 2268 | [EM2874_BOARD_KWORLD_UB435Q_V2] = { |
| 2269 | .name = "KWorld USB ATSC TV Stick UB435-Q V2", |
| 2270 | .tuner_type = TUNER_ABSENT, |
| 2271 | .has_dvb = 1, |
| 2272 | .dvb_gpio = kworld_a340_digital, |
| 2273 | .tuner_gpio = default_tuner_gpio, |
| 2274 | .def_i2c_bus = 1, |
| 2275 | }, |
Mauro Carvalho Chehab | 02bc1f5 | 2014-03-03 16:28:39 -0300 | [diff] [blame] | 2276 | /* |
| 2277 | * 1b80:e34c KWorld USB ATSC TV Stick UB435-Q V3 |
| 2278 | * Empia EM2874B + LG DT3305 + NXP TDA18271HDC2 |
| 2279 | */ |
| 2280 | [EM2874_BOARD_KWORLD_UB435Q_V3] = { |
| 2281 | .name = "KWorld USB ATSC TV Stick UB435-Q V3", |
| 2282 | .tuner_type = TUNER_ABSENT, |
| 2283 | .has_dvb = 1, |
| 2284 | .tuner_gpio = kworld_ub435q_v3_digital, |
| 2285 | .def_i2c_bus = 1, |
| 2286 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
| 2287 | EM28XX_I2C_FREQ_100_KHZ, |
Mauro Carvalho Chehab | 59432be | 2014-03-04 12:34:34 -0300 | [diff] [blame] | 2288 | .leds = kworld_ub435q_v3_leds, |
Mauro Carvalho Chehab | 02bc1f5 | 2014-03-03 16:28:39 -0300 | [diff] [blame] | 2289 | }, |
Devin Heitmueller | 38b2df9 | 2012-08-13 21:18:02 -0300 | [diff] [blame] | 2290 | [EM2874_BOARD_PCTV_HD_MINI_80E] = { |
| 2291 | .name = "Pinnacle PCTV HD Mini", |
| 2292 | .tuner_type = TUNER_ABSENT, |
| 2293 | .has_dvb = 1, |
| 2294 | .dvb_gpio = em2874_pctv_80e_digital, |
| 2295 | .decoder = EM28XX_NODECODER, |
Mauro Carvalho Chehab | 959505b | 2014-01-19 07:15:11 -0300 | [diff] [blame] | 2296 | .ir_codes = RC_MAP_PINNACLE_PCTV_HD, |
Mauro Carvalho Chehab | 88e4fcd | 2014-03-04 20:49:07 -0300 | [diff] [blame] | 2297 | .leds = pctv_80e_leds, |
Devin Heitmueller | 38b2df9 | 2012-08-13 21:18:02 -0300 | [diff] [blame] | 2298 | }, |
Frank Schaefer | 0c37e73 | 2013-12-01 18:06:57 -0300 | [diff] [blame] | 2299 | /* 1ae7:9003/9004 SpeedLink Vicious And Devine Laplace webcam |
| 2300 | * Empia EM2765 + OmniVision OV2640 */ |
| 2301 | [EM2765_BOARD_SPEEDLINK_VAD_LAPLACE] = { |
| 2302 | .name = "SpeedLink Vicious And Devine Laplace webcam", |
| 2303 | .xclk = EM28XX_XCLK_FREQUENCY_24MHZ, |
| 2304 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
| 2305 | EM28XX_I2C_FREQ_100_KHZ, |
| 2306 | .def_i2c_bus = 1, |
| 2307 | .tuner_type = TUNER_ABSENT, |
| 2308 | .is_webcam = 1, |
| 2309 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2310 | .type = EM28XX_VMUX_COMPOSITE, |
Frank Schaefer | 0c37e73 | 2013-12-01 18:06:57 -0300 | [diff] [blame] | 2311 | .amux = EM28XX_AMUX_VIDEO, |
| 2312 | .gpio = speedlink_vad_laplace_reg_seq, |
| 2313 | } }, |
| 2314 | .buttons = speedlink_vad_laplace_buttons, |
| 2315 | .leds = speedlink_vad_laplace_leds, |
| 2316 | }, |
Antti Palosaari | ec57336 | 2013-02-25 09:01:13 -0300 | [diff] [blame] | 2317 | /* 2013:0258 PCTV DVB-S2 Stick (461e) |
| 2318 | * Empia EM28178, Montage M88DS3103, Montage M88TS2022, Allegro A8293 */ |
| 2319 | [EM28178_BOARD_PCTV_461E] = { |
| 2320 | .def_i2c_bus = 1, |
| 2321 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_FREQ_400_KHZ, |
| 2322 | .name = "PCTV DVB-S2 Stick (461e)", |
| 2323 | .tuner_type = TUNER_ABSENT, |
| 2324 | .tuner_gpio = pctv_461e, |
| 2325 | .has_dvb = 1, |
| 2326 | .ir_codes = RC_MAP_PINNACLE_PCTV_HD, |
| 2327 | }, |
Antti Palosaari | 1922924 | 2014-04-10 22:11:27 -0300 | [diff] [blame] | 2328 | /* 2013:025f PCTV tripleStick (292e). |
| 2329 | * Empia EM28178, Silicon Labs Si2168, Silicon Labs Si2157 */ |
| 2330 | [EM28178_BOARD_PCTV_292E] = { |
| 2331 | .name = "PCTV tripleStick (292e)", |
| 2332 | .def_i2c_bus = 1, |
| 2333 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_FREQ_400_KHZ, |
| 2334 | .tuner_type = TUNER_ABSENT, |
| 2335 | .tuner_gpio = pctv_292e, |
| 2336 | .has_dvb = 1, |
| 2337 | .ir_codes = RC_MAP_PINNACLE_PCTV_HD, |
| 2338 | }, |
Witold Krecicki | eace972 | 2014-10-19 19:25:59 -0300 | [diff] [blame] | 2339 | [EM2861_BOARD_LEADTEK_VC100] = { |
| 2340 | .name = "Leadtek VC100", |
| 2341 | .tuner_type = TUNER_ABSENT, /* Capture only device */ |
| 2342 | .decoder = EM28XX_TVP5150, |
| 2343 | .input = { { |
Mauro Carvalho Chehab | d83a96a | 2016-01-27 09:24:29 -0200 | [diff] [blame] | 2344 | .type = EM28XX_VMUX_COMPOSITE, |
Witold Krecicki | eace972 | 2014-10-19 19:25:59 -0300 | [diff] [blame] | 2345 | .vmux = TVP5150_COMPOSITE1, |
| 2346 | .amux = EM28XX_AMUX_LINE_IN, |
| 2347 | }, { |
| 2348 | .type = EM28XX_VMUX_SVIDEO, |
| 2349 | .vmux = TVP5150_SVIDEO, |
| 2350 | .amux = EM28XX_AMUX_LINE_IN, |
| 2351 | } }, |
| 2352 | }, |
Olli Salonen | fc30dd76 | 2014-11-24 03:57:34 -0300 | [diff] [blame] | 2353 | /* eb1a:8179 Terratec Cinergy T2 Stick HD. |
| 2354 | * Empia EM28178, Silicon Labs Si2168, Silicon Labs Si2146 */ |
| 2355 | [EM28178_BOARD_TERRATEC_T2_STICK_HD] = { |
| 2356 | .name = "Terratec Cinergy T2 Stick HD", |
| 2357 | .def_i2c_bus = 1, |
| 2358 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_FREQ_400_KHZ, |
| 2359 | .tuner_type = TUNER_ABSENT, |
| 2360 | .tuner_gpio = terratec_t2_stick_hd, |
| 2361 | .has_dvb = 1, |
| 2362 | .ir_codes = RC_MAP_TERRATEC_SLIM_2, |
| 2363 | }, |
Satoshi Nagahama | ab4d145 | 2016-05-06 16:35:05 -0300 | [diff] [blame] | 2364 | |
| 2365 | /* |
| 2366 | * 3275:0085 PLEX PX-BCUD. |
| 2367 | * Empia EM28178, TOSHIBA TC90532XBG, Sharp QM1D1C0042 |
| 2368 | */ |
| 2369 | [EM28178_BOARD_PLEX_PX_BCUD] = { |
| 2370 | .name = "PLEX PX-BCUD", |
| 2371 | .xclk = EM28XX_XCLK_FREQUENCY_4_3MHZ, |
| 2372 | .def_i2c_bus = 1, |
| 2373 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE, |
| 2374 | .tuner_type = TUNER_ABSENT, |
| 2375 | .tuner_gpio = plex_px_bcud, |
| 2376 | .has_dvb = 1, |
| 2377 | }, |
Olli Salonen | 11a2a94 | 2016-04-04 12:12:52 -0300 | [diff] [blame] | 2378 | /* |
| 2379 | * 2040:0265 Hauppauge WinTV-dualHD (DVB version). |
| 2380 | * Empia EM28274, 2x Silicon Labs Si2168, 2x Silicon Labs Si2157 |
| 2381 | */ |
| 2382 | [EM28174_BOARD_HAUPPAUGE_WINTV_DUALHD_DVB] = { |
| 2383 | .name = "Hauppauge WinTV-dualHD DVB", |
| 2384 | .def_i2c_bus = 1, |
| 2385 | .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
| 2386 | EM28XX_I2C_FREQ_400_KHZ, |
| 2387 | .tuner_type = TUNER_ABSENT, |
| 2388 | .tuner_gpio = hauppauge_dualhd_dvb, |
| 2389 | .has_dvb = 1, |
| 2390 | .ir_codes = RC_MAP_HAUPPAUGE, |
| 2391 | .leds = hauppauge_dualhd_leds, |
| 2392 | }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2393 | }; |
Mauro Carvalho Chehab | 01c2819 | 2013-12-22 13:27:02 -0300 | [diff] [blame] | 2394 | EXPORT_SYMBOL_GPL(em28xx_boards); |
| 2395 | |
Hans Verkuil | 4a9e512 | 2014-08-21 16:43:03 -0300 | [diff] [blame] | 2396 | static const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2397 | |
| 2398 | /* table of devices that work with this driver */ |
Nicola Soranzo | a1a6ee7 | 2009-02-10 23:28:24 -0300 | [diff] [blame] | 2399 | struct usb_device_id em28xx_id_table[] = { |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2400 | { USB_DEVICE(0xeb1a, 0x2750), |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2401 | .driver_info = EM2750_BOARD_UNKNOWN }, |
| 2402 | { USB_DEVICE(0xeb1a, 0x2751), |
| 2403 | .driver_info = EM2750_BOARD_UNKNOWN }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2404 | { USB_DEVICE(0xeb1a, 0x2800), |
| 2405 | .driver_info = EM2800_BOARD_UNKNOWN }, |
Mauro Carvalho Chehab | 9b4e845 | 2009-08-07 12:08:02 -0300 | [diff] [blame] | 2406 | { USB_DEVICE(0xeb1a, 0x2710), |
| 2407 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2408 | { USB_DEVICE(0xeb1a, 0x2820), |
| 2409 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 2410 | { USB_DEVICE(0xeb1a, 0x2821), |
Devin Heitmueller | c665f4d | 2008-12-16 23:35:23 -0300 | [diff] [blame] | 2411 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2412 | { USB_DEVICE(0xeb1a, 0x2860), |
| 2413 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 2414 | { USB_DEVICE(0xeb1a, 0x2861), |
| 2415 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Devin Heitmueller | f91cb65 | 2009-09-30 22:44:19 -0300 | [diff] [blame] | 2416 | { USB_DEVICE(0xeb1a, 0x2862), |
| 2417 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Devin Heitmueller | 443fed9 | 2010-03-19 23:53:12 -0300 | [diff] [blame] | 2418 | { USB_DEVICE(0xeb1a, 0x2863), |
| 2419 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2420 | { USB_DEVICE(0xeb1a, 0x2870), |
| 2421 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 2422 | { USB_DEVICE(0xeb1a, 0x2881), |
| 2423 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 2424 | { USB_DEVICE(0xeb1a, 0x2883), |
| 2425 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Antti Palosaari | 285eb1a | 2009-09-15 14:42:13 -0300 | [diff] [blame] | 2426 | { USB_DEVICE(0xeb1a, 0x2868), |
| 2427 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 2428 | { USB_DEVICE(0xeb1a, 0x2875), |
| 2429 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Hans Verkuil | e22eca7 | 2014-05-27 04:12:19 -0300 | [diff] [blame] | 2430 | { USB_DEVICE(0xeb1a, 0x2885), /* MSI Digivox Trio */ |
| 2431 | .driver_info = EM2884_BOARD_TERRATEC_H5 }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2432 | { USB_DEVICE(0xeb1a, 0xe300), |
| 2433 | .driver_info = EM2861_BOARD_KWORLD_PVRTV_300U }, |
Mauro Carvalho Chehab | 0bf4f6c | 2009-02-11 14:13:20 -0300 | [diff] [blame] | 2434 | { USB_DEVICE(0xeb1a, 0xe303), |
| 2435 | .driver_info = EM2860_BOARD_KAIOMY_TVNPC_U2 }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2436 | { USB_DEVICE(0xeb1a, 0xe305), |
| 2437 | .driver_info = EM2880_BOARD_KWORLD_DVB_305U }, |
| 2438 | { USB_DEVICE(0xeb1a, 0xe310), |
| 2439 | .driver_info = EM2880_BOARD_MSI_DIGIVOX_AD }, |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 2440 | { USB_DEVICE(0xeb1a, 0xa313), |
| 2441 | .driver_info = EM2882_BOARD_KWORLD_ATSC_315U }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2442 | { USB_DEVICE(0xeb1a, 0xa316), |
Robert Krakora | 6e7b9ea | 2009-01-18 21:59:34 -0300 | [diff] [blame] | 2443 | .driver_info = EM2883_BOARD_KWORLD_HYBRID_330U }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2444 | { USB_DEVICE(0xeb1a, 0xe320), |
| 2445 | .driver_info = EM2880_BOARD_MSI_DIGIVOX_AD_II }, |
| 2446 | { USB_DEVICE(0xeb1a, 0xe323), |
| 2447 | .driver_info = EM2882_BOARD_KWORLD_VS_DVBT }, |
| 2448 | { USB_DEVICE(0xeb1a, 0xe350), |
| 2449 | .driver_info = EM2870_BOARD_KWORLD_350U }, |
| 2450 | { USB_DEVICE(0xeb1a, 0xe355), |
| 2451 | .driver_info = EM2870_BOARD_KWORLD_355U }, |
| 2452 | { USB_DEVICE(0xeb1a, 0x2801), |
| 2453 | .driver_info = EM2800_BOARD_GRABBEEX_USB2800 }, |
| 2454 | { USB_DEVICE(0xeb1a, 0xe357), |
| 2455 | .driver_info = EM2870_BOARD_KWORLD_355U }, |
Aivar Päkk | 1985f6f | 2011-12-11 18:15:00 -0300 | [diff] [blame] | 2456 | { USB_DEVICE(0xeb1a, 0xe359), |
| 2457 | .driver_info = EM2870_BOARD_KWORLD_355U }, |
Douglas Schilling Landgraf | ac40d9e | 2009-02-25 16:55:48 -0300 | [diff] [blame] | 2458 | { USB_DEVICE(0x1b80, 0xe302), |
| 2459 | .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, /* Kaiser Baas Video to DVD maker */ |
Douglas Schilling Landgraf | ea47689 | 2009-09-06 18:41:59 -0300 | [diff] [blame] | 2460 | { USB_DEVICE(0x1b80, 0xe304), |
| 2461 | .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, /* Kworld DVD Maker 2 */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2462 | { USB_DEVICE(0x0ccd, 0x0036), |
| 2463 | .driver_info = EM2820_BOARD_TERRATEC_CINERGY_250 }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2464 | { USB_DEVICE(0x0ccd, 0x004c), |
| 2465 | .driver_info = EM2880_BOARD_TERRATEC_HYBRID_XS_FR }, |
| 2466 | { USB_DEVICE(0x0ccd, 0x004f), |
| 2467 | .driver_info = EM2860_BOARD_TERRATEC_HYBRID_XS }, |
| 2468 | { USB_DEVICE(0x0ccd, 0x005e), |
| 2469 | .driver_info = EM2882_BOARD_TERRATEC_HYBRID_XS }, |
| 2470 | { USB_DEVICE(0x0ccd, 0x0042), |
Philippe Bourdin | 9124544 | 2010-10-31 09:57:58 -0300 | [diff] [blame] | 2471 | .driver_info = EM2882_BOARD_TERRATEC_HYBRID_XS }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2472 | { USB_DEVICE(0x0ccd, 0x0043), |
Alberto Mardegan | 8c47311 | 2015-10-27 17:24:14 -0200 | [diff] [blame] | 2473 | .driver_info = EM2870_BOARD_TERRATEC_XS_MT2060 }, |
Holger Nelson | 6c3b906 | 2011-12-23 23:15:32 -0300 | [diff] [blame] | 2474 | { USB_DEVICE(0x0ccd, 0x008e), /* Cinergy HTC USB XS Rev. 1 */ |
Martin Blumenstingl | 8904013 | 2012-10-04 14:22:54 -0300 | [diff] [blame] | 2475 | .driver_info = EM2884_BOARD_TERRATEC_HTC_USB_XS }, |
Holger Nelson | 6c3b906 | 2011-12-23 23:15:32 -0300 | [diff] [blame] | 2476 | { USB_DEVICE(0x0ccd, 0x00ac), /* Cinergy HTC USB XS Rev. 2 */ |
Martin Blumenstingl | 8904013 | 2012-10-04 14:22:54 -0300 | [diff] [blame] | 2477 | .driver_info = EM2884_BOARD_TERRATEC_HTC_USB_XS }, |
Mauro Carvalho Chehab | 4e14534 | 2011-11-16 14:38:28 -0200 | [diff] [blame] | 2478 | { USB_DEVICE(0x0ccd, 0x10a2), /* H5 Rev. 1 */ |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 2479 | .driver_info = EM2884_BOARD_TERRATEC_H5 }, |
Mauro Carvalho Chehab | 4e14534 | 2011-11-16 14:38:28 -0200 | [diff] [blame] | 2480 | { USB_DEVICE(0x0ccd, 0x10ad), /* H5 Rev. 2 */ |
Mauro Carvalho Chehab | 33ba28e | 2011-07-14 21:48:00 -0300 | [diff] [blame] | 2481 | .driver_info = EM2884_BOARD_TERRATEC_H5 }, |
Roland Scheidegger | 676fa7d | 2013-02-08 21:08:55 -0300 | [diff] [blame] | 2482 | { USB_DEVICE(0x0ccd, 0x10b6), /* H5 Rev. 3 */ |
| 2483 | .driver_info = EM2884_BOARD_TERRATEC_H5 }, |
Mauro Carvalho Chehab | 766ed64 | 2009-05-24 00:46:01 -0300 | [diff] [blame] | 2484 | { USB_DEVICE(0x0ccd, 0x0084), |
| 2485 | .driver_info = EM2860_BOARD_TERRATEC_AV350 }, |
Mauro Carvalho Chehab | 4557af9 | 2009-05-23 09:58:52 -0300 | [diff] [blame] | 2486 | { USB_DEVICE(0x0ccd, 0x0096), |
| 2487 | .driver_info = EM2860_BOARD_TERRATEC_GRABBY }, |
Teka | efabaaf | 2011-10-14 05:40:29 -0300 | [diff] [blame] | 2488 | { USB_DEVICE(0x0ccd, 0x10AF), |
| 2489 | .driver_info = EM2860_BOARD_TERRATEC_GRABBY }, |
Andreas Oberritter | a1ed02e | 2011-11-16 11:06:50 -0300 | [diff] [blame] | 2490 | { USB_DEVICE(0x0ccd, 0x00b2), |
| 2491 | .driver_info = EM2884_BOARD_CINERGY_HTC_STICK }, |
Gilles Risch | 1fe0fbd | 2015-03-01 17:11:05 -0300 | [diff] [blame] | 2492 | { USB_DEVICE(0x0fd9, 0x0018), |
| 2493 | .driver_info = EM2884_BOARD_ELGATO_EYETV_HYBRID_2008 }, |
Adrian Taylor | 8298f2f | 2010-10-20 07:55:33 -0300 | [diff] [blame] | 2494 | { USB_DEVICE(0x0fd9, 0x0033), |
Gilles Risch | 1fe0fbd | 2015-03-01 17:11:05 -0300 | [diff] [blame] | 2495 | .driver_info = EM2860_BOARD_ELGATO_VIDEO_CAPTURE }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2496 | { USB_DEVICE(0x185b, 0x2870), |
| 2497 | .driver_info = EM2870_BOARD_COMPRO_VIDEOMATE }, |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 2498 | { USB_DEVICE(0x185b, 0x2041), |
Mauro Carvalho Chehab | ee281b8 | 2008-07-27 16:58:04 -0300 | [diff] [blame] | 2499 | .driver_info = EM2820_BOARD_COMPRO_VIDEOMATE_FORYOU }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2500 | { USB_DEVICE(0x2040, 0x4200), |
| 2501 | .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 }, |
Mauro Carvalho Chehab | 15b9bec | 2008-01-13 12:02:20 -0300 | [diff] [blame] | 2502 | { USB_DEVICE(0x2040, 0x4201), |
| 2503 | .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2504 | { USB_DEVICE(0x2040, 0x6500), |
| 2505 | .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900 }, |
Luc Saillard | 427d20c | 2008-01-30 17:23:00 -0300 | [diff] [blame] | 2506 | { USB_DEVICE(0x2040, 0x6502), |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 2507 | .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 2508 | { USB_DEVICE(0x2040, 0x6513), /* HCW HVR-980 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 2509 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 2510 | { USB_DEVICE(0x2040, 0x6517), /* HP HVR-950 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 2511 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 2512 | { USB_DEVICE(0x2040, 0x651b), /* RP HVR-950 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 2513 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Douglas Schilling Landgraf | f89bc32 | 2008-12-01 21:01:04 -0300 | [diff] [blame] | 2514 | { USB_DEVICE(0x2040, 0x651f), |
| 2515 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_850 }, |
Olli Salonen | 11a2a94 | 2016-04-04 12:12:52 -0300 | [diff] [blame] | 2516 | { USB_DEVICE(0x2040, 0x0265), |
| 2517 | .driver_info = EM28174_BOARD_HAUPPAUGE_WINTV_DUALHD_DVB }, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 2518 | { USB_DEVICE(0x0438, 0xb002), |
| 2519 | .driver_info = EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600 }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2520 | { USB_DEVICE(0x2001, 0xf112), |
| 2521 | .driver_info = EM2820_BOARD_DLINK_USB_TV }, |
| 2522 | { USB_DEVICE(0x2304, 0x0207), |
| 2523 | .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, |
| 2524 | { USB_DEVICE(0x2304, 0x0208), |
| 2525 | .driver_info = EM2820_BOARD_PINNACLE_USB_2 }, |
| 2526 | { USB_DEVICE(0x2304, 0x021a), |
| 2527 | .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, |
| 2528 | { USB_DEVICE(0x2304, 0x0226), |
Devin Heitmueller | 09bc194 | 2011-03-13 02:07:54 -0300 | [diff] [blame] | 2529 | .driver_info = EM2882_BOARD_PINNACLE_HYBRID_PRO_330E }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2530 | { USB_DEVICE(0x2304, 0x0227), |
| 2531 | .driver_info = EM2880_BOARD_PINNACLE_PCTV_HD_PRO }, |
Devin Heitmueller | 38b2df9 | 2012-08-13 21:18:02 -0300 | [diff] [blame] | 2532 | { USB_DEVICE(0x2304, 0x023f), |
| 2533 | .driver_info = EM2874_BOARD_PCTV_HD_MINI_80E }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2534 | { USB_DEVICE(0x0413, 0x6023), |
| 2535 | .driver_info = EM2800_BOARD_LEADTEK_WINFAST_USBII }, |
Don Kramer | 74e07f3 | 2012-01-02 16:15:44 -0300 | [diff] [blame] | 2536 | { USB_DEVICE(0x093b, 0xa003), |
| 2537 | .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2538 | { USB_DEVICE(0x093b, 0xa005), |
| 2539 | .driver_info = EM2861_BOARD_PLEXTOR_PX_TV100U }, |
Indika Katugampala | f74a61e3 | 2009-02-11 11:13:05 -0300 | [diff] [blame] | 2540 | { USB_DEVICE(0x04bb, 0x0515), |
| 2541 | .driver_info = EM2820_BOARD_IODATA_GVMVP_SZ }, |
Zhenyu Wang | 7c8b567 | 2009-07-05 10:51:21 -0300 | [diff] [blame] | 2542 | { USB_DEVICE(0xeb1a, 0x50a6), |
| 2543 | .driver_info = EM2860_BOARD_GADMEI_UTV330 }, |
Jarod Wilson | 7e48b30 | 2010-03-07 17:55:43 -0300 | [diff] [blame] | 2544 | { USB_DEVICE(0x1b80, 0xa340), |
| 2545 | .driver_info = EM2870_BOARD_KWORLD_A340 }, |
Jean-Francois Thibert | 6dbea9f | 2013-10-09 11:18:05 -0300 | [diff] [blame] | 2546 | { USB_DEVICE(0x1b80, 0xe346), |
| 2547 | .driver_info = EM2874_BOARD_KWORLD_UB435Q_V2 }, |
Mauro Carvalho Chehab | 02bc1f5 | 2014-03-03 16:28:39 -0300 | [diff] [blame] | 2548 | { USB_DEVICE(0x1b80, 0xe34c), |
| 2549 | .driver_info = EM2874_BOARD_KWORLD_UB435Q_V3 }, |
Antti Palosaari | d6a5f92 | 2011-04-07 16:34:44 -0300 | [diff] [blame] | 2550 | { USB_DEVICE(0x2013, 0x024f), |
| 2551 | .driver_info = EM28174_BOARD_PCTV_290E }, |
Antti Palosaari | 3658871 | 2011-08-01 01:15:30 -0300 | [diff] [blame] | 2552 | { USB_DEVICE(0x2013, 0x024c), |
| 2553 | .driver_info = EM28174_BOARD_PCTV_460E }, |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 2554 | { USB_DEVICE(0x2040, 0x1605), |
| 2555 | .driver_info = EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C }, |
Mauro Carvalho Chehab | 4159d01 | 2013-02-28 10:35:56 -0300 | [diff] [blame] | 2556 | { USB_DEVICE(0x1b80, 0xe755), |
| 2557 | .driver_info = EM2884_BOARD_C3TECH_DIGITAL_DUO }, |
Gareth Williams | 4d28d3d | 2011-12-24 05:47:29 -0300 | [diff] [blame] | 2558 | { USB_DEVICE(0xeb1a, 0x5006), |
| 2559 | .driver_info = EM2860_BOARD_HT_VIDBOX_NW03 }, |
Mario Ceresa | 2f78604 | 2012-01-06 16:00:12 -0300 | [diff] [blame] | 2560 | { USB_DEVICE(0x1b80, 0xe309), /* Sveon STV40 */ |
| 2561 | .driver_info = EM2860_BOARD_EASYCAP }, |
Antti Palosaari | 3553085 | 2012-03-18 18:09:01 -0300 | [diff] [blame] | 2562 | { USB_DEVICE(0x1b80, 0xe425), |
| 2563 | .driver_info = EM2874_BOARD_MAXMEDIA_UB425_TC }, |
Ivan Kalvachev | fa5527c | 2012-03-19 20:09:55 -0300 | [diff] [blame] | 2564 | { USB_DEVICE(0x2304, 0x0242), |
| 2565 | .driver_info = EM2884_BOARD_PCTV_510E }, |
Antti Palosaari | c247d7b | 2012-03-19 11:48:19 -0300 | [diff] [blame] | 2566 | { USB_DEVICE(0x2013, 0x0251), |
| 2567 | .driver_info = EM2884_BOARD_PCTV_520E }, |
Jakob Haufe | 7c1dfdb | 2013-04-13 11:03:37 -0300 | [diff] [blame] | 2568 | { USB_DEVICE(0x1b80, 0xe1cc), |
| 2569 | .driver_info = EM2874_BOARD_DELOCK_61959 }, |
Frank Schaefer | 0c37e73 | 2013-12-01 18:06:57 -0300 | [diff] [blame] | 2570 | { USB_DEVICE(0x1ae7, 0x9003), |
| 2571 | .driver_info = EM2765_BOARD_SPEEDLINK_VAD_LAPLACE }, |
| 2572 | { USB_DEVICE(0x1ae7, 0x9004), |
| 2573 | .driver_info = EM2765_BOARD_SPEEDLINK_VAD_LAPLACE }, |
Antti Palosaari | ec57336 | 2013-02-25 09:01:13 -0300 | [diff] [blame] | 2574 | { USB_DEVICE(0x2013, 0x0258), |
| 2575 | .driver_info = EM28178_BOARD_PCTV_461E }, |
Antti Palosaari | 1922924 | 2014-04-10 22:11:27 -0300 | [diff] [blame] | 2576 | { USB_DEVICE(0x2013, 0x025f), |
| 2577 | .driver_info = EM28178_BOARD_PCTV_292E }, |
Arno Bauernöppel | 1efc217 | 2015-11-15 19:24:10 -0200 | [diff] [blame] | 2578 | { USB_DEVICE(0x2040, 0x0264), /* Hauppauge WinTV-soloHD */ |
| 2579 | .driver_info = EM28178_BOARD_PCTV_292E }, |
Witold Krecicki | eace972 | 2014-10-19 19:25:59 -0300 | [diff] [blame] | 2580 | { USB_DEVICE(0x0413, 0x6f07), |
| 2581 | .driver_info = EM2861_BOARD_LEADTEK_VC100 }, |
Olli Salonen | fc30dd76 | 2014-11-24 03:57:34 -0300 | [diff] [blame] | 2582 | { USB_DEVICE(0xeb1a, 0x8179), |
| 2583 | .driver_info = EM28178_BOARD_TERRATEC_T2_STICK_HD }, |
Satoshi Nagahama | ab4d145 | 2016-05-06 16:35:05 -0300 | [diff] [blame] | 2584 | { USB_DEVICE(0x3275, 0x0085), |
| 2585 | .driver_info = EM28178_BOARD_PLEX_PX_BCUD }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2586 | { }, |
| 2587 | }; |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2588 | MODULE_DEVICE_TABLE(usb, em28xx_id_table); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2589 | |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 2590 | /* |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 2591 | * EEPROM hash table for devices with generic USB IDs |
| 2592 | */ |
Nicola Soranzo | a1a6ee7 | 2009-02-10 23:28:24 -0300 | [diff] [blame] | 2593 | static struct em28xx_hash_table em28xx_eeprom_hash[] = { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 2594 | /* P/N: SA 60002070465 Tuner: TVF7533-MF */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2595 | {0x6ce05a8f, EM2820_BOARD_PROLINK_PLAYTV_USB2, TUNER_YMEC_TVF_5533MF}, |
Douglas Schilling Landgraf | 1e1addd | 2008-12-27 21:38:14 -0300 | [diff] [blame] | 2596 | {0x72cc5a8b, EM2820_BOARD_PROLINK_PLAYTV_BOX4_USB2, TUNER_YMEC_TVF_5533MF}, |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 2597 | {0x966a0441, EM2880_BOARD_KWORLD_DVB_310U, TUNER_XC2028}, |
Douglas Schilling Landgraf | a35c87c | 2009-08-06 12:52:11 -0300 | [diff] [blame] | 2598 | {0x166a0441, EM2880_BOARD_EMPIRE_DUAL_TV, TUNER_XC2028}, |
Devin Heitmueller | 1985922 | 2009-06-19 00:33:54 -0300 | [diff] [blame] | 2599 | {0xcee44a99, EM2882_BOARD_EVGA_INDTUBE, TUNER_XC2028}, |
Devin Heitmueller | d5b3ba9 | 2009-07-08 21:51:35 -0300 | [diff] [blame] | 2600 | {0xb8846b20, EM2881_BOARD_PINNACLE_HYBRID_PRO, TUNER_XC2028}, |
Antti Palosaari | 285eb1a | 2009-09-15 14:42:13 -0300 | [diff] [blame] | 2601 | {0x63f653bd, EM2870_BOARD_REDDO_DVB_C_USB_BOX, TUNER_ABSENT}, |
Andrea.Amorosi76@gmail.com | 7ca7ef6 | 2010-02-09 17:53:38 -0300 | [diff] [blame] | 2602 | {0x4e913442, EM2882_BOARD_DIKOM_DK300, TUNER_XC2028}, |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2603 | }; |
| 2604 | |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 2605 | /* I2C devicelist hash table for devices with generic USB IDs */ |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 2606 | static struct em28xx_hash_table em28xx_i2c_hash[] = { |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2607 | {0xb06a32c3, EM2800_BOARD_TERRATEC_CINERGY_200, TUNER_LG_PAL_NEW_TAPC}, |
| 2608 | {0xf51200e3, EM2800_BOARD_VGEAR_POCKETTV, TUNER_LG_PAL_NEW_TAPC}, |
Devin Heitmueller | 3ed58ba | 2009-05-27 23:27:26 -0300 | [diff] [blame] | 2609 | {0x1ba50080, EM2860_BOARD_SAA711X_REFERENCE_DESIGN, TUNER_ABSENT}, |
Devin Heitmueller | 443fed9 | 2010-03-19 23:53:12 -0300 | [diff] [blame] | 2610 | {0x77800080, EM2860_BOARD_TVP5150_REFERENCE_DESIGN, TUNER_ABSENT}, |
Douglas Schilling Landgraf | f7fe3e6 | 2009-01-19 09:31:55 -0300 | [diff] [blame] | 2611 | {0xc51200e3, EM2820_BOARD_GADMEI_TVR200, TUNER_LG_PAL_NEW_TAPC}, |
Mauro Carvalho Chehab | 6d888a6 | 2009-08-30 13:05:56 -0300 | [diff] [blame] | 2612 | {0x4ba50080, EM2861_BOARD_GADMEI_UTV330PLUS, TUNER_TNF_5335MF}, |
Mauro Carvalho Chehab | ebaefdb | 2011-06-01 10:16:25 -0300 | [diff] [blame] | 2613 | {0x6b800080, EM2874_BOARD_LEADERSHIP_ISDBT, TUNER_ABSENT}, |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 2614 | }; |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 2615 | |
Frank Schaefer | 87b5243 | 2013-03-03 15:37:40 -0300 | [diff] [blame] | 2616 | /* NOTE: introduce a separate hash table for devices with 16 bit eeproms */ |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 2617 | |
Michael Krufky | d7cba04 | 2008-09-12 13:31:45 -0300 | [diff] [blame] | 2618 | 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] | 2619 | { |
Hans Verkuil | bc3d292 | 2013-03-22 09:54:00 -0300 | [diff] [blame] | 2620 | struct em28xx_i2c_bus *i2c_bus = ptr; |
| 2621 | struct em28xx *dev = i2c_bus->dev; |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 2622 | int rc = 0; |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 2623 | |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 2624 | if (dev->tuner_type != TUNER_XC2028 && dev->tuner_type != TUNER_XC5000) |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 2625 | return 0; |
| 2626 | |
Eddi De Pieri | 82e7dbb | 2011-11-19 11:37:14 -0300 | [diff] [blame] | 2627 | if (command != XC2028_TUNER_RESET && command != XC5000_TUNER_RESET) |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 2628 | return 0; |
| 2629 | |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 2630 | rc = em28xx_gpio_set(dev, dev->board.tuner_gpio); |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 2631 | |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 2632 | return rc; |
| 2633 | } |
| 2634 | EXPORT_SYMBOL_GPL(em28xx_tuner_callback); |
| 2635 | |
Nicola Soranzo | a1a6ee7 | 2009-02-10 23:28:24 -0300 | [diff] [blame] | 2636 | static inline void em28xx_set_model(struct em28xx *dev) |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 2637 | { |
Ezequiel Garcia | e0f6e4d | 2012-09-26 06:25:12 -0300 | [diff] [blame] | 2638 | dev->board = em28xx_boards[dev->model]; |
Devin Heitmueller | ed14e1c | 2008-12-29 22:27:30 -0300 | [diff] [blame] | 2639 | |
| 2640 | /* Those are the default values for the majority of boards |
| 2641 | Use those values if not specified otherwise at boards entry |
| 2642 | */ |
| 2643 | if (!dev->board.xclk) |
| 2644 | dev->board.xclk = EM28XX_XCLK_IR_RC5_MODE | |
| 2645 | EM28XX_XCLK_FREQUENCY_12MHZ; |
| 2646 | |
| 2647 | if (!dev->board.i2c_speed) |
| 2648 | dev->board.i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | |
| 2649 | EM28XX_I2C_FREQ_100_KHZ; |
Mauro Carvalho Chehab | 3aa2b3b | 2013-03-05 06:55:27 -0300 | [diff] [blame] | 2650 | |
Mauro Carvalho Chehab | aab3125 | 2013-03-05 06:55:28 -0300 | [diff] [blame] | 2651 | /* Should be initialized early, for I2C to work */ |
| 2652 | dev->def_i2c_bus = dev->board.def_i2c_bus; |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 2653 | } |
| 2654 | |
Matthieu Rogez | 0899f62 | 2016-03-04 18:33:08 -0300 | [diff] [blame] | 2655 | /* Wait until AC97_RESET reports the expected value reliably before proceeding. |
| 2656 | * We also check that two unrelated registers accesses don't return the same |
| 2657 | * value to avoid premature return. |
| 2658 | * This procedure helps ensuring AC97 register accesses are reliable. |
| 2659 | */ |
| 2660 | static int em28xx_wait_until_ac97_features_equals(struct em28xx *dev, |
| 2661 | int expected_feat) |
| 2662 | { |
| 2663 | unsigned long timeout = jiffies + msecs_to_jiffies(2000); |
| 2664 | int feat, powerdown; |
| 2665 | |
| 2666 | while (time_is_after_jiffies(timeout)) { |
| 2667 | feat = em28xx_read_ac97(dev, AC97_RESET); |
| 2668 | if (feat < 0) |
| 2669 | return feat; |
| 2670 | |
| 2671 | powerdown = em28xx_read_ac97(dev, AC97_POWERDOWN); |
| 2672 | if (powerdown < 0) |
| 2673 | return powerdown; |
| 2674 | |
| 2675 | if (feat == expected_feat && feat != powerdown) |
| 2676 | return 0; |
| 2677 | |
| 2678 | msleep(50); |
| 2679 | } |
| 2680 | |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 2681 | pr_warn("AC97 registers access is not reliable !\n"); |
Matthieu Rogez | 0899f62 | 2016-03-04 18:33:08 -0300 | [diff] [blame] | 2682 | return -ETIMEDOUT; |
| 2683 | } |
| 2684 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2685 | /* Since em28xx_pre_card_setup() requires a proper dev->model, |
| 2686 | * this won't work for boards with generic PCI IDs |
| 2687 | */ |
Ezequiel Garcia | 60332f0 | 2012-04-28 09:57:01 -0300 | [diff] [blame] | 2688 | static void em28xx_pre_card_setup(struct em28xx *dev) |
Markus Rechberger | a94e95b | 2006-01-23 17:11:10 -0200 | [diff] [blame] | 2689 | { |
Devin Heitmueller | ed14e1c | 2008-12-29 22:27:30 -0300 | [diff] [blame] | 2690 | /* Set the initial XCLK and I2C clock values based on the board |
| 2691 | definition */ |
Mauro Carvalho Chehab | 505b6d0 | 2008-11-25 09:39:50 -0300 | [diff] [blame] | 2692 | em28xx_write_reg(dev, EM28XX_R0F_XCLK, dev->board.xclk & 0x7f); |
Sascha Sommer | ca80cf6 | 2012-01-08 16:32:09 -0300 | [diff] [blame] | 2693 | if (!dev->board.is_em2800) |
| 2694 | em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, dev->board.i2c_speed); |
Mauro Carvalho Chehab | a2070c6 | 2008-11-25 07:05:06 -0300 | [diff] [blame] | 2695 | msleep(50); |
| 2696 | |
Markus Rechberger | a94e95b | 2006-01-23 17:11:10 -0200 | [diff] [blame] | 2697 | /* request some modules */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2698 | switch (dev->model) { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2699 | case EM2861_BOARD_PLEXTOR_PX_TV100U: |
Mauro Carvalho Chehab | 0a6e44d | 2009-07-29 01:39:12 -0300 | [diff] [blame] | 2700 | /* Sets the msp34xx I2S speed */ |
| 2701 | dev->i2s_speed = 2048000; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2702 | break; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2703 | case EM2861_BOARD_KWORLD_PVRTV_300U: |
| 2704 | case EM2880_BOARD_KWORLD_DVB_305U: |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2705 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0x6d); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2706 | msleep(10); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2707 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0x7d); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2708 | msleep(10); |
| 2709 | break; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2710 | case EM2870_BOARD_COMPRO_VIDEOMATE: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2711 | /* TODO: someone can do some cleanup here... |
| 2712 | not everything's needed */ |
Devin Heitmueller | 6d676d8 | 2008-11-25 06:04:02 -0300 | [diff] [blame] | 2713 | em28xx_write_reg(dev, EM2880_R04_GPO, 0x00); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2714 | msleep(10); |
Devin Heitmueller | 6d676d8 | 2008-11-25 06:04:02 -0300 | [diff] [blame] | 2715 | em28xx_write_reg(dev, EM2880_R04_GPO, 0x01); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2716 | msleep(10); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2717 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfd); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2718 | mdelay(70); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2719 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfc); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2720 | mdelay(70); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2721 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xdc); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2722 | mdelay(70); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2723 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfc); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2724 | mdelay(70); |
| 2725 | break; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2726 | case EM2870_BOARD_TERRATEC_XS_MT2060: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2727 | /* this device needs some gpio writes to get the DVB-T |
| 2728 | demod work */ |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2729 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfe); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2730 | mdelay(70); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2731 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xde); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2732 | mdelay(70); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2733 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfe); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2734 | mdelay(70); |
| 2735 | break; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2736 | case EM2870_BOARD_PINNACLE_PCTV_DVB: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2737 | /* this device needs some gpio writes to get the |
| 2738 | DVB-T demod work */ |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2739 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfe); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2740 | mdelay(70); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2741 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xde); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2742 | mdelay(70); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2743 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfe); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2744 | mdelay(70); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2745 | break; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2746 | case EM2820_BOARD_GADMEI_UTV310: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 2747 | case EM2820_BOARD_MSI_VOX_USB_2: |
Mauro Carvalho Chehab | a2070c6 | 2008-11-25 07:05:06 -0300 | [diff] [blame] | 2748 | /* enables audio for that devices */ |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2749 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfd); |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 2750 | break; |
Mauro Carvalho Chehab | 0bf4f6c | 2009-02-11 14:13:20 -0300 | [diff] [blame] | 2751 | |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 2752 | case EM2882_BOARD_KWORLD_ATSC_315U: |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2753 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xff); |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 2754 | msleep(10); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2755 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfe); |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 2756 | msleep(10); |
| 2757 | em28xx_write_reg(dev, EM2880_R04_GPO, 0x00); |
| 2758 | msleep(10); |
| 2759 | em28xx_write_reg(dev, EM2880_R04_GPO, 0x08); |
| 2760 | msleep(10); |
| 2761 | break; |
| 2762 | |
Mauro Carvalho Chehab | 0bf4f6c | 2009-02-11 14:13:20 -0300 | [diff] [blame] | 2763 | case EM2860_BOARD_KAIOMY_TVNPC_U2: |
| 2764 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x07", 1); |
| 2765 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 2766 | em28xx_write_regs(dev, 0x0d, "\x42", 1); |
| 2767 | em28xx_write_regs(dev, 0x08, "\xfd", 1); |
| 2768 | msleep(10); |
| 2769 | em28xx_write_regs(dev, 0x08, "\xff", 1); |
| 2770 | msleep(10); |
| 2771 | em28xx_write_regs(dev, 0x08, "\x7f", 1); |
| 2772 | msleep(10); |
| 2773 | em28xx_write_regs(dev, 0x08, "\x6b", 1); |
| 2774 | |
| 2775 | break; |
Mauro Carvalho Chehab | 56ee380 | 2009-02-11 14:18:36 -0300 | [diff] [blame] | 2776 | case EM2860_BOARD_EASYCAP: |
| 2777 | em28xx_write_regs(dev, 0x08, "\xf8", 1); |
| 2778 | break; |
| 2779 | |
Indika Katugampala | f74a61e3 | 2009-02-11 11:13:05 -0300 | [diff] [blame] | 2780 | case EM2820_BOARD_IODATA_GVMVP_SZ: |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2781 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xff); |
Indika Katugampala | f74a61e3 | 2009-02-11 11:13:05 -0300 | [diff] [blame] | 2782 | msleep(70); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2783 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xf7); |
Indika Katugampala | f74a61e3 | 2009-02-11 11:13:05 -0300 | [diff] [blame] | 2784 | msleep(10); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2785 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfe); |
Indika Katugampala | f74a61e3 | 2009-02-11 11:13:05 -0300 | [diff] [blame] | 2786 | msleep(70); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2787 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfd); |
Indika Katugampala | f74a61e3 | 2009-02-11 11:13:05 -0300 | [diff] [blame] | 2788 | msleep(70); |
| 2789 | break; |
Matthieu Rogez | 0899f62 | 2016-03-04 18:33:08 -0300 | [diff] [blame] | 2790 | |
| 2791 | case EM2860_BOARD_TERRATEC_GRABBY: |
| 2792 | /* HACK?: Ensure AC97 register reading is reliable before |
| 2793 | * proceeding. In practice, this will wait about 1.6 seconds. |
| 2794 | */ |
| 2795 | em28xx_wait_until_ac97_features_equals(dev, 0x6a90); |
| 2796 | break; |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 2797 | } |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 2798 | |
Mauro Carvalho Chehab | 017ab4b | 2008-11-27 09:21:55 -0300 | [diff] [blame] | 2799 | em28xx_gpio_set(dev, dev->board.tuner_gpio); |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 2800 | em28xx_set_mode(dev, EM28XX_ANALOG_MODE); |
| 2801 | |
| 2802 | /* Unlock device */ |
Mauro Carvalho Chehab | 2fe3e2e | 2008-11-27 09:10:40 -0300 | [diff] [blame] | 2803 | em28xx_set_mode(dev, EM28XX_SUSPEND); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2804 | } |
| 2805 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2806 | static int em28xx_hint_board(struct em28xx *dev) |
| 2807 | { |
| 2808 | int i; |
| 2809 | |
Frank Schaefer | 2d466e1 | 2013-03-27 17:06:28 -0300 | [diff] [blame] | 2810 | if (dev->board.is_webcam) { |
| 2811 | if (dev->em28xx_sensor == EM28XX_MT9V011) { |
| 2812 | dev->model = EM2820_BOARD_SILVERCREST_WEBCAM; |
| 2813 | } else if (dev->em28xx_sensor == EM28XX_MT9M001 || |
| 2814 | dev->em28xx_sensor == EM28XX_MT9M111) { |
| 2815 | dev->model = EM2750_BOARD_UNKNOWN; |
| 2816 | } |
| 2817 | /* FIXME: IMPROVE ! */ |
| 2818 | |
| 2819 | return 0; |
| 2820 | } |
| 2821 | |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 2822 | /* HINT method: EEPROM |
| 2823 | * |
| 2824 | * This method works only for boards with eeprom. |
| 2825 | * Uses a hash of all eeprom bytes. The hash should be |
| 2826 | * unique for a vendor/tuner pair. |
| 2827 | * There are a high chance that tuners for different |
| 2828 | * video standards produce different hashes. |
| 2829 | */ |
| 2830 | for (i = 0; i < ARRAY_SIZE(em28xx_eeprom_hash); i++) { |
| 2831 | if (dev->hash == em28xx_eeprom_hash[i].hash) { |
| 2832 | dev->model = em28xx_eeprom_hash[i].model; |
| 2833 | dev->tuner_type = em28xx_eeprom_hash[i].tuner; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2834 | |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 2835 | pr_err("Your board has no unique USB ID.\n"); |
| 2836 | pr_err("A hint were successfully done, based on eeprom hash.\n"); |
| 2837 | pr_err("This method is not 100%% failproof.\n"); |
| 2838 | pr_err("If the board were missdetected, please email this log to:\n"); |
| 2839 | pr_err("\tV4L Mailing List <linux-media@vger.kernel.org>\n"); |
| 2840 | pr_err("Board detected as %s\n", |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2841 | em28xx_boards[dev->model].name); |
| 2842 | |
| 2843 | return 0; |
| 2844 | } |
| 2845 | } |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 2846 | |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 2847 | /* HINT method: I2C attached devices |
| 2848 | * |
| 2849 | * This method works for all boards. |
| 2850 | * Uses a hash of i2c scanned devices. |
| 2851 | * Devices with the same i2c attached chips will |
| 2852 | * be considered equal. |
| 2853 | * This method is less precise than the eeprom one. |
| 2854 | */ |
| 2855 | |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 2856 | /* user did not request i2c scanning => do it now */ |
| 2857 | if (!dev->i2c_hash) |
Mauro Carvalho Chehab | aab3125 | 2013-03-05 06:55:28 -0300 | [diff] [blame] | 2858 | em28xx_do_i2c_scan(dev, dev->def_i2c_bus); |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 2859 | |
| 2860 | for (i = 0; i < ARRAY_SIZE(em28xx_i2c_hash); i++) { |
| 2861 | if (dev->i2c_hash == em28xx_i2c_hash[i].hash) { |
| 2862 | dev->model = em28xx_i2c_hash[i].model; |
| 2863 | dev->tuner_type = em28xx_i2c_hash[i].tuner; |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 2864 | pr_err("Your board has no unique USB ID.\n"); |
| 2865 | pr_err("A hint were successfully done, based on i2c devicelist hash.\n"); |
| 2866 | pr_err("This method is not 100%% failproof.\n"); |
| 2867 | pr_err("If the board were missdetected, please email this log to:\n"); |
| 2868 | pr_err("\tV4L Mailing List <linux-media@vger.kernel.org>\n"); |
| 2869 | pr_err("Board detected as %s\n", |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 2870 | em28xx_boards[dev->model].name); |
| 2871 | |
| 2872 | return 0; |
| 2873 | } |
| 2874 | } |
| 2875 | |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 2876 | pr_err("Your board has no unique USB ID and thus need a hint to be detected.\n"); |
| 2877 | pr_err("You may try to use card=<n> insmod option to workaround that.\n"); |
| 2878 | pr_err("Please send an email with this log to:\n"); |
| 2879 | pr_err("\tV4L Mailing List <linux-media@vger.kernel.org>\n"); |
| 2880 | pr_err("Board eeprom hash is 0x%08lx\n", dev->hash); |
| 2881 | pr_err("Board i2c devicelist hash is 0x%08lx\n", dev->i2c_hash); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2882 | |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 2883 | pr_err("Here is a list of valid choices for the card=<n> insmod option:\n"); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2884 | for (i = 0; i < em28xx_bcount; i++) { |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 2885 | pr_err(" card=%d -> %s\n", |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 2886 | i, em28xx_boards[i].name); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2887 | } |
| 2888 | return -1; |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 2889 | } |
| 2890 | |
Ezequiel Garcia | 60332f0 | 2012-04-28 09:57:01 -0300 | [diff] [blame] | 2891 | static void em28xx_card_setup(struct em28xx *dev) |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2892 | { |
Mauro Carvalho Chehab | 3d3215c | 2009-08-10 10:29:27 -0300 | [diff] [blame] | 2893 | /* |
| 2894 | * If the device can be a webcam, seek for a sensor. |
| 2895 | * If sensor is not found, then it isn't a webcam. |
| 2896 | */ |
| 2897 | if (dev->board.is_webcam) { |
Frank Schaefer | b3944c8 | 2013-03-27 17:06:30 -0300 | [diff] [blame] | 2898 | if (em28xx_detect_sensor(dev) < 0) |
Mauro Carvalho Chehab | 3d3215c | 2009-08-10 10:29:27 -0300 | [diff] [blame] | 2899 | dev->board.is_webcam = 0; |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 2900 | } |
| 2901 | |
Frank Schaefer | 2d466e1 | 2013-03-27 17:06:28 -0300 | [diff] [blame] | 2902 | switch (dev->model) { |
| 2903 | case EM2750_BOARD_UNKNOWN: |
| 2904 | case EM2820_BOARD_UNKNOWN: |
| 2905 | case EM2800_BOARD_UNKNOWN: |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 2906 | /* |
| 2907 | * The K-WORLD DVB-T 310U is detected as an MSI Digivox AD. |
| 2908 | * |
| 2909 | * This occurs because they share identical USB vendor and |
| 2910 | * product IDs. |
| 2911 | * |
| 2912 | * What we do here is look up the EEPROM hash of the K-WORLD |
| 2913 | * and if it is found then we decide that we do not have |
| 2914 | * a DIGIVOX and reset the device to the K-WORLD instead. |
| 2915 | * |
| 2916 | * This solution is only valid if they do not share eeprom |
| 2917 | * hash identities which has not been determined as yet. |
| 2918 | */ |
| 2919 | if (em28xx_hint_board(dev) < 0) |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 2920 | pr_err("Board not discovered\n"); |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 2921 | else { |
| 2922 | em28xx_set_model(dev); |
| 2923 | em28xx_pre_card_setup(dev); |
| 2924 | } |
| 2925 | break; |
Frank Schaefer | 2d466e1 | 2013-03-27 17:06:28 -0300 | [diff] [blame] | 2926 | default: |
| 2927 | em28xx_set_model(dev); |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 2928 | } |
Mauro Carvalho Chehab | 3d3215c | 2009-08-10 10:29:27 -0300 | [diff] [blame] | 2929 | |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 2930 | pr_info("Identified as %s (card=%d)\n", |
Mauro Carvalho Chehab | 3d3215c | 2009-08-10 10:29:27 -0300 | [diff] [blame] | 2931 | dev->board.name, dev->model); |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 2932 | |
| 2933 | dev->tuner_type = em28xx_boards[dev->model].tuner_type; |
| 2934 | |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2935 | /* request some modules */ |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2936 | switch (dev->model) { |
| 2937 | case EM2820_BOARD_HAUPPAUGE_WINTV_USB_2: |
Mauro Carvalho Chehab | 98ae127 | 2007-11-05 09:30:39 -0300 | [diff] [blame] | 2938 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 2939 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2: |
Douglas Schilling Landgraf | f89bc32 | 2008-12-01 21:01:04 -0300 | [diff] [blame] | 2940 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_850: |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 2941 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950: |
Frank Schaefer | a616601 | 2013-03-03 15:37:44 -0300 | [diff] [blame] | 2942 | case EM2884_BOARD_HAUPPAUGE_WINTV_HVR_930C: |
Olli Salonen | 11a2a94 | 2016-04-04 12:12:52 -0300 | [diff] [blame] | 2943 | case EM28174_BOARD_HAUPPAUGE_WINTV_DUALHD_DVB: |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2944 | { |
| 2945 | struct tveeprom tv; |
Frank Schaefer | a217968 | 2013-03-03 15:37:42 -0300 | [diff] [blame] | 2946 | |
| 2947 | if (dev->eedata == NULL) |
| 2948 | break; |
Mauro Carvalho Chehab | ac07bb7 | 2009-09-08 14:04:41 -0300 | [diff] [blame] | 2949 | #if defined(CONFIG_MODULES) && defined(MODULE) |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2950 | request_module("tveeprom"); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2951 | #endif |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2952 | /* Call first TVeeprom */ |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2953 | |
Mauro Carvalho Chehab | c7a45e5 | 2013-03-05 06:55:26 -0300 | [diff] [blame] | 2954 | dev->i2c_client[dev->def_i2c_bus].addr = 0xa0 >> 1; |
| 2955 | tveeprom_hauppauge_analog(&dev->i2c_client[dev->def_i2c_bus], &tv, dev->eedata); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2956 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2957 | dev->tuner_type = tv.tuner_type; |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 2958 | |
Hans Verkuil | 3300101 | 2013-05-29 06:59:45 -0300 | [diff] [blame] | 2959 | if (tv.audio_processor == TVEEPROM_AUDPROC_MSP) { |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2960 | dev->i2s_speed = 2048000; |
Mauro Carvalho Chehab | 505b6d0 | 2008-11-25 09:39:50 -0300 | [diff] [blame] | 2961 | dev->board.has_msp34xx = 1; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2962 | } |
| 2963 | break; |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 2964 | } |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 2965 | case EM2882_BOARD_KWORLD_ATSC_315U: |
| 2966 | em28xx_write_reg(dev, 0x0d, 0x42); |
| 2967 | msleep(10); |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2968 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xfd); |
Franklin Meng | d7de5d8 | 2009-06-06 17:05:02 -0300 | [diff] [blame] | 2969 | msleep(10); |
| 2970 | break; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2971 | case EM2820_BOARD_KWORLD_PVRTV2800RF: |
| 2972 | /* GPIO enables sound on KWORLD PVR TV 2800RF */ |
Frank Schaefer | c074fc4 | 2013-06-03 14:12:03 -0300 | [diff] [blame] | 2973 | em28xx_write_reg(dev, EM2820_R08_GPIO_CTRL, 0xf9); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 2974 | break; |
| 2975 | case EM2820_BOARD_UNKNOWN: |
| 2976 | case EM2800_BOARD_UNKNOWN: |
Darron Broad | da3808e | 2008-09-30 02:46:41 -0300 | [diff] [blame] | 2977 | /* |
| 2978 | * The K-WORLD DVB-T 310U is detected as an MSI Digivox AD. |
| 2979 | * |
| 2980 | * This occurs because they share identical USB vendor and |
| 2981 | * product IDs. |
| 2982 | * |
| 2983 | * What we do here is look up the EEPROM hash of the K-WORLD |
| 2984 | * and if it is found then we decide that we do not have |
| 2985 | * a DIGIVOX and reset the device to the K-WORLD instead. |
| 2986 | * |
| 2987 | * This solution is only valid if they do not share eeprom |
| 2988 | * hash identities which has not been determined as yet. |
| 2989 | */ |
| 2990 | case EM2880_BOARD_MSI_DIGIVOX_AD: |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 2991 | if (!em28xx_hint_board(dev)) |
| 2992 | em28xx_set_model(dev); |
Devin Heitmueller | cdf7bfa | 2009-06-19 00:20:28 -0300 | [diff] [blame] | 2993 | |
| 2994 | /* In cases where we had to use a board hint, the call to |
| 2995 | em28xx_set_mode() in em28xx_pre_card_setup() was a no-op, |
| 2996 | so make the call now so the analog GPIOs are set properly |
| 2997 | before probing the i2c bus. */ |
Devin Heitmueller | 5343e44 | 2009-07-15 00:35:47 -0300 | [diff] [blame] | 2998 | em28xx_gpio_set(dev, dev->board.tuner_gpio); |
Devin Heitmueller | cdf7bfa | 2009-06-19 00:20:28 -0300 | [diff] [blame] | 2999 | em28xx_set_mode(dev, EM28XX_ANALOG_MODE); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 3000 | break; |
Andrea.Amorosi76@gmail.com | 7ca7ef6 | 2010-02-09 17:53:38 -0300 | [diff] [blame] | 3001 | |
Frank Schaefer | a217968 | 2013-03-03 15:37:42 -0300 | [diff] [blame] | 3002 | /* |
Andrea.Amorosi76@gmail.com | 7ca7ef6 | 2010-02-09 17:53:38 -0300 | [diff] [blame] | 3003 | * The Dikom DK300 is detected as an Kworld VS-DVB-T 323UR. |
| 3004 | * |
| 3005 | * This occurs because they share identical USB vendor and |
| 3006 | * product IDs. |
| 3007 | * |
| 3008 | * What we do here is look up the EEPROM hash of the Dikom |
| 3009 | * and if it is found then we decide that we do not have |
| 3010 | * a Kworld and reset the device to the Dikom instead. |
| 3011 | * |
| 3012 | * This solution is only valid if they do not share eeprom |
| 3013 | * hash identities which has not been determined as yet. |
| 3014 | */ |
| 3015 | case EM2882_BOARD_KWORLD_VS_DVBT: |
| 3016 | if (!em28xx_hint_board(dev)) |
| 3017 | em28xx_set_model(dev); |
| 3018 | |
| 3019 | /* In cases where we had to use a board hint, the call to |
| 3020 | em28xx_set_mode() in em28xx_pre_card_setup() was a no-op, |
| 3021 | so make the call now so the analog GPIOs are set properly |
| 3022 | before probing the i2c bus. */ |
| 3023 | em28xx_gpio_set(dev, dev->board.tuner_gpio); |
| 3024 | em28xx_set_mode(dev, EM28XX_ANALOG_MODE); |
| 3025 | break; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 3026 | } |
| 3027 | |
Mauro Carvalho Chehab | 505b6d0 | 2008-11-25 09:39:50 -0300 | [diff] [blame] | 3028 | if (dev->board.valid == EM28XX_BOARD_NOT_VALIDATED) { |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3029 | pr_err("\n\n"); |
| 3030 | pr_err("The support for this board weren't valid yet.\n"); |
| 3031 | pr_err("Please send a report of having this working\n"); |
| 3032 | pr_err("not to V4L mailing list (and/or to other addresses)\n\n"); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 3033 | } |
| 3034 | |
Frank Schaefer | a217968 | 2013-03-03 15:37:42 -0300 | [diff] [blame] | 3035 | /* Free eeprom data memory */ |
| 3036 | kfree(dev->eedata); |
| 3037 | dev->eedata = NULL; |
| 3038 | |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 3039 | /* Allow override tuner type by a module parameter */ |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 3040 | if (tuner >= 0) |
| 3041 | dev->tuner_type = tuner; |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 3042 | } |
Mauro Carvalho Chehab | c864405 | 2008-11-25 13:10:14 -0300 | [diff] [blame] | 3043 | |
Mauro Carvalho Chehab | ee97207 | 2014-01-12 11:08:22 -0300 | [diff] [blame] | 3044 | void em28xx_setup_xc3028(struct em28xx *dev, struct xc2028_ctrl *ctl) |
| 3045 | { |
| 3046 | memset(ctl, 0, sizeof(*ctl)); |
| 3047 | |
| 3048 | ctl->fname = XC2028_DEFAULT_FIRMWARE; |
| 3049 | ctl->max_len = 64; |
| 3050 | ctl->mts = em28xx_boards[dev->model].mts_firmware; |
| 3051 | |
| 3052 | switch (dev->model) { |
| 3053 | case EM2880_BOARD_EMPIRE_DUAL_TV: |
| 3054 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: |
| 3055 | case EM2882_BOARD_TERRATEC_HYBRID_XS: |
| 3056 | ctl->demod = XC3028_FE_ZARLINK456; |
| 3057 | break; |
| 3058 | case EM2880_BOARD_TERRATEC_HYBRID_XS: |
| 3059 | case EM2880_BOARD_TERRATEC_HYBRID_XS_FR: |
| 3060 | case EM2881_BOARD_PINNACLE_HYBRID_PRO: |
| 3061 | ctl->demod = XC3028_FE_ZARLINK456; |
| 3062 | break; |
| 3063 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2: |
| 3064 | case EM2882_BOARD_PINNACLE_HYBRID_PRO_330E: |
| 3065 | ctl->demod = XC3028_FE_DEFAULT; |
| 3066 | break; |
| 3067 | case EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600: |
| 3068 | ctl->demod = XC3028_FE_DEFAULT; |
| 3069 | ctl->fname = XC3028L_DEFAULT_FIRMWARE; |
| 3070 | break; |
| 3071 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_850: |
| 3072 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950: |
| 3073 | case EM2880_BOARD_PINNACLE_PCTV_HD_PRO: |
| 3074 | /* FIXME: Better to specify the needed IF */ |
| 3075 | ctl->demod = XC3028_FE_DEFAULT; |
| 3076 | break; |
| 3077 | case EM2883_BOARD_KWORLD_HYBRID_330U: |
| 3078 | case EM2882_BOARD_DIKOM_DK300: |
| 3079 | case EM2882_BOARD_KWORLD_VS_DVBT: |
| 3080 | ctl->demod = XC3028_FE_CHINA; |
| 3081 | ctl->fname = XC2028_DEFAULT_FIRMWARE; |
| 3082 | break; |
| 3083 | case EM2882_BOARD_EVGA_INDTUBE: |
| 3084 | ctl->demod = XC3028_FE_CHINA; |
| 3085 | ctl->fname = XC3028L_DEFAULT_FIRMWARE; |
| 3086 | break; |
| 3087 | default: |
| 3088 | ctl->demod = XC3028_FE_OREN538; |
| 3089 | } |
| 3090 | } |
| 3091 | EXPORT_SYMBOL_GPL(em28xx_setup_xc3028); |
| 3092 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3093 | static void request_module_async(struct work_struct *work) |
| 3094 | { |
| 3095 | struct em28xx *dev = container_of(work, |
| 3096 | struct em28xx, request_module_wk); |
| 3097 | |
Mauro Carvalho Chehab | 6ae5e06 | 2012-10-02 15:35:27 -0300 | [diff] [blame] | 3098 | /* |
| 3099 | * The em28xx extensions can be modules or builtin. If the |
| 3100 | * modules are already loaded or are built in, those extensions |
| 3101 | * can be initialised right now. Otherwise, the module init |
| 3102 | * code will do it. |
| 3103 | */ |
Mauro Carvalho Chehab | e63fa18 | 2014-01-06 05:50:07 -0300 | [diff] [blame] | 3104 | |
| 3105 | /* |
| 3106 | * Devicdes with an audio-only interface also have a V4L/DVB/RC |
| 3107 | * interface. Don't register extensions twice on those devices. |
| 3108 | */ |
| 3109 | if (dev->is_audio_only) { |
| 3110 | #if defined(CONFIG_MODULES) && defined(MODULE) |
| 3111 | request_module("em28xx-alsa"); |
| 3112 | #endif |
| 3113 | return; |
| 3114 | } |
| 3115 | |
Mauro Carvalho Chehab | 6ae5e06 | 2012-10-02 15:35:27 -0300 | [diff] [blame] | 3116 | em28xx_init_extension(dev); |
| 3117 | |
| 3118 | #if defined(CONFIG_MODULES) && defined(MODULE) |
Mauro Carvalho Chehab | 01c2819 | 2013-12-22 13:27:02 -0300 | [diff] [blame] | 3119 | if (dev->has_video) |
| 3120 | request_module("em28xx-v4l"); |
Frank Schaefer | c587420 | 2014-09-13 05:52:20 -0300 | [diff] [blame] | 3121 | if (dev->usb_audio_type == EM28XX_USB_AUDIO_CLASS) |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3122 | request_module("snd-usb-audio"); |
Frank Schaefer | c587420 | 2014-09-13 05:52:20 -0300 | [diff] [blame] | 3123 | else if (dev->usb_audio_type == EM28XX_USB_AUDIO_VENDOR) |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3124 | request_module("em28xx-alsa"); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3125 | if (dev->board.has_dvb) |
| 3126 | request_module("em28xx-dvb"); |
Frank Schaefer | f5222609 | 2013-12-01 18:06:52 -0300 | [diff] [blame] | 3127 | if (dev->board.buttons || |
Frank Schaefer | 2b64cbd | 2013-04-11 15:56:01 -0300 | [diff] [blame] | 3128 | ((dev->board.ir_codes || dev->board.has_ir_i2c) && !disable_ir)) |
Ezequiel GarcÃa | f4d4e76 | 2012-03-26 09:13:35 -0300 | [diff] [blame] | 3129 | request_module("em28xx-rc"); |
Mauro Carvalho Chehab | 6ae5e06 | 2012-10-02 15:35:27 -0300 | [diff] [blame] | 3130 | #endif /* CONFIG_MODULES */ |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3131 | } |
| 3132 | |
| 3133 | static void request_modules(struct em28xx *dev) |
| 3134 | { |
| 3135 | INIT_WORK(&dev->request_module_wk, request_module_async); |
| 3136 | schedule_work(&dev->request_module_wk); |
| 3137 | } |
Tejun Heo | 707bcf3 | 2010-12-24 16:14:20 +0100 | [diff] [blame] | 3138 | |
| 3139 | static void flush_request_modules(struct em28xx *dev) |
| 3140 | { |
Linus Torvalds | 0b8e74c | 2012-10-07 17:49:05 +0900 | [diff] [blame] | 3141 | flush_work(&dev->request_module_wk); |
Tejun Heo | 707bcf3 | 2010-12-24 16:14:20 +0100 | [diff] [blame] | 3142 | } |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3143 | |
Mauro Carvalho Chehab | 37ecc7b | 2016-01-27 07:07:24 -0200 | [diff] [blame] | 3144 | static int em28xx_media_device_init(struct em28xx *dev, |
| 3145 | struct usb_device *udev) |
| 3146 | { |
| 3147 | #ifdef CONFIG_MEDIA_CONTROLLER |
| 3148 | struct media_device *mdev; |
| 3149 | |
Mauro Carvalho Chehab | 6cf5dad | 2016-02-22 12:10:49 -0300 | [diff] [blame] | 3150 | mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); |
Mauro Carvalho Chehab | 37ecc7b | 2016-01-27 07:07:24 -0200 | [diff] [blame] | 3151 | if (!mdev) |
| 3152 | return -ENOMEM; |
| 3153 | |
Mauro Carvalho Chehab | 6cf5dad | 2016-02-22 12:10:49 -0300 | [diff] [blame] | 3154 | if (udev->product) |
| 3155 | media_device_usb_init(mdev, udev, udev->product); |
| 3156 | else if (udev->manufacturer) |
| 3157 | media_device_usb_init(mdev, udev, udev->manufacturer); |
| 3158 | else |
| 3159 | media_device_usb_init(mdev, udev, dev->name); |
| 3160 | |
Mauro Carvalho Chehab | 37ecc7b | 2016-01-27 07:07:24 -0200 | [diff] [blame] | 3161 | dev->media_dev = mdev; |
| 3162 | #endif |
| 3163 | return 0; |
| 3164 | } |
| 3165 | |
| 3166 | static void em28xx_unregister_media_device(struct em28xx *dev) |
| 3167 | { |
| 3168 | |
| 3169 | #ifdef CONFIG_MEDIA_CONTROLLER |
| 3170 | if (dev->media_dev) { |
| 3171 | media_device_unregister(dev->media_dev); |
| 3172 | media_device_cleanup(dev->media_dev); |
| 3173 | kfree(dev->media_dev); |
| 3174 | dev->media_dev = NULL; |
| 3175 | } |
| 3176 | #endif |
| 3177 | } |
| 3178 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3179 | /* |
Chris Rankin | d7222e7 | 2011-09-24 11:02:32 -0300 | [diff] [blame] | 3180 | * em28xx_release_resources() |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3181 | * unregisters the v4l2,i2c and usb devices |
Chris Rankin | d7222e7 | 2011-09-24 11:02:32 -0300 | [diff] [blame] | 3182 | * called when the device gets disconnected or at module unload |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3183 | */ |
Mauro Carvalho Chehab | 47677e5 | 2014-03-05 11:21:07 -0300 | [diff] [blame] | 3184 | static void em28xx_release_resources(struct em28xx *dev) |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3185 | { |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3186 | /*FIXME: I2C IR should be disconnected */ |
| 3187 | |
Frank Schaefer | 5a620c7 | 2014-01-12 13:24:24 -0300 | [diff] [blame] | 3188 | mutex_lock(&dev->lock); |
| 3189 | |
Mauro Carvalho Chehab | 37ecc7b | 2016-01-27 07:07:24 -0200 | [diff] [blame] | 3190 | em28xx_unregister_media_device(dev); |
| 3191 | |
Mauro Carvalho Chehab | aab3125 | 2013-03-05 06:55:28 -0300 | [diff] [blame] | 3192 | if (dev->def_i2c_bus) |
| 3193 | em28xx_i2c_unregister(dev, 1); |
| 3194 | em28xx_i2c_unregister(dev, 0); |
Douglas Schilling Landgraf | f2cf250 | 2009-03-31 17:10:58 -0300 | [diff] [blame] | 3195 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3196 | usb_put_dev(dev->udev); |
| 3197 | |
| 3198 | /* Mark device as unused */ |
Mauro Carvalho Chehab | c3aed26 | 2014-01-14 17:35:15 -0300 | [diff] [blame] | 3199 | clear_bit(dev->devno, em28xx_devused); |
Frank Schaefer | 5a620c7 | 2014-01-12 13:24:24 -0300 | [diff] [blame] | 3200 | |
| 3201 | mutex_unlock(&dev->lock); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3202 | }; |
Mauro Carvalho Chehab | 47677e5 | 2014-03-05 11:21:07 -0300 | [diff] [blame] | 3203 | |
| 3204 | /** |
| 3205 | * em28xx_free_device() - Free em28xx device |
| 3206 | * |
| 3207 | * @ref: struct kref for em28xx device |
| 3208 | * |
| 3209 | * This is called when all extensions and em28xx core unregisters a device |
| 3210 | */ |
| 3211 | void em28xx_free_device(struct kref *ref) |
| 3212 | { |
| 3213 | struct em28xx *dev = kref_to_dev(ref); |
| 3214 | |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3215 | pr_info("Freeing device\n"); |
Mauro Carvalho Chehab | 47677e5 | 2014-03-05 11:21:07 -0300 | [diff] [blame] | 3216 | |
| 3217 | if (!dev->disconnected) |
| 3218 | em28xx_release_resources(dev); |
| 3219 | |
| 3220 | kfree(dev->alt_max_pkt_size_isoc); |
| 3221 | kfree(dev); |
| 3222 | } |
| 3223 | EXPORT_SYMBOL_GPL(em28xx_free_device); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3224 | |
| 3225 | /* |
| 3226 | * em28xx_init_dev() |
| 3227 | * allocates and inits the device structs, registers i2c bus and v4l device |
| 3228 | */ |
Thomas Petazzoni | 622c2fc | 2012-01-07 10:18:45 -0300 | [diff] [blame] | 3229 | static int em28xx_init_dev(struct em28xx *dev, struct usb_device *udev, |
Mauro Carvalho Chehab | 36fa674 | 2009-04-05 08:02:15 -0300 | [diff] [blame] | 3230 | struct usb_interface *interface, |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3231 | int minor) |
| 3232 | { |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3233 | int retval; |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3234 | static const char *default_chip_name = "em28xx"; |
| 3235 | const char *chip_name = default_chip_name; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3236 | |
| 3237 | dev->udev = udev; |
| 3238 | mutex_init(&dev->ctrl_urb_lock); |
| 3239 | spin_lock_init(&dev->slock); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3240 | |
| 3241 | dev->em28xx_write_regs = em28xx_write_regs; |
| 3242 | dev->em28xx_read_reg = em28xx_read_reg; |
| 3243 | dev->em28xx_read_reg_req_len = em28xx_read_reg_req_len; |
| 3244 | dev->em28xx_write_regs_req = em28xx_write_regs_req; |
| 3245 | dev->em28xx_read_reg_req = em28xx_read_reg_req; |
| 3246 | dev->board.is_em2800 = em28xx_boards[dev->model].is_em2800; |
| 3247 | |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3248 | em28xx_set_model(dev); |
| 3249 | |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3250 | dev->wait_after_write = 5; |
| 3251 | |
| 3252 | /* Based on the Chip ID, set the device configuration */ |
| 3253 | retval = em28xx_read_reg(dev, EM28XX_R0A_CHIPID); |
| 3254 | if (retval > 0) { |
| 3255 | dev->chip_id = retval; |
| 3256 | |
| 3257 | switch (dev->chip_id) { |
Mauro Carvalho Chehab | f57b17c3 | 2009-11-12 11:21:05 -0300 | [diff] [blame] | 3258 | case CHIP_ID_EM2800: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3259 | chip_name = "em2800"; |
Mauro Carvalho Chehab | f57b17c3 | 2009-11-12 11:21:05 -0300 | [diff] [blame] | 3260 | break; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3261 | case CHIP_ID_EM2710: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3262 | chip_name = "em2710"; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3263 | break; |
| 3264 | case CHIP_ID_EM2750: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3265 | chip_name = "em2750"; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3266 | break; |
Frank Schaefer | 736a320 | 2013-03-26 13:38:37 -0300 | [diff] [blame] | 3267 | case CHIP_ID_EM2765: |
| 3268 | chip_name = "em2765"; |
| 3269 | dev->wait_after_write = 0; |
| 3270 | dev->is_em25xx = 1; |
| 3271 | dev->eeprom_addrwidth_16bit = 1; |
| 3272 | break; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3273 | case CHIP_ID_EM2820: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3274 | chip_name = "em2710/2820"; |
Frank Schaefer | 1552fb3 | 2013-04-19 17:09:46 -0300 | [diff] [blame] | 3275 | if (le16_to_cpu(dev->udev->descriptor.idVendor) |
| 3276 | == 0xeb1a) { |
Frank Schaefer | 61ff5d6 | 2013-04-11 15:56:47 -0300 | [diff] [blame] | 3277 | __le16 idProd = dev->udev->descriptor.idProduct; |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 3278 | |
Frank Schaefer | 61ff5d6 | 2013-04-11 15:56:47 -0300 | [diff] [blame] | 3279 | if (le16_to_cpu(idProd) == 0x2710) |
| 3280 | chip_name = "em2710"; |
| 3281 | else if (le16_to_cpu(idProd) == 0x2820) |
| 3282 | chip_name = "em2820"; |
| 3283 | } |
| 3284 | /* NOTE: the em2820 is used in webcams, too ! */ |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3285 | break; |
| 3286 | case CHIP_ID_EM2840: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3287 | chip_name = "em2840"; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3288 | break; |
| 3289 | case CHIP_ID_EM2860: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3290 | chip_name = "em2860"; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3291 | break; |
| 3292 | case CHIP_ID_EM2870: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3293 | chip_name = "em2870"; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3294 | dev->wait_after_write = 0; |
| 3295 | break; |
| 3296 | case CHIP_ID_EM2874: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3297 | chip_name = "em2874"; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3298 | dev->wait_after_write = 0; |
Frank Schaefer | 87b5243 | 2013-03-03 15:37:40 -0300 | [diff] [blame] | 3299 | dev->eeprom_addrwidth_16bit = 1; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3300 | break; |
Antti Palosaari | bc02269 | 2011-04-07 16:04:48 -0300 | [diff] [blame] | 3301 | case CHIP_ID_EM28174: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3302 | chip_name = "em28174"; |
Antti Palosaari | bc02269 | 2011-04-07 16:04:48 -0300 | [diff] [blame] | 3303 | dev->wait_after_write = 0; |
Frank Schaefer | 87b5243 | 2013-03-03 15:37:40 -0300 | [diff] [blame] | 3304 | dev->eeprom_addrwidth_16bit = 1; |
Antti Palosaari | bc02269 | 2011-04-07 16:04:48 -0300 | [diff] [blame] | 3305 | break; |
Antti Palosaari | 9f1d0bd | 2013-02-25 08:19:04 -0300 | [diff] [blame] | 3306 | case CHIP_ID_EM28178: |
| 3307 | chip_name = "em28178"; |
| 3308 | dev->wait_after_write = 0; |
| 3309 | dev->eeprom_addrwidth_16bit = 1; |
| 3310 | break; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3311 | case CHIP_ID_EM2883: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3312 | chip_name = "em2882/3"; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3313 | dev->wait_after_write = 0; |
| 3314 | break; |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 3315 | case CHIP_ID_EM2884: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3316 | chip_name = "em2884"; |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 3317 | dev->wait_after_write = 0; |
Frank Schaefer | 87b5243 | 2013-03-03 15:37:40 -0300 | [diff] [blame] | 3318 | dev->eeprom_addrwidth_16bit = 1; |
Mauro Carvalho Chehab | fec528b | 2011-07-03 21:05:06 -0300 | [diff] [blame] | 3319 | break; |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3320 | default: |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3321 | printk(KERN_INFO DRIVER_NAME |
| 3322 | ": unknown em28xx chip ID (%d)\n", dev->chip_id); |
Mauro Carvalho Chehab | fcd20e3 | 2009-08-10 02:57:57 -0300 | [diff] [blame] | 3323 | } |
| 3324 | } |
| 3325 | |
Mauro Carvalho Chehab | a3efa1c | 2012-12-23 16:32:03 -0200 | [diff] [blame] | 3326 | if (chip_name != default_chip_name) |
| 3327 | printk(KERN_INFO DRIVER_NAME |
| 3328 | ": chip ID is %s\n", chip_name); |
| 3329 | |
| 3330 | /* |
| 3331 | * For em2820/em2710, the name may change latter, after checking |
| 3332 | * if the device has a sensor (so, it is em2710) or not. |
| 3333 | */ |
| 3334 | snprintf(dev->name, sizeof(dev->name), "%s #%d", chip_name, dev->devno); |
| 3335 | |
Mauro Carvalho Chehab | 37ecc7b | 2016-01-27 07:07:24 -0200 | [diff] [blame] | 3336 | em28xx_media_device_init(dev, udev); |
| 3337 | |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3338 | if (dev->is_audio_only) { |
Chris Rankin | 6c03e38 | 2011-08-20 08:28:17 -0300 | [diff] [blame] | 3339 | retval = em28xx_audio_setup(dev); |
| 3340 | if (retval) |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3341 | return -ENODEV; |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3342 | em28xx_init_extension(dev); |
| 3343 | |
| 3344 | return 0; |
| 3345 | } |
| 3346 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3347 | em28xx_pre_card_setup(dev); |
| 3348 | |
| 3349 | if (!dev->board.is_em2800) { |
Mauro Carvalho Chehab | ca3dfd6 | 2010-09-10 17:29:14 -0300 | [diff] [blame] | 3350 | /* Resets I2C speed */ |
Sascha Sommer | 0903bb5 | 2012-01-08 16:19:30 -0300 | [diff] [blame] | 3351 | retval = em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, dev->board.i2c_speed); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3352 | if (retval < 0) { |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3353 | pr_err("%s: em28xx_write_reg failed! retval [%d]\n", |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3354 | __func__, retval); |
| 3355 | return retval; |
| 3356 | } |
| 3357 | } |
| 3358 | |
Mauro Carvalho Chehab | aab3125 | 2013-03-05 06:55:28 -0300 | [diff] [blame] | 3359 | rt_mutex_init(&dev->i2c_bus_lock); |
| 3360 | |
| 3361 | /* register i2c bus 0 */ |
Frank Schaefer | a3ea4bf | 2013-03-26 13:38:36 -0300 | [diff] [blame] | 3362 | if (dev->board.is_em2800) |
| 3363 | retval = em28xx_i2c_register(dev, 0, EM28XX_I2C_ALGO_EM2800); |
| 3364 | else |
| 3365 | retval = em28xx_i2c_register(dev, 0, EM28XX_I2C_ALGO_EM28XX); |
Chris Rankin | 6c03e38 | 2011-08-20 08:28:17 -0300 | [diff] [blame] | 3366 | if (retval < 0) { |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3367 | pr_err("%s: em28xx_i2c_register bus 0 - error [%d]!\n", |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 3368 | __func__, retval); |
Mauro Carvalho Chehab | b64f8e9 | 2013-12-22 13:16:49 -0300 | [diff] [blame] | 3369 | return retval; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3370 | } |
| 3371 | |
Frank Schaefer | a3ea4bf | 2013-03-26 13:38:36 -0300 | [diff] [blame] | 3372 | /* register i2c bus 1 */ |
Mauro Carvalho Chehab | aab3125 | 2013-03-05 06:55:28 -0300 | [diff] [blame] | 3373 | if (dev->def_i2c_bus) { |
Frank Schaefer | 736a320 | 2013-03-26 13:38:37 -0300 | [diff] [blame] | 3374 | if (dev->is_em25xx) |
| 3375 | retval = em28xx_i2c_register(dev, 1, |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 3376 | EM28XX_I2C_ALGO_EM25XX_BUS_B); |
Frank Schaefer | 736a320 | 2013-03-26 13:38:37 -0300 | [diff] [blame] | 3377 | else |
| 3378 | retval = em28xx_i2c_register(dev, 1, |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 3379 | EM28XX_I2C_ALGO_EM28XX); |
Mauro Carvalho Chehab | aab3125 | 2013-03-05 06:55:28 -0300 | [diff] [blame] | 3380 | if (retval < 0) { |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3381 | pr_err("%s: em28xx_i2c_register bus 1 - error [%d]!\n", |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 3382 | __func__, retval); |
Mauro Carvalho Chehab | 1f0ee65 | 2014-01-05 08:43:40 -0300 | [diff] [blame] | 3383 | |
| 3384 | em28xx_i2c_unregister(dev, 0); |
| 3385 | |
Mauro Carvalho Chehab | b64f8e9 | 2013-12-22 13:16:49 -0300 | [diff] [blame] | 3386 | return retval; |
Mauro Carvalho Chehab | aab3125 | 2013-03-05 06:55:28 -0300 | [diff] [blame] | 3387 | } |
| 3388 | } |
| 3389 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3390 | /* Do board specific init and eeprom reading */ |
| 3391 | em28xx_card_setup(dev); |
| 3392 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3393 | return 0; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3394 | } |
| 3395 | |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3396 | /* high bandwidth multiplier, as encoded in highspeed endpoint descriptors */ |
| 3397 | #define hb_mult(wMaxPacketSize) (1 + (((wMaxPacketSize) >> 11) & 0x03)) |
| 3398 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3399 | /* |
| 3400 | * em28xx_usb_probe() |
| 3401 | * checks for supported devices |
| 3402 | */ |
| 3403 | static int em28xx_usb_probe(struct usb_interface *interface, |
| 3404 | const struct usb_device_id *id) |
| 3405 | { |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3406 | struct usb_device *udev; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3407 | struct em28xx *dev = NULL; |
Douglas Schilling Landgraf | f2cf250 | 2009-03-31 17:10:58 -0300 | [diff] [blame] | 3408 | int retval; |
Frank Schaefer | c587420 | 2014-09-13 05:52:20 -0300 | [diff] [blame] | 3409 | bool has_vendor_audio = false, has_video = false, has_dvb = false; |
Mauro Carvalho Chehab | 8b2aea7 | 2012-12-23 13:25:38 -0200 | [diff] [blame] | 3410 | int i, nr, try_bulk; |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3411 | const int ifnum = interface->altsetting[0].desc.bInterfaceNumber; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3412 | char *speed; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3413 | |
| 3414 | udev = usb_get_dev(interface_to_usbdev(interface)); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3415 | |
| 3416 | /* Check to see next free device and mark as used */ |
Chris Rankin | 38b61eb | 2011-08-20 08:21:03 -0300 | [diff] [blame] | 3417 | do { |
Mauro Carvalho Chehab | c3aed26 | 2014-01-14 17:35:15 -0300 | [diff] [blame] | 3418 | nr = find_first_zero_bit(em28xx_devused, EM28XX_MAXBOARDS); |
Chris Rankin | 38b61eb | 2011-08-20 08:21:03 -0300 | [diff] [blame] | 3419 | if (nr >= EM28XX_MAXBOARDS) { |
| 3420 | /* No free device slots */ |
Mauro Carvalho Chehab | 5ccb197 | 2016-10-12 07:05:48 -0300 | [diff] [blame] | 3421 | printk(DRIVER_NAME |
| 3422 | ": Supports only %i em28xx boards.\n", |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 3423 | EM28XX_MAXBOARDS); |
Chris Rankin | 38b61eb | 2011-08-20 08:21:03 -0300 | [diff] [blame] | 3424 | retval = -ENOMEM; |
| 3425 | goto err_no_slot; |
| 3426 | } |
Mauro Carvalho Chehab | c3aed26 | 2014-01-14 17:35:15 -0300 | [diff] [blame] | 3427 | } while (test_and_set_bit(nr, em28xx_devused)); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3428 | |
| 3429 | /* Don't register audio interfaces */ |
| 3430 | if (interface->altsetting[0].desc.bInterfaceClass == USB_CLASS_AUDIO) { |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3431 | pr_err(DRIVER_NAME |
Mauro Carvalho Chehab | 5ccb197 | 2016-10-12 07:05:48 -0300 | [diff] [blame] | 3432 | " audio device (%04x:%04x): interface %i, class %i\n", |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3433 | le16_to_cpu(udev->descriptor.idVendor), |
| 3434 | le16_to_cpu(udev->descriptor.idProduct), |
| 3435 | ifnum, |
| 3436 | interface->altsetting[0].desc.bInterfaceClass); |
| 3437 | |
Douglas Schilling Landgraf | f2cf250 | 2009-03-31 17:10:58 -0300 | [diff] [blame] | 3438 | retval = -ENODEV; |
| 3439 | goto err; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3440 | } |
| 3441 | |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3442 | /* allocate memory for our device state and initialize it */ |
| 3443 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
| 3444 | if (dev == NULL) { |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3445 | retval = -ENOMEM; |
| 3446 | goto err; |
| 3447 | } |
| 3448 | |
| 3449 | /* compute alternate max packet sizes */ |
Frank Schaefer | 0cf544a | 2012-11-08 14:11:49 -0300 | [diff] [blame] | 3450 | dev->alt_max_pkt_size_isoc = |
| 3451 | kmalloc(sizeof(dev->alt_max_pkt_size_isoc[0]) * |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3452 | interface->num_altsetting, GFP_KERNEL); |
Frank Schaefer | 0cf544a | 2012-11-08 14:11:49 -0300 | [diff] [blame] | 3453 | if (dev->alt_max_pkt_size_isoc == NULL) { |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3454 | kfree(dev); |
| 3455 | retval = -ENOMEM; |
| 3456 | goto err; |
| 3457 | } |
| 3458 | |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3459 | /* Get endpoints */ |
| 3460 | for (i = 0; i < interface->num_altsetting; i++) { |
| 3461 | int ep; |
| 3462 | |
| 3463 | for (ep = 0; ep < interface->altsetting[i].desc.bNumEndpoints; ep++) { |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3464 | const struct usb_endpoint_descriptor *e; |
| 3465 | int sizedescr, size; |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3466 | |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3467 | e = &interface->altsetting[i].endpoint[ep].desc; |
| 3468 | |
| 3469 | sizedescr = le16_to_cpu(e->wMaxPacketSize); |
| 3470 | size = sizedescr & 0x7ff; |
| 3471 | |
| 3472 | if (udev->speed == USB_SPEED_HIGH) |
| 3473 | size = size * hb_mult(sizedescr); |
| 3474 | |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3475 | if (usb_endpoint_dir_in(e)) { |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3476 | switch (e->bEndpointAddress) { |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3477 | case 0x82: |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3478 | has_video = true; |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3479 | if (usb_endpoint_xfer_isoc(e)) { |
| 3480 | dev->analog_ep_isoc = |
| 3481 | e->bEndpointAddress; |
| 3482 | dev->alt_max_pkt_size_isoc[i] = size; |
| 3483 | } else if (usb_endpoint_xfer_bulk(e)) { |
| 3484 | dev->analog_ep_bulk = |
| 3485 | e->bEndpointAddress; |
| 3486 | } |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3487 | break; |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3488 | case 0x83: |
| 3489 | if (usb_endpoint_xfer_isoc(e)) { |
Frank Schaefer | c587420 | 2014-09-13 05:52:20 -0300 | [diff] [blame] | 3490 | has_vendor_audio = true; |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3491 | } else { |
| 3492 | printk(KERN_INFO DRIVER_NAME |
Mauro Carvalho Chehab | 5ccb197 | 2016-10-12 07:05:48 -0300 | [diff] [blame] | 3493 | ": error: skipping audio endpoint 0x83, because it uses bulk transfers !\n"); |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3494 | } |
| 3495 | break; |
| 3496 | case 0x84: |
| 3497 | if (has_video && |
| 3498 | (usb_endpoint_xfer_bulk(e))) { |
| 3499 | dev->analog_ep_bulk = |
| 3500 | e->bEndpointAddress; |
| 3501 | } else { |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3502 | if (usb_endpoint_xfer_isoc(e)) { |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3503 | if (size > dev->dvb_max_pkt_size_isoc) { |
Frank Schaefer | 72cc9ba | 2013-03-27 16:07:41 -0300 | [diff] [blame] | 3504 | has_dvb = true; /* see NOTE (~) */ |
Frank Schaefer | b3404a8 | 2013-04-08 13:06:59 -0300 | [diff] [blame] | 3505 | dev->dvb_ep_isoc = e->bEndpointAddress; |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3506 | dev->dvb_max_pkt_size_isoc = size; |
| 3507 | dev->dvb_alt_isoc = i; |
| 3508 | } |
| 3509 | } else { |
Frank Schaefer | 72cc9ba | 2013-03-27 16:07:41 -0300 | [diff] [blame] | 3510 | has_dvb = true; |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3511 | dev->dvb_ep_bulk = e->bEndpointAddress; |
| 3512 | } |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3513 | } |
| 3514 | break; |
| 3515 | } |
| 3516 | } |
Frank Schaefer | c647a91 | 2012-11-08 14:11:52 -0300 | [diff] [blame] | 3517 | /* NOTE: |
| 3518 | * Old logic with support for isoc transfers only was: |
| 3519 | * 0x82 isoc => analog |
| 3520 | * 0x83 isoc => audio |
| 3521 | * 0x84 isoc => digital |
| 3522 | * |
| 3523 | * New logic with support for bulk transfers |
| 3524 | * 0x82 isoc => analog |
| 3525 | * 0x82 bulk => analog |
| 3526 | * 0x83 isoc* => audio |
| 3527 | * 0x84 isoc => digital |
| 3528 | * 0x84 bulk => analog or digital** |
| 3529 | * (*: audio should always be isoc) |
| 3530 | * (**: analog, if ep 0x82 is isoc, otherwise digital) |
| 3531 | * |
| 3532 | * The new logic preserves backwards compatibility and |
| 3533 | * reflects the endpoint configurations we have seen |
| 3534 | * so far. But there might be devices for which this |
| 3535 | * logic is not sufficient... |
| 3536 | */ |
Frank Schaefer | 72cc9ba | 2013-03-27 16:07:41 -0300 | [diff] [blame] | 3537 | /* |
| 3538 | * NOTE (~): some manufacturers (e.g. Terratec) disable |
| 3539 | * endpoints by setting wMaxPacketSize to 0 bytes for |
| 3540 | * all alt settings. So far, we've seen this for |
| 3541 | * DVB isoc endpoints only. |
| 3542 | */ |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3543 | } |
| 3544 | } |
| 3545 | |
Frank Schaefer | c587420 | 2014-09-13 05:52:20 -0300 | [diff] [blame] | 3546 | if (!(has_vendor_audio || has_video || has_dvb)) { |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3547 | retval = -ENODEV; |
| 3548 | goto err_free; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3549 | } |
| 3550 | |
| 3551 | switch (udev->speed) { |
| 3552 | case USB_SPEED_LOW: |
| 3553 | speed = "1.5"; |
| 3554 | break; |
| 3555 | case USB_SPEED_UNKNOWN: |
| 3556 | case USB_SPEED_FULL: |
| 3557 | speed = "12"; |
| 3558 | break; |
| 3559 | case USB_SPEED_HIGH: |
| 3560 | speed = "480"; |
| 3561 | break; |
| 3562 | default: |
| 3563 | speed = "unknown"; |
| 3564 | } |
| 3565 | |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3566 | printk(KERN_INFO DRIVER_NAME |
Mauro Carvalho Chehab | 5ccb197 | 2016-10-12 07:05:48 -0300 | [diff] [blame] | 3567 | ": New device %s %s @ %s Mbps (%04x:%04x, interface %d, class %d)\n", |
Ezequiel GarcÃa | 401a582 | 2012-03-13 10:27:09 -0300 | [diff] [blame] | 3568 | udev->manufacturer ? udev->manufacturer : "", |
| 3569 | udev->product ? udev->product : "", |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3570 | speed, |
| 3571 | le16_to_cpu(udev->descriptor.idVendor), |
| 3572 | le16_to_cpu(udev->descriptor.idProduct), |
| 3573 | ifnum, |
| 3574 | interface->altsetting->desc.bInterfaceNumber); |
| 3575 | |
Devin Heitmueller | 64a00b4 | 2009-05-27 23:23:37 -0300 | [diff] [blame] | 3576 | /* |
| 3577 | * Make sure we have 480 Mbps of bandwidth, otherwise things like |
| 3578 | * video stream wouldn't likely work, since 12 Mbps is generally |
| 3579 | * not enough even for most Digital TV streams. |
| 3580 | */ |
Devin Heitmueller | e2a1b79 | 2009-05-27 23:44:10 -0300 | [diff] [blame] | 3581 | if (udev->speed != USB_SPEED_HIGH && disable_usb_speed_check == 0) { |
Devin Heitmueller | 64a00b4 | 2009-05-27 23:23:37 -0300 | [diff] [blame] | 3582 | printk(DRIVER_NAME ": Device initialization failed.\n"); |
Mauro Carvalho Chehab | 5ccb197 | 2016-10-12 07:05:48 -0300 | [diff] [blame] | 3583 | printk(DRIVER_NAME ": Device must be connected to a high-speed USB 2.0 port.\n"); |
Devin Heitmueller | 64a00b4 | 2009-05-27 23:23:37 -0300 | [diff] [blame] | 3584 | retval = -ENODEV; |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3585 | goto err_free; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3586 | } |
| 3587 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3588 | dev->devno = nr; |
| 3589 | dev->model = id->driver_info; |
| 3590 | dev->alt = -1; |
Frank Schaefer | c587420 | 2014-09-13 05:52:20 -0300 | [diff] [blame] | 3591 | dev->is_audio_only = has_vendor_audio && !(has_video || has_dvb); |
Mauro Carvalho Chehab | 01c2819 | 2013-12-22 13:27:02 -0300 | [diff] [blame] | 3592 | dev->has_video = has_video; |
Frank Schaefer | 961717b | 2014-01-13 19:02:06 -0300 | [diff] [blame] | 3593 | dev->ifnum = ifnum; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3594 | |
Frank Schaefer | c587420 | 2014-09-13 05:52:20 -0300 | [diff] [blame] | 3595 | if (has_vendor_audio) { |
| 3596 | printk(KERN_INFO DRIVER_NAME ": Audio interface %i found %s\n", |
| 3597 | ifnum, "(Vendor Class)"); |
| 3598 | dev->usb_audio_type = EM28XX_USB_AUDIO_VENDOR; |
| 3599 | } |
| 3600 | /* Checks if audio is provided by a USB Audio Class interface */ |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3601 | for (i = 0; i < udev->config->desc.bNumInterfaces; i++) { |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3602 | struct usb_interface *uif = udev->config->interface[i]; |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 3603 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3604 | if (uif->altsetting[0].desc.bInterfaceClass == USB_CLASS_AUDIO) { |
Frank Schaefer | c587420 | 2014-09-13 05:52:20 -0300 | [diff] [blame] | 3605 | if (has_vendor_audio) |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3606 | pr_err("em28xx: device seems to have vendor AND usb audio class interfaces !\n" |
Frank Schaefer | c587420 | 2014-09-13 05:52:20 -0300 | [diff] [blame] | 3607 | "\t\tThe vendor interface will be ignored. Please contact the developers <linux-media@vger.kernel.org>\n"); |
| 3608 | dev->usb_audio_type = EM28XX_USB_AUDIO_CLASS; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3609 | break; |
| 3610 | } |
| 3611 | } |
| 3612 | |
Mauro Carvalho Chehab | aa51496 | 2012-12-23 13:15:47 -0200 | [diff] [blame] | 3613 | if (has_video) |
| 3614 | printk(KERN_INFO DRIVER_NAME |
| 3615 | ": Video interface %i found:%s%s\n", |
| 3616 | ifnum, |
| 3617 | dev->analog_ep_bulk ? " bulk" : "", |
| 3618 | dev->analog_ep_isoc ? " isoc" : ""); |
| 3619 | if (has_dvb) |
| 3620 | printk(KERN_INFO DRIVER_NAME |
| 3621 | ": DVB interface %i found:%s%s\n", |
| 3622 | ifnum, |
| 3623 | dev->dvb_ep_bulk ? " bulk" : "", |
| 3624 | dev->dvb_ep_isoc ? " isoc" : ""); |
| 3625 | |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3626 | dev->num_alt = interface->num_altsetting; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3627 | |
Mauro Carvalho Chehab | d3e4ea0 | 2012-10-27 16:29:20 -0300 | [diff] [blame] | 3628 | if ((unsigned)card[nr] < em28xx_bcount) |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3629 | dev->model = card[nr]; |
| 3630 | |
Mauro Carvalho Chehab | 4f83e7b | 2011-06-17 15:15:12 -0300 | [diff] [blame] | 3631 | /* save our data pointer in this interface device */ |
| 3632 | usb_set_intfdata(interface, dev); |
| 3633 | |
Mauro Carvalho Chehab | 22580f7 | 2016-01-29 12:53:56 -0200 | [diff] [blame] | 3634 | /* allocate device struct and check if the device is a webcam */ |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3635 | mutex_init(&dev->lock); |
Thomas Petazzoni | 622c2fc | 2012-01-07 10:18:45 -0300 | [diff] [blame] | 3636 | retval = em28xx_init_dev(dev, udev, interface, nr); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3637 | if (retval) { |
Mauro Carvalho Chehab | 01c2819 | 2013-12-22 13:27:02 -0300 | [diff] [blame] | 3638 | goto err_free; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3639 | } |
| 3640 | |
Frank Schaefer | 7e5d74e | 2012-12-26 15:12:37 -0300 | [diff] [blame] | 3641 | if (usb_xfer_mode < 0) { |
Mauro Carvalho Chehab | 8b2aea7 | 2012-12-23 13:25:38 -0200 | [diff] [blame] | 3642 | if (dev->board.is_webcam) |
| 3643 | try_bulk = 1; |
| 3644 | else |
| 3645 | try_bulk = 0; |
| 3646 | } else { |
Frank Schaefer | 7e5d74e | 2012-12-26 15:12:37 -0300 | [diff] [blame] | 3647 | try_bulk = usb_xfer_mode > 0; |
Mauro Carvalho Chehab | 8b2aea7 | 2012-12-23 13:25:38 -0200 | [diff] [blame] | 3648 | } |
| 3649 | |
Mauro Carvalho Chehab | 22580f7 | 2016-01-29 12:53:56 -0200 | [diff] [blame] | 3650 | /* Disable V4L2 if the device doesn't have a decoder */ |
| 3651 | if (has_video && |
| 3652 | dev->board.decoder == EM28XX_NODECODER && !dev->board.is_webcam) { |
| 3653 | printk(DRIVER_NAME |
| 3654 | ": Currently, V4L2 is not supported on this model\n"); |
| 3655 | has_video = false; |
| 3656 | dev->has_video = false; |
| 3657 | } |
| 3658 | |
Mauro Carvalho Chehab | 8b2aea7 | 2012-12-23 13:25:38 -0200 | [diff] [blame] | 3659 | /* Select USB transfer types to use */ |
| 3660 | if (has_video) { |
Frank Schaefer | 5869778 | 2014-03-22 10:00:59 -0300 | [diff] [blame] | 3661 | if (!dev->analog_ep_isoc || (try_bulk && dev->analog_ep_bulk)) |
| 3662 | dev->analog_xfer_bulk = 1; |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3663 | pr_info("analog set to %s mode.\n", |
Frank Schaefer | 5869778 | 2014-03-22 10:00:59 -0300 | [diff] [blame] | 3664 | dev->analog_xfer_bulk ? "bulk" : "isoc"); |
Mauro Carvalho Chehab | 8b2aea7 | 2012-12-23 13:25:38 -0200 | [diff] [blame] | 3665 | } |
Gianluca Gennari | 86d38d1 | 2012-02-13 13:59:22 -0300 | [diff] [blame] | 3666 | if (has_dvb) { |
Frank Schaefer | 5869778 | 2014-03-22 10:00:59 -0300 | [diff] [blame] | 3667 | if (!dev->dvb_ep_isoc || (try_bulk && dev->dvb_ep_bulk)) |
| 3668 | dev->dvb_xfer_bulk = 1; |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3669 | pr_info("dvb set to %s mode.\n", |
Mauro Carvalho Chehab | 8b2aea7 | 2012-12-23 13:25:38 -0200 | [diff] [blame] | 3670 | dev->dvb_xfer_bulk ? "bulk" : "isoc"); |
Gianluca Gennari | 86d38d1 | 2012-02-13 13:59:22 -0300 | [diff] [blame] | 3671 | } |
| 3672 | |
Mauro Carvalho Chehab | 47677e5 | 2014-03-05 11:21:07 -0300 | [diff] [blame] | 3673 | kref_init(&dev->ref); |
| 3674 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3675 | request_modules(dev); |
| 3676 | |
Mauro Carvalho Chehab | 37ecc7b | 2016-01-27 07:07:24 -0200 | [diff] [blame] | 3677 | /* |
| 3678 | * Do it at the end, to reduce dynamic configuration changes during |
| 3679 | * the device init. Yet, as request_modules() can be async, the |
| 3680 | * topology will likely change after the load of the em28xx subdrivers. |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3681 | */ |
Mauro Carvalho Chehab | 37ecc7b | 2016-01-27 07:07:24 -0200 | [diff] [blame] | 3682 | #ifdef CONFIG_MEDIA_CONTROLLER |
| 3683 | retval = media_device_register(dev->media_dev); |
| 3684 | #endif |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3685 | |
| 3686 | return 0; |
Douglas Schilling Landgraf | f2cf250 | 2009-03-31 17:10:58 -0300 | [diff] [blame] | 3687 | |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3688 | err_free: |
Frank Schaefer | 0cf544a | 2012-11-08 14:11:49 -0300 | [diff] [blame] | 3689 | kfree(dev->alt_max_pkt_size_isoc); |
Holger Nelson | 8ab3362 | 2011-12-28 18:55:41 -0300 | [diff] [blame] | 3690 | kfree(dev); |
| 3691 | |
Douglas Schilling Landgraf | f2cf250 | 2009-03-31 17:10:58 -0300 | [diff] [blame] | 3692 | err: |
Mauro Carvalho Chehab | c3aed26 | 2014-01-14 17:35:15 -0300 | [diff] [blame] | 3693 | clear_bit(nr, em28xx_devused); |
Chris Rankin | 38b61eb | 2011-08-20 08:21:03 -0300 | [diff] [blame] | 3694 | |
| 3695 | err_no_slot: |
| 3696 | usb_put_dev(udev); |
Douglas Schilling Landgraf | f2cf250 | 2009-03-31 17:10:58 -0300 | [diff] [blame] | 3697 | return retval; |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3698 | } |
| 3699 | |
| 3700 | /* |
| 3701 | * em28xx_usb_disconnect() |
Chris Rankin | d7222e7 | 2011-09-24 11:02:32 -0300 | [diff] [blame] | 3702 | * called when the device gets disconnected |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3703 | * video device will be unregistered on v4l2_close in case it is still open |
| 3704 | */ |
| 3705 | static void em28xx_usb_disconnect(struct usb_interface *interface) |
| 3706 | { |
| 3707 | struct em28xx *dev; |
| 3708 | |
| 3709 | dev = usb_get_intfdata(interface); |
| 3710 | usb_set_intfdata(interface, NULL); |
| 3711 | |
| 3712 | if (!dev) |
| 3713 | return; |
| 3714 | |
Frank Schaefer | 05fe217 | 2012-12-27 19:02:44 -0300 | [diff] [blame] | 3715 | dev->disconnected = 1; |
| 3716 | |
Mauro Carvalho Chehab | 8314d40 | 2016-10-12 07:26:47 -0300 | [diff] [blame^] | 3717 | pr_info("Disconnecting %s\n", dev->name); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3718 | |
Tejun Heo | 707bcf3 | 2010-12-24 16:14:20 +0100 | [diff] [blame] | 3719 | flush_request_modules(dev); |
| 3720 | |
Frank Schaefer | 05fe217 | 2012-12-27 19:02:44 -0300 | [diff] [blame] | 3721 | em28xx_close_extension(dev); |
Mauro Carvalho Chehab | 54a2a84 | 2013-12-27 13:01:04 -0300 | [diff] [blame] | 3722 | |
Frank Schaefer | 5a620c7 | 2014-01-12 13:24:24 -0300 | [diff] [blame] | 3723 | em28xx_release_resources(dev); |
Mauro Carvalho Chehab | 47677e5 | 2014-03-05 11:21:07 -0300 | [diff] [blame] | 3724 | kref_put(&dev->ref, em28xx_free_device); |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3725 | } |
| 3726 | |
Shuah Khan | cd701c8 | 2014-02-21 21:50:18 -0300 | [diff] [blame] | 3727 | static int em28xx_usb_suspend(struct usb_interface *interface, |
Mauro Carvalho Chehab | fdf1bc9 | 2014-11-28 08:34:15 -0300 | [diff] [blame] | 3728 | pm_message_t message) |
Shuah Khan | cd701c8 | 2014-02-21 21:50:18 -0300 | [diff] [blame] | 3729 | { |
| 3730 | struct em28xx *dev; |
| 3731 | |
| 3732 | dev = usb_get_intfdata(interface); |
| 3733 | if (!dev) |
| 3734 | return 0; |
| 3735 | em28xx_suspend_extension(dev); |
| 3736 | return 0; |
| 3737 | } |
| 3738 | |
| 3739 | static int em28xx_usb_resume(struct usb_interface *interface) |
| 3740 | { |
| 3741 | struct em28xx *dev; |
| 3742 | |
| 3743 | dev = usb_get_intfdata(interface); |
| 3744 | if (!dev) |
| 3745 | return 0; |
| 3746 | em28xx_resume_extension(dev); |
| 3747 | return 0; |
| 3748 | } |
| 3749 | |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3750 | static struct usb_driver em28xx_usb_driver = { |
| 3751 | .name = "em28xx", |
| 3752 | .probe = em28xx_usb_probe, |
| 3753 | .disconnect = em28xx_usb_disconnect, |
Shuah Khan | cd701c8 | 2014-02-21 21:50:18 -0300 | [diff] [blame] | 3754 | .suspend = em28xx_usb_suspend, |
| 3755 | .resume = em28xx_usb_resume, |
Mauro Carvalho Chehab | 214635f | 2014-09-26 06:53:15 -0300 | [diff] [blame] | 3756 | .reset_resume = em28xx_usb_resume, |
Mauro Carvalho Chehab | 1a23f81 | 2008-12-28 22:18:14 -0300 | [diff] [blame] | 3757 | .id_table = em28xx_id_table, |
| 3758 | }; |
| 3759 | |
Greg Kroah-Hartman | ecb3b2b | 2011-11-18 09:46:12 -0800 | [diff] [blame] | 3760 | module_usb_driver(em28xx_usb_driver); |