[linux-dvb] Help please; hacking m920x driver

Trent Piepho xyzzy at speakeasy.org
Wed Feb 28 23:06:49 CET 2007


On Thu, 1 Mar 2007, Nick Andrew wrote:
>  - I have no idea where the two tuners are. I set up a loop to query
>    all 255 addresses and the module reports failure on the first one
>    then hangs trying to query the second one. The loop technique
>    worked to find the demodulators at least :-)

#ifndef TEMPORARY
        for (i = 2; i < 254; ++i, ++i) {
                [...]
                if (dvb_attach(tda827x_attach, adap->fe, i, &adap->dev->i2c_adap, &megasky_tda8275_config) != NULL) {
                        deb_rc("Tuner found at addredd %x!\n", i);
                }
        }

The I2C address passed to tda827x_attach is a 7-bit address.  Instead of
scanning 2, 4, 6, ... 254, you should scan 1, 2, 3, ... 127.   You
probably want to use i>>1.



More information about the linux-dvb mailing list