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/dvb-usb | |
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/dvb-usb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/Kconfig | 1 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/cxusb.c | 11 |
2 files changed, 3 insertions, 9 deletions
diff --git a/drivers/media/dvb/dvb-usb/Kconfig b/drivers/media/dvb/dvb-usb/Kconfig index dfd53d5e792..bfe5691dde1 100644 --- a/drivers/media/dvb/dvb-usb/Kconfig +++ b/drivers/media/dvb/dvb-usb/Kconfig | |||
@@ -98,6 +98,7 @@ config DVB_USB_CXUSB | |||
98 | depends on DVB_USB | 98 | depends on DVB_USB |
99 | select DVB_CX22702 if !DVB_FE_CUSTOMISE | 99 | select DVB_CX22702 if !DVB_FE_CUSTOMISE |
100 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE | 100 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE |
101 | select DVB_TUNER_LGH06XF if !DVB_FE_CUSTOMISE | ||
101 | select DVB_MT352 if !DVB_FE_CUSTOMISE | 102 | select DVB_MT352 if !DVB_FE_CUSTOMISE |
102 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE | 103 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE |
103 | help | 104 | help |
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c index 4e2eef86eca..ae039b9cb72 100644 --- a/drivers/media/dvb/dvb-usb/cxusb.c +++ b/drivers/media/dvb/dvb-usb/cxusb.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #include "cx22702.h" | 28 | #include "cx22702.h" |
29 | #include "lgdt330x.h" | 29 | #include "lgdt330x.h" |
30 | #include "lg_h06xf.h" | 30 | #include "lgh06xf.h" |
31 | #include "mt352.h" | 31 | #include "mt352.h" |
32 | #include "mt352_priv.h" | 32 | #include "mt352_priv.h" |
33 | #include "zl10353.h" | 33 | #include "zl10353.h" |
@@ -324,13 +324,6 @@ static int cxusb_mt352_demod_init(struct dvb_frontend* fe) | |||
324 | return 0; | 324 | return 0; |
325 | } | 325 | } |
326 | 326 | ||
327 | static int cxusb_lgh064f_tuner_set_params(struct dvb_frontend *fe, | ||
328 | struct dvb_frontend_parameters *fep) | ||
329 | { | ||
330 | struct dvb_usb_adapter *adap = fe->dvb->priv; | ||
331 | return lg_h06xf_pll_set(fe, &adap->dev->i2c_adap, fep); | ||
332 | } | ||
333 | |||
334 | static struct cx22702_config cxusb_cx22702_config = { | 327 | static struct cx22702_config cxusb_cx22702_config = { |
335 | .demod_address = 0x63, | 328 | .demod_address = 0x63, |
336 | 329 | ||
@@ -398,7 +391,7 @@ static int cxusb_dtt7579_tuner_attach(struct dvb_usb_adapter *adap) | |||
398 | 391 | ||
399 | static int cxusb_lgh064f_tuner_attach(struct dvb_usb_adapter *adap) | 392 | static int cxusb_lgh064f_tuner_attach(struct dvb_usb_adapter *adap) |
400 | { | 393 | { |
401 | adap->fe->ops.tuner_ops.set_params = cxusb_lgh064f_tuner_set_params; | 394 | dvb_attach(lgh06xf_attach, adap->fe, &adap->dev->i2c_adap); |
402 | return 0; | 395 | return 0; |
403 | } | 396 | } |
404 | 397 | ||