em28xx-cards.c (740c699a8d316c8bf8593f19e2ca47795e690622) em28xx-cards.c (192292403147877c7d5f737a3cc751ded397aef7)
1/*
2 em28xx-cards.c - driver for Empia EM2800/EM2820/2840 USB
3 video capture devices
4
5 Copyright (C) 2005 Ludovico Cavedon <cavedon@sssup.it>
6 Markus Rechberger <mrechberger@gmail.com>
7 Mauro Carvalho Chehab <mchehab@infradead.org>
8 Sascha Sommer <saschasommer@freenet.de>

--- 453 unchanged lines hidden (view full) ---

462 * GPIO_7: snapshot button, 0=pressed, 1=unpressed
463 */
464static struct em28xx_reg_seq speedlink_vad_laplace_reg_seq[] = {
465 {EM2820_R08_GPIO_CTRL, 0xf7, 0xff, 10},
466 {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xb2, 10},
467 { -1, -1, -1, -1},
468};
469
1/*
2 em28xx-cards.c - driver for Empia EM2800/EM2820/2840 USB
3 video capture devices
4
5 Copyright (C) 2005 Ludovico Cavedon <cavedon@sssup.it>
6 Markus Rechberger <mrechberger@gmail.com>
7 Mauro Carvalho Chehab <mchehab@infradead.org>
8 Sascha Sommer <saschasommer@freenet.de>

--- 453 unchanged lines hidden (view full) ---

462 * GPIO_7: snapshot button, 0=pressed, 1=unpressed
463 */
464static struct em28xx_reg_seq speedlink_vad_laplace_reg_seq[] = {
465 {EM2820_R08_GPIO_CTRL, 0xf7, 0xff, 10},
466 {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xb2, 10},
467 { -1, -1, -1, -1},
468};
469
470static struct em28xx_reg_seq pctv_292e[] = {
471 {EM2874_R80_GPIO_P0_CTRL, 0xff, 0xff, 0},
472 {0x0d, 0xff, 0xff, 950},
473 {EM2874_R80_GPIO_P0_CTRL, 0xbd, 0xff, 100},
474 {EM2874_R80_GPIO_P0_CTRL, 0xfd, 0xff, 410},
475 {EM2874_R80_GPIO_P0_CTRL, 0x7d, 0xff, 300},
476 {EM2874_R80_GPIO_P0_CTRL, 0x7c, 0xff, 60},
477 {0x0d, 0x42, 0xff, 50},
478 {EM2874_R5F_TS_ENABLE, 0x85, 0xff, 0},
479 {-1, -1, -1, -1},
480};
481
470/*
471 * Button definitions
472 */
473static struct em28xx_button std_snapshot_button[] = {
474 {
475 .role = EM28XX_BUTTON_SNAPSHOT,
476 .reg_r = EM28XX_R0C_USBSUSP,
477 .reg_clearing = EM28XX_R0C_USBSUSP,

--- 1737 unchanged lines hidden (view full) ---

2215 .def_i2c_bus = 1,
2216 .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_FREQ_400_KHZ,
2217 .name = "PCTV DVB-S2 Stick (461e)",
2218 .tuner_type = TUNER_ABSENT,
2219 .tuner_gpio = pctv_461e,
2220 .has_dvb = 1,
2221 .ir_codes = RC_MAP_PINNACLE_PCTV_HD,
2222 },
482/*
483 * Button definitions
484 */
485static struct em28xx_button std_snapshot_button[] = {
486 {
487 .role = EM28XX_BUTTON_SNAPSHOT,
488 .reg_r = EM28XX_R0C_USBSUSP,
489 .reg_clearing = EM28XX_R0C_USBSUSP,

--- 1737 unchanged lines hidden (view full) ---

2227 .def_i2c_bus = 1,
2228 .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_FREQ_400_KHZ,
2229 .name = "PCTV DVB-S2 Stick (461e)",
2230 .tuner_type = TUNER_ABSENT,
2231 .tuner_gpio = pctv_461e,
2232 .has_dvb = 1,
2233 .ir_codes = RC_MAP_PINNACLE_PCTV_HD,
2234 },
2235 /* 2013:025f PCTV tripleStick (292e).
2236 * Empia EM28178, Silicon Labs Si2168, Silicon Labs Si2157 */
2237 [EM28178_BOARD_PCTV_292E] = {
2238 .name = "PCTV tripleStick (292e)",
2239 .def_i2c_bus = 1,
2240 .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_FREQ_400_KHZ,
2241 .tuner_type = TUNER_ABSENT,
2242 .tuner_gpio = pctv_292e,
2243 .has_dvb = 1,
2244 .ir_codes = RC_MAP_PINNACLE_PCTV_HD,
2245 },
2223};
2224EXPORT_SYMBOL_GPL(em28xx_boards);
2225
2226const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards);
2227
2228/* table of devices that work with this driver */
2229struct usb_device_id em28xx_id_table[] = {
2230 { USB_DEVICE(0xeb1a, 0x2750),

--- 161 unchanged lines hidden (view full) ---

2392 { USB_DEVICE(0x1b80, 0xe1cc),
2393 .driver_info = EM2874_BOARD_DELOCK_61959 },
2394 { USB_DEVICE(0x1ae7, 0x9003),
2395 .driver_info = EM2765_BOARD_SPEEDLINK_VAD_LAPLACE },
2396 { USB_DEVICE(0x1ae7, 0x9004),
2397 .driver_info = EM2765_BOARD_SPEEDLINK_VAD_LAPLACE },
2398 { USB_DEVICE(0x2013, 0x0258),
2399 .driver_info = EM28178_BOARD_PCTV_461E },
2246};
2247EXPORT_SYMBOL_GPL(em28xx_boards);
2248
2249const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards);
2250
2251/* table of devices that work with this driver */
2252struct usb_device_id em28xx_id_table[] = {
2253 { USB_DEVICE(0xeb1a, 0x2750),

--- 161 unchanged lines hidden (view full) ---

2415 { USB_DEVICE(0x1b80, 0xe1cc),
2416 .driver_info = EM2874_BOARD_DELOCK_61959 },
2417 { USB_DEVICE(0x1ae7, 0x9003),
2418 .driver_info = EM2765_BOARD_SPEEDLINK_VAD_LAPLACE },
2419 { USB_DEVICE(0x1ae7, 0x9004),
2420 .driver_info = EM2765_BOARD_SPEEDLINK_VAD_LAPLACE },
2421 { USB_DEVICE(0x2013, 0x0258),
2422 .driver_info = EM28178_BOARD_PCTV_461E },
2423 { USB_DEVICE(0x2013, 0x025f),
2424 .driver_info = EM28178_BOARD_PCTV_292E },
2400 { },
2401};
2402MODULE_DEVICE_TABLE(usb, em28xx_id_table);
2403
2404/*
2405 * EEPROM hash table for devices with generic USB IDs
2406 */
2407static struct em28xx_hash_table em28xx_eeprom_hash[] = {

--- 1107 unchanged lines hidden ---
2425 { },
2426};
2427MODULE_DEVICE_TABLE(usb, em28xx_id_table);
2428
2429/*
2430 * EEPROM hash table for devices with generic USB IDs
2431 */
2432static struct em28xx_hash_table em28xx_eeprom_hash[] = {

--- 1107 unchanged lines hidden ---