Web lists-archives.com

mantis driver (jusst.de) selects wrong tuner on Terratec Cinergy C PCI

Hi all,

(I don't know if this is the right location to report this issue, if not
please point me to the right location)

Previously I ran kernel (stock kernel on Debian AMD64) with the
Mantis driver from jusst.de/hg/mantis/ and it worked OK with my Terratec
Cinergy C PCI.

After upgrading to stock kernel I compiled the mantis-v4l driver
from jusst.de/hg/mantis-v4l but it could not find any channel. Searching
in old mailing lists showed that the mantis driver selects the tda10021
tuner, where it should have loaded the tda20023 tuner.

I made two hacks to the mantis-v4l source files, to make it work for my
card. I won't provide proper patch output because it will break other
cards and I don't have enough knowledge to do the right runtime selection.

In mantis_cards.c I changed the mantis_pci_table struct.

static struct pci_device_id mantis_pci_table[] = {
        //MAKE_ENTRY(TERRATEC, CINERGY_C, &vp2033_config),
        MAKE_ENTRY(TERRATEC, CINERGY_C, &vp2040_config),

In mantis_vp2040.c I removed the probe for the TDA10021 tuner, so it
defaults to the TDA10023.

static int vp2040_frontend_init(struct mantis_pci *mantis, struct
dvb_frontend *fe)
        struct i2c_adapter *adapter = &mantis->adapter;

        int err = 0;

        err = mantis_frontend_power(mantis, POWER_ON);
        if (err == 0) {

                dprintk(MANTIS_ERROR, 1, "Probing for CU1216 (DVB-C)");
                fe = 0; //dvb_attach(tda10021_attach,
                        //      &vp2040_tda1002x_cu1216_config,
                        //      adapter,
                        //      read_pwm(mantis));

                if (fe) {
                        dprintk(MANTIS_ERROR, 1,
                                "found Philips CU1216 DVB-C frontend
(TDA10021) @ 0x%02x",
                } else {
                        fe = dvb_attach(tda10023_attach,

I hope the V4L experts can use this hack to make a fix that will work for
all cards. Maybe just reverse the checks for the two tuner types?

Best regards,
Arthur van Dongen

video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe