From bf1357c00949c25ceaef64b2127f022a870491ca Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Wed, 4 Mar 2009 17:42:06 -0500 Subject: tda18271: add support for AGC configuration via tuner callback From: Michael Krufky 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. Priority: normal Signed-off-by: Michael Krufky --- linux/drivers/media/common/tuners/tda18271.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'linux/drivers/media/common/tuners/tda18271.h') diff --git a/linux/drivers/media/common/tuners/tda18271.h b/linux/drivers/media/common/tuners/tda18271.h index 7db9831c0..53a9892a1 100644 --- a/linux/drivers/media/common/tuners/tda18271.h +++ b/linux/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)) -- cgit v1.2.3