Re: Help please; hacking m920x driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux