aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-09-26 21:58:28 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:17:43 -0400
commite350d44fed8eb86a7192a579e3687fcd76a4645b (patch)
tree9e80c1c819150391729d7247e9f9d450d6edd11b /drivers/media/video/tuner-core.c
parent78bb6df6f2dd390a3480249187a055c385c0618a (diff)
[media] tda18271: allow restricting max out to 4 bytes
By default, tda18271 tries to optimize I2C bus by updating all registers at the same time. Unfortunately, some devices doesn't support it. The current logic has a problem when small_i2c is equal to 8, since there are some transfers using 11 + 1 bytes. Fix the problem by enforcing the max size at the right place, and allows reducing it to max = 3 + 1. Acked-by: Michael Krufky <mkrufky@kernellabs.com> Acked-by: Sri Deevi <Srinivasa.Deevi@conexant.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r--drivers/media/video/tuner-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index d14f66f0cb31..1cec1224913f 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -427,7 +427,7 @@ static void set_type(struct i2c_client *c, unsigned int type,
427 { 427 {
428 struct tda18271_config cfg = { 428 struct tda18271_config cfg = {
429 .config = t->config, 429 .config = t->config,
430 .small_i2c = TDA18271_08_BYTE_CHUNK_INIT, 430 .small_i2c = TDA18271_03_BYTE_CHUNK_INIT,
431 }; 431 };
432 432
433 if (!dvb_attach(tda18271_attach, &t->fe, t->i2c->addr, 433 if (!dvb_attach(tda18271_attach, &t->fe, t->i2c->addr,