summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2009-09-15 22:04:18 -0400
committerMichael Krufky <mkrufky@kernellabs.com>2009-09-15 22:04:18 -0400
commitb929890a4ee11bb0135de26a8eab873a3e1e5323 (patch)
tree4ea2a6d3f3cfe1a9a7609bf41b7c899a01d79881 /linux/drivers
parent33b0deb1ca699a4e3d5a90a4a35a2029aba91b0e (diff)
downloadmediapointer-dvb-s2-b929890a4ee11bb0135de26a8eab873a3e1e5323.tar.gz
mediapointer-dvb-s2-b929890a4ee11bb0135de26a8eab873a3e1e5323.tar.bz2
tuner-core: add support for NXP TDA18271 without TDA829X demod
From: Michael Krufky <mkrufky@kernellabs.com> Add support for NXP TDA18271 as a standalone tuner, allowing the use of analog demodulators other than the Philips/NXP TDA829x. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/common/tuners/tuner-types.c4
-rw-r--r--linux/drivers/media/video/tuner-core.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/linux/drivers/media/common/tuners/tuner-types.c b/linux/drivers/media/common/tuners/tuner-types.c
index a5a36fee3..792a763b2 100644
--- a/linux/drivers/media/common/tuners/tuner-types.c
+++ b/linux/drivers/media/common/tuners/tuner-types.c
@@ -1802,6 +1802,10 @@ struct tunertype tuners[] = {
.count = ARRAY_SIZE(tuner_philips_cu1216l_params),
.stepsize = 62500,
},
+ [TUNER_NXP_TDA18271] = {
+ .name = "NXP TDA18271",
+ /* see tda18271-fe.c for details */
+ },
};
EXPORT_SYMBOL(tuners);
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index a4f6c19b7..507d6c7b0 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -30,6 +30,7 @@
#include "tuner-simple.h"
#include "tda9887.h"
#include "xc5000.h"
+#include "tda18271.h"
#define UNSET (-1U)
@@ -434,6 +435,17 @@ static void set_type(struct i2c_client *c, unsigned int type,
goto attach_failed;
break;
}
+ case TUNER_NXP_TDA18271:
+ {
+ struct tda18271_config cfg = {
+ .config = t->config,
+ };
+
+ if (!dvb_attach(tda18271_attach, &t->fe, t->i2c->addr,
+ t->i2c->adapter, &cfg))
+ goto attach_failed;
+ break;
+ }
default:
if (!dvb_attach(simple_tuner_attach, &t->fe,
t->i2c->adapter, t->i2c->addr, t->type))