summaryrefslogtreecommitdiffstats
path: root/drivers/media/common/tuners/tda18271.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2009-10-23 02:47:49 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 18:40:55 -0200
commit1724c8fa7eb33d68898e060a08a8e6a88348b62f (patch)
tree456e6ca8cd0c9e6b004f01391b13d28d1337f5bb /drivers/media/common/tuners/tda18271.h
parente29cd96715ab8b9315fb50096df4677a23d7d6a7 (diff)
downloadblackbird-op-linux-1724c8fa7eb33d68898e060a08a8e6a88348b62f.tar.gz
blackbird-op-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.h')
-rw-r--r--drivers/media/common/tuners/tda18271.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/media/common/tuners/tda18271.h b/drivers/media/common/tuners/tda18271.h
index 323f2912128d..d7fcc36dc6e6 100644
--- a/drivers/media/common/tuners/tda18271.h
+++ b/drivers/media/common/tuners/tda18271.h
@@ -78,6 +78,12 @@ enum tda18271_output_options {
TDA18271_OUTPUT_XT_OFF = 2,
};
+enum tda18271_small_i2c {
+ TDA18271_39_BYTE_CHUNK_INIT = 0,
+ TDA18271_16_BYTE_CHUNK_INIT = 1,
+ TDA18271_08_BYTE_CHUNK_INIT = 2,
+};
+
struct tda18271_config {
/* override default if freq / std settings (optional) */
struct tda18271_std_map *std_map;
@@ -91,12 +97,12 @@ struct tda18271_config {
/* output options that can be disabled */
enum tda18271_output_options output_opt;
+ /* some i2c providers cant write all 39 registers at once */
+ enum tda18271_small_i2c small_i2c;
+
/* force rf tracking filter calibration on startup */
unsigned int rf_cal_on_startup:1;
- /* some i2c providers cant write all 39 registers at once */
- unsigned int small_i2c:1;
-
/* interface to saa713x / tda829x */
unsigned int config;
};
OpenPOWER on IntegriCloud