From: Devin Heitmueller Date: Wed, 7 Jul 2010 14:33:56 +0000 (-0300) Subject: [media] Use smaller i2c transaction size with 18271 tuner X-Git-Tag: v2.6.37-rc1~64^2~292 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9dfde5578d1111da96142d16fdfa2039d8992744;p=karo-tx-linux.git [media] Use smaller i2c transaction size with 18271 tuner 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index e32146680b37..d14f66f0cb31 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c @@ -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,