aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2009-07-02 22:08:59 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:17:27 -0400
commit50364593f8d4a5b9c2a025c8acb41dc92f1c901d (patch)
treea8817fc31df1ce5b6c92613895e7e752b7be304b /drivers
parent25a42e4d4a4e03d5807f8aa1a5619f4d805f6fd8 (diff)
V4L/DVB (12209): ivtv: Add card entry for AVerMedia UltraTV 1500 MCE (M113 variant)
Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/ivtv/ivtv-cards.c44
-rw-r--r--drivers/media/video/ivtv/ivtv-cards.h3
-rw-r--r--drivers/media/video/ivtv/ivtv-driver.c1
3 files changed, 47 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-cards.c b/drivers/media/video/ivtv/ivtv-cards.c
index 2883c8780760..553a314fa436 100644
--- a/drivers/media/video/ivtv/ivtv-cards.c
+++ b/drivers/media/video/ivtv/ivtv-cards.c
@@ -1016,6 +1016,50 @@ static const struct ivtv_card ivtv_card_aver_pvr150 = {
1016 1016
1017/* ------------------------------------------------------------------------- */ 1017/* ------------------------------------------------------------------------- */
1018 1018
1019/* AVerMedia UltraTV 1500 MCE (newer non-cx88 version, M113 variant) card */
1020
1021static const struct ivtv_card_pci_info ivtv_pci_aver_ultra1500mce[] = {
1022 { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc019 },
1023 { 0, 0, 0 }
1024};
1025
1026static const struct ivtv_card ivtv_card_aver_ultra1500mce = {
1027 .type = IVTV_CARD_AVER_ULTRA1500MCE,
1028 .name = "AVerMedia UltraTV 1500 MCE / AVerTV M113",
1029 .v4l2_capabilities = IVTV_CAP_ENCODER,
1030 .hw_video = IVTV_HW_CX25840,
1031 .hw_audio = IVTV_HW_CX25840,
1032 .hw_audio_ctrl = IVTV_HW_CX25840,
1033 .hw_muxer = IVTV_HW_GPIO,
1034 .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER |
1035 IVTV_HW_WM8739 | IVTV_HW_GPIO,
1036 .video_inputs = {
1037 { IVTV_CARD_INPUT_VID_TUNER, 0, CX25840_COMPOSITE2 },
1038 { IVTV_CARD_INPUT_SVIDEO1, 1,
1039 CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4 },
1040 { IVTV_CARD_INPUT_COMPOSITE1, 1, CX25840_COMPOSITE1 },
1041 },
1042 .audio_inputs = {
1043 { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO5, 0 },
1044 { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 },
1045 },
1046 .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 },
1047 /* The 74HC4502 Dual 4:1 multiplexer is controlled by 2 GPIO lines */
1048 .gpio_init = { .direction = 0xc000, .initial_value = 0 },
1049 .gpio_audio_input = { .mask = 0xc000,
1050 .tuner = 0x0000,
1051 .linein = 0x4000,
1052 .radio = 0x8000 },
1053 .tuners = {
1054 /* The UltraTV 1500 MCE has a Philips FM1236 MK5 TV/FM tuner */
1055 { .std = V4L2_STD_MN, .tuner = TUNER_PHILIPS_FM1236_MK3 },
1056 },
1057 .pci_list = ivtv_pci_aver_ultra1500mce,
1058 .i2c = &ivtv_i2c_std,
1059};
1060
1061/* ------------------------------------------------------------------------- */
1062
1019/* AVerMedia EZMaker PCI Deluxe card */ 1063/* AVerMedia EZMaker PCI Deluxe card */
1020 1064
1021static const struct ivtv_card_pci_info ivtv_pci_aver_ezmaker[] = { 1065static const struct ivtv_card_pci_info ivtv_pci_aver_ezmaker[] = {
diff --git a/drivers/media/video/ivtv/ivtv-cards.h b/drivers/media/video/ivtv/ivtv-cards.h
index 0b8fe85fb697..e99a0a255578 100644
--- a/drivers/media/video/ivtv/ivtv-cards.h
+++ b/drivers/media/video/ivtv/ivtv-cards.h
@@ -50,7 +50,8 @@
50#define IVTV_CARD_AVER_EZMAKER 23 /* AVerMedia EZMaker PCI Deluxe */ 50#define IVTV_CARD_AVER_EZMAKER 23 /* AVerMedia EZMaker PCI Deluxe */
51#define IVTV_CARD_AVER_M104 24 /* AverMedia M104 miniPCI card */ 51#define IVTV_CARD_AVER_M104 24 /* AverMedia M104 miniPCI card */
52#define IVTV_CARD_BUFFALO_MV5L 25 /* Buffalo PC-MV5L/PCI card */ 52#define IVTV_CARD_BUFFALO_MV5L 25 /* Buffalo PC-MV5L/PCI card */
53#define IVTV_CARD_LAST 25 53#define IVTV_CARD_AVER_ULTRA1500MCE 26 /* AVerMedia UltraTV 1500 MCE */
54#define IVTV_CARD_LAST 26
54 55
55/* Variants of existing cards but with the same PCI IDs. The driver 56/* Variants of existing cards but with the same PCI IDs. The driver
56 detects these based on other device information. 57 detects these based on other device information.
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c
index fa360d3c22fa..63ea0fb66063 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -186,6 +186,7 @@ MODULE_PARM_DESC(cardtype,
186 "\t\t\t24 = AverMedia EZMaker PCI Deluxe\n" 186 "\t\t\t24 = AverMedia EZMaker PCI Deluxe\n"
187 "\t\t\t25 = AverMedia M104 (not yet working)\n" 187 "\t\t\t25 = AverMedia M104 (not yet working)\n"
188 "\t\t\t26 = Buffalo PC-MV5L/PCI\n" 188 "\t\t\t26 = Buffalo PC-MV5L/PCI\n"
189 "\t\t\t27 = AVerMedia UltraTV 1500 MCE\n"
189 "\t\t\t 0 = Autodetect (default)\n" 190 "\t\t\t 0 = Autodetect (default)\n"
190 "\t\t\t-1 = Ignore this card\n\t\t"); 191 "\t\t\t-1 = Ignore this card\n\t\t");
191MODULE_PARM_DESC(pal, "Set PAL standard: BGH, DK, I, M, N, Nc, 60"); 192MODULE_PARM_DESC(pal, "Set PAL standard: BGH, DK, I, M, N, Nc, 60");