diff options
author | Michael Krufky <mkrufky@kernellabs.com> | 2009-10-23 07:47:49 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 21:40:55 +0100 |
commit | 1724c8fa7eb33d68898e060a08a8e6a88348b62f (patch) | |
tree | 456e6ca8cd0c9e6b004f01391b13d28d1337f5bb /drivers/media/common/tuners/tda18271-fe.c | |
parent | V4L/DVB (13212): fix gcc-4.3.3 compilation error at dib7000p_pid_filter(): mi... (diff) | |
download | linux-1724c8fa7eb33d68898e060a08a8e6a88348b62f.tar.xz linux-1724c8fa7eb33d68898e060a08a8e6a88348b62f.zip |
V4L/DVB (13214): tda18271: allow for i2c buses that cant send 16 bytes at once
There is already an option for sending 16 byte chunks rather that writing
39 bytes all at once during the tuner's initialization. Some i2c buses
can't send 16 bytes at once, so create an option for sending 8 byte chunks.
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/tda18271-fe.c')
-rw-r--r-- | drivers/media/common/tuners/tda18271-fe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tda18271-fe.c b/drivers/media/common/tuners/tda18271-fe.c index e0fd9f5d5944..eb7724158861 100644 --- a/drivers/media/common/tuners/tda18271-fe.c +++ b/drivers/media/common/tuners/tda18271-fe.c @@ -1224,7 +1224,8 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr, priv->gate = (cfg) ? cfg->gate : TDA18271_GATE_AUTO; priv->role = (cfg) ? cfg->role : TDA18271_MASTER; priv->config = (cfg) ? cfg->config : 0; - priv->small_i2c = (cfg) ? cfg->small_i2c : 0; + priv->small_i2c = (cfg) ? + cfg->small_i2c : TDA18271_39_BYTE_CHUNK_INIT; priv->output_opt = (cfg) ? cfg->output_opt : TDA18271_OUTPUT_LT_XT_ON; |