aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-04-26 08:19:44 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-29 17:41:34 -0400
commit22f23fcc13e34a1efde8e7c37d157516fc1aa24f (patch)
tree2deacee8e63df69aa9bf5c5faa5b4b242693027b /drivers/media/video/ivtv
parentcebfadff4a5c877c524ae6014613edab9f50a2a9 (diff)
V4L/DVB (7757): ivtv: add autodetect for the AVermedia M104 card
Note that this card is only detected and not yet working. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv')
-rw-r--r--drivers/media/video/ivtv/ivtv-cards.c36
-rw-r--r--drivers/media/video/ivtv/ivtv-cards.h3
-rw-r--r--drivers/media/video/ivtv/ivtv-driver.c1
3 files changed, 39 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-cards.c b/drivers/media/video/ivtv/ivtv-cards.c
index 33a2f58f66d7..75b01e89e641 100644
--- a/drivers/media/video/ivtv/ivtv-cards.c
+++ b/drivers/media/video/ivtv/ivtv-cards.c
@@ -1066,6 +1066,41 @@ static const struct ivtv_card ivtv_card_asus_falcon2 = {
1066 .i2c = &ivtv_i2c_std, 1066 .i2c = &ivtv_i2c_std,
1067}; 1067};
1068 1068
1069/* ------------------------------------------------------------------------- */
1070
1071/* AVerMedia M104 miniPCI card */
1072
1073static const struct ivtv_card_pci_info ivtv_pci_aver_m104[] = {
1074 { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc136 },
1075 { 0, 0, 0 }
1076};
1077
1078static const struct ivtv_card ivtv_card_aver_m104 = {
1079 .type = IVTV_CARD_AVER_M104,
1080 .name = "AVerMedia M104",
1081 .comment = "Not yet supported!\n",
1082 .v4l2_capabilities = 0, /*IVTV_CAP_ENCODER,*/
1083 .hw_video = IVTV_HW_CX25840,
1084 .hw_audio = IVTV_HW_CX25840,
1085 .hw_audio_ctrl = IVTV_HW_CX25840,
1086 .hw_all = IVTV_HW_CX25840 | IVTV_HW_TUNER | IVTV_HW_WM8739,
1087 .video_inputs = {
1088 { IVTV_CARD_INPUT_SVIDEO1, 0, CX25840_SVIDEO3 },
1089 { IVTV_CARD_INPUT_COMPOSITE1, 0, CX25840_COMPOSITE1 },
1090 },
1091 .audio_inputs = {
1092 { IVTV_CARD_INPUT_LINE_IN1, CX25840_AUDIO_SERIAL, 1 },
1093 },
1094 .radio_input = { IVTV_CARD_INPUT_AUD_TUNER, CX25840_AUDIO_SERIAL, 2 },
1095 /* enable line-in + reset tuner */
1096 .gpio_init = { .direction = 0xf000, .initial_value = 0x5000 },
1097 .tuners = {
1098 { .std = V4L2_STD_ALL, .tuner = TUNER_XC2028 },
1099 },
1100 .pci_list = ivtv_pci_aver_m104,
1101 .i2c = &ivtv_i2c_std,
1102};
1103
1069static const struct ivtv_card *ivtv_card_list[] = { 1104static const struct ivtv_card *ivtv_card_list[] = {
1070 &ivtv_card_pvr250, 1105 &ivtv_card_pvr250,
1071 &ivtv_card_pvr350, 1106 &ivtv_card_pvr350,
@@ -1091,6 +1126,7 @@ static const struct ivtv_card *ivtv_card_list[] = {
1091 &ivtv_card_asus_falcon2, 1126 &ivtv_card_asus_falcon2,
1092 &ivtv_card_aver_pvr150, 1127 &ivtv_card_aver_pvr150,
1093 &ivtv_card_aver_ezmaker, 1128 &ivtv_card_aver_ezmaker,
1129 &ivtv_card_aver_m104,
1094 1130
1095 /* Variations of standard cards but with the same PCI IDs. 1131 /* Variations of standard cards but with the same PCI IDs.
1096 These cards must come last in this list. */ 1132 These cards must come last in this list. */
diff --git a/drivers/media/video/ivtv/ivtv-cards.h b/drivers/media/video/ivtv/ivtv-cards.h
index bfb385c56099..196c0445da63 100644
--- a/drivers/media/video/ivtv/ivtv-cards.h
+++ b/drivers/media/video/ivtv/ivtv-cards.h
@@ -48,7 +48,8 @@
48#define IVTV_CARD_ASUS_FALCON2 21 /* ASUS Falcon2 */ 48#define IVTV_CARD_ASUS_FALCON2 21 /* ASUS Falcon2 */
49#define IVTV_CARD_AVER_PVR150PLUS 22 /* AVerMedia PVR-150 Plus */ 49#define IVTV_CARD_AVER_PVR150PLUS 22 /* AVerMedia PVR-150 Plus */
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_LAST 23 51#define IVTV_CARD_AVER_M104 24 /* AverMedia M104 miniPCI card */
52#define IVTV_CARD_LAST 24
52 53
53/* Variants of existing cards but with the same PCI IDs. The driver 54/* Variants of existing cards but with the same PCI IDs. The driver
54 detects these based on other device information. 55 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 e6f319f7a1b9..da696e155fc6 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -190,6 +190,7 @@ MODULE_PARM_DESC(cardtype,
190 "\t\t\t22 = ASUS Falcon2\n" 190 "\t\t\t22 = ASUS Falcon2\n"
191 "\t\t\t23 = AverMedia PVR-150 Plus\n" 191 "\t\t\t23 = AverMedia PVR-150 Plus\n"
192 "\t\t\t24 = AverMedia EZMaker PCI Deluxe\n" 192 "\t\t\t24 = AverMedia EZMaker PCI Deluxe\n"
193 "\t\t\t25 = AverMedia M104 (not yet working)\n"
193 "\t\t\t 0 = Autodetect (default)\n" 194 "\t\t\t 0 = Autodetect (default)\n"
194 "\t\t\t-1 = Ignore this card\n\t\t"); 195 "\t\t\t-1 = Ignore this card\n\t\t");
195MODULE_PARM_DESC(pal, "Set PAL standard: BGH, DK, I, M, N, Nc, 60"); 196MODULE_PARM_DESC(pal, "Set PAL standard: BGH, DK, I, M, N, Nc, 60");