DViCO FusionHDTV5 Gold

From MythTV

Jump to: navigation, search

The Fusion 5 Gold card has both an analog tuner and a QAM256 compat DVB tuner. You can use the driver from the linux kernel; the later the version, the better. My goal is to use both the analog and dvb tuners on the card. This installation was run using .21 (SVN) with linux kernel v 2.6.23 and has been confirmed to work with .20 and kernel 2.6.22 (Mythbuntu 7.1). The latter installation was with the currently shipping FusionHDTV5 RT Gold.


Contents

Installation

First build your kernel making sure you compile all CX88 related modules including the frontends, etc. If you want to bypass the analog audio pass-thru cable then you will also want the cx88_alsa module; make sure it's in there. After you have rebooted with the new kernel, check to see if the modules have already been loaded using lsmod. Depending on your distro, you may have to manually specify the following modules to load: cx88_alsa,cx8800, and cx88_dvb. Watch dmesg as you load them. It should look something like this:

Jun 24 15:22:09 pvr cx2388x dvb driver version 0.0.5 loaded
Jun 24 15:22:09 pvr CORE cx88[0]: subsystem: 18ac:d500, board: DViCO FusionHDTV 5 Gold [card=31,autodetected]
Jun 24 15:22:09 pvr TV tuner 64 at 0x1fe, Radio tuner -1 at 0x1fe
Jun 24 15:22:09 pvr ACPI: PCI Interrupt 0000:02:01.2[A] -> GSI 17 (level, low) -> IRQ 209
Jun 24 15:22:09 pvr cx88[0]/2: found at 0000:02:01.2, rev: 5, irq: 209, latency: 32, mmio: 0xe0000000
Jun 24 15:22:09 pvr cx88[0]/2: cx2388x based dvb card
Jun 24 15:22:09 pvr DVB: registering new adapter (cx88[0]).
Jun 24 15:22:09 pvr DVB: registering frontend 0 (LG Electronics LGDT3303 VSB/QAM Frontend)...
Jun 24 15:22:09 pvr cx2388x v4l2 driver version 0.0.5 loaded
Jun 24 15:22:09 pvr ACPI: PCI Interrupt 0000:02:01.0[A] -> GSI 17 (level, low) -> IRQ 209
Jun 24 15:22:09 pvr cx88[0]/0: found at 0000:02:01.0, rev: 5, irq: 209, latency: 32, mmio: 0xde000000
Jun 24 15:22:09 pvr tuner 0-0061: chip found @ 0xc2 (cx88[0])
Jun 24 15:22:09 pvr tuner 0-0061: type set to 64 (LG TDVS-H062F/TUA6034)
Jun 24 15:22:09 pvr tda9887 0-0043: chip found @ 0x86 (cx88[0])
Jun 24 15:22:09 pvr cx88[0]/0: registered device video0 [v4l2]
Jun 24 15:22:09 pvr cx88[0]/0: registered device vbi0
Jun 24 15:22:09 pvr cx2388x alsa driver version 0.0.5 loaded
Jun 24 15:22:09 pvr ACPI: PCI Interrupt 0000:02:01.1[A] -> GSI 17 (level, low) -> IRQ 209
Jun 24 15:22:09 pvr cx88[0]/1: CX88x/0: ALSA support for cx2388x boards

You should see several /dev/dvb0... devices as well as a /dev/v4l/video0 device. Also, check to see if the alsa module was loaded correctly by running cat /proc/asound/cards. It should have both your regular card and the new capture-only input.

0 [I82801DBICH4   ]: ICH4 - Intel 82801DB-ICH4
                     Intel 82801DB-ICH4 with ALC650F at 0xe2001000, irq 209
1 [CX8811         ]: CX88x - Conexant CX8811
                     Conexant CX8811 at 0xdf000000

First, set the record volume on the new alsa mixer by running alsamixer -c <new card #>.

Next, if you have tvtime you can try out the analog component of the card just by running tvtime (not sure how to get it to read audio from the new device). You can try out the audio by opening a new command line while the device is tuned to a channel, and running arecord -D hw:1,0 -fdat test.dat, killing it after a few seconds, and then playing the file back. You will need to change the value of hw:1,0 to reflect the alsa card number.

Next, Scan for dvb channels.

Mythtv Setup

You will need to setup the card as a dvb card under mythtv-setup. Hopefully, libmythtv will have probed the card and discovered it to be a dvico v2 (see below.) There is an analog button which contains the configuration information for /dev/video0 (your analog tuner). Make sure to set the audio device to the cx88 device (probably /dev/sound/adsp1 or /dev/dsp1). Follow the guide linked above for adding the channels into your configuration. Using kernel 2.6.18-1.2200.fc5. The settings in mythtv-setup-> General:

       Type: ATSC

Capture Card Setup

       Card type: DVB DTV capture card (v3.x)
       DVB Card Number: 0

(this needs to be detected rather than entered)

       Frontend ID: DViCO v2 or Air2PC v3 or pcHDTV HD-5500 Subtype ...
 Analog Options
       Video device: /dev/video

(this needs to be detected rather than entered)

       Probed info: BT878 video (DViCO FusionHDTV 5 [bttv])
       VBI device: /dev/vbi
       Audio device: /dev/dsp1
       Audio sampling rate: (None)    (unchecked) Do not adjust volume
       Default input: Television

Input connections:

       [DVB]:0] (DVBInput) -> Digital
       ->[V4L:/dev/video0](Television)-> Analog
       ->[V4L:/dev/video0](Composite1)-> (None)
       ->[V4L:/dev/video0](S-Video)-> (None)


If you are experiencing jittery video and sound or "synthetic" sound when tuned to analog stations, adjust the samplig rate on the Audio Quality screen of the v4l recording profiles. Start with the liveTV profile first. When you find the correct sampling rate you can set the other profiles to this same value.

LIRC

There are at least two remotes that have been shipped with the FusionHDTV5 Gold and DViCO offers both a USB based IR receiver and an IR receiver with a 1/8" inch stereo phono plug that plugs into the back of the FusionHDTV card. The ATSC, PCI based FusionHDTV5 RT Gold comes with the latter IR receiver which does not currently have a driver for LIRC (The USB receivers should work). While there may be other options, you can easily modify the IR receiver to work with the lirc_serial driver. Follow these instructions for building a receiver. For the receiver IC, you can use the one that comes with the FusionHDTV 5 RT. Cut off the phono plug and strip the outer casing of the wire. There are 3 conductors: bare - GND, white - vcc (IN), red - data. Attach these according to the schematic. If you choose to use a different IR receiver IC, you'll most likely need a 56kHz type receiver as 36.5 and 38kHz receivers have been confirmed to work only at very short ranges. Configure LIRC to use lirc_serial. (Here are instructions for Ubuntu). The lird.conf file for DViCO based remotes that ships with .20 should work but I found that for the "Fusion Remote" that shipped with the ATSC, PCI based FusionHDTV5 RT Gold this FusionRemote file works much better.

Notes

Audio stuttering has been reported in 2.6.23 and .21 (SVN). Capturing raw audio from the device after tuned produces good audio, however. There appears to be driver changes between 2.6.18 and 2.6.23 which cause the audio stuttering.

Running mythbuntu 7.10 (myth .20, 2.6.22) the card has performed very well tuning digital channels but the analog sound has the same problem as reported above. The card was detected out of the box and all modules loaded w/o any intervention. Nice. The problem with the analog sound is that when switching from a digital station to an analog one, the transition is rough (lots of static and noise), and then the audio sampling rate is wrong. If you exit live TV, change the sampling rate, go back to live TV, then go back and change the sampling rate back to what it should be, and go back to live TV analog audio works fine. But the next time you tune from digital to analog it's screwed up again. Not an issue for me as I see all of my analog stations have digital equivilents but if you're counting on the analog component you'll need to investigate this. One option may be using the analog pass thru cable (the above configuration passes analog audio over the PCI bus using the cx88-alsa driver) but I never found any documentation on how to do this (I did plug in the cable and set the mixer for line-in but that didn't do it).

Personal tools