Difference between revisions of "TerraTec Cinergy C DVB-C"

From LinuxTVWiki
Jump to: navigation, search
m (S2API Driver for Kernel Versions <= 2.6.33)
m (Reverted edits by Chjchj (Talk) to last version by Rho)
(One intermediate revision by one user not shown)
(No difference)

Latest revision as of 08:11, 28 April 2011

Cinergy C DVB-C by Terratec

A DVB-C PCI card from TerraTec.


Looks to be a clone of the Azurewave/Twinhan AD-CP400 (VP-2040) [1]

Components Used

  • NXP/Philips CU1216 module
  • NXP/Philips TDA10023 (demodulator)
  • Mantis (bridge)

Other Images


$ lspci -v -s 01:01.0
01:01.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] (rev 01)
       Subsystem: TERRATEC Electronic GmbH Unknown device 1178
       Flags: bus master, medium devsel, latency 64, IRQ 22
       Memory at cfdff000 (32-bit, prefetchable) [size=4K]
$ lspci -vvn -s 01:01.0
01:01.0 0480: 1822:4e35 (rev 01)
        Subsystem: 153b:1178
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort+ <MAbort- >SERR- <PERR-
        Latency: 64 (2000ns min, 63750ns max)
        Interrupt: pin A routed to IRQ 22
        Region 0: Memory at cfdff000 (32-bit, prefetchable) [size=4K]

Making it Work

The card is working under Linux using the Mantis driver. Kernel support is available since Kernel version 2.6.33. For kernel versions prior to 2.6.33, see the corresponding sections under Drivers below.


No firmware required.


Kernel Driver

The Mantis Driver is part of the vanilla linux kernel[2] since 2.6.33.

S2API Driver for Kernel Versions < 2.6.33

Install the latest mantis drivers:

sudo apt-get install mercurial linux-headers-$(uname -r) build-essential
hg clone http://mercurial.intuxication.org/hg/s2-liplianin
cd s2-liplianin
sudo make install
sudo reboot

If you have a distribution which uses DKMS (like Ubuntu), Mantis with DKMS is a convenient way to install the driver and keep it running for new kernel releases.

You should/could also use the sudo make menuconfig and remove all the unnecessary modules.

Old Multiproto Driver

Old mantis-multiproto (obsolete API) repository instructions. Won't compile with latest kernels, if in doubt, try the vanilla kernel module or the S2API instructions above.

cd /usr/src
sudo apt-get install mercurial
sudo hg clone http://jusst.de/hg/mantis  
cd mantis
sudo make
sudo make install
sudo reboot

Sample kernel output

Output from s2-liplianin driver under Kernel 2.6.28-15

[   10.158595] Mantis 0000:04:09.0: PCI INT A -> Link[LNKB] -> GSI 17 (level, low) -> IRQ 17
[   10.158700] irq: 17, latency: 64
[   10.158701]  memory: 0xdfeff000, mmio: 0xffffc20000054000
[   10.158706] found a VP-2040 PCI DVB-C device on (04:09.0),
[   10.158708]     Mantis Rev 1 [153b:1178], irq: 17, latency: 64
[   10.158710]     memory: 0xdfeff000, mmio: 0xffffc20000054000
[   10.161444]     MAC Address=[00:08:ca:1d:b7:60]
[   10.161482] mantis_alloc_buffers (0): DMA=0x3d5f0000 cpu=0xffff88003d5f0000 size=65536
[   10.161488] mantis_alloc_buffers (0): RISC=0x3d129000 cpu=0xffff88003d129000 size=1000
[   10.161491] DVB: registering new adapter (Mantis dvb adapter)
[   10.681124] mantis_frontend_init (0): Probing for CU1216 (DVB-C)
[   10.684607] TDA10023: i2c-addr = 0x0c, id = 0x7d
[   10.684609] mantis_frontend_init (0): found Philips CU1216 DVB-C frontend (TDA10023) @ 0x0c
[   10.684612] mantis_frontend_init (0): Mantis DVB-C Philips CU1216 frontend attach success
[   10.684616] DVB: registering adapter 0 frontend 0 (Philips TDA10023 DVB-C)...
[   10.684684] mantis_ca_init (0): Registering EN50221 device
[   10.684961] mantis_ca_init (0): Registered EN50221 device
[   10.684971] mantis_hif_init (0): Adapter(0) Initializing Mantis Host Interface
[   10.685048] input: Mantis VP-2040 IR Receiver as /devices/virtual/input/input5
[   10.815684] Mantis VP-2040 IR Receiver: unknown key: key=0x00 raw=0x00 down=1

With latest build from http://jusst.de/hg/mantis:

[   47.563542] found a VP-2040 PCI DVB-C device on (01:01.0),
[   47.563543]     Mantis Rev 1 [153b:1178], irq: 22, latency: 64
[   47.563545]     memory: 0xcfdff000, mmio: 0xf89de000
[   47.566227]     MAC Address=[00:08:ca:1c:73:1d]
[   47.566254] mantis_alloc_buffers (0): DMA=0x37850000 cpu=0xf7850000 size=65536
[   47.566292] mantis_alloc_buffers (0): RISC=0x37913000 cpu=0xf7913000 size=1000
[   47.566332] DVB: registering new adapter (Mantis dvb adapter)
[   48.086203] mantis_frontend_init (0): Probing for CU1216 (DVB-C)
[   48.088334] mantis_frontend_init (0): found Philips CU1216 DVB-C frontend 0x0c
[   48.088378] mantis_frontend_init (0): Mantis DVB-C Philips CU1216 frontend attach success
[   48.088424] DVB: registering frontend 0 (Philips TDA10023 DVB-C)...
[   54.367799] mantis_ack_wait (0): Slave RACK Fail !

Remote Control Support

Supported under the vanilla kernel module.

Works for the old mantis multiproto driver after applying the following patch. See [3]

CI support

CI/CAM support for the optional CI module is not working yet (20.04.2014)

Known Issues

Working around i2c bus probing interference with ivtv

If the mantis module won't load (hangs) with the error message

mantis_ack_wait (0): Slave RACK Fail !

you should check [[4]]

TDA10023(0): tda10023_writereg, writereg error (reg == 0x08, val == 0x23, ret == -121)

femon output is not correct (statistics aren't implemented correctly in the driver)

FE: Philips TDA10023 DVB-C (DVBC)
status SCVYL | signal ffff | snr ffff | ber 000f9f9f | unc 9f9f9f9f | FE_HAS_LOCK
status SCVYL | signal ffff | snr ffff | ber 000f9f9f | unc 9f9f9f9f | FE_HAS_LOCK

External Links