Mailing List archive

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

[linux-dvb] Re: Avermedia-dvb-t



Ok, here a better patch for dvb-bt8xx.c:

--- dvb-bt8xx.c 2004-05-03 18:29:27.000000000 +0200
+++ dvb-bt8xx.c.new     2004-05-26 16:44:39.723123464 +0200
@@ -443,6 +443,12 @@
                                             0, 0);
                                /* A_PWRDN DA_SBR DA_APP (high speed serial) 
*/
                                break;
+                       case 0x07711461:
+                               dvb_bt8xx_card_match(card_nr, "Avermedia 
DVB-T",
+                                            (1 << 26) | (1 << 14) | (1 << 5),
+                                            0, 0);
+                               /* A_PWRDN DA_SBR DA_APP (high speed serial) 
*/
+                               break;
                        case 0x0:
                                if (card_type == BT878_NEBULA ||
                                        card_type == BT878_TWINHAN_DST)


Me and a friend wrote some debugging code for the mt352.c:

we changed:
#define I2C_MT352_ADDR 0x0f
to
static int I2C_MT352_ADDR=0x0f;
and changed mt352_attach to:
static int mt352_attach (struct dvb_i2c_bus *i2c, void **data)
{
	/* important debug :) */
        for(I2C_MT352_ADDR=32;I2C_MT352_ADDR--;)
                printk("SADD=%x: %x\n",I2C_MT352_ADDR,mt352_read_register(i2c, 
0x7f));
	/**/

        if (mt352_read_register(i2c, 0x7f) == 0x13)
                return dvb_register_frontend(mt352_ioctl, i2c, NULL,
                                             &mt352_info);

        return -ENODEV;
}

it seems that the mt352 on my card doesn't react to any of this addresses.
output:
SADD=XX: 0
i2c_adapter i2c-2: sendbytes: error - bailout.
mt352_read_register: readreg error (ret == -14)

for XX=1f downto 0

thanks to Daniel for his help.

cheers


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index