diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-09 20:23:30 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:32 -0500 |
commit | e435f95ce6468f0240f050e14c9eac93e2fe7e71 (patch) | |
tree | 574b8764e3206b37666bda01acc2b0f1a4d44dde /drivers/media/video/tda8290.c | |
parent | 7206abbc2d19b6846b879fb266672b40da9961cb (diff) |
V4L/DVB (6801): tda18271: pass i2c gate configuration into tda18271_attach()
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tda8290.c')
-rw-r--r-- | drivers/media/video/tda8290.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/tda8290.c b/drivers/media/video/tda8290.c index 403f96f998ec..a451d9480c1d 100644 --- a/drivers/media/video/tda8290.c +++ b/drivers/media/video/tda8290.c | |||
@@ -574,7 +574,8 @@ static int tda829x_find_tuner(struct dvb_frontend *fe) | |||
574 | if (data == 0x83) { | 574 | if (data == 0x83) { |
575 | priv->ver |= TDA18271; | 575 | priv->ver |= TDA18271; |
576 | tda18271_attach(fe, priv->tda827x_addr, | 576 | tda18271_attach(fe, priv->tda827x_addr, |
577 | priv->i2c_props.adap); | 577 | priv->i2c_props.adap, |
578 | TDA18271_GATE_ANALOG); | ||
578 | } else { | 579 | } else { |
579 | if ((data & 0x3c) == 0) | 580 | if ((data & 0x3c) == 0) |
580 | priv->ver |= TDA8275; | 581 | priv->ver |= TDA8275; |