aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/common/tuners/tda18271.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2009-03-04 19:42:06 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 12:43:11 -0300
commitadcc4b3e75c5f0293806766bcc5ed0bb62d5cda0 (patch)
treec13980e43addd1dacead20ae0c35a858fe5afbfe /drivers/media/common/tuners/tda18271.h
parent3160fbc556aa2e60404fa4da35b3e13dd741a5a2 (diff)
V4L/DVB (10876): tda18271: add support for AGC configuration via tuner callback
The tda827x driver supports a feature that the tda18271 driver was lacking until now. This patch adds support for device-level configuration via the tuner callback configuration interface. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> 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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/common/tuners/tda18271.h b/drivers/media/common/tuners/tda18271.h
index 7db9831c0cb..53a9892a18d 100644
--- a/drivers/media/common/tuners/tda18271.h
+++ b/drivers/media/common/tuners/tda18271.h
@@ -79,6 +79,16 @@ struct tda18271_config {
/* some i2c providers cant write all 39 registers at once */
unsigned int small_i2c:1;
+
+ /* interface to saa713x / tda829x */
+ unsigned int config;
+};
+
+#define TDA18271_CALLBACK_CMD_AGC_ENABLE 0
+
+enum tda18271_mode {
+ TDA18271_ANALOG = 0,
+ TDA18271_DIGITAL,
};
#if defined(CONFIG_MEDIA_TUNER_TDA18271) || (defined(CONFIG_MEDIA_TUNER_TDA18271_MODULE) && defined(MODULE))