aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/b2c2/Makefile1
-rw-r--r--drivers/media/dvb/b2c2/flexcop-fe-tuner.c6
-rw-r--r--drivers/media/dvb/bt8xx/dvb-bt8xx.c5
-rw-r--r--drivers/media/dvb/dvb-usb/cxusb.c7
-rw-r--r--drivers/media/video/cx23885/cx23885-dvb.c6
-rw-r--r--drivers/media/video/cx88/cx88-dvb.c17
6 files changed, 29 insertions, 13 deletions
diff --git a/drivers/media/dvb/b2c2/Makefile b/drivers/media/dvb/b2c2/Makefile
index e97ff60a1eff..7d5334106d5a 100644
--- a/drivers/media/dvb/b2c2/Makefile
+++ b/drivers/media/dvb/b2c2/Makefile
@@ -13,3 +13,4 @@ b2c2-flexcop-usb-objs = flexcop-usb.o
13obj-$(CONFIG_DVB_B2C2_FLEXCOP_USB) += b2c2-flexcop-usb.o 13obj-$(CONFIG_DVB_B2C2_FLEXCOP_USB) += b2c2-flexcop-usb.o
14 14
15EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/ 15EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
16EXTRA_CFLAGS += -Idrivers/media/video/
diff --git a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
index 0378fd646591..441ffdf0d9c9 100644
--- a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
+++ b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
@@ -5,6 +5,8 @@
5 * 5 *
6 * see flexcop.c for copyright information. 6 * see flexcop.c for copyright information.
7 */ 7 */
8#include <media/tuner.h>
9
8#include "flexcop.h" 10#include "flexcop.h"
9 11
10#include "stv0299.h" 12#include "stv0299.h"
@@ -15,6 +17,7 @@
15#include "mt312.h" 17#include "mt312.h"
16#include "lgdt330x.h" 18#include "lgdt330x.h"
17#include "dvb-pll.h" 19#include "dvb-pll.h"
20#include "tuner-simple.h"
18 21
19/* lnb control */ 22/* lnb control */
20 23
@@ -506,7 +509,8 @@ int flexcop_frontend_init(struct flexcop_device *fc)
506 /* try the air atsc 3nd generation (lgdt3303) */ 509 /* try the air atsc 3nd generation (lgdt3303) */
507 if ((fc->fe = dvb_attach(lgdt330x_attach, &air2pc_atsc_hd5000_config, &fc->i2c_adap)) != NULL) { 510 if ((fc->fe = dvb_attach(lgdt330x_attach, &air2pc_atsc_hd5000_config, &fc->i2c_adap)) != NULL) {
508 fc->dev_type = FC_AIR_ATSC3; 511 fc->dev_type = FC_AIR_ATSC3;
509 dvb_attach(dvb_pll_attach, fc->fe, 0x61, &fc->i2c_adap, DVB_PLL_LG_TDVS_H06XF); 512 dvb_attach(simple_tuner_attach, fc->fe,
513 &fc->i2c_adap, 0x61, TUNER_LG_TDVS_H06XF);
510 info("found the lgdt3303 at i2c address: 0x%02x",air2pc_atsc_hd5000_config.demod_address); 514 info("found the lgdt3303 at i2c address: 0x%02x",air2pc_atsc_hd5000_config.demod_address);
511 } else 515 } else
512 /* try the air atsc 1nd generation (bcm3510)/panasonic ct10s */ 516 /* try the air atsc 1nd generation (bcm3510)/panasonic ct10s */
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c
index 6d8b84490fa8..65081f161544 100644
--- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c
+++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c
@@ -609,8 +609,9 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type)
609 lgdt330x_reset(card); 609 lgdt330x_reset(card);
610 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);
611 if (card->fe != NULL) { 611 if (card->fe != NULL) {
612 dvb_attach(dvb_pll_attach, card->fe, 0x61, 612 dvb_attach(simple_tuner_attach, card->fe,
613 card->i2c_adapter, DVB_PLL_LG_TDVS_H06XF); 613 card->i2c_adapter, 0x61,
614 TUNER_LG_TDVS_H06XF);
614 dprintk ("dvb_bt8xx: lgdt330x detected\n"); 615 dprintk ("dvb_bt8xx: lgdt330x detected\n");
615 } 616 }
616 break; 617 break;
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c
index 8aff70217635..8b4243a1fca8 100644
--- a/drivers/media/dvb/dvb-usb/cxusb.c
+++ b/drivers/media/dvb/dvb-usb/cxusb.c
@@ -23,6 +23,8 @@
23 * 23 *
24 * see Documentation/dvb/README.dvb-usb for more information 24 * see Documentation/dvb/README.dvb-usb for more information
25 */ 25 */
26#include <media/tuner.h>
27
26#include "cxusb.h" 28#include "cxusb.h"
27 29
28#include "cx22702.h" 30#include "cx22702.h"
@@ -32,6 +34,7 @@
32#include "zl10353.h" 34#include "zl10353.h"
33#include "tuner-xc2028.h" 35#include "tuner-xc2028.h"
34#include "tuner-xc2028-types.h" 36#include "tuner-xc2028-types.h"
37#include "tuner-simple.h"
35 38
36/* debug */ 39/* debug */
37static int dvb_usb_cxusb_debug; 40static int dvb_usb_cxusb_debug;
@@ -477,8 +480,8 @@ static int cxusb_dtt7579_tuner_attach(struct dvb_usb_adapter *adap)
477 480
478static int cxusb_lgh064f_tuner_attach(struct dvb_usb_adapter *adap) 481static int cxusb_lgh064f_tuner_attach(struct dvb_usb_adapter *adap)
479{ 482{
480 dvb_attach(dvb_pll_attach, adap->fe, 0x61, &adap->dev->i2c_adap, 483 dvb_attach(simple_tuner_attach, adap->fe,
481 DVB_PLL_LG_TDVS_H06XF); 484 &adap->dev->i2c_adap, 0x61, TUNER_LG_TDVS_H06XF);
482 return 0; 485 return 0;
483} 486}
484 487
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index 5549a9d73a5c..42e6bdd25354 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -39,6 +39,7 @@
39#include "dvb-pll.h" 39#include "dvb-pll.h"
40#include "tuner-xc2028.h" 40#include "tuner-xc2028.h"
41#include "tuner-xc2028-types.h" 41#include "tuner-xc2028-types.h"
42#include "tuner-simple.h"
42 43
43static unsigned int debug; 44static unsigned int debug;
44 45
@@ -271,8 +272,9 @@ static int dvb_register(struct cx23885_tsport *port)
271 &fusionhdtv_5_express, 272 &fusionhdtv_5_express,
272 &i2c_bus->i2c_adap); 273 &i2c_bus->i2c_adap);
273 if (port->dvb.frontend != NULL) { 274 if (port->dvb.frontend != NULL) {
274 dvb_attach(dvb_pll_attach, port->dvb.frontend, 0x61, 275 dvb_attach(simple_tuner_attach, port->dvb.frontend,
275 &i2c_bus->i2c_adap, DVB_PLL_LG_TDVS_H06XF); 276 &i2c_bus->i2c_adap, 0x61,
277 TUNER_LG_TDVS_H06XF);
276 } 278 }
277 break; 279 break;
278 case CX23885_BOARD_HAUPPAUGE_HVR1500Q: 280 case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index 9c0d20aef27a..0b19384c72f1 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -48,6 +48,7 @@
48#include "tuner-xc2028.h" 48#include "tuner-xc2028.h"
49#include "tuner-xc2028-types.h" 49#include "tuner-xc2028-types.h"
50#include "tuner-simple.h" 50#include "tuner-simple.h"
51#include "tda9887.h"
51 52
52MODULE_DESCRIPTION("driver for cx2388x based DVB cards"); 53MODULE_DESCRIPTION("driver for cx2388x based DVB cards");
53MODULE_AUTHOR("Chris Pascoe <c.pascoe@itee.uq.edu.au>"); 54MODULE_AUTHOR("Chris Pascoe <c.pascoe@itee.uq.edu.au>");
@@ -693,9 +694,11 @@ static int dvb_register(struct cx8802_dev *dev)
693 &fusionhdtv_5_gold, 694 &fusionhdtv_5_gold,
694 &dev->core->i2c_adap); 695 &dev->core->i2c_adap);
695 if (dev->dvb.frontend != NULL) { 696 if (dev->dvb.frontend != NULL) {
696 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 697 dvb_attach(simple_tuner_attach, dev->dvb.frontend,
697 &dev->core->i2c_adap, 698 &dev->core->i2c_adap, 0x61,
698 DVB_PLL_LG_TDVS_H06XF); 699 TUNER_LG_TDVS_H06XF);
700 dvb_attach(tda9887_attach, dev->dvb.frontend,
701 &dev->core->i2c_adap, 0x43);
699 } 702 }
700 } 703 }
701 break; 704 break;
@@ -713,9 +716,11 @@ static int dvb_register(struct cx8802_dev *dev)
713 &pchdtv_hd5500, 716 &pchdtv_hd5500,
714 &dev->core->i2c_adap); 717 &dev->core->i2c_adap);
715 if (dev->dvb.frontend != NULL) { 718 if (dev->dvb.frontend != NULL) {
716 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 719 dvb_attach(simple_tuner_attach, dev->dvb.frontend,
717 &dev->core->i2c_adap, 720 &dev->core->i2c_adap, 0x61,
718 DVB_PLL_LG_TDVS_H06XF); 721 TUNER_LG_TDVS_H06XF);
722 dvb_attach(tda9887_attach, dev->dvb.frontend,
723 &dev->core->i2c_adap, 0x43);
719 } 724 }
720 } 725 }
721 break; 726 break;