diff options
author | Andy Walls <awalls@radix.net> | 2009-07-22 20:02:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:18:10 -0400 |
commit | e3e1920b28d47cb18b477fc9884b889f9622fc97 (patch) | |
tree | fb54f1c08af07725726b5c8e668ebaf06a18ebb4 | |
parent | d8300df9fb76552ba81bf57d79c3ad3309eda13d (diff) |
V4L/DVB (12334): tuner-simple: Add an entry for the Partsnic PTI-5NF05 NTSC tuner
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | Documentation/video4linux/CARDLIST.tuner | 1 | ||||
-rw-r--r-- | drivers/media/common/tuners/tuner-types.c | 25 | ||||
-rw-r--r-- | include/media/tuner.h | 1 |
3 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/video4linux/CARDLIST.tuner b/Documentation/video4linux/CARDLIST.tuner index be67844074dd..ba9fa679e2d3 100644 --- a/Documentation/video4linux/CARDLIST.tuner +++ b/Documentation/video4linux/CARDLIST.tuner | |||
@@ -78,3 +78,4 @@ tuner=77 - TCL tuner MF02GIP-5N-E | |||
78 | tuner=78 - Philips FMD1216MEX MK3 Hybrid Tuner | 78 | tuner=78 - Philips FMD1216MEX MK3 Hybrid Tuner |
79 | tuner=79 - Philips PAL/SECAM multi (FM1216 MK5) | 79 | tuner=79 - Philips PAL/SECAM multi (FM1216 MK5) |
80 | tuner=80 - Philips FQ1216LME MK3 PAL/SECAM w/active loopthrough | 80 | tuner=80 - Philips FQ1216LME MK3 PAL/SECAM w/active loopthrough |
81 | tuner=81 - Partsnic (Daewoo) PTI-5NF05 | ||
diff --git a/drivers/media/common/tuners/tuner-types.c b/drivers/media/common/tuners/tuner-types.c index 6a7f1a417c27..5c6ef1e23c94 100644 --- a/drivers/media/common/tuners/tuner-types.c +++ b/drivers/media/common/tuners/tuner-types.c | |||
@@ -1301,6 +1301,25 @@ static struct tuner_params tuner_fq1216lme_mk3_params[] = { | |||
1301 | }, | 1301 | }, |
1302 | }; | 1302 | }; |
1303 | 1303 | ||
1304 | /* ----- TUNER_PARTSNIC_PTI_5NF05 - Partsnic (Daewoo) PTI-5NF05 NTSC ----- */ | ||
1305 | |||
1306 | static struct tuner_range tuner_partsnic_pti_5nf05_ranges[] = { | ||
1307 | /* The datasheet specified channel ranges and the bandswitch byte */ | ||
1308 | /* The control byte value of 0x8e is just a guess */ | ||
1309 | { 16 * 133.25 /*MHz*/, 0x8e, 0x01, }, /* Channels 2 - B */ | ||
1310 | { 16 * 367.25 /*MHz*/, 0x8e, 0x02, }, /* Channels C - W+11 */ | ||
1311 | { 16 * 999.99 , 0x8e, 0x08, }, /* Channels W+12 - 69 */ | ||
1312 | }; | ||
1313 | |||
1314 | static struct tuner_params tuner_partsnic_pti_5nf05_params[] = { | ||
1315 | { | ||
1316 | .type = TUNER_PARAM_TYPE_NTSC, | ||
1317 | .ranges = tuner_partsnic_pti_5nf05_ranges, | ||
1318 | .count = ARRAY_SIZE(tuner_partsnic_pti_5nf05_ranges), | ||
1319 | .cb_first_if_lower_freq = 1, /* not specified but safe to do */ | ||
1320 | }, | ||
1321 | }; | ||
1322 | |||
1304 | /* --------------------------------------------------------------------- */ | 1323 | /* --------------------------------------------------------------------- */ |
1305 | 1324 | ||
1306 | struct tunertype tuners[] = { | 1325 | struct tunertype tuners[] = { |
@@ -1753,6 +1772,12 @@ struct tunertype tuners[] = { | |||
1753 | .params = tuner_fq1216lme_mk3_params, | 1772 | .params = tuner_fq1216lme_mk3_params, |
1754 | .count = ARRAY_SIZE(tuner_fq1216lme_mk3_params), | 1773 | .count = ARRAY_SIZE(tuner_fq1216lme_mk3_params), |
1755 | }, | 1774 | }, |
1775 | |||
1776 | [TUNER_PARTSNIC_PTI_5NF05] = { | ||
1777 | .name = "Partsnic (Daewoo) PTI-5NF05", | ||
1778 | .params = tuner_partsnic_pti_5nf05_params, | ||
1779 | .count = ARRAY_SIZE(tuner_partsnic_pti_5nf05_params), | ||
1780 | }, | ||
1756 | }; | 1781 | }; |
1757 | EXPORT_SYMBOL(tuners); | 1782 | EXPORT_SYMBOL(tuners); |
1758 | 1783 | ||
diff --git a/include/media/tuner.h b/include/media/tuner.h index cbf97f45fbec..c146f2f530b0 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -126,6 +126,7 @@ | |||
126 | #define TUNER_PHILIPS_FMD1216MEX_MK3 78 | 126 | #define TUNER_PHILIPS_FMD1216MEX_MK3 78 |
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 | 130 | ||
130 | /* tv card specific */ | 131 | /* tv card specific */ |
131 | #define TDA9887_PRESENT (1<<0) | 132 | #define TDA9887_PRESENT (1<<0) |