aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2010-02-10 17:02:58 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 13:11:07 -0500
commitdbb9de9bc137e08dc47db960d5730e3251932e2b (patch)
treeae19a3a58d6d81c9a8928c4fc4fb96d768f862f5
parent587808d5f59e842f9258a15e88ad530fcf6e6763 (diff)
V4L/DVB: tuner-types: Add Sony BTF-Pxn01Z tuner type used on GigaPocket cards
Sony makes custome tuners for its GigaPocket line of ivtv based capture cards. This adds an entry to the tuner-types list for such tuners. Parameters are based on experiments by Eric Anderson <rico99@sbcglobal.net>. Signed-off-by: Andy Walls <awalls@radix.net> 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.c21
-rw-r--r--include/media/tuner.h1
3 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/video4linux/CARDLIST.tuner b/Documentation/video4linux/CARDLIST.tuner
index e0d298fe8830..9b2e0dd6017e 100644
--- a/Documentation/video4linux/CARDLIST.tuner
+++ b/Documentation/video4linux/CARDLIST.tuner
@@ -81,3 +81,4 @@ tuner=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 83tuner=83 - NXP TDA18271
84tuner=84 - Sony BTF-Pxn01Z
diff --git a/drivers/media/common/tuners/tuner-types.c b/drivers/media/common/tuners/tuner-types.c
index 2b876f3988c1..d9aaaca620c9 100644
--- a/drivers/media/common/tuners/tuner-types.c
+++ b/drivers/media/common/tuners/tuner-types.c
@@ -1337,6 +1337,22 @@ static struct tuner_params tuner_philips_cu1216l_params[] = {
1337 }, 1337 },
1338}; 1338};
1339 1339
1340/* ---------------------- TUNER_SONY_BTF_PXN01Z ------------------------ */
1341
1342static struct tuner_range tuner_sony_btf_pxn01z_ranges[] = {
1343 { 16 * 137.25 /*MHz*/, 0x8e, 0x01, },
1344 { 16 * 367.25 /*MHz*/, 0x8e, 0x02, },
1345 { 16 * 999.99 , 0x8e, 0x04, },
1346};
1347
1348static struct tuner_params tuner_sony_btf_pxn01z_params[] = {
1349 {
1350 .type = TUNER_PARAM_TYPE_NTSC,
1351 .ranges = tuner_sony_btf_pxn01z_ranges,
1352 .count = ARRAY_SIZE(tuner_sony_btf_pxn01z_ranges),
1353 },
1354};
1355
1340/* --------------------------------------------------------------------- */ 1356/* --------------------------------------------------------------------- */
1341 1357
1342struct tunertype tuners[] = { 1358struct tunertype tuners[] = {
@@ -1805,6 +1821,11 @@ struct tunertype tuners[] = {
1805 .name = "NXP TDA18271", 1821 .name = "NXP TDA18271",
1806 /* see tda18271-fe.c for details */ 1822 /* see tda18271-fe.c for details */
1807 }, 1823 },
1824 [TUNER_SONY_BTF_PXN01Z] = {
1825 .name = "Sony BTF-Pxn01Z",
1826 .params = tuner_sony_btf_pxn01z_params,
1827 .count = ARRAY_SIZE(tuner_sony_btf_pxn01z_params),
1828 },
1808}; 1829};
1809EXPORT_SYMBOL(tuners); 1830EXPORT_SYMBOL(tuners);
1810 1831
diff --git a/include/media/tuner.h b/include/media/tuner.h
index 4d5b53ff17db..5505c5360ca3 100644
--- a/include/media/tuner.h
+++ b/include/media/tuner.h
@@ -129,6 +129,7 @@
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#define TUNER_NXP_TDA18271 83
132#define TUNER_SONY_BTF_PXN01Z 84
132 133
133/* tv card specific */ 134/* tv card specific */
134#define TDA9887_PRESENT (1<<0) 135#define TDA9887_PRESENT (1<<0)