By Date: <-- -->
By Thread: <-- -->

Switching Video Inputs on AverTV CardBus



Am Freitag, den 19.05.2006, 09:51 -0400 schrieb Daniel Stolz:
>  I am trying to look at the composite video of an AverTV CardBus card.
> 
> Linux must ;) recognize it because I can see black-and-white video
> through the Svideo input.  However, I can't see video from the composite
> source or the coax input.
> 
> I'm using tvtime to look at it.  Is there another application that would
> be better for determining what exactly the card can see?
> 
> Here is the relevant dmesg output
> 
> saa7133[0]: found at 0000:0d:00.0, rev: 17, irq: 10, latency: 0, mmio:
> 0xf4000000
> PCI: Setting latency timer of device 0000:0d:00.0 to 64
> saa7133[0]: subsystem: 1461:03e2, board: UNKNOWN/GENERIC
> [card=0,autodetected]
> saa7133[0]: board init: gpio is 0
> saa7133[0]: i2c eeprom 00: 61 14 e2 03 ff ff ff ff ff ff ff ff ff ff ff
> ff
> saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> ff
> saa7133[0]: i2c eeprom 20: ff d1 fb ff ff ff ff ff ff ff ff ff ff ff ff
> ff
> saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> ff
> saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> ff
> saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> ff
> saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> ff
> saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> ff
> saa7133[0]: registered device video0 [v4l2]
> saa7133[0]: registered device vbi0
> 
> Sorry about the double post, but I forgot to set the subject field.
> Even though it says so explicity in the email to which I responded. :P
> 

Hi Daniel,

Mark D tried on this card back in November 2005.
We got it working so far, but Mark had on some channels only a bad
picture quality, not fully clear what caused it. Also radio is
unconfirmed/untested/unknown.

The card still needs an entry.

For what we found so far you can try, after modprobe -r related modules,

modprobe tda9887 debug=2
modprobe saa7134 card=46 tuner=66

Card=46 uses a somewhat rude method to switch the tuner on.
It pulls all gpio pins high, see down in saa7134-cards.c.

Mark reported like others, based on Marcin Gozdalik's tries on the PAL
version, that what you see in his patch suggestion would be enough:

Am Sonntag, den 27.11.2005, 19:59 -0500 schrieb Mark D: 
> On Mon, 2005-11-28 at 11:17 +1030, Bob & Gail wrote:
> > Sorry to hear you have given the AVerMedia card away. I did make changes to
> > saa7134-cards.c as explained in earlier messages
> 
> Mine looks like this:
> 
> I think my card is defective as this works fairly well on most channels
> and not on others.  I don't have multiple cable systems to test on.  I
> got an ADS card and it works much better with our cable system.  Notice
> the lack of radio and difference PCI ID.  Also this is the US NTSC
> version.
>         [SAA7134_BOARD_AVERMEDIA_CARDBUS_E501R] = {
>                 /* Mark Duckworth mduckworth (at) atari-source.com */
>                 .name           = "AVerMedia Cardbus TV/Radio (E501R)",
>                 .audio_clock    = 0x187de7,
>                 .tuner_type     = TUNER_PHILIPS_TDA8290,
>                 .tuner_addr     = UNSET,
>                 .inputs         = {{
>                         .name = name_tv,
>                         .vmux = 1,
>                         .amux = TV,
>                         .tv   = 1,
>                 },{
>                         .name = name_comp1,
>                         .vmux = 3,
>                         .amux = LINE2,
>                 },{
>                         .name = name_svideo,
>                         .vmux = 8,
>                         .amux = LINE1,
>                 }},
>         },
> 
> 
>         },{
>                 /* AVerMedia CardBus E501R */
>                 .vendor       = PCI_VENDOR_ID_PHILIPS,
>                 .device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
>                 .subvendor    = 0x1461, /* Avermedia Technologies Inc */
>                 .subdevice    = 0x03e2,
>                 .driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS_E501R,
>         },{
> 
>         case SAA7134_BOARD_AVERMEDIA_CARDBUS_E501R:
>                 /* power-up tuner chip */
>                 saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x08400000, 0x08400000);
>                 saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x08400000, 0x08400000);
>                 msleep(1);
>                 break;
> 
> 
> 
> Thanks,
> Mark

For what I can see Mark forgot to replace the card=46 tuner=54 with
tuner=66, _current_ mercurial name is TUNER_LG_TALN and to add a line

.tda9887_conf   = TDA9887_PRESENT,

Else, already present at card=46, if the card has external analog audio
in, it should be LINE1 _or_ LINE2 for comp1 _and_ svideo I would expect.

As said radio is unclear and you also have to add the card name and a
new number for it in saa7134.h.

For testing on audio and saa7134-oss 32000Hz, 16bit stereo you need sox
something like
"sox -c 2 -s -w -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -w -r
32000 /dev/dsp"

For external audio in, say on LINE2, you have to switch the saa7134-oss
mixer explicitly to that. Same goes for radio, if added. Maybe it is on
LINE1, like card 46 has it, but we don't know how much tda9887 like this
tuner really is.

If you try on saa7134-alsa you maybe can use something like

mencoder -v tv:// -tv
driver=v4l2:device=/dev/video0:width=640:height=480:chanlist=europe-
west:alsa:adevice=hw.1,0:audiorate=32000:amode=1:forceaudio:volume=95:immediatemode=0:norm=PAL -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3600 -vf pp=lb -oac mp3lame -lameopts cbr:br=128:mode=0 -o alsa-test.avi

adapted to your TV conditions and assuming a station is tuned.


Keep us informed how it goes. (real tuner should be ALPS TSEH1)

Good Luck,
Hermann



--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list