aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2009-09-15 13:37:20 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:15:27 -0400
commite558170a91677d3065be3922bb4467d8969d875c (patch)
treeff5d499aee96ce0407a4533c5ea630df6c659f68
parent707ca1e30f087f9a6d144693dafc4b67880678c2 (diff)
V4L/DVB (12950): tuner-simple: add Philips CU1216L
add Philips CU1216L NIM Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--Documentation/video4linux/CARDLIST.tuner1
-rw-r--r--drivers/media/common/tuners/tuner-types.c23
-rw-r--r--include/media/tuner.h1
3 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/video4linux/CARDLIST.tuner b/Documentation/video4linux/CARDLIST.tuner
index ba9fa679e2d3..3561b09fb416 100644
--- a/Documentation/video4linux/CARDLIST.tuner
+++ b/Documentation/video4linux/CARDLIST.tuner
@@ -79,3 +79,4 @@ tuner=78 - Philips FMD1216MEX MK3 Hybrid Tuner
79tuner=79 - Philips PAL/SECAM multi (FM1216 MK5) 79tuner=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
diff --git a/drivers/media/common/tuners/tuner-types.c b/drivers/media/common/tuners/tuner-types.c
index 5c6ef1e23c94..a2204df796ec 100644
--- a/drivers/media/common/tuners/tuner-types.c
+++ b/drivers/media/common/tuners/tuner-types.c
@@ -1320,6 +1320,23 @@ static struct tuner_params tuner_partsnic_pti_5nf05_params[] = {
1320 }, 1320 },
1321}; 1321};
1322 1322
1323/* --------- TUNER_PHILIPS_CU1216L - DVB-C NIM ------------------------- */
1324
1325static struct tuner_range tuner_cu1216l_ranges[] = {
1326 { 16 * 160.25 /*MHz*/, 0xce, 0x01 },
1327 { 16 * 444.25 /*MHz*/, 0xce, 0x02 },
1328 { 16 * 999.99 , 0xce, 0x04 },
1329};
1330
1331static struct tuner_params tuner_philips_cu1216l_params[] = {
1332 {
1333 .type = TUNER_PARAM_TYPE_DIGITAL,
1334 .ranges = tuner_cu1216l_ranges,
1335 .count = ARRAY_SIZE(tuner_cu1216l_ranges),
1336 .iffreq = 16 * 36.125, /*MHz*/
1337 },
1338};
1339
1323/* --------------------------------------------------------------------- */ 1340/* --------------------------------------------------------------------- */
1324 1341
1325struct tunertype tuners[] = { 1342struct tunertype tuners[] = {
@@ -1778,6 +1795,12 @@ struct tunertype tuners[] = {
1778 .params = tuner_partsnic_pti_5nf05_params, 1795 .params = tuner_partsnic_pti_5nf05_params,
1779 .count = ARRAY_SIZE(tuner_partsnic_pti_5nf05_params), 1796 .count = ARRAY_SIZE(tuner_partsnic_pti_5nf05_params),
1780 }, 1797 },
1798 [TUNER_PHILIPS_CU1216L] = {
1799 .name = "Philips CU1216L",
1800 .params = tuner_philips_cu1216l_params,
1801 .count = ARRAY_SIZE(tuner_philips_cu1216l_params),
1802 .stepsize = 62500,
1803 },
1781}; 1804};
1782EXPORT_SYMBOL(tuners); 1805EXPORT_SYMBOL(tuners);
1783 1806
diff --git a/include/media/tuner.h b/include/media/tuner.h
index c146f2f530b0..b1f57e175e9a 100644
--- a/include/media/tuner.h
+++ b/include/media/tuner.h
@@ -127,6 +127,7 @@
127#define TUNER_PHILIPS_FM1216MK5 79 127#define TUNER_PHILIPS_FM1216MK5 79
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 131
131/* tv card specific */ 132/* tv card specific */
132#define TDA9887_PRESENT (1<<0) 133#define TDA9887_PRESENT (1<<0)