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