summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/tda18271.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-09 20:23:30 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-12-09 20:23:30 -0500
commitbfea07eb7991bd4da2c596c6b9aa2c878328dbc7 (patch)
treed93cdf00c9bb198dd52ae33a7439917a4dfc6f72 /linux/drivers/media/dvb/frontends/tda18271.h
parent1b262d59b2af4aae1a98c6d681906c3208727ae9 (diff)
downloadmediapointer-dvb-s2-bfea07eb7991bd4da2c596c6b9aa2c878328dbc7.tar.gz
mediapointer-dvb-s2-bfea07eb7991bd4da2c596c6b9aa2c878328dbc7.tar.bz2
tda18271: pass i2c gate configuration into tda18271_attach()
From: Michael Krufky <mkrufky@linuxtv.org> If we pass TDA18271_GATE_DIGITAL into tda18271_attach(), it will always try to use the digital demodulator's i2c gate. If we pass TDA18271_GATE_ANALOG into tda18271_attach(), it will always try to use the analog demodulator's i2c gate. If we pass TDA18271_GATE_AUTO into tda18271_attach(), it will try to use the analog demodulator's i2c gate when tuning in analog mode, and it will try to use the digital demodulator's i2c gate when tuning in digital mode. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda18271.h')
-rw-r--r--linux/drivers/media/dvb/frontends/tda18271.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271.h b/linux/drivers/media/dvb/frontends/tda18271.h
index a8a19a719..d84003372 100644
--- a/linux/drivers/media/dvb/frontends/tda18271.h
+++ b/linux/drivers/media/dvb/frontends/tda18271.h
@@ -24,13 +24,21 @@
#include <linux/i2c.h>
#include "dvb_frontend.h"
+enum tda18271_i2c_gate {
+ TDA18271_GATE_AUTO = 0,
+ TDA18271_GATE_ANALOG,
+ TDA18271_GATE_DIGITAL,
+};
+
#if defined(CONFIG_DVB_TDA18271) || (defined(CONFIG_DVB_TDA18271_MODULE) && defined(MODULE))
extern struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
- struct i2c_adapter *i2c);
+ struct i2c_adapter *i2c,
+ enum tda18271_i2c_gate gate);
#else
static inline struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe,
u8 addr,
- struct i2c_adapter *i2c)
+ struct i2c_adapter *i2c,
+ enum tda18271_i2c_gate gate);
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
return NULL;