diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-09 20:23:30 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-09 20:23:30 -0500 |
commit | bfea07eb7991bd4da2c596c6b9aa2c878328dbc7 (patch) | |
tree | d93cdf00c9bb198dd52ae33a7439917a4dfc6f72 /linux/drivers/media/video/tda8290.c | |
parent | 1b262d59b2af4aae1a98c6d681906c3208727ae9 (diff) | |
download | mediapointer-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/video/tda8290.c')
-rw-r--r-- | linux/drivers/media/video/tda8290.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c index de663918a..65a87926e 100644 --- a/linux/drivers/media/video/tda8290.c +++ b/linux/drivers/media/video/tda8290.c @@ -600,7 +600,8 @@ static int tda829x_find_tuner(struct dvb_frontend *fe) if (data == 0x83) { priv->ver |= TDA18271; tda18271_attach(fe, priv->tda827x_addr, - priv->i2c_props.adap); + priv->i2c_props.adap, + TDA18271_GATE_ANALOG); } else { if ((data & 0x3c) == 0) priv->ver |= TDA8275; |