diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-04-26 07:48:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-29 17:41:34 -0400 |
commit | ecfcc83b8d6ff8ac65b072b309a1774ca52d955e (patch) | |
tree | 715144aae77cf9fbaa91c3787122478594d41b89 /drivers/media/video/ivtv | |
parent | d86e2ee98eeef61bdab8ca1bf4837c5709173790 (diff) |
V4L/DVB (7755): ivtv: add support for card comments and detected but unsupported cards
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.c | 2 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-cards.h | 1 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.c | 7 |
3 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-cards.c b/drivers/media/video/ivtv/ivtv-cards.c index e908649ea37c..bf9b32a6c1ad 100644 --- a/drivers/media/video/ivtv/ivtv-cards.c +++ b/drivers/media/video/ivtv/ivtv-cards.c | |||
@@ -875,6 +875,7 @@ static const struct ivtv_card_pci_info ivtv_pci_pg600v2[] = { | |||
875 | static const struct ivtv_card ivtv_card_pg600v2 = { | 875 | static const struct ivtv_card ivtv_card_pg600v2 = { |
876 | .type = IVTV_CARD_PG600V2, | 876 | .type = IVTV_CARD_PG600V2, |
877 | .name = "Yuan PG600-2, GotView PCI DVD Lite", | 877 | .name = "Yuan PG600-2, GotView PCI DVD Lite", |
878 | .comment = "only Composite and S-Video inputs are supported, not the tuner\n", | ||
878 | .v4l2_capabilities = IVTV_CAP_ENCODER, | 879 | .v4l2_capabilities = IVTV_CAP_ENCODER, |
879 | .hw_video = IVTV_HW_CX25840, | 880 | .hw_video = IVTV_HW_CX25840, |
880 | .hw_audio = IVTV_HW_CX25840, | 881 | .hw_audio = IVTV_HW_CX25840, |
@@ -940,6 +941,7 @@ static const struct ivtv_card_pci_info ivtv_pci_avertv_mce116[] = { | |||
940 | static const struct ivtv_card ivtv_card_avertv_mce116 = { | 941 | static const struct ivtv_card ivtv_card_avertv_mce116 = { |
941 | .type = IVTV_CARD_AVERTV_MCE116, | 942 | .type = IVTV_CARD_AVERTV_MCE116, |
942 | .name = "AVerTV MCE 116 Plus", | 943 | .name = "AVerTV MCE 116 Plus", |
944 | .comment = "only Composite and S-Video inputs are supported, not the tuner\n", | ||
943 | .v4l2_capabilities = IVTV_CAP_ENCODER, | 945 | .v4l2_capabilities = IVTV_CAP_ENCODER, |
944 | .hw_video = IVTV_HW_CX25840, | 946 | .hw_video = IVTV_HW_CX25840, |
945 | .hw_audio = IVTV_HW_CX25840, | 947 | .hw_audio = IVTV_HW_CX25840, |
diff --git a/drivers/media/video/ivtv/ivtv-cards.h b/drivers/media/video/ivtv/ivtv-cards.h index 9186fa2ee5fc..bfb385c56099 100644 --- a/drivers/media/video/ivtv/ivtv-cards.h +++ b/drivers/media/video/ivtv/ivtv-cards.h | |||
@@ -244,6 +244,7 @@ struct ivtv_card_tuner_i2c { | |||
244 | struct ivtv_card { | 244 | struct ivtv_card { |
245 | int type; | 245 | int type; |
246 | char *name; | 246 | char *name; |
247 | char *comment; | ||
247 | u32 v4l2_capabilities; | 248 | u32 v4l2_capabilities; |
248 | u32 hw_video; /* hardware used to process video */ | 249 | u32 hw_video; /* hardware used to process video */ |
249 | u32 hw_audio; /* hardware used to process audio */ | 250 | u32 hw_audio; /* hardware used to process audio */ |
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 06a1f3c4de4b..e6f319f7a1b9 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -1097,6 +1097,13 @@ static int __devinit ivtv_probe(struct pci_dev *dev, | |||
1097 | The PCI IDs are not always reliable. */ | 1097 | The PCI IDs are not always reliable. */ |
1098 | ivtv_process_eeprom(itv); | 1098 | ivtv_process_eeprom(itv); |
1099 | } | 1099 | } |
1100 | if (itv->card->comment) | ||
1101 | IVTV_INFO("%s", itv->card->comment); | ||
1102 | if (itv->card->v4l2_capabilities == 0) { | ||
1103 | /* card was detected but is not supported */ | ||
1104 | retval = -ENODEV; | ||
1105 | goto free_i2c; | ||
1106 | } | ||
1100 | 1107 | ||
1101 | if (itv->std == 0) { | 1108 | if (itv->std == 0) { |
1102 | itv->std = V4L2_STD_NTSC_M; | 1109 | itv->std = V4L2_STD_NTSC_M; |