aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2005-07-07 20:58:12 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 21:23:59 -0400
commit0589b8e4fd24885a00d8954aef57c3319d161fee (patch)
tree1952e609d342fb41bec57684b1683f6853ce41ef
parentc9b06fa47e1c1ff8704461c7fd6a99e3621ba0e6 (diff)
[PATCH] dvb: frontend: add ALPS TDED4 PLL
Add dvb_pll_desc for ALPS TDED4 used in Nebula USB boxes. Changed the name-field of the FMD1216. Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/media/dvb/frontends/dvb-pll.c26
-rw-r--r--drivers/media/dvb/frontends/dvb-pll.h1
2 files changed, 26 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c
index 818526869804..8be143b7ce4c 100644
--- a/drivers/media/dvb/frontends/dvb-pll.c
+++ b/drivers/media/dvb/frontends/dvb-pll.c
@@ -208,7 +208,7 @@ static void fmd1216me_bw(u8 *buf, u32 freq, int bandwidth)
208} 208}
209 209
210struct dvb_pll_desc dvb_pll_fmd1216me = { 210struct dvb_pll_desc dvb_pll_fmd1216me = {
211 .name = "placeholder", 211 .name = "Philips FMD1216ME",
212 .min = 50870000, 212 .min = 50870000,
213 .max = 858000000, 213 .max = 858000000,
214 .setbw = fmd1216me_bw, 214 .setbw = fmd1216me_bw,
@@ -225,6 +225,30 @@ struct dvb_pll_desc dvb_pll_fmd1216me = {
225}; 225};
226EXPORT_SYMBOL(dvb_pll_fmd1216me); 226EXPORT_SYMBOL(dvb_pll_fmd1216me);
227 227
228/* ALPS TDED4
229 * used in Nebula-Cards and USB boxes
230 */
231static void tded4_bw(u8 *buf, u32 freq, int bandwidth)
232{
233 if (bandwidth == BANDWIDTH_8_MHZ)
234 buf[3] |= 0x04;
235}
236
237struct dvb_pll_desc dvb_pll_tded4 = {
238 .name = "ALPS TDED4",
239 .min = 47000000,
240 .max = 863000000,
241 .setbw = tded4_bw,
242 .count = 4,
243 .entries = {
244 { 153000000, 36166667, 166667, 0x85, 0x01 },
245 { 470000000, 36166667, 166667, 0x85, 0x02 },
246 { 823000000, 36166667, 166667, 0x85, 0x08 },
247 { 999999999, 36166667, 166667, 0x85, 0x88 },
248 }
249};
250EXPORT_SYMBOL(dvb_pll_tded4);
251
228/* ----------------------------------------------------------- */ 252/* ----------------------------------------------------------- */
229/* code */ 253/* code */
230 254
diff --git a/drivers/media/dvb/frontends/dvb-pll.h b/drivers/media/dvb/frontends/dvb-pll.h
index dc4e1d49ef83..57b64ffee402 100644
--- a/drivers/media/dvb/frontends/dvb-pll.h
+++ b/drivers/media/dvb/frontends/dvb-pll.h
@@ -31,6 +31,7 @@ extern struct dvb_pll_desc dvb_pll_env57h1xd5;
31extern struct dvb_pll_desc dvb_pll_tua6034; 31extern struct dvb_pll_desc dvb_pll_tua6034;
32extern struct dvb_pll_desc dvb_pll_tda665x; 32extern struct dvb_pll_desc dvb_pll_tda665x;
33extern struct dvb_pll_desc dvb_pll_fmd1216me; 33extern struct dvb_pll_desc dvb_pll_fmd1216me;
34extern struct dvb_pll_desc dvb_pll_tded4;
34 35
35int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf, 36int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf,
36 u32 freq, int bandwidth); 37 u32 freq, int bandwidth);