AVerMedia AVerTV Hybrid+FM PCI (A16D)

From LinuxTVWiki
Jump to: navigation, search

Avermedia

AVerMedia AverTV Hybrid+FM PCI A16D

Info

Avermedia offers two "Hybrid+FM PCI" cards that, unlike their names, feature different tuner chipset;

A16Dboard.jpg

Looking on the card we can find:

  • Philips SAA7135HL PCI Audio/Video Broadcast Decoder
  • Xceive XC3018 Silicon Tuner File:Xc3018.jpg
  • Zarlink MT352 Digital Terrestrial TV Demodulator


Xceive XC3018 is a pared-down version of XC3028. XC3018 supports NTSC, PAL, SECAM analog TV standards and DVB-T digital TV standard only. XC3028 supports all analog TV standards:

  • NTSC,
  • PAL,
  • SECAM,
  • CVBS,
  • SIF and audio output

and all digital TV standards

  • ATSC,
  • DVB-T,
  • ISDB-T,
  • DMB-T,
  • DVB-C.

Also it seems that the card is quite similar to the Cardbus version (E506R).

Analogue TV seems to work already, but without [audio].

Remote can be enabled as well: see remote controller section in this wiki.

Installation

A16AR : Fedora 7 \ Kernel 2.6.21.1

1. #> /etc/modprobe.d/saa7134

2. # echo "options saa7134 card=99 alsa=1 tuner=71" > /etc/modprobe.d/saa7134

3. # echo "install /sbin/modprobe em28xx; /sbin/modprobe --ignore-install saa7134; /sbin/modprobe saa7134-dvb; /sbin/modprobe saa7134-alsa" >> /etc/modprobe.d/saa7134

4. # /sbin/rmmod saa7134 && /sbin/modprobe -v saa7134

install /sbin/modprobe em28xx; /sbin/modprobe --ignore-install saa7134; /sbin/modprobe saa7134-dvb; /sbin/modprobe saa7134-alsa
insmod /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/media/video/saa7134/saa7134.ko card=99 alsa=1 tuner=71
insmod /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/media/dvb/frontends/tda1004x.ko
insmod /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/media/dvb/dvb-core/dvb-core.ko
insmod /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/media/video/video-buf-dvb.ko
insmod /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/media/dvb/frontends/dvb-pll.ko
insmod /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/media/video/saa7134/saa7134-dvb.ko
insmod /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/media/video/saa7134/saa7134-alsa.ko

5. # cat /var/log/messages | grep kernel

kernel:saa7130/34: v4l2 driver version 0.2.14 loaded
kernel: saa7133[0]: found at 0000:01:07.0, rev: 209, irq: 20, latency: 32, mmio: 0xfdfff000
kernel: saa7133[0]: subsystem: 1461:f936, board: AVerMedia TV Hybrid A16AR [card=99,insmod option]
kernel: saa7133[0]: board init: gpio is 2fa00
kernel: input: saa7134 IR (AVerMedia TV Hybrid as /class/input/input7
kernel: saa7133[0]: i2c eeprom 00: 61 14 36 f9 00 00 00 00 00 00 00 00 00 00 00 00
kernel: saa7133[0]: i2c eeprom 10: ff ff ff ff ff 20 ff ff ff ff ff ff ff ff ff ff
kernel: saa7133[0]: i2c eeprom 20: 01 40 01 02 02 01 01 00 08 ff 00 0e ff ff ff ff
kernel: saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
kernel: saa7133[0]: i2c eeprom 40: ff 65 00 ff c2 1e ff ff ff ff ff ff ff ff ff ff
kernel: saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
kernel: saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
kernel: saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
kernel: saa7133[0]: registered device video0 [v4l2]
kernel: saa7133[0]: registered device vbi0
kernel: saa7133[0]: registered device radio0
kernel: saa7133[0]: avertv 777 dvb setup
kernel: DVB: registering new adapter (saa7133[0]).
kernel: DVB: registering frontend 0 (Zarlink MT352 DVB-T)...
kernel: saa7134 ALSA driver for DMA sound loaded
kernel: saa7133[0]/alsa: saa7133[0] at 0xfdfff000 irq 20 registered as card -1

old experimental code

As for the (E506R) there's some experimental code in

http://linuxtv.org/hg/~mrechberger/v4l-dvb-kernel

   $ hg clone http://linuxtv.org/hg/~mrechberger/v4l-dvb-kernel
   $ cd v4l-dvb-kernel/v4l

and in a newer repository

http://mcentral.de/hg/~mrec/v4l-dvb-experimental/

   $ hg clone http://mcentral.de/hg/~mrec/v4l-dvb-experimental/
   $ cd v4l-dvb-experimental/v4l

Adding A16D driver

A16D Definition has been added to the above v4l-dvb-kernel tree by Markus, so please jump to the [install] section!!

building and installing

   $ make
   $ make install

Unfortunately with Fedora core 6 modules are installed in /usr/src/2.6.xxxx/kernel/ while modprobe looks for updated modules in /usr/src/2.6.xxxx/updates/. Maybe you need to give the correct path as an install options; by now I simply copied patched modules over the old ones.

As stated in this thread create /etc/modprobe.d/saa7134 containing:

   options saa7134 alsa=1
   install saa7134 /sbin/modprobe xc3028-tuner; /sbin/modprobe --ignore-install saa7134; /sbin/modprobe saa7134-dvb; /sbin/modprobe saa7134-alsa

in case of using http://mcentral.de/hg/~mrec/v4l-dvb-experimental/)

Remember that things don't work if you load saa7134 before xc3028-tuner.

(note do not use the card= or tuner= options, the numbers might change any time!)

MarkusRechberger 22:10, 8 June 2007 (CEST)

installing firmware

Install firmware for the XC3028 as reported for the em2880

Firmware ver.3 and 4 worked with my card.

trying to let FM to work, you will get an error as reported by Damir:

   ..........
   [78693.955561] upload_firmware, Loading specific radio firmware: 
   xc3028_specific_radio.fw
   [78693.963196] Loading configuration from file failed!

Radio's firmware is called by xc3028-tuner module, but it is not actually provided with the above firmware installation.

I did some testing trying to extract firmware from windows drivers, but with no luck.

loading modules

Load modules with :

   $ modprobe saa7134

Modules will also get loaded automatically at boot time.

Dvb-t

Digital terrestrial is not working at the moment: to implement this probably need adding xc3028+mt352 definition to saa7134-dvb module.

Audio and FM

Thanks Damir, I was adviced:

   TV works fine (except a fact that the sound must be processed with something 
   like 'arecord -D hw:2,0 -r 32000 -c 2 -f S16_LE | sox -q -c 2 -r 32000 -w -t 
   wav - -t alsa hw:0,0'), but FM radio doesn't.

I will investigate the above, but until now I'm not able to have TV audio nor FM from speakers!  :-( Help's wellcome!! See also saa7134-alsa.


cool so audio also works with it! FM needs an extra firmware which isn't implemented for your device so you won't have any luck with it.

MarkusRechberger 22:26, 10 March 2007 (CET)


Thanks to SunnyBUG, the autor of the original article "CARDBUS Hybrid TV FM (E506R)" from which most of this was taken.

You can find the translated Italian version Here

--Lucarasp 13:47, 23 February 2007 (CET) Link title