diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-09-26 22:58:28 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 01:17:43 -0200 |
commit | e350d44fed8eb86a7192a579e3687fcd76a4645b (patch) | |
tree | 9e80c1c819150391729d7247e9f9d450d6edd11b /drivers/media/common/tuners/tda18271.h | |
parent | 78bb6df6f2dd390a3480249187a055c385c0618a (diff) | |
download | kernel_samsung_smdk4412-e350d44fed8eb86a7192a579e3687fcd76a4645b.tar.gz kernel_samsung_smdk4412-e350d44fed8eb86a7192a579e3687fcd76a4645b.tar.bz2 kernel_samsung_smdk4412-e350d44fed8eb86a7192a579e3687fcd76a4645b.zip |
[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/common/tuners/tda18271.h')
-rw-r--r-- | drivers/media/common/tuners/tda18271.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/common/tuners/tda18271.h b/drivers/media/common/tuners/tda18271.h index d7fcc36dc6e..3abb221f3d0 100644 --- a/drivers/media/common/tuners/tda18271.h +++ b/drivers/media/common/tuners/tda18271.h @@ -80,8 +80,9 @@ enum tda18271_output_options { enum tda18271_small_i2c { TDA18271_39_BYTE_CHUNK_INIT = 0, - TDA18271_16_BYTE_CHUNK_INIT = 1, - TDA18271_08_BYTE_CHUNK_INIT = 2, + TDA18271_16_BYTE_CHUNK_INIT = 16, + TDA18271_08_BYTE_CHUNK_INIT = 8, + TDA18271_03_BYTE_CHUNK_INIT = 3, }; struct tda18271_config { |