On Wednesday 09 August 2006 16:48, Radu Cristescu wrote:
> Hans Verkuil wrote:
> > Try to force the card to a GotView PCI DVD2 (I think that's the
> > 'card_type=16' ivtv module option, you can check it with 'modinfo
> > ivtv').
> >
> > That card comes close to you configuration. It will try to use a
> > tuner (which may cause some warnings in the log) and it exposes a
> > non-existant radio device, but otherwise it just might work for
> > composite/S-Video input.
>
> All I'm getting is black image on the Composite input.
>
> On the S-Video input there is nothing connected, but I get some red
> lines on a black background.

Hi Radu,

Attached is a patch for ivtv-0.6.3. Please apply. It should now detect 
the card automatically.

Now go to the ivtv_card_avermedia_ref_design struct in ivtv-cards.c. 
Here is defined how the cx2584x chip is wired to the other components. 
Of interest is only video_inputs. The first entry defines the SVideo 
input, the second the composite. The composite is easy as there are 
only 8 possibilities: CX25840_COMPOSITE1 until CX25840_COMPOSITE8. Just 
try each one in turn.

Now, if this doesn't work, then that might indicate that GPIO has to be 
used in order to select the composite input. In that case try 
ivtvctl --set-gpio dir=0xffff,val=0xffff and see if that helps.

Regards,

        Hans
Index: ivtv-driver.h
===================================================================
--- ivtv-driver.h	(revision 3325)
+++ ivtv-driver.h	(working copy)
@@ -127,12 +127,14 @@
 #define IVTV_CARD_GOTVIEW_PCI_DVD    14	/* GotView PCI DVD */
 #define IVTV_CARD_GOTVIEW_PCI_DVD2   15	/* GotView PCI DVD2 */
 #define IVTV_CARD_YUAN_MPC622    16	/* Yuan MPC622 miniPCI */
+#define IVTV_CARD_AVER_REF_DESIGN    17	/* Avermedia reference design card */
+
 /* Variants of existing cards but with the same PCI IDs. The driver
    detects these based on other device information.
    These cards must always come last. */
-#define IVTV_CARD_PVR_350_V1 	     17	/* encoder, decoder, tv-out, V1 (uses saa7114) */
-#define IVTV_CARD_CX23416GYC_NOGR    18	/* Kuroutoshikou CX23416GYC-STVLP (Yuan MPG600GR OEM) */
-#define IVTV_CARD_CX23416GYC_NOGRYCS 19	/* Kuroutoshikou CX23416GYC-STVLP (Yuan MPG600GR OEM) */
+#define IVTV_CARD_PVR_350_V1 	     18	/* encoder, decoder, tv-out, V1 (uses saa7114) */
+#define IVTV_CARD_CX23416GYC_NOGR    19	/* Kuroutoshikou CX23416GYC-STVLP (Yuan MPG600GR OEM) */
+#define IVTV_CARD_CX23416GYC_NOGRYCS 20	/* Kuroutoshikou CX23416GYC-STVLP (Yuan MPG600GR OEM) */
 
 #define IVTV_AUDIO_32000 0x2	/* 32 kHz audio */
 #define IVTV_AUDIO_44100 0x0	/* 44.1 kHz audio */
Index: ivtv-cards.c
===================================================================
--- ivtv-cards.c	(revision 3347)
+++ ivtv-cards.c	(working copy)
@@ -806,6 +806,34 @@
 
 /* ------------------------------------------------------------------------- */
 
+/* Avermedia design reference card */
+
+static const struct ivtv_card_pci_info ivtv_pci_avermedia_ref_design[] = {
+	{ PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_AVERMEDIA, 0xc03f },
+	{ 0, 0, 0 }
+};
+
+static const struct ivtv_card ivtv_card_avermedia_ref_design = {
+	.type = IVTV_CARD_AVER_REF_DESIGN,
+	.name = "AverMedia Reference Design",
+	.v4l2_capabilities = IVTV_CAP_ENCODER,
+	.hw_video = IVTV_HW_CX25840,
+	.hw_audio = IVTV_HW_CX25840,
+	.hw_audio_ctrl = IVTV_HW_CX25840,
+	.hw_all = IVTV_HW_CX25840,
+	.video_inputs = {
+		{ IVTV_CARD_INPUT_SVIDEO1,    1,
+		  IVTV_CX25840_SVIDEO_LUMA3 | IVTV_CX25840_SVIDEO_CHROMA4 },
+		{ IVTV_CARD_INPUT_COMPOSITE1, 1, IVTV_CX25840_COMPOSITE1 },
+	},
+	.audio_inputs = {
+		{ IVTV_CARD_INPUT_LINE_IN1,   IVTV_CX25840_AUDIO_SERIAL, 1 },
+	},
+	.pci_list = ivtv_pci_avermedia_ref_design,
+};
+
+/* ------------------------------------------------------------------------- */
+
 static const struct ivtv_card *ivtv_card_list[] = {
 	&ivtv_card_pvr250,
 	&ivtv_card_pvr350,
@@ -824,6 +852,7 @@
 	&ivtv_card_gotview_pci_dvd,
 	&ivtv_card_gotview_pci_dvd2,
 	&ivtv_card_yuan_mpc622,
+	&ivtv_card_avermedia_ref_design,
 
 	/* Variations of standard cards but with the same PCI IDs.
 	   These cards must come last in this list. */
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to