r/w bit is not part of the addr. Signed-of-by: Aapo Tahkola <aet@xxxxxxxxxxxxxx> -- Aapo Tahkola
diff -r 70ff7de20789 linux/drivers/media/dvb/dvb-usb/m920x.c --- a/linux/drivers/media/dvb/dvb-usb/m920x.c Sat Mar 03 01:18:47 2007 +0200 +++ b/linux/drivers/media/dvb/dvb-usb/m920x.c Sat Mar 03 01:19:56 2007 +0200 @@ -154,7 +154,7 @@ static int m9206_i2c_xfer(struct i2c_ada for (i = 0; i < num; i++) { if (msg[i].flags & I2C_M_RD) { - if ((ret = m9206_write(d->udev, M9206_I2C, msg[i].addr | 0x01, 0x80)) != 0) + if ((ret = m9206_write(d->udev, M9206_I2C, (msg[i].addr << 1) | 0x01, 0x80)) != 0) goto unlock; for(j = 0; j < msg[i].len; j++) { @@ -168,7 +168,7 @@ static int m9206_i2c_xfer(struct i2c_ada } } else { - if ((ret = m9206_write(d->udev, M9206_I2C, msg[i].addr, 0x80)) != 0) + if ((ret = m9206_write(d->udev, M9206_I2C, msg[i].addr << 1, 0x80)) != 0) goto unlock; for(j = 0; j < msg[i].len; j++) { @@ -382,7 +382,7 @@ static int megasky_mt352_demod_init(stru } static struct mt352_config megasky_mt352_config = { - .demod_address = 0x1e, + .demod_address = 0x0f, .no_tuner = 1, .demod_init = megasky_mt352_demod_init, }; @@ -398,7 +398,7 @@ static int megasky_mt352_frontend_attach } static struct qt1010_config megasky_qt1010_config = { - .i2c_address = 0xc4 + .i2c_address = 0x62 }; static int megasky_qt1010_tuner_attach(struct dvb_usb_adapter *adap)
_______________________________________________ linux-dvb mailing list linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb