[media] cx23885: Fix TeVii S471 regression since introduction of ts2020
authorJohannes Koch <johannes@ortsraum.de>
Wed, 17 Jul 2013 17:28:16 +0000 (14:28 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 30 Jul 2013 20:23:24 +0000 (17:23 -0300)
Patch to make TeVii S471 cards use the ts2020 tuner, since ds3000 driver no
longer contains tuning code.

Signed-off-by: Johannes Koch <johannes@ortsraum.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/cx23885/cx23885-dvb.c

index 9c5ed10b2c5eb8e5d1c03897d2bf5813f68a41fa..bb291c661143b501bc2523b3df484752c40fc8cc 100644 (file)
@@ -1249,6 +1249,10 @@ static int dvb_register(struct cx23885_tsport *port)
                fe0->dvb.frontend = dvb_attach(ds3000_attach,
                                        &tevii_ds3000_config,
                                        &i2c_bus->i2c_adap);
+               if (fe0->dvb.frontend != NULL) {
+                       dvb_attach(ts2020_attach, fe0->dvb.frontend,
+                               &tevii_ts2020_config, &i2c_bus->i2c_adap);
+               }
                break;
        case CX23885_BOARD_PROF_8000:
                i2c_bus = &dev->i2c_bus[0];