[media] Use smaller i2c transaction size with 18271 tuner
authorDevin Heitmueller <dheitmueller@hauppauge.com>
Wed, 7 Jul 2010 14:33:56 +0000 (11:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:17:14 +0000 (01:17 -0200)
Configure the tda18271 to use a smaller transaction size by default, which
works around some sort of i2c bug in the Polaris driver (which needs to be
debugged).

This should be safe for other boards (being in tuner-core means it will be
enabled by default), although testing needs to be done.

Signed-off-by: Devin Heitmueller <dheitmueller@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tuner-core.c

index e32146680b372a3982d88e88eb17da75cc7a4791..d14f66f0cb3198af20e41eb7ecd2ad345dc077ed 100644 (file)
@@ -427,6 +427,7 @@ static void set_type(struct i2c_client *c, unsigned int type,
        {
                struct tda18271_config cfg = {
                        .config = t->config,
+                       .small_i2c = TDA18271_08_BYTE_CHUNK_INIT,
                };
 
                if (!dvb_attach(tda18271_attach, &t->fe, t->i2c->addr,