On Thursday 15 May 2008 17:33, Peter Brandt wrote:
> Hello Hans and everyone
>
> Hans Verkuil wrote:
>  > On Wednesday 14 May 2008 20:13:16 Peter Brandt wrote:
>  >> "make" had some problems although I worked against a recent
>  >> 2.6.25.3 kernel. Probably Hans' sources are for a more recent
>  >> development version?
>  >>...
>  >>
>  >> Both .c files seemed to have nothing to do with my card, so I'm
>  >> probably on the safe side here.
>  >
>  > Correct. You can also run 'make menuconfig' and only configure the
>  > cx18 driver. I'm actually using a 2.6.23 kernel. I tried to go to
>  > 2.6.25, but due to some regression I no longer have audio with
>  > that kernel :-(
>
> I have not yet checked audio with that kernel. Are you talking about
> audio output or audio from the video grabber card?

No, that's just the audio chip on my motherboard. Nothing to do with the 
cx18 driver.

>  >> Changing to CX25840_COMPOSITE1 gave me a faint picture with
>  >> almost no color and lots of noise on top.
>  >>
>  >> Switching the video mode to PAL ("v4l2-ctl -s pal") did the job!
>  >> (My encoder card is currently fed with the moving DVD title menu
>  >> of a PAL version of "The Hitchhikers Guide to the Galaxy" in
>  >> infinite loop -- nice test picture :).
>  >
>  > Ah yes, the default standard selected for these worldwide tuners
>  > is NTSC. I didn't realize that you were in PAL country.
>
> The card is from Japan and will be used there eventually (=NTSC
> country). But I am currently in Europe, doing the setup (=PAL
> country) for that box.
>
>  >>> Next try S-Video input (v4l2-ctl -i1): edit the line
>  >>>
>  >>> { IVTV_CARD_INPUT_SVIDEO1,    1, CX25840_SVIDEO3    },
>  >>>
>  >>> and replace SVIDEO3 with SVIDEO1-4 and see which one works. If
>  >>> none of these works, or you get only black & white then make a
>  >>> note of which input gives B&W and let me know. We can get color
>  >>> to work later.
>
> The default CX25840_SVIDEO3 from Hans' card configuration worked, but
> only black&white (good picture though).

OK, then you need to do one final set of tests: replace SVIDEO3 
with 'CX25840_SVIDEO_LUMA3 | CX25840_SVIDEO_CHROMA4' and then try 
CHROMA4-8 (you can skip CHROMA7, that's what SVIDEO3 uses).

>
> I checked all the other possiblities:
>
> CX25840_SVIDEO1: black & red noise only
> CX25840_SVIDEO2: b/w noise only
> CX25840_SVIDEO3: sharp picture but black&white only
> CX25840_SVIDEO4: b/w noise only
>
> One other thing that might be important here:
> The card has only a S-Video input, no real composite input. For
> composite, a small adapter was in the package, which you plug into
> the S-Video input and which gives you a composite plug. (This is the
> composite input with which I successfully go composite in to work
> before, even in color).
>
>  >>> 5) Tuner: first get the firmware. See the file
>  >>> linux/Documentation/video4linux/extract_xc3028.pl for
>  >>> instructions.
>  >>
>  >> (already installed the firmware while compiling; seems to be
>  >> fine, see dmesg output above)
>  >
>  > It can be misleading: if the fw still loads correctly after an
>  > rmmod/modprobe then you know the correct pin is selected.
>  >
>  >>> 6) Now modprobe ivtv. Then run rmmod ivtv and modprobe ivtv
>  >>> again. If you get errors in the kernel log regarding the xceive
>  >>> tuner, then you need to change the xceive_pin setting in the
>  >>> buffalo card definition. It should be in the range 8-15. Try 10
>  >>> first.
>
> It seems to be ok. Even after unloading/loading the same module
> (version) twice, I get no errors in dmesg.
>
>  >>> 7) Congratulations, the tuner is now working. The final step is
>  >>> to find the correct composite input for the tuner by editing the
>  >>> line:
>  >>>
>  >>> { IVTV_CARD_INPUT_VID_TUNER,  0, CX25840_COMPOSITE2 },
>
> (tuned to a frequency where there's something in the air)
>
> CX25840_COMPOSITE1: black picture (well, it really is the composite
> input...)
> CX25840_COMPOSITE2: with antenna input: good picture, color ok, audio
> ok CX25840_COMPOSITE3: shows b&w picture of current S-Video input
> (DVD) CX25840_COMPOSITE4: some ghost things (images?) on black
> background; VLC complains about a missing audio device / filter /
> pipeline
> CX25840_COMPOSITE5: b&w noise
> CX25840_COMPOSITE6: black screen with some short white horizontal
> stripes sometimes
> CX25840_COMPOSITE7: black screen with some white dots sometimes
> CX25840_COMPOSITE8: black screen
>
> So it is CX25840_COMPOSITE2.
>
>  >>> Again, it can be any value from COMPOSITE1-8. For audio you may
>  >>> have to change the line:
>  >>>
>  >>> { IVTV_CARD_INPUT_AUD_TUNER,  CX25840_AUDIO5       },
>  >>>
>  >>> Possible values: AUDIO4-8.
>
> The audio settings for the tuner from your source work:
> CX25840_AUDIO5
>
>  >>> 8) Done!
>
> What is still missing now:
> - not yet checked: audio input for composite and S-Video

Audio should be fine: there is no choice there as far as cx25840 inputs 
are concerned. You should test it though, sometimes there are gpio 
settings required. I hope not, as that's another set of tests cycling 
through all combinations.

> - color for S-Video
>
>  >>> It's a bit annoying to go through all the combinations but it is
>  >>> the only way to do it.
>
> Well, not sooo bad, really. Essentially a very structured way which
> will lead to a result eventually.
>
>  > With a bit of luck it shouldn't be too hard to figure out the full
>  > card definition.
>
> Almost there :-)
>
>  > Thanks for your help.
>
> I am the one who has to thank you for your detailed explanation (I
> never modified kernel sources before myself, although I did compile
> some kernels).

There's no radio on this board? You didn't mention it, so I suspect not.

Regards,

        Hans

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to