aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/video4linux/CARDLIST.tuner1
-rw-r--r--drivers/media/common/tuners/tuner-types.c4
-rw-r--r--drivers/media/video/tuner-core.c12
-rw-r--r--include/media/tuner.h1
4 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/video4linux/CARDLIST.tuner b/Documentation/video4linux/CARDLIST.tuner
index 3561b09fb416..e0d298fe8830 100644
--- a/Documentation/video4linux/CARDLIST.tuner
+++ b/Documentation/video4linux/CARDLIST.tuner
@@ -80,3 +80,4 @@ tuner=79 - Philips PAL/SECAM multi (FM1216 MK5)
80tuner=80 - Philips FQ1216LME MK3 PAL/SECAM w/active loopthrough 80tuner=80 - Philips FQ1216LME MK3 PAL/SECAM w/active loopthrough
81tuner=81 - Partsnic (Daewoo) PTI-5NF05 81tuner=81 - Partsnic (Daewoo) PTI-5NF05
82tuner=82 - Philips CU1216L 82tuner=82 - Philips CU1216L
83tuner=83 - NXP TDA18271
diff --git a/drivers/media/common/tuners/tuner-types.c b/drivers/media/common/tuners/tuner-types.c
index a2204df796ec..2b876f3988c1 100644
--- a/drivers/media/common/tuners/tuner-types.c
+++ b/drivers/media/common/tuners/tuner-types.c
@@ -1801,6 +1801,10 @@ struct tunertype tuners[] = {
1801 .count = ARRAY_SIZE(tuner_philips_cu1216l_params), 1801 .count = ARRAY_SIZE(tuner_philips_cu1216l_params),
1802 .stepsize = 62500, 1802 .stepsize = 62500,
1803 }, 1803 },
1804 [TUNER_NXP_TDA18271] = {
1805 .name = "NXP TDA18271",
1806 /* see tda18271-fe.c for details */
1807 },
1804}; 1808};
1805EXPORT_SYMBOL(tuners); 1809EXPORT_SYMBOL(tuners);
1806 1810
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 2816f1839230..aba92e2313d8 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -29,6 +29,7 @@
29#include "tuner-simple.h" 29#include "tuner-simple.h"
30#include "tda9887.h" 30#include "tda9887.h"
31#include "xc5000.h" 31#include "xc5000.h"
32#include "tda18271.h"
32 33
33#define UNSET (-1U) 34#define UNSET (-1U)
34 35
@@ -420,6 +421,17 @@ static void set_type(struct i2c_client *c, unsigned int type,
420 goto attach_failed; 421 goto attach_failed;
421 break; 422 break;
422 } 423 }
424 case TUNER_NXP_TDA18271:
425 {
426 struct tda18271_config cfg = {
427 .config = t->config,
428 };
429
430 if (!dvb_attach(tda18271_attach, &t->fe, t->i2c->addr,
431 t->i2c->adapter, &cfg))
432 goto attach_failed;
433 break;
434 }
423 default: 435 default:
424 if (!dvb_attach(simple_tuner_attach, &t->fe, 436 if (!dvb_attach(simple_tuner_attach, &t->fe,
425 t->i2c->adapter, t->i2c->addr, t->type)) 437 t->i2c->adapter, t->i2c->addr, t->type))
diff --git a/include/media/tuner.h b/include/media/tuner.h
index b1f57e175e9a..4d5b53ff17db 100644
--- a/include/media/tuner.h
+++ b/include/media/tuner.h
@@ -128,6 +128,7 @@
128#define TUNER_PHILIPS_FQ1216LME_MK3 80 /* Active loopthrough, no FM */ 128#define TUNER_PHILIPS_FQ1216LME_MK3 80 /* Active loopthrough, no FM */
129#define TUNER_PARTSNIC_PTI_5NF05 81 129#define TUNER_PARTSNIC_PTI_5NF05 81
130#define TUNER_PHILIPS_CU1216L 82 130#define TUNER_PHILIPS_CU1216L 82
131#define TUNER_NXP_TDA18271 83
131 132
132/* tv card specific */ 133/* tv card specific */
133#define TDA9887_PRESENT (1<<0) 134#define TDA9887_PRESENT (1<<0)