18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci Functions to query card hardware 48c2ecf20Sopenharmony_ci Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> 58c2ecf20Sopenharmony_ci Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include "ivtv-driver.h" 108c2ecf20Sopenharmony_ci#include "ivtv-cards.h" 118c2ecf20Sopenharmony_ci#include "ivtv-i2c.h" 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include <media/drv-intf/msp3400.h> 148c2ecf20Sopenharmony_ci#include <media/i2c/m52790.h> 158c2ecf20Sopenharmony_ci#include <media/i2c/wm8775.h> 168c2ecf20Sopenharmony_ci#include <media/i2c/cs53l32a.h> 178c2ecf20Sopenharmony_ci#include <media/drv-intf/cx25840.h> 188c2ecf20Sopenharmony_ci#include <media/i2c/upd64031a.h> 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define MSP_TUNER MSP_INPUT(MSP_IN_SCART1, MSP_IN_TUNER1, \ 218c2ecf20Sopenharmony_ci MSP_DSP_IN_TUNER, MSP_DSP_IN_TUNER) 228c2ecf20Sopenharmony_ci#define MSP_SCART1 MSP_INPUT(MSP_IN_SCART1, MSP_IN_TUNER1, \ 238c2ecf20Sopenharmony_ci MSP_DSP_IN_SCART, MSP_DSP_IN_SCART) 248c2ecf20Sopenharmony_ci#define MSP_SCART2 MSP_INPUT(MSP_IN_SCART2, MSP_IN_TUNER1, \ 258c2ecf20Sopenharmony_ci MSP_DSP_IN_SCART, MSP_DSP_IN_SCART) 268c2ecf20Sopenharmony_ci#define MSP_SCART3 MSP_INPUT(MSP_IN_SCART3, MSP_IN_TUNER1, \ 278c2ecf20Sopenharmony_ci MSP_DSP_IN_SCART, MSP_DSP_IN_SCART) 288c2ecf20Sopenharmony_ci#define MSP_MONO MSP_INPUT(MSP_IN_MONO, MSP_IN_TUNER1, \ 298c2ecf20Sopenharmony_ci MSP_DSP_IN_SCART, MSP_DSP_IN_SCART) 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define V4L2_STD_PAL_SECAM (V4L2_STD_PAL|V4L2_STD_SECAM) 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci/* usual i2c tuner addresses to probe */ 348c2ecf20Sopenharmony_cistatic struct ivtv_card_tuner_i2c ivtv_i2c_std = { 358c2ecf20Sopenharmony_ci .radio = { I2C_CLIENT_END }, 368c2ecf20Sopenharmony_ci .demod = { 0x43, I2C_CLIENT_END }, 378c2ecf20Sopenharmony_ci .tv = { 0x61, 0x60, I2C_CLIENT_END }, 388c2ecf20Sopenharmony_ci}; 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci/* as above, but with possible radio tuner */ 418c2ecf20Sopenharmony_cistatic struct ivtv_card_tuner_i2c ivtv_i2c_radio = { 428c2ecf20Sopenharmony_ci .radio = { 0x60, I2C_CLIENT_END }, 438c2ecf20Sopenharmony_ci .demod = { 0x43, I2C_CLIENT_END }, 448c2ecf20Sopenharmony_ci .tv = { 0x61, I2C_CLIENT_END }, 458c2ecf20Sopenharmony_ci}; 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci/* using the tda8290+75a combo */ 488c2ecf20Sopenharmony_cistatic struct ivtv_card_tuner_i2c ivtv_i2c_tda8290 = { 498c2ecf20Sopenharmony_ci .radio = { I2C_CLIENT_END }, 508c2ecf20Sopenharmony_ci .demod = { I2C_CLIENT_END }, 518c2ecf20Sopenharmony_ci .tv = { 0x4b, I2C_CLIENT_END }, 528c2ecf20Sopenharmony_ci}; 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci/********************** card configuration *******************************/ 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci/* Please add new PCI IDs to: https://pci-ids.ucw.cz/ 578c2ecf20Sopenharmony_ci This keeps the PCI ID database up to date. Note that the entries 588c2ecf20Sopenharmony_ci must be added under vendor 0x4444 (Conexant) as subsystem IDs. 598c2ecf20Sopenharmony_ci New vendor IDs should still be added to the vendor ID list. */ 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci/* Hauppauge PVR-250 cards */ 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci/* Note: for Hauppauge cards the tveeprom information is used instead of PCI IDs */ 648c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_pvr250 = { 658c2ecf20Sopenharmony_ci .type = IVTV_CARD_PVR_250, 668c2ecf20Sopenharmony_ci .name = "Hauppauge WinTV PVR-250", 678c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 688c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115, 698c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_MSP34XX, 708c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_MSP34XX, 718c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_MSP34XX | IVTV_HW_SAA7115 | 728c2ecf20Sopenharmony_ci IVTV_HW_TVEEPROM | IVTV_HW_TUNER, 738c2ecf20Sopenharmony_ci .video_inputs = { 748c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 }, 758c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 768c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE0 }, 778c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO2, 2, IVTV_SAA71XX_SVIDEO1 }, 788c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE2, 2, IVTV_SAA71XX_COMPOSITE1 }, 798c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE3, 1, IVTV_SAA71XX_COMPOSITE5 }, 808c2ecf20Sopenharmony_ci }, 818c2ecf20Sopenharmony_ci .audio_inputs = { 828c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, MSP_TUNER }, 838c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, MSP_SCART1 }, 848c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN2, MSP_SCART3 }, 858c2ecf20Sopenharmony_ci }, 868c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, MSP_SCART2 }, 878c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 888c2ecf20Sopenharmony_ci}; 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci/* Hauppauge PVR-350 cards */ 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ci/* Outputs for Hauppauge PVR350 cards */ 958c2ecf20Sopenharmony_cistatic struct ivtv_card_output ivtv_pvr350_outputs[] = { 968c2ecf20Sopenharmony_ci { 978c2ecf20Sopenharmony_ci .name = "S-Video + Composite", 988c2ecf20Sopenharmony_ci .video_output = 0, 998c2ecf20Sopenharmony_ci }, { 1008c2ecf20Sopenharmony_ci .name = "Composite", 1018c2ecf20Sopenharmony_ci .video_output = 1, 1028c2ecf20Sopenharmony_ci }, { 1038c2ecf20Sopenharmony_ci .name = "S-Video", 1048c2ecf20Sopenharmony_ci .video_output = 2, 1058c2ecf20Sopenharmony_ci }, { 1068c2ecf20Sopenharmony_ci .name = "RGB", 1078c2ecf20Sopenharmony_ci .video_output = 3, 1088c2ecf20Sopenharmony_ci }, { 1098c2ecf20Sopenharmony_ci .name = "YUV C", 1108c2ecf20Sopenharmony_ci .video_output = 4, 1118c2ecf20Sopenharmony_ci }, { 1128c2ecf20Sopenharmony_ci .name = "YUV V", 1138c2ecf20Sopenharmony_ci .video_output = 5, 1148c2ecf20Sopenharmony_ci } 1158c2ecf20Sopenharmony_ci}; 1168c2ecf20Sopenharmony_ci 1178c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_pvr350 = { 1188c2ecf20Sopenharmony_ci .type = IVTV_CARD_PVR_350, 1198c2ecf20Sopenharmony_ci .name = "Hauppauge WinTV PVR-350", 1208c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER | IVTV_CAP_DECODER, 1218c2ecf20Sopenharmony_ci .video_outputs = ivtv_pvr350_outputs, 1228c2ecf20Sopenharmony_ci .nof_outputs = ARRAY_SIZE(ivtv_pvr350_outputs), 1238c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115, 1248c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_MSP34XX, 1258c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_MSP34XX, 1268c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_MSP34XX | IVTV_HW_SAA7115 | 1278c2ecf20Sopenharmony_ci IVTV_HW_SAA7127 | IVTV_HW_TVEEPROM | IVTV_HW_TUNER | 1288c2ecf20Sopenharmony_ci IVTV_HW_I2C_IR_RX_HAUP_EXT | IVTV_HW_I2C_IR_RX_HAUP_INT, 1298c2ecf20Sopenharmony_ci .video_inputs = { 1308c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 }, 1318c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 1328c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE0 }, 1338c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO2, 2, IVTV_SAA71XX_SVIDEO1 }, 1348c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE2, 2, IVTV_SAA71XX_COMPOSITE1 }, 1358c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE3, 1, IVTV_SAA71XX_COMPOSITE5 }, 1368c2ecf20Sopenharmony_ci }, 1378c2ecf20Sopenharmony_ci .audio_inputs = { 1388c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, MSP_TUNER }, 1398c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, MSP_SCART1 }, 1408c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN2, MSP_SCART3 }, 1418c2ecf20Sopenharmony_ci }, 1428c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, MSP_SCART2 }, 1438c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 1448c2ecf20Sopenharmony_ci}; 1458c2ecf20Sopenharmony_ci 1468c2ecf20Sopenharmony_ci/* PVR-350 V1 boards have a different audio tuner input and use a 1478c2ecf20Sopenharmony_ci saa7114 instead of a saa7115. 1488c2ecf20Sopenharmony_ci Note that the info below comes from a pre-production model so it may 1498c2ecf20Sopenharmony_ci not be correct. Especially the audio behaves strangely (mono only it seems) */ 1508c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_pvr350_v1 = { 1518c2ecf20Sopenharmony_ci .type = IVTV_CARD_PVR_350_V1, 1528c2ecf20Sopenharmony_ci .name = "Hauppauge WinTV PVR-350 (V1)", 1538c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER | IVTV_CAP_DECODER, 1548c2ecf20Sopenharmony_ci .video_outputs = ivtv_pvr350_outputs, 1558c2ecf20Sopenharmony_ci .nof_outputs = ARRAY_SIZE(ivtv_pvr350_outputs), 1568c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7114, 1578c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_MSP34XX, 1588c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_MSP34XX, 1598c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_MSP34XX | IVTV_HW_SAA7114 | 1608c2ecf20Sopenharmony_ci IVTV_HW_SAA7127 | IVTV_HW_TVEEPROM | IVTV_HW_TUNER, 1618c2ecf20Sopenharmony_ci .video_inputs = { 1628c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 }, 1638c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 1648c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE0 }, 1658c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO2, 2, IVTV_SAA71XX_SVIDEO1 }, 1668c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE2, 2, IVTV_SAA71XX_COMPOSITE1 }, 1678c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE3, 1, IVTV_SAA71XX_COMPOSITE5 }, 1688c2ecf20Sopenharmony_ci }, 1698c2ecf20Sopenharmony_ci .audio_inputs = { 1708c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, MSP_MONO }, 1718c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, MSP_SCART1 }, 1728c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN2, MSP_SCART3 }, 1738c2ecf20Sopenharmony_ci }, 1748c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, MSP_SCART2 }, 1758c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 1768c2ecf20Sopenharmony_ci}; 1778c2ecf20Sopenharmony_ci 1788c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 1798c2ecf20Sopenharmony_ci 1808c2ecf20Sopenharmony_ci/* Hauppauge PVR-150/PVR-500 cards */ 1818c2ecf20Sopenharmony_ci 1828c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_pvr150 = { 1838c2ecf20Sopenharmony_ci .type = IVTV_CARD_PVR_150, 1848c2ecf20Sopenharmony_ci .name = "Hauppauge WinTV PVR-150", 1858c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 1868c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 1878c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 1888c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 1898c2ecf20Sopenharmony_ci .hw_muxer = IVTV_HW_WM8775, 1908c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_WM8775 | IVTV_HW_CX25840 | 1918c2ecf20Sopenharmony_ci IVTV_HW_TVEEPROM | IVTV_HW_TUNER | 1928c2ecf20Sopenharmony_ci IVTV_HW_I2C_IR_RX_HAUP_EXT | IVTV_HW_I2C_IR_RX_HAUP_INT | 1938c2ecf20Sopenharmony_ci IVTV_HW_Z8F0811_IR_HAUP, 1948c2ecf20Sopenharmony_ci .video_inputs = { 1958c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE7 }, 1968c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, CX25840_SVIDEO1 }, 1978c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE3 }, 1988c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO2, 2, CX25840_SVIDEO2 }, 1998c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE2, 2, CX25840_COMPOSITE4 }, 2008c2ecf20Sopenharmony_ci }, 2018c2ecf20Sopenharmony_ci .audio_inputs = { 2028c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, 2038c2ecf20Sopenharmony_ci CX25840_AUDIO8, WM8775_AIN2 }, 2048c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, 2058c2ecf20Sopenharmony_ci CX25840_AUDIO_SERIAL, WM8775_AIN2 }, 2068c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN2, 2078c2ecf20Sopenharmony_ci CX25840_AUDIO_SERIAL, WM8775_AIN3 }, 2088c2ecf20Sopenharmony_ci }, 2098c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, 2108c2ecf20Sopenharmony_ci CX25840_AUDIO_SERIAL, WM8775_AIN4 }, 2118c2ecf20Sopenharmony_ci /* apparently needed for the IR blaster */ 2128c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0x1f01, .initial_value = 0x26f3 }, 2138c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 2148c2ecf20Sopenharmony_ci}; 2158c2ecf20Sopenharmony_ci 2168c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ci/* AVerMedia M179 cards */ 2198c2ecf20Sopenharmony_ci 2208c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_m179[] = { 2218c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV15, IVTV_PCI_ID_AVERMEDIA, 0xa3cf }, 2228c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV15, IVTV_PCI_ID_AVERMEDIA, 0xa3ce }, 2238c2ecf20Sopenharmony_ci { 0, 0, 0 } 2248c2ecf20Sopenharmony_ci}; 2258c2ecf20Sopenharmony_ci 2268c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_m179 = { 2278c2ecf20Sopenharmony_ci .type = IVTV_CARD_M179, 2288c2ecf20Sopenharmony_ci .name = "AVerMedia M179", 2298c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 2308c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7114, 2318c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_GPIO, 2328c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_GPIO, 2338c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7114 | IVTV_HW_TUNER, 2348c2ecf20Sopenharmony_ci .video_inputs = { 2358c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 }, 2368c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 2378c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE3 }, 2388c2ecf20Sopenharmony_ci }, 2398c2ecf20Sopenharmony_ci .audio_inputs = { 2408c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, 2418c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, 2428c2ecf20Sopenharmony_ci }, 2438c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xe380, .initial_value = 0x8290 }, 2448c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0x8040, .tuner = 0x8000, .linein = 0x0000 }, 2458c2ecf20Sopenharmony_ci .gpio_audio_mute = { .mask = 0x2000, .mute = 0x2000 }, 2468c2ecf20Sopenharmony_ci .gpio_audio_mode = { .mask = 0x4300, .mono = 0x4000, .stereo = 0x0200, 2478c2ecf20Sopenharmony_ci .lang1 = 0x0200, .lang2 = 0x0100, .both = 0x0000 }, 2488c2ecf20Sopenharmony_ci .gpio_audio_freq = { .mask = 0x0018, .f32000 = 0x0000, 2498c2ecf20Sopenharmony_ci .f44100 = 0x0008, .f48000 = 0x0010 }, 2508c2ecf20Sopenharmony_ci .gpio_audio_detect = { .mask = 0x4000, .stereo = 0x0000 }, 2518c2ecf20Sopenharmony_ci .tuners = { 2528c2ecf20Sopenharmony_ci /* As far as we know all M179 cards use this tuner */ 2538c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_PHILIPS_NTSC }, 2548c2ecf20Sopenharmony_ci }, 2558c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_m179, 2568c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 2578c2ecf20Sopenharmony_ci}; 2588c2ecf20Sopenharmony_ci 2598c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 2608c2ecf20Sopenharmony_ci 2618c2ecf20Sopenharmony_ci/* Yuan MPG600/Kuroutoshikou ITVC16-STVLP cards */ 2628c2ecf20Sopenharmony_ci 2638c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_mpg600[] = { 2648c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_YUAN1, 0xfff3 }, 2658c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_YUAN1, 0xffff }, 2668c2ecf20Sopenharmony_ci { 0, 0, 0 } 2678c2ecf20Sopenharmony_ci}; 2688c2ecf20Sopenharmony_ci 2698c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_mpg600 = { 2708c2ecf20Sopenharmony_ci .type = IVTV_CARD_MPG600, 2718c2ecf20Sopenharmony_ci .name = "Yuan MPG600, Kuroutoshikou ITVC16-STVLP", 2728c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 2738c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115, 2748c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_GPIO, 2758c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_GPIO, 2768c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7115 | IVTV_HW_TUNER, 2778c2ecf20Sopenharmony_ci .video_inputs = { 2788c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 }, 2798c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 2808c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE3 }, 2818c2ecf20Sopenharmony_ci }, 2828c2ecf20Sopenharmony_ci .audio_inputs = { 2838c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, 2848c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, 2858c2ecf20Sopenharmony_ci }, 2868c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0x3080, .initial_value = 0x0004 }, 2878c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0x3000, .tuner = 0x0000, .linein = 0x2000 }, 2888c2ecf20Sopenharmony_ci .gpio_audio_mute = { .mask = 0x0001, .mute = 0x0001 }, 2898c2ecf20Sopenharmony_ci .gpio_audio_mode = { .mask = 0x000e, .mono = 0x0006, .stereo = 0x0004, 2908c2ecf20Sopenharmony_ci .lang1 = 0x0004, .lang2 = 0x0000, .both = 0x0008 }, 2918c2ecf20Sopenharmony_ci .gpio_audio_detect = { .mask = 0x0900, .stereo = 0x0100 }, 2928c2ecf20Sopenharmony_ci .tuners = { 2938c2ecf20Sopenharmony_ci /* The PAL tuner is confirmed */ 2948c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FQ1216ME }, 2958c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_PHILIPS_FQ1286 }, 2968c2ecf20Sopenharmony_ci }, 2978c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_mpg600, 2988c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 2998c2ecf20Sopenharmony_ci}; 3008c2ecf20Sopenharmony_ci 3018c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 3028c2ecf20Sopenharmony_ci 3038c2ecf20Sopenharmony_ci/* Yuan MPG160/Kuroutoshikou ITVC15-STVLP cards */ 3048c2ecf20Sopenharmony_ci 3058c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_mpg160[] = { 3068c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV15, IVTV_PCI_ID_YUAN1, 0 }, 3078c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV15, IVTV_PCI_ID_IODATA, 0x40a0 }, 3088c2ecf20Sopenharmony_ci { 0, 0, 0 } 3098c2ecf20Sopenharmony_ci}; 3108c2ecf20Sopenharmony_ci 3118c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_mpg160 = { 3128c2ecf20Sopenharmony_ci .type = IVTV_CARD_MPG160, 3138c2ecf20Sopenharmony_ci .name = "YUAN MPG160, Kuroutoshikou ITVC15-STVLP, I/O Data GV-M2TV/PCI", 3148c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 3158c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7114, 3168c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_GPIO, 3178c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_GPIO, 3188c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7114 | IVTV_HW_TUNER, 3198c2ecf20Sopenharmony_ci .video_inputs = { 3208c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 }, 3218c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 3228c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE3 }, 3238c2ecf20Sopenharmony_ci }, 3248c2ecf20Sopenharmony_ci .audio_inputs = { 3258c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, 3268c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, 3278c2ecf20Sopenharmony_ci }, 3288c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0x7080, .initial_value = 0x400c }, 3298c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0x3000, .tuner = 0x0000, .linein = 0x2000 }, 3308c2ecf20Sopenharmony_ci .gpio_audio_mute = { .mask = 0x0001, .mute = 0x0001 }, 3318c2ecf20Sopenharmony_ci .gpio_audio_mode = { .mask = 0x000e, .mono = 0x0006, .stereo = 0x0004, 3328c2ecf20Sopenharmony_ci .lang1 = 0x0004, .lang2 = 0x0000, .both = 0x0008 }, 3338c2ecf20Sopenharmony_ci .gpio_audio_detect = { .mask = 0x0900, .stereo = 0x0100 }, 3348c2ecf20Sopenharmony_ci .tuners = { 3358c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FQ1216ME }, 3368c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_PHILIPS_FQ1286 }, 3378c2ecf20Sopenharmony_ci }, 3388c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_mpg160, 3398c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 3408c2ecf20Sopenharmony_ci}; 3418c2ecf20Sopenharmony_ci 3428c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 3438c2ecf20Sopenharmony_ci 3448c2ecf20Sopenharmony_ci/* Yuan PG600/Diamond PVR-550 cards */ 3458c2ecf20Sopenharmony_ci 3468c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_pg600[] = { 3478c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_DIAMONDMM, 0x0070 }, 3488c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_YUAN3, 0x0600 }, 3498c2ecf20Sopenharmony_ci { 0, 0, 0 } 3508c2ecf20Sopenharmony_ci}; 3518c2ecf20Sopenharmony_ci 3528c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_pg600 = { 3538c2ecf20Sopenharmony_ci .type = IVTV_CARD_PG600, 3548c2ecf20Sopenharmony_ci .name = "Yuan PG600, Diamond PVR-550", 3558c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 3568c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 3578c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 3588c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 3598c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER, 3608c2ecf20Sopenharmony_ci .video_inputs = { 3618c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 3628c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, 3638c2ecf20Sopenharmony_ci CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4 }, 3648c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, 3658c2ecf20Sopenharmony_ci }, 3668c2ecf20Sopenharmony_ci .audio_inputs = { 3678c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5 }, 3688c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL }, 3698c2ecf20Sopenharmony_ci }, 3708c2ecf20Sopenharmony_ci .tuners = { 3718c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FQ1216ME }, 3728c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_PHILIPS_FQ1286 }, 3738c2ecf20Sopenharmony_ci }, 3748c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_pg600, 3758c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 3768c2ecf20Sopenharmony_ci}; 3778c2ecf20Sopenharmony_ci 3788c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 3798c2ecf20Sopenharmony_ci 3808c2ecf20Sopenharmony_ci/* Adaptec VideOh! AVC-2410 card */ 3818c2ecf20Sopenharmony_ci 3828c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_avc2410[] = { 3838c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_ADAPTEC, 0x0093 }, 3848c2ecf20Sopenharmony_ci { 0, 0, 0 } 3858c2ecf20Sopenharmony_ci}; 3868c2ecf20Sopenharmony_ci 3878c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_avc2410 = { 3888c2ecf20Sopenharmony_ci .type = IVTV_CARD_AVC2410, 3898c2ecf20Sopenharmony_ci .name = "Adaptec VideOh! AVC-2410", 3908c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 3918c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115, 3928c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_MSP34XX, 3938c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_MSP34XX, 3948c2ecf20Sopenharmony_ci .hw_muxer = IVTV_HW_CS53L32A, 3958c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_MSP34XX | IVTV_HW_CS53L32A | 3968c2ecf20Sopenharmony_ci IVTV_HW_SAA7115 | IVTV_HW_TUNER | 3978c2ecf20Sopenharmony_ci IVTV_HW_I2C_IR_RX_ADAPTEC, 3988c2ecf20Sopenharmony_ci .video_inputs = { 3998c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 }, 4008c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 4018c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE3 }, 4028c2ecf20Sopenharmony_ci }, 4038c2ecf20Sopenharmony_ci .audio_inputs = { 4048c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, 4058c2ecf20Sopenharmony_ci MSP_TUNER, CS53L32A_IN0 }, 4068c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, 4078c2ecf20Sopenharmony_ci MSP_SCART1, CS53L32A_IN2 }, 4088c2ecf20Sopenharmony_ci }, 4098c2ecf20Sopenharmony_ci /* This card has no eeprom and in fact the Windows driver relies 4108c2ecf20Sopenharmony_ci on the country/region setting of the user to decide which tuner 4118c2ecf20Sopenharmony_ci is available. */ 4128c2ecf20Sopenharmony_ci .tuners = { 4138c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FM1216ME_MK3 }, 4148c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL - V4L2_STD_NTSC_M_JP, 4158c2ecf20Sopenharmony_ci .tuner = TUNER_PHILIPS_FM1236_MK3 }, 4168c2ecf20Sopenharmony_ci { .std = V4L2_STD_NTSC_M_JP, .tuner = TUNER_PHILIPS_FQ1286 }, 4178c2ecf20Sopenharmony_ci }, 4188c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_avc2410, 4198c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 4208c2ecf20Sopenharmony_ci}; 4218c2ecf20Sopenharmony_ci 4228c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 4238c2ecf20Sopenharmony_ci 4248c2ecf20Sopenharmony_ci/* Adaptec VideOh! AVC-2010 card */ 4258c2ecf20Sopenharmony_ci 4268c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_avc2010[] = { 4278c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_ADAPTEC, 0x0092 }, 4288c2ecf20Sopenharmony_ci { 0, 0, 0 } 4298c2ecf20Sopenharmony_ci}; 4308c2ecf20Sopenharmony_ci 4318c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_avc2010 = { 4328c2ecf20Sopenharmony_ci .type = IVTV_CARD_AVC2010, 4338c2ecf20Sopenharmony_ci .name = "Adaptec VideOh! AVC-2010", 4348c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 4358c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115, 4368c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CS53L32A, 4378c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CS53L32A, 4388c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CS53L32A | IVTV_HW_SAA7115, 4398c2ecf20Sopenharmony_ci .video_inputs = { 4408c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 0, IVTV_SAA71XX_SVIDEO0 }, 4418c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 0, IVTV_SAA71XX_COMPOSITE3 }, 4428c2ecf20Sopenharmony_ci }, 4438c2ecf20Sopenharmony_ci .audio_inputs = { 4448c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CS53L32A_IN2 }, 4458c2ecf20Sopenharmony_ci }, 4468c2ecf20Sopenharmony_ci /* Does not have a tuner */ 4478c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_avc2010, 4488c2ecf20Sopenharmony_ci}; 4498c2ecf20Sopenharmony_ci 4508c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 4518c2ecf20Sopenharmony_ci 4528c2ecf20Sopenharmony_ci/* Nagase Transgear 5000TV card */ 4538c2ecf20Sopenharmony_ci 4548c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_tg5000tv[] = { 4558c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xbfff }, 4568c2ecf20Sopenharmony_ci { 0, 0, 0 } 4578c2ecf20Sopenharmony_ci}; 4588c2ecf20Sopenharmony_ci 4598c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_tg5000tv = { 4608c2ecf20Sopenharmony_ci .type = IVTV_CARD_TG5000TV, 4618c2ecf20Sopenharmony_ci .name = "Nagase Transgear 5000TV", 4628c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 4638c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7114 | IVTV_HW_UPD64031A | IVTV_HW_UPD6408X | 4648c2ecf20Sopenharmony_ci IVTV_HW_GPIO, 4658c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_GPIO, 4668c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_GPIO, 4678c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7114 | IVTV_HW_TUNER | 4688c2ecf20Sopenharmony_ci IVTV_HW_UPD64031A | IVTV_HW_UPD6408X, 4698c2ecf20Sopenharmony_ci .video_inputs = { 4708c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_SVIDEO0 }, 4718c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO2 }, 4728c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_SVIDEO2 }, 4738c2ecf20Sopenharmony_ci }, 4748c2ecf20Sopenharmony_ci .audio_inputs = { 4758c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, 4768c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, 4778c2ecf20Sopenharmony_ci }, 4788c2ecf20Sopenharmony_ci .gr_config = UPD64031A_VERTICAL_EXTERNAL, 4798c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xe080, .initial_value = 0x8000 }, 4808c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0x8080, .tuner = 0x8000, .linein = 0x0080 }, 4818c2ecf20Sopenharmony_ci .gpio_audio_mute = { .mask = 0x6000, .mute = 0x6000 }, 4828c2ecf20Sopenharmony_ci .gpio_audio_mode = { .mask = 0x4300, .mono = 0x4000, .stereo = 0x0200, 4838c2ecf20Sopenharmony_ci .lang1 = 0x0300, .lang2 = 0x0000, .both = 0x0200 }, 4848c2ecf20Sopenharmony_ci .gpio_video_input = { .mask = 0x0030, .tuner = 0x0000, 4858c2ecf20Sopenharmony_ci .composite = 0x0010, .svideo = 0x0020 }, 4868c2ecf20Sopenharmony_ci .tuners = { 4878c2ecf20Sopenharmony_ci { .std = V4L2_STD_MN, .tuner = TUNER_PHILIPS_FQ1286 }, 4888c2ecf20Sopenharmony_ci }, 4898c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_tg5000tv, 4908c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 4918c2ecf20Sopenharmony_ci}; 4928c2ecf20Sopenharmony_ci 4938c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 4948c2ecf20Sopenharmony_ci 4958c2ecf20Sopenharmony_ci/* AOpen VA2000MAX-SNT6 card */ 4968c2ecf20Sopenharmony_ci 4978c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_va2000[] = { 4988c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, 0, 0xff5f }, 4998c2ecf20Sopenharmony_ci { 0, 0, 0 } 5008c2ecf20Sopenharmony_ci}; 5018c2ecf20Sopenharmony_ci 5028c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_va2000 = { 5038c2ecf20Sopenharmony_ci .type = IVTV_CARD_VA2000MAX_SNT6, 5048c2ecf20Sopenharmony_ci .name = "AOpen VA2000MAX-SNT6", 5058c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 5068c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115 | IVTV_HW_UPD6408X, 5078c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_MSP34XX, 5088c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_MSP34XX, 5098c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_MSP34XX | IVTV_HW_SAA7115 | 5108c2ecf20Sopenharmony_ci IVTV_HW_UPD6408X | IVTV_HW_TUNER, 5118c2ecf20Sopenharmony_ci .video_inputs = { 5128c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_SVIDEO0 }, 5138c2ecf20Sopenharmony_ci }, 5148c2ecf20Sopenharmony_ci .audio_inputs = { 5158c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, MSP_TUNER }, 5168c2ecf20Sopenharmony_ci }, 5178c2ecf20Sopenharmony_ci .tuners = { 5188c2ecf20Sopenharmony_ci { .std = V4L2_STD_MN, .tuner = TUNER_PHILIPS_FQ1286 }, 5198c2ecf20Sopenharmony_ci }, 5208c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_va2000, 5218c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 5228c2ecf20Sopenharmony_ci}; 5238c2ecf20Sopenharmony_ci 5248c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 5258c2ecf20Sopenharmony_ci 5268c2ecf20Sopenharmony_ci/* Yuan MPG600GR/Kuroutoshikou CX23416GYC-STVLP cards */ 5278c2ecf20Sopenharmony_ci 5288c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_cx23416gyc[] = { 5298c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_YUAN1, 0x0600 }, 5308c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_YUAN4, 0x0600 }, 5318c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_MELCO, 0x0523 }, 5328c2ecf20Sopenharmony_ci { 0, 0, 0 } 5338c2ecf20Sopenharmony_ci}; 5348c2ecf20Sopenharmony_ci 5358c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_cx23416gyc = { 5368c2ecf20Sopenharmony_ci .type = IVTV_CARD_CX23416GYC, 5378c2ecf20Sopenharmony_ci .name = "Yuan MPG600GR, Kuroutoshikou CX23416GYC-STVLP", 5388c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 5398c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA717X | IVTV_HW_GPIO | 5408c2ecf20Sopenharmony_ci IVTV_HW_UPD64031A | IVTV_HW_UPD6408X, 5418c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_SAA717X, 5428c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_SAA717X, 5438c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA717X | IVTV_HW_TUNER | 5448c2ecf20Sopenharmony_ci IVTV_HW_UPD64031A | IVTV_HW_UPD6408X, 5458c2ecf20Sopenharmony_ci .video_inputs = { 5468c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_SVIDEO3 | 5478c2ecf20Sopenharmony_ci IVTV_SAA717X_TUNER_FLAG }, 5488c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 5498c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_SVIDEO3 }, 5508c2ecf20Sopenharmony_ci }, 5518c2ecf20Sopenharmony_ci .audio_inputs = { 5528c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_SAA717X_IN2 }, 5538c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_SAA717X_IN0 }, 5548c2ecf20Sopenharmony_ci }, 5558c2ecf20Sopenharmony_ci .gr_config = UPD64031A_VERTICAL_EXTERNAL, 5568c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 }, 5578c2ecf20Sopenharmony_ci .gpio_video_input = { .mask = 0x0020, .tuner = 0x0000, 5588c2ecf20Sopenharmony_ci .composite = 0x0020, .svideo = 0x0020 }, 5598c2ecf20Sopenharmony_ci .gpio_audio_freq = { .mask = 0xc000, .f32000 = 0x0000, 5608c2ecf20Sopenharmony_ci .f44100 = 0x4000, .f48000 = 0x8000 }, 5618c2ecf20Sopenharmony_ci .tuners = { 5628c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FM1216ME_MK3 }, 5638c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_PHILIPS_FM1236_MK3 }, 5648c2ecf20Sopenharmony_ci }, 5658c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_cx23416gyc, 5668c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 5678c2ecf20Sopenharmony_ci}; 5688c2ecf20Sopenharmony_ci 5698c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_cx23416gyc_nogr = { 5708c2ecf20Sopenharmony_ci .type = IVTV_CARD_CX23416GYC_NOGR, 5718c2ecf20Sopenharmony_ci .name = "Yuan MPG600GR, Kuroutoshikou CX23416GYC-STVLP (no GR)", 5728c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 5738c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA717X | IVTV_HW_GPIO | IVTV_HW_UPD6408X, 5748c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_SAA717X, 5758c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_SAA717X, 5768c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA717X | IVTV_HW_TUNER | 5778c2ecf20Sopenharmony_ci IVTV_HW_UPD6408X, 5788c2ecf20Sopenharmony_ci .video_inputs = { 5798c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 | 5808c2ecf20Sopenharmony_ci IVTV_SAA717X_TUNER_FLAG }, 5818c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 5828c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE0 }, 5838c2ecf20Sopenharmony_ci }, 5848c2ecf20Sopenharmony_ci .audio_inputs = { 5858c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_SAA717X_IN2 }, 5868c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_SAA717X_IN0 }, 5878c2ecf20Sopenharmony_ci }, 5888c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 }, 5898c2ecf20Sopenharmony_ci .gpio_video_input = { .mask = 0x0020, .tuner = 0x0000, 5908c2ecf20Sopenharmony_ci .composite = 0x0020, .svideo = 0x0020 }, 5918c2ecf20Sopenharmony_ci .gpio_audio_freq = { .mask = 0xc000, .f32000 = 0x0000, 5928c2ecf20Sopenharmony_ci .f44100 = 0x4000, .f48000 = 0x8000 }, 5938c2ecf20Sopenharmony_ci .tuners = { 5948c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FM1216ME_MK3 }, 5958c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_PHILIPS_FM1236_MK3 }, 5968c2ecf20Sopenharmony_ci }, 5978c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 5988c2ecf20Sopenharmony_ci}; 5998c2ecf20Sopenharmony_ci 6008c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_cx23416gyc_nogrycs = { 6018c2ecf20Sopenharmony_ci .type = IVTV_CARD_CX23416GYC_NOGRYCS, 6028c2ecf20Sopenharmony_ci .name = "Yuan MPG600GR, Kuroutoshikou CX23416GYC-STVLP (no GR/YCS)", 6038c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 6048c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA717X | IVTV_HW_GPIO, 6058c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_SAA717X, 6068c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_SAA717X, 6078c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA717X | IVTV_HW_TUNER, 6088c2ecf20Sopenharmony_ci .video_inputs = { 6098c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 | 6108c2ecf20Sopenharmony_ci IVTV_SAA717X_TUNER_FLAG }, 6118c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 6128c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE0 }, 6138c2ecf20Sopenharmony_ci }, 6148c2ecf20Sopenharmony_ci .audio_inputs = { 6158c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_SAA717X_IN2 }, 6168c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_SAA717X_IN0 }, 6178c2ecf20Sopenharmony_ci }, 6188c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 }, 6198c2ecf20Sopenharmony_ci .gpio_video_input = { .mask = 0x0020, .tuner = 0x0000, 6208c2ecf20Sopenharmony_ci .composite = 0x0020, .svideo = 0x0020 }, 6218c2ecf20Sopenharmony_ci .gpio_audio_freq = { .mask = 0xc000, .f32000 = 0x0000, 6228c2ecf20Sopenharmony_ci .f44100 = 0x4000, .f48000 = 0x8000 }, 6238c2ecf20Sopenharmony_ci .tuners = { 6248c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FM1216ME_MK3 }, 6258c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_PHILIPS_FM1236_MK3 }, 6268c2ecf20Sopenharmony_ci }, 6278c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 6288c2ecf20Sopenharmony_ci}; 6298c2ecf20Sopenharmony_ci 6308c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 6318c2ecf20Sopenharmony_ci 6328c2ecf20Sopenharmony_ci/* I/O Data GV-MVP/RX & GV-MVP/RX2W (dual tuner) cards */ 6338c2ecf20Sopenharmony_ci 6348c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_gv_mvprx[] = { 6358c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_IODATA, 0xd01e }, 6368c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_IODATA, 0xd038 }, /* 2W unit #1 */ 6378c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_IODATA, 0xd039 }, /* 2W unit #2 */ 6388c2ecf20Sopenharmony_ci { 0, 0, 0 } 6398c2ecf20Sopenharmony_ci}; 6408c2ecf20Sopenharmony_ci 6418c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_gv_mvprx = { 6428c2ecf20Sopenharmony_ci .type = IVTV_CARD_GV_MVPRX, 6438c2ecf20Sopenharmony_ci .name = "I/O Data GV-MVP/RX, GV-MVP/RX2W (dual tuner)", 6448c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 6458c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115 | IVTV_HW_UPD64031A | IVTV_HW_UPD6408X, 6468c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_GPIO, 6478c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_WM8739, 6488c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7115 | IVTV_HW_VP27SMPX | 6498c2ecf20Sopenharmony_ci IVTV_HW_TUNER | IVTV_HW_WM8739 | 6508c2ecf20Sopenharmony_ci IVTV_HW_UPD64031A | IVTV_HW_UPD6408X, 6518c2ecf20Sopenharmony_ci .video_inputs = { 6528c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_SVIDEO0 }, 6538c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO1 }, 6548c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_SVIDEO2 }, 6558c2ecf20Sopenharmony_ci }, 6568c2ecf20Sopenharmony_ci .audio_inputs = { 6578c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, 6588c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, 6598c2ecf20Sopenharmony_ci }, 6608c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xc301, .initial_value = 0x0200 }, 6618c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0xffff, .tuner = 0x0200, .linein = 0x0300 }, 6628c2ecf20Sopenharmony_ci .tuners = { 6638c2ecf20Sopenharmony_ci /* This card has the Panasonic VP27 tuner */ 6648c2ecf20Sopenharmony_ci { .std = V4L2_STD_MN, .tuner = TUNER_PANASONIC_VP27 }, 6658c2ecf20Sopenharmony_ci }, 6668c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_gv_mvprx, 6678c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 6688c2ecf20Sopenharmony_ci}; 6698c2ecf20Sopenharmony_ci 6708c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 6718c2ecf20Sopenharmony_ci 6728c2ecf20Sopenharmony_ci/* I/O Data GV-MVP/RX2E card */ 6738c2ecf20Sopenharmony_ci 6748c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_gv_mvprx2e[] = { 6758c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_IODATA, 0xd025 }, 6768c2ecf20Sopenharmony_ci {0, 0, 0} 6778c2ecf20Sopenharmony_ci}; 6788c2ecf20Sopenharmony_ci 6798c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_gv_mvprx2e = { 6808c2ecf20Sopenharmony_ci .type = IVTV_CARD_GV_MVPRX2E, 6818c2ecf20Sopenharmony_ci .name = "I/O Data GV-MVP/RX2E", 6828c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 6838c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115, 6848c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_GPIO, 6858c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_WM8739, 6868c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7115 | IVTV_HW_TUNER | 6878c2ecf20Sopenharmony_ci IVTV_HW_VP27SMPX | IVTV_HW_WM8739, 6888c2ecf20Sopenharmony_ci .video_inputs = { 6898c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE4 }, 6908c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, 6918c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE3 }, 6928c2ecf20Sopenharmony_ci }, 6938c2ecf20Sopenharmony_ci .audio_inputs = { 6948c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, 6958c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, 6968c2ecf20Sopenharmony_ci }, 6978c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xc301, .initial_value = 0x0200 }, 6988c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0xffff, .tuner = 0x0200, .linein = 0x0300 }, 6998c2ecf20Sopenharmony_ci .tuners = { 7008c2ecf20Sopenharmony_ci /* This card has the Panasonic VP27 tuner */ 7018c2ecf20Sopenharmony_ci { .std = V4L2_STD_MN, .tuner = TUNER_PANASONIC_VP27 }, 7028c2ecf20Sopenharmony_ci }, 7038c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_gv_mvprx2e, 7048c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 7058c2ecf20Sopenharmony_ci}; 7068c2ecf20Sopenharmony_ci 7078c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 7088c2ecf20Sopenharmony_ci 7098c2ecf20Sopenharmony_ci/* GotVIEW PCI DVD card */ 7108c2ecf20Sopenharmony_ci 7118c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_gotview_pci_dvd[] = { 7128c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_YUAN1, 0x0600 }, 7138c2ecf20Sopenharmony_ci { 0, 0, 0 } 7148c2ecf20Sopenharmony_ci}; 7158c2ecf20Sopenharmony_ci 7168c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_gotview_pci_dvd = { 7178c2ecf20Sopenharmony_ci .type = IVTV_CARD_GOTVIEW_PCI_DVD, 7188c2ecf20Sopenharmony_ci .name = "GotView PCI DVD", 7198c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 7208c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA717X, 7218c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_SAA717X, 7228c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_SAA717X, 7238c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_SAA717X | IVTV_HW_TUNER, 7248c2ecf20Sopenharmony_ci .video_inputs = { 7258c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE1 }, /* pin 116 */ 7268c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO0 }, /* pin 114/109 */ 7278c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE3 }, /* pin 118 */ 7288c2ecf20Sopenharmony_ci }, 7298c2ecf20Sopenharmony_ci .audio_inputs = { 7308c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_SAA717X_IN0 }, 7318c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_SAA717X_IN2 }, 7328c2ecf20Sopenharmony_ci }, 7338c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xf000, .initial_value = 0xA000 }, 7348c2ecf20Sopenharmony_ci .tuners = { 7358c2ecf20Sopenharmony_ci /* This card has a Philips FQ1216ME MK3 tuner */ 7368c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FM1216ME_MK3 }, 7378c2ecf20Sopenharmony_ci }, 7388c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_gotview_pci_dvd, 7398c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 7408c2ecf20Sopenharmony_ci}; 7418c2ecf20Sopenharmony_ci 7428c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 7438c2ecf20Sopenharmony_ci 7448c2ecf20Sopenharmony_ci/* GotVIEW PCI DVD2 Deluxe card */ 7458c2ecf20Sopenharmony_ci 7468c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_gotview_pci_dvd2[] = { 7478c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_GOTVIEW1, 0x0600 }, 7488c2ecf20Sopenharmony_ci { 0, 0, 0 } 7498c2ecf20Sopenharmony_ci}; 7508c2ecf20Sopenharmony_ci 7518c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_gotview_pci_dvd2 = { 7528c2ecf20Sopenharmony_ci .type = IVTV_CARD_GOTVIEW_PCI_DVD2, 7538c2ecf20Sopenharmony_ci .name = "GotView PCI DVD2 Deluxe", 7548c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 7558c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 7568c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 7578c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 7588c2ecf20Sopenharmony_ci .hw_muxer = IVTV_HW_GPIO, 7598c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER, 7608c2ecf20Sopenharmony_ci .video_inputs = { 7618c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 7628c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, 7638c2ecf20Sopenharmony_ci CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4 }, 7648c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, 7658c2ecf20Sopenharmony_ci }, 7668c2ecf20Sopenharmony_ci .audio_inputs = { 7678c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5, 0 }, 7688c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 }, 7698c2ecf20Sopenharmony_ci }, 7708c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 }, 7718c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0x0800, .initial_value = 0 }, 7728c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0x0800, .tuner = 0, .linein = 0, .radio = 0x0800 }, 7738c2ecf20Sopenharmony_ci .tuners = { 7748c2ecf20Sopenharmony_ci /* This card has a Philips FQ1216ME MK5 tuner */ 7758c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FM1216ME_MK3 }, 7768c2ecf20Sopenharmony_ci }, 7778c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_gotview_pci_dvd2, 7788c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 7798c2ecf20Sopenharmony_ci}; 7808c2ecf20Sopenharmony_ci 7818c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 7828c2ecf20Sopenharmony_ci 7838c2ecf20Sopenharmony_ci/* Yuan MPC622 miniPCI card */ 7848c2ecf20Sopenharmony_ci 7858c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_yuan_mpc622[] = { 7868c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_YUAN2, 0xd998 }, 7878c2ecf20Sopenharmony_ci { 0, 0, 0 } 7888c2ecf20Sopenharmony_ci}; 7898c2ecf20Sopenharmony_ci 7908c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_yuan_mpc622 = { 7918c2ecf20Sopenharmony_ci .type = IVTV_CARD_YUAN_MPC622, 7928c2ecf20Sopenharmony_ci .name = "Yuan MPC622", 7938c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 7948c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 7958c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 7968c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 7978c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER, 7988c2ecf20Sopenharmony_ci .video_inputs = { 7998c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 8008c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, 8018c2ecf20Sopenharmony_ci CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4 }, 8028c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, 8038c2ecf20Sopenharmony_ci }, 8048c2ecf20Sopenharmony_ci .audio_inputs = { 8058c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5 }, 8068c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL }, 8078c2ecf20Sopenharmony_ci }, 8088c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0x00ff, .initial_value = 0x0002 }, 8098c2ecf20Sopenharmony_ci .tuners = { 8108c2ecf20Sopenharmony_ci /* This card has the TDA8290/TDA8275 tuner chips */ 8118c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_PHILIPS_TDA8290 }, 8128c2ecf20Sopenharmony_ci }, 8138c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_yuan_mpc622, 8148c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_tda8290, 8158c2ecf20Sopenharmony_ci}; 8168c2ecf20Sopenharmony_ci 8178c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 8188c2ecf20Sopenharmony_ci 8198c2ecf20Sopenharmony_ci/* DIGITAL COWBOY DCT-MTVP1 card */ 8208c2ecf20Sopenharmony_ci 8218c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_dctmvtvp1[] = { 8228c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xbfff }, 8238c2ecf20Sopenharmony_ci { 0, 0, 0 } 8248c2ecf20Sopenharmony_ci}; 8258c2ecf20Sopenharmony_ci 8268c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_dctmvtvp1 = { 8278c2ecf20Sopenharmony_ci .type = IVTV_CARD_DCTMTVP1, 8288c2ecf20Sopenharmony_ci .name = "Digital Cowboy DCT-MTVP1", 8298c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 8308c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115 | IVTV_HW_UPD64031A | IVTV_HW_UPD6408X | 8318c2ecf20Sopenharmony_ci IVTV_HW_GPIO, 8328c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_GPIO, 8338c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_GPIO, 8348c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7115 | IVTV_HW_TUNER | 8358c2ecf20Sopenharmony_ci IVTV_HW_UPD64031A | IVTV_HW_UPD6408X, 8368c2ecf20Sopenharmony_ci .video_inputs = { 8378c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_SVIDEO0 }, 8388c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO2 }, 8398c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_SVIDEO2 }, 8408c2ecf20Sopenharmony_ci }, 8418c2ecf20Sopenharmony_ci .audio_inputs = { 8428c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, 8438c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, 8448c2ecf20Sopenharmony_ci }, 8458c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xe080, .initial_value = 0x8000 }, 8468c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0x8080, .tuner = 0x8000, .linein = 0x0080 }, 8478c2ecf20Sopenharmony_ci .gpio_audio_mute = { .mask = 0x6000, .mute = 0x6000 }, 8488c2ecf20Sopenharmony_ci .gpio_audio_mode = { .mask = 0x4300, .mono = 0x4000, .stereo = 0x0200, 8498c2ecf20Sopenharmony_ci .lang1 = 0x0300, .lang2 = 0x0000, .both = 0x0200 }, 8508c2ecf20Sopenharmony_ci .gpio_video_input = { .mask = 0x0030, .tuner = 0x0000, 8518c2ecf20Sopenharmony_ci .composite = 0x0010, .svideo = 0x0020}, 8528c2ecf20Sopenharmony_ci .tuners = { 8538c2ecf20Sopenharmony_ci { .std = V4L2_STD_MN, .tuner = TUNER_PHILIPS_FQ1286 }, 8548c2ecf20Sopenharmony_ci }, 8558c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_dctmvtvp1, 8568c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 8578c2ecf20Sopenharmony_ci}; 8588c2ecf20Sopenharmony_ci 8598c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 8608c2ecf20Sopenharmony_ci 8618c2ecf20Sopenharmony_ci/* Yuan PG600-2/GotView PCI DVD Lite cards */ 8628c2ecf20Sopenharmony_ci 8638c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_pg600v2[] = { 8648c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_YUAN3, 0x0600 }, 8658c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_GOTVIEW2, 0x0600 }, 8668c2ecf20Sopenharmony_ci { 0, 0, 0 } 8678c2ecf20Sopenharmony_ci}; 8688c2ecf20Sopenharmony_ci 8698c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_pg600v2 = { 8708c2ecf20Sopenharmony_ci .type = IVTV_CARD_PG600V2, 8718c2ecf20Sopenharmony_ci .name = "Yuan PG600-2, GotView PCI DVD Lite", 8728c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 8738c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 8748c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 8758c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 8768c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER, 8778c2ecf20Sopenharmony_ci /* XC2028 support apparently works for the Yuan, it's still 8788c2ecf20Sopenharmony_ci uncertain whether it also works with the GotView. */ 8798c2ecf20Sopenharmony_ci .video_inputs = { 8808c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 8818c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, 8828c2ecf20Sopenharmony_ci CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4 }, 8838c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, 8848c2ecf20Sopenharmony_ci }, 8858c2ecf20Sopenharmony_ci .audio_inputs = { 8868c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5 }, 8878c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL }, 8888c2ecf20Sopenharmony_ci }, 8898c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5 }, 8908c2ecf20Sopenharmony_ci .xceive_pin = 12, 8918c2ecf20Sopenharmony_ci .tuners = { 8928c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 }, 8938c2ecf20Sopenharmony_ci }, 8948c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_pg600v2, 8958c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 8968c2ecf20Sopenharmony_ci}; 8978c2ecf20Sopenharmony_ci 8988c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 8998c2ecf20Sopenharmony_ci 9008c2ecf20Sopenharmony_ci/* Club3D ZAP-TV1x01 cards */ 9018c2ecf20Sopenharmony_ci 9028c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_club3d[] = { 9038c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_YUAN3, 0x0600 }, 9048c2ecf20Sopenharmony_ci { 0, 0, 0 } 9058c2ecf20Sopenharmony_ci}; 9068c2ecf20Sopenharmony_ci 9078c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_club3d = { 9088c2ecf20Sopenharmony_ci .type = IVTV_CARD_CLUB3D, 9098c2ecf20Sopenharmony_ci .name = "Club3D ZAP-TV1x01", 9108c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 9118c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 9128c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 9138c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 9148c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER, 9158c2ecf20Sopenharmony_ci .video_inputs = { 9168c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 9178c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, 9188c2ecf20Sopenharmony_ci CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4 }, 9198c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE3 }, 9208c2ecf20Sopenharmony_ci }, 9218c2ecf20Sopenharmony_ci .audio_inputs = { 9228c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5 }, 9238c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL }, 9248c2ecf20Sopenharmony_ci }, 9258c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5 }, 9268c2ecf20Sopenharmony_ci .xceive_pin = 12, 9278c2ecf20Sopenharmony_ci .tuners = { 9288c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 }, 9298c2ecf20Sopenharmony_ci }, 9308c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_club3d, 9318c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 9328c2ecf20Sopenharmony_ci}; 9338c2ecf20Sopenharmony_ci 9348c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 9358c2ecf20Sopenharmony_ci 9368c2ecf20Sopenharmony_ci/* AVerTV MCE 116 Plus (M116) card */ 9378c2ecf20Sopenharmony_ci 9388c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_avertv_mce116[] = { 9398c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc439 }, 9408c2ecf20Sopenharmony_ci { 0, 0, 0 } 9418c2ecf20Sopenharmony_ci}; 9428c2ecf20Sopenharmony_ci 9438c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_avertv_mce116 = { 9448c2ecf20Sopenharmony_ci .type = IVTV_CARD_AVERTV_MCE116, 9458c2ecf20Sopenharmony_ci .name = "AVerTV MCE 116 Plus", 9468c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 9478c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 9488c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 9498c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 9508c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER | IVTV_HW_WM8739 | 9518c2ecf20Sopenharmony_ci IVTV_HW_I2C_IR_RX_AVER, 9528c2ecf20Sopenharmony_ci .video_inputs = { 9538c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 9548c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, CX25840_SVIDEO3 }, 9558c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, 9568c2ecf20Sopenharmony_ci }, 9578c2ecf20Sopenharmony_ci .audio_inputs = { 9588c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5 }, 9598c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 }, 9608c2ecf20Sopenharmony_ci }, 9618c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5 }, 9628c2ecf20Sopenharmony_ci /* enable line-in */ 9638c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xe000, .initial_value = 0x4000 }, 9648c2ecf20Sopenharmony_ci .xceive_pin = 10, 9658c2ecf20Sopenharmony_ci .tuners = { 9668c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 }, 9678c2ecf20Sopenharmony_ci }, 9688c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_avertv_mce116, 9698c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 9708c2ecf20Sopenharmony_ci}; 9718c2ecf20Sopenharmony_ci 9728c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 9738c2ecf20Sopenharmony_ci 9748c2ecf20Sopenharmony_ci/* AVerMedia PVR-150 Plus / AVerTV M113 cards with a Daewoo/Partsnic Tuner */ 9758c2ecf20Sopenharmony_ci 9768c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_aver_pvr150[] = { 9778c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc034 }, /* NTSC */ 9788c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc035 }, /* NTSC FM */ 9798c2ecf20Sopenharmony_ci { 0, 0, 0 } 9808c2ecf20Sopenharmony_ci}; 9818c2ecf20Sopenharmony_ci 9828c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_aver_pvr150 = { 9838c2ecf20Sopenharmony_ci .type = IVTV_CARD_AVER_PVR150PLUS, 9848c2ecf20Sopenharmony_ci .name = "AVerMedia PVR-150 Plus / AVerTV M113 Partsnic (Daewoo) Tuner", 9858c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 9868c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 9878c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 9888c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 9898c2ecf20Sopenharmony_ci .hw_muxer = IVTV_HW_GPIO, 9908c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER | 9918c2ecf20Sopenharmony_ci IVTV_HW_WM8739 | IVTV_HW_GPIO, 9928c2ecf20Sopenharmony_ci .video_inputs = { 9938c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 9948c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, CX25840_SVIDEO3 }, 9958c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, 9968c2ecf20Sopenharmony_ci }, 9978c2ecf20Sopenharmony_ci .audio_inputs = { 9988c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5, 0 }, 9998c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 }, 10008c2ecf20Sopenharmony_ci }, 10018c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 }, 10028c2ecf20Sopenharmony_ci /* The 74HC4052 Dual 4:1 multiplexer is controlled by 2 GPIO lines */ 10038c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xc000, .initial_value = 0 }, 10048c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0xc000, 10058c2ecf20Sopenharmony_ci .tuner = 0x0000, 10068c2ecf20Sopenharmony_ci .linein = 0x4000, 10078c2ecf20Sopenharmony_ci .radio = 0x8000 }, 10088c2ecf20Sopenharmony_ci .tuners = { 10098c2ecf20Sopenharmony_ci /* Subsystem ID's 0xc03[45] have a Partsnic PTI-5NF05 tuner */ 10108c2ecf20Sopenharmony_ci { .std = V4L2_STD_MN, .tuner = TUNER_PARTSNIC_PTI_5NF05 }, 10118c2ecf20Sopenharmony_ci }, 10128c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_aver_pvr150, 10138c2ecf20Sopenharmony_ci /* Subsystem ID 0xc035 has a TEA5767(?) FM tuner, 0xc034 does not */ 10148c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_radio, 10158c2ecf20Sopenharmony_ci}; 10168c2ecf20Sopenharmony_ci 10178c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 10188c2ecf20Sopenharmony_ci 10198c2ecf20Sopenharmony_ci/* AVerMedia UltraTV 1500 MCE (newer non-cx88 version, M113 variant) card */ 10208c2ecf20Sopenharmony_ci 10218c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_aver_ultra1500mce[] = { 10228c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc019 }, /* NTSC */ 10238c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc01b }, /* PAL/SECAM */ 10248c2ecf20Sopenharmony_ci { 0, 0, 0 } 10258c2ecf20Sopenharmony_ci}; 10268c2ecf20Sopenharmony_ci 10278c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_aver_ultra1500mce = { 10288c2ecf20Sopenharmony_ci .type = IVTV_CARD_AVER_ULTRA1500MCE, 10298c2ecf20Sopenharmony_ci .name = "AVerMedia UltraTV 1500 MCE / AVerTV M113 Philips Tuner", 10308c2ecf20Sopenharmony_ci .comment = "For non-NTSC tuners, use the pal= or secam= module options", 10318c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 10328c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 10338c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 10348c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 10358c2ecf20Sopenharmony_ci .hw_muxer = IVTV_HW_GPIO, 10368c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER | 10378c2ecf20Sopenharmony_ci IVTV_HW_WM8739 | IVTV_HW_GPIO, 10388c2ecf20Sopenharmony_ci .video_inputs = { 10398c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 10408c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, CX25840_SVIDEO3 }, 10418c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, 10428c2ecf20Sopenharmony_ci }, 10438c2ecf20Sopenharmony_ci .audio_inputs = { 10448c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5, 0 }, 10458c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 }, 10468c2ecf20Sopenharmony_ci }, 10478c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 }, 10488c2ecf20Sopenharmony_ci /* The 74HC4052 Dual 4:1 multiplexer is controlled by 2 GPIO lines */ 10498c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xc000, .initial_value = 0 }, 10508c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0xc000, 10518c2ecf20Sopenharmony_ci .tuner = 0x0000, 10528c2ecf20Sopenharmony_ci .linein = 0x4000, 10538c2ecf20Sopenharmony_ci .radio = 0x8000 }, 10548c2ecf20Sopenharmony_ci .tuners = { 10558c2ecf20Sopenharmony_ci /* The UltraTV 1500 MCE has a Philips FM1236 MK5 TV/FM tuner */ 10568c2ecf20Sopenharmony_ci { .std = V4L2_STD_MN, .tuner = TUNER_PHILIPS_FM1236_MK3 }, 10578c2ecf20Sopenharmony_ci { .std = V4L2_STD_PAL_SECAM, .tuner = TUNER_PHILIPS_FM1216MK5 }, 10588c2ecf20Sopenharmony_ci }, 10598c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_aver_ultra1500mce, 10608c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 10618c2ecf20Sopenharmony_ci}; 10628c2ecf20Sopenharmony_ci 10638c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 10648c2ecf20Sopenharmony_ci 10658c2ecf20Sopenharmony_ci/* AVerMedia EZMaker PCI Deluxe card */ 10668c2ecf20Sopenharmony_ci 10678c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_aver_ezmaker[] = { 10688c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc03f }, 10698c2ecf20Sopenharmony_ci { 0, 0, 0 } 10708c2ecf20Sopenharmony_ci}; 10718c2ecf20Sopenharmony_ci 10728c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_aver_ezmaker = { 10738c2ecf20Sopenharmony_ci .type = IVTV_CARD_AVER_EZMAKER, 10748c2ecf20Sopenharmony_ci .name = "AVerMedia EZMaker PCI Deluxe", 10758c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 10768c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 10778c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 10788c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 10798c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_WM8739, 10808c2ecf20Sopenharmony_ci .video_inputs = { 10818c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 0, CX25840_SVIDEO3 }, 10828c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 0, CX25840_COMPOSITE1 }, 10838c2ecf20Sopenharmony_ci }, 10848c2ecf20Sopenharmony_ci .audio_inputs = { 10858c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 0 }, 10868c2ecf20Sopenharmony_ci }, 10878c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0x4000, .initial_value = 0x4000 }, 10888c2ecf20Sopenharmony_ci /* Does not have a tuner */ 10898c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_aver_ezmaker, 10908c2ecf20Sopenharmony_ci}; 10918c2ecf20Sopenharmony_ci 10928c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 10938c2ecf20Sopenharmony_ci 10948c2ecf20Sopenharmony_ci/* ASUS Falcon2 */ 10958c2ecf20Sopenharmony_ci 10968c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_asus_falcon2[] = { 10978c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_ASUSTEK, 0x4b66 }, 10988c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_ASUSTEK, 0x462e }, 10998c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_ASUSTEK, 0x4b2e }, 11008c2ecf20Sopenharmony_ci { 0, 0, 0 } 11018c2ecf20Sopenharmony_ci}; 11028c2ecf20Sopenharmony_ci 11038c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_asus_falcon2 = { 11048c2ecf20Sopenharmony_ci .type = IVTV_CARD_ASUS_FALCON2, 11058c2ecf20Sopenharmony_ci .name = "ASUS Falcon2", 11068c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 11078c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 11088c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 11098c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 11108c2ecf20Sopenharmony_ci .hw_muxer = IVTV_HW_M52790, 11118c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_M52790 | IVTV_HW_TUNER, 11128c2ecf20Sopenharmony_ci .video_inputs = { 11138c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 11148c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, CX25840_SVIDEO3 }, 11158c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 2, CX25840_COMPOSITE2 }, 11168c2ecf20Sopenharmony_ci }, 11178c2ecf20Sopenharmony_ci .audio_inputs = { 11188c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5, M52790_IN_TUNER }, 11198c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 11208c2ecf20Sopenharmony_ci M52790_IN_V2 | M52790_SW1_YCMIX | M52790_SW2_YCMIX }, 11218c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, M52790_IN_V2 }, 11228c2ecf20Sopenharmony_ci }, 11238c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, M52790_IN_TUNER }, 11248c2ecf20Sopenharmony_ci .tuners = { 11258c2ecf20Sopenharmony_ci { .std = V4L2_STD_MN, .tuner = TUNER_PHILIPS_FM1236_MK3 }, 11268c2ecf20Sopenharmony_ci }, 11278c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_asus_falcon2, 11288c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 11298c2ecf20Sopenharmony_ci}; 11308c2ecf20Sopenharmony_ci 11318c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 11328c2ecf20Sopenharmony_ci 11338c2ecf20Sopenharmony_ci/* AVerMedia M104 miniPCI card */ 11348c2ecf20Sopenharmony_ci 11358c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_aver_m104[] = { 11368c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc136 }, 11378c2ecf20Sopenharmony_ci { 0, 0, 0 } 11388c2ecf20Sopenharmony_ci}; 11398c2ecf20Sopenharmony_ci 11408c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_aver_m104 = { 11418c2ecf20Sopenharmony_ci .type = IVTV_CARD_AVER_M104, 11428c2ecf20Sopenharmony_ci .name = "AVerMedia M104", 11438c2ecf20Sopenharmony_ci .comment = "Not yet supported!\n", 11448c2ecf20Sopenharmony_ci .v4l2_capabilities = 0, /*IVTV_CAP_ENCODER,*/ 11458c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 11468c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 11478c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 11488c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER | IVTV_HW_WM8739, 11498c2ecf20Sopenharmony_ci .video_inputs = { 11508c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 0, CX25840_SVIDEO3 }, 11518c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 0, CX25840_COMPOSITE1 }, 11528c2ecf20Sopenharmony_ci }, 11538c2ecf20Sopenharmony_ci .audio_inputs = { 11548c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 }, 11558c2ecf20Sopenharmony_ci }, 11568c2ecf20Sopenharmony_ci .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 }, 11578c2ecf20Sopenharmony_ci /* enable line-in + reset tuner */ 11588c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0xe000, .initial_value = 0x4000 }, 11598c2ecf20Sopenharmony_ci .xceive_pin = 10, 11608c2ecf20Sopenharmony_ci .tuners = { 11618c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 }, 11628c2ecf20Sopenharmony_ci }, 11638c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_aver_m104, 11648c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 11658c2ecf20Sopenharmony_ci}; 11668c2ecf20Sopenharmony_ci 11678c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 11688c2ecf20Sopenharmony_ci 11698c2ecf20Sopenharmony_ci/* Buffalo PC-MV5L/PCI cards */ 11708c2ecf20Sopenharmony_ci 11718c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_buffalo[] = { 11728c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_MELCO, 0x052b }, 11738c2ecf20Sopenharmony_ci { 0, 0, 0 } 11748c2ecf20Sopenharmony_ci}; 11758c2ecf20Sopenharmony_ci 11768c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_buffalo = { 11778c2ecf20Sopenharmony_ci .type = IVTV_CARD_BUFFALO_MV5L, 11788c2ecf20Sopenharmony_ci .name = "Buffalo PC-MV5L/PCI", 11798c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 11808c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_CX25840, 11818c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_CX25840, 11828c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_CX25840, 11838c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER, 11848c2ecf20Sopenharmony_ci .video_inputs = { 11858c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 }, 11868c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, 11878c2ecf20Sopenharmony_ci CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4 }, 11888c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 }, 11898c2ecf20Sopenharmony_ci }, 11908c2ecf20Sopenharmony_ci .audio_inputs = { 11918c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5 }, 11928c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL }, 11938c2ecf20Sopenharmony_ci }, 11948c2ecf20Sopenharmony_ci .xceive_pin = 12, 11958c2ecf20Sopenharmony_ci .tuners = { 11968c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 }, 11978c2ecf20Sopenharmony_ci }, 11988c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_buffalo, 11998c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 12008c2ecf20Sopenharmony_ci}; 12018c2ecf20Sopenharmony_ci 12028c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------------- */ 12038c2ecf20Sopenharmony_ci/* Sony Kikyou */ 12048c2ecf20Sopenharmony_ci 12058c2ecf20Sopenharmony_cistatic const struct ivtv_card_pci_info ivtv_pci_kikyou[] = { 12068c2ecf20Sopenharmony_ci { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_SONY, 0x813d }, 12078c2ecf20Sopenharmony_ci { 0, 0, 0 } 12088c2ecf20Sopenharmony_ci}; 12098c2ecf20Sopenharmony_ci 12108c2ecf20Sopenharmony_cistatic const struct ivtv_card ivtv_card_kikyou = { 12118c2ecf20Sopenharmony_ci .type = IVTV_CARD_KIKYOU, 12128c2ecf20Sopenharmony_ci .name = "Sony VAIO Giga Pocket (ENX Kikyou)", 12138c2ecf20Sopenharmony_ci .v4l2_capabilities = IVTV_CAP_ENCODER, 12148c2ecf20Sopenharmony_ci .hw_video = IVTV_HW_SAA7115, 12158c2ecf20Sopenharmony_ci .hw_audio = IVTV_HW_GPIO, 12168c2ecf20Sopenharmony_ci .hw_audio_ctrl = IVTV_HW_GPIO, 12178c2ecf20Sopenharmony_ci .hw_all = IVTV_HW_GPIO | IVTV_HW_SAA7115 | IVTV_HW_TUNER, 12188c2ecf20Sopenharmony_ci .video_inputs = { 12198c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_VID_TUNER, 0, IVTV_SAA71XX_COMPOSITE1 }, 12208c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_SAA71XX_COMPOSITE1 }, 12218c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_SVIDEO1, 1, IVTV_SAA71XX_SVIDEO1 }, 12228c2ecf20Sopenharmony_ci }, 12238c2ecf20Sopenharmony_ci .audio_inputs = { 12248c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_AUD_TUNER, IVTV_GPIO_TUNER }, 12258c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN1, IVTV_GPIO_LINE_IN }, 12268c2ecf20Sopenharmony_ci { IVTV_CARD_INPUT_LINE_IN2, IVTV_GPIO_LINE_IN }, 12278c2ecf20Sopenharmony_ci }, 12288c2ecf20Sopenharmony_ci .gpio_init = { .direction = 0x03e1, .initial_value = 0x0320 }, 12298c2ecf20Sopenharmony_ci .gpio_audio_input = { .mask = 0x0060, 12308c2ecf20Sopenharmony_ci .tuner = 0x0020, 12318c2ecf20Sopenharmony_ci .linein = 0x0000, 12328c2ecf20Sopenharmony_ci .radio = 0x0060 }, 12338c2ecf20Sopenharmony_ci .gpio_audio_mute = { .mask = 0x0000, 12348c2ecf20Sopenharmony_ci .mute = 0x0000 }, /* 0x200? Disable for now. */ 12358c2ecf20Sopenharmony_ci .gpio_audio_mode = { .mask = 0x0080, 12368c2ecf20Sopenharmony_ci .mono = 0x0000, 12378c2ecf20Sopenharmony_ci .stereo = 0x0000, /* SAP */ 12388c2ecf20Sopenharmony_ci .lang1 = 0x0080, 12398c2ecf20Sopenharmony_ci .lang2 = 0x0000, 12408c2ecf20Sopenharmony_ci .both = 0x0080 }, 12418c2ecf20Sopenharmony_ci .tuners = { 12428c2ecf20Sopenharmony_ci { .std = V4L2_STD_ALL, .tuner = TUNER_SONY_BTF_PXN01Z }, 12438c2ecf20Sopenharmony_ci }, 12448c2ecf20Sopenharmony_ci .pci_list = ivtv_pci_kikyou, 12458c2ecf20Sopenharmony_ci .i2c = &ivtv_i2c_std, 12468c2ecf20Sopenharmony_ci}; 12478c2ecf20Sopenharmony_ci 12488c2ecf20Sopenharmony_ci 12498c2ecf20Sopenharmony_cistatic const struct ivtv_card *ivtv_card_list[] = { 12508c2ecf20Sopenharmony_ci &ivtv_card_pvr250, 12518c2ecf20Sopenharmony_ci &ivtv_card_pvr350, 12528c2ecf20Sopenharmony_ci &ivtv_card_pvr150, 12538c2ecf20Sopenharmony_ci &ivtv_card_m179, 12548c2ecf20Sopenharmony_ci &ivtv_card_mpg600, 12558c2ecf20Sopenharmony_ci &ivtv_card_mpg160, 12568c2ecf20Sopenharmony_ci &ivtv_card_pg600, 12578c2ecf20Sopenharmony_ci &ivtv_card_avc2410, 12588c2ecf20Sopenharmony_ci &ivtv_card_avc2010, 12598c2ecf20Sopenharmony_ci &ivtv_card_tg5000tv, 12608c2ecf20Sopenharmony_ci &ivtv_card_va2000, 12618c2ecf20Sopenharmony_ci &ivtv_card_cx23416gyc, 12628c2ecf20Sopenharmony_ci &ivtv_card_gv_mvprx, 12638c2ecf20Sopenharmony_ci &ivtv_card_gv_mvprx2e, 12648c2ecf20Sopenharmony_ci &ivtv_card_gotview_pci_dvd, 12658c2ecf20Sopenharmony_ci &ivtv_card_gotview_pci_dvd2, 12668c2ecf20Sopenharmony_ci &ivtv_card_yuan_mpc622, 12678c2ecf20Sopenharmony_ci &ivtv_card_dctmvtvp1, 12688c2ecf20Sopenharmony_ci &ivtv_card_pg600v2, 12698c2ecf20Sopenharmony_ci &ivtv_card_club3d, 12708c2ecf20Sopenharmony_ci &ivtv_card_avertv_mce116, 12718c2ecf20Sopenharmony_ci &ivtv_card_asus_falcon2, 12728c2ecf20Sopenharmony_ci &ivtv_card_aver_pvr150, 12738c2ecf20Sopenharmony_ci &ivtv_card_aver_ezmaker, 12748c2ecf20Sopenharmony_ci &ivtv_card_aver_m104, 12758c2ecf20Sopenharmony_ci &ivtv_card_buffalo, 12768c2ecf20Sopenharmony_ci &ivtv_card_aver_ultra1500mce, 12778c2ecf20Sopenharmony_ci &ivtv_card_kikyou, 12788c2ecf20Sopenharmony_ci 12798c2ecf20Sopenharmony_ci /* Variations of standard cards but with the same PCI IDs. 12808c2ecf20Sopenharmony_ci These cards must come last in this list. */ 12818c2ecf20Sopenharmony_ci &ivtv_card_pvr350_v1, 12828c2ecf20Sopenharmony_ci &ivtv_card_cx23416gyc_nogr, 12838c2ecf20Sopenharmony_ci &ivtv_card_cx23416gyc_nogrycs, 12848c2ecf20Sopenharmony_ci}; 12858c2ecf20Sopenharmony_ci 12868c2ecf20Sopenharmony_ciconst struct ivtv_card *ivtv_get_card(u16 index) 12878c2ecf20Sopenharmony_ci{ 12888c2ecf20Sopenharmony_ci if (index >= ARRAY_SIZE(ivtv_card_list)) 12898c2ecf20Sopenharmony_ci return NULL; 12908c2ecf20Sopenharmony_ci return ivtv_card_list[index]; 12918c2ecf20Sopenharmony_ci} 12928c2ecf20Sopenharmony_ci 12938c2ecf20Sopenharmony_ciint ivtv_get_input(struct ivtv *itv, u16 index, struct v4l2_input *input) 12948c2ecf20Sopenharmony_ci{ 12958c2ecf20Sopenharmony_ci const struct ivtv_card_video_input *card_input = itv->card->video_inputs + index; 12968c2ecf20Sopenharmony_ci static const char * const input_strs[] = { 12978c2ecf20Sopenharmony_ci "Tuner 1", 12988c2ecf20Sopenharmony_ci "S-Video 1", 12998c2ecf20Sopenharmony_ci "S-Video 2", 13008c2ecf20Sopenharmony_ci "Composite 1", 13018c2ecf20Sopenharmony_ci "Composite 2", 13028c2ecf20Sopenharmony_ci "Composite 3" 13038c2ecf20Sopenharmony_ci }; 13048c2ecf20Sopenharmony_ci 13058c2ecf20Sopenharmony_ci if (index >= itv->nof_inputs) 13068c2ecf20Sopenharmony_ci return -EINVAL; 13078c2ecf20Sopenharmony_ci input->index = index; 13088c2ecf20Sopenharmony_ci strscpy(input->name, input_strs[card_input->video_type - 1], 13098c2ecf20Sopenharmony_ci sizeof(input->name)); 13108c2ecf20Sopenharmony_ci input->type = (card_input->video_type == IVTV_CARD_INPUT_VID_TUNER ? 13118c2ecf20Sopenharmony_ci V4L2_INPUT_TYPE_TUNER : V4L2_INPUT_TYPE_CAMERA); 13128c2ecf20Sopenharmony_ci input->audioset = (1 << itv->nof_audio_inputs) - 1; 13138c2ecf20Sopenharmony_ci input->std = (input->type == V4L2_INPUT_TYPE_TUNER) ? 13148c2ecf20Sopenharmony_ci itv->tuner_std : V4L2_STD_ALL; 13158c2ecf20Sopenharmony_ci return 0; 13168c2ecf20Sopenharmony_ci} 13178c2ecf20Sopenharmony_ci 13188c2ecf20Sopenharmony_ciint ivtv_get_output(struct ivtv *itv, u16 index, struct v4l2_output *output) 13198c2ecf20Sopenharmony_ci{ 13208c2ecf20Sopenharmony_ci const struct ivtv_card_output *card_output = itv->card->video_outputs + index; 13218c2ecf20Sopenharmony_ci 13228c2ecf20Sopenharmony_ci if (index >= itv->card->nof_outputs) 13238c2ecf20Sopenharmony_ci return -EINVAL; 13248c2ecf20Sopenharmony_ci output->index = index; 13258c2ecf20Sopenharmony_ci strscpy(output->name, card_output->name, sizeof(output->name)); 13268c2ecf20Sopenharmony_ci output->type = V4L2_OUTPUT_TYPE_ANALOG; 13278c2ecf20Sopenharmony_ci output->audioset = 1; 13288c2ecf20Sopenharmony_ci output->std = V4L2_STD_ALL; 13298c2ecf20Sopenharmony_ci return 0; 13308c2ecf20Sopenharmony_ci} 13318c2ecf20Sopenharmony_ci 13328c2ecf20Sopenharmony_ciint ivtv_get_audio_input(struct ivtv *itv, u16 index, struct v4l2_audio *audio) 13338c2ecf20Sopenharmony_ci{ 13348c2ecf20Sopenharmony_ci const struct ivtv_card_audio_input *aud_input = itv->card->audio_inputs + index; 13358c2ecf20Sopenharmony_ci static const char * const input_strs[] = { 13368c2ecf20Sopenharmony_ci "Tuner 1", 13378c2ecf20Sopenharmony_ci "Line In 1", 13388c2ecf20Sopenharmony_ci "Line In 2" 13398c2ecf20Sopenharmony_ci }; 13408c2ecf20Sopenharmony_ci 13418c2ecf20Sopenharmony_ci memset(audio, 0, sizeof(*audio)); 13428c2ecf20Sopenharmony_ci if (index >= itv->nof_audio_inputs) 13438c2ecf20Sopenharmony_ci return -EINVAL; 13448c2ecf20Sopenharmony_ci strscpy(audio->name, input_strs[aud_input->audio_type - 1], 13458c2ecf20Sopenharmony_ci sizeof(audio->name)); 13468c2ecf20Sopenharmony_ci audio->index = index; 13478c2ecf20Sopenharmony_ci audio->capability = V4L2_AUDCAP_STEREO; 13488c2ecf20Sopenharmony_ci return 0; 13498c2ecf20Sopenharmony_ci} 13508c2ecf20Sopenharmony_ci 13518c2ecf20Sopenharmony_ciint ivtv_get_audio_output(struct ivtv *itv, u16 index, struct v4l2_audioout *aud_output) 13528c2ecf20Sopenharmony_ci{ 13538c2ecf20Sopenharmony_ci memset(aud_output, 0, sizeof(*aud_output)); 13548c2ecf20Sopenharmony_ci if (itv->card->video_outputs == NULL || index != 0) 13558c2ecf20Sopenharmony_ci return -EINVAL; 13568c2ecf20Sopenharmony_ci strscpy(aud_output->name, "A/V Audio Out", sizeof(aud_output->name)); 13578c2ecf20Sopenharmony_ci return 0; 13588c2ecf20Sopenharmony_ci} 1359