diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-18 16:47:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 00:59:15 -0400 |
commit | 272bc4db791bc49d50d5f77f24c688be6d1907f8 (patch) | |
tree | d617d3868f282e85674e34ddac1e380e173b3bab /drivers/media/dvb/frontends/dvb-pll.h | |
parent | a263394b4866a89860d7b5dbcacf33a32f00d206 (diff) |
V4L/DVB (3885): Convert dvb-pll to be a refactored tuner
Rename pll calls to appropriate tuner calls.
Remove pll functions from demod structures.
Hook tuner call into tuner_ops.
Remove BUG_ON() and convert to a soft error.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/dvb-pll.h')
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/dvb-pll.h b/drivers/media/dvb/frontends/dvb-pll.h index 2b8461784989..3908ae1d446a 100644 --- a/drivers/media/dvb/frontends/dvb-pll.h +++ b/drivers/media/dvb/frontends/dvb-pll.h | |||
@@ -5,6 +5,9 @@ | |||
5 | #ifndef __DVB_PLL_H__ | 5 | #ifndef __DVB_PLL_H__ |
6 | #define __DVB_PLL_H__ | 6 | #define __DVB_PLL_H__ |
7 | 7 | ||
8 | #include <linux/i2c.h> | ||
9 | #include "dvb_frontend.h" | ||
10 | |||
8 | struct dvb_pll_desc { | 11 | struct dvb_pll_desc { |
9 | char *name; | 12 | char *name; |
10 | u32 min; | 13 | u32 min; |
@@ -44,7 +47,18 @@ extern struct dvb_pll_desc dvb_pll_philips_td1316; | |||
44 | 47 | ||
45 | extern struct dvb_pll_desc dvb_pll_thomson_fe6600; | 48 | extern struct dvb_pll_desc dvb_pll_thomson_fe6600; |
46 | 49 | ||
47 | int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf, | 50 | extern int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf, |
48 | u32 freq, int bandwidth); | 51 | u32 freq, int bandwidth); |
49 | 52 | ||
53 | /** | ||
54 | * Attach a dvb-pll to the supplied frontend structure. | ||
55 | * | ||
56 | * @param fe Frontend to attach to. | ||
57 | * @param pll_addr i2c address of the PLL (if used). | ||
58 | * @param i2c i2c adapter to use (set to NULL if not used). | ||
59 | * @param desc dvb_pll_desc to use. | ||
60 | * @return 0 on success, nonzero on failure. | ||
61 | */ | ||
62 | extern int dvb_pll_attach(struct dvb_frontend *fe, int pll_addr, struct i2c_adapter *i2c, struct dvb_pll_desc *desc); | ||
63 | |||
50 | #endif | 64 | #endif |