diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-11-19 17:45:26 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-10 05:51:32 -0500 |
commit | 76db93d03f1e9a9a3371f787ae30780cdf10400c (patch) | |
tree | 68b963705bd79d151f0ab3b7f36bc4439ce064a6 /drivers/media/dvb/bt8xx/dvb-bt8xx.c | |
parent | f9a7615686a854cb94b5252e66b836a0a539ad9e (diff) |
V4L/DVB (4846): Create new lgh06xf atsc tuner module
This patch creates a new atsc tuner module for the LG TDVS-H06xF ATSC tuners,
called lgh06xf. The purpose of this change is to reduce some duplicated
code, and to allow the lgh06xf tuner code to take advantage of dvb_attach().
As a side effect, the dependency of dvb-bt8xx on dvb-pll has been removed,
since the lgh06xf module itself will use dvb-pll, while remaining optional
for the dvb-bt8xx driver through the use of DVB_FE_CUSTOMISE
Acked-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/bt8xx/dvb-bt8xx.c')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 14e69a736eda..80a85cb4975f 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include "dvb_frontend.h" | 34 | #include "dvb_frontend.h" |
35 | #include "dvb-bt8xx.h" | 35 | #include "dvb-bt8xx.h" |
36 | #include "bt878.h" | 36 | #include "bt878.h" |
37 | #include "dvb-pll.h" | ||
38 | 37 | ||
39 | static int debug; | 38 | static int debug; |
40 | 39 | ||
@@ -568,12 +567,6 @@ static struct mt352_config digitv_alps_tded4_config = { | |||
568 | .demod_init = digitv_alps_tded4_demod_init, | 567 | .demod_init = digitv_alps_tded4_demod_init, |
569 | }; | 568 | }; |
570 | 569 | ||
571 | static int tdvs_tua6034_tuner_set_params(struct dvb_frontend* fe, struct dvb_frontend_parameters* params) | ||
572 | { | ||
573 | struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv; | ||
574 | return lg_h06xf_pll_set(fe, card->i2c_adapter, params); | ||
575 | } | ||
576 | |||
577 | static struct lgdt330x_config tdvs_tua6034_config = { | 570 | static struct lgdt330x_config tdvs_tua6034_config = { |
578 | .demod_address = 0x0e, | 571 | .demod_address = 0x0e, |
579 | .demod_chip = LGDT3303, | 572 | .demod_chip = LGDT3303, |
@@ -616,7 +609,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
616 | lgdt330x_reset(card); | 609 | lgdt330x_reset(card); |
617 | card->fe = dvb_attach(lgdt330x_attach, &tdvs_tua6034_config, card->i2c_adapter); | 610 | card->fe = dvb_attach(lgdt330x_attach, &tdvs_tua6034_config, card->i2c_adapter); |
618 | if (card->fe != NULL) { | 611 | if (card->fe != NULL) { |
619 | card->fe->ops.tuner_ops.set_params = tdvs_tua6034_tuner_set_params; | 612 | dvb_attach(lgh06xf_attach, card->fe, card->i2c_adapter); |
620 | dprintk ("dvb_bt8xx: lgdt330x detected\n"); | 613 | dprintk ("dvb_bt8xx: lgdt330x detected\n"); |
621 | } | 614 | } |
622 | break; | 615 | break; |