refs bug #485
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 30 Mar 2010 11:05:37 +0000 (13:05 +0200)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 30 Mar 2010 11:05:37 +0000 (13:05 +0200)
start cxd1978 tool if such a tuner is used

lib/python/Screens/ScanSetup.py

index 1dbc150591a627edc8b97fd79af5affc2f077132..960b7f10176601a67ea12657e60a229b1370a70a 100644 (file)
@@ -176,7 +176,11 @@ class CableTransponderSearchSupport:
                self.cable_search_container.appClosed.append(self.cableTransponderSearchClosed)
                self.cable_search_container.dataAvail.append(self.getCableTransponderData)
                cableConfig = config.Nims[nim_idx].cable
-               cmd = "tda1002x --init --scan --verbose --wakeup --inv 2 --bus "
+               tunername = nimmanager.getNimName(nim_idx)
+               if tunername == "CXD1981":
+                       cmd = "cxd1978 --init --scan --verbose --wakeup --inv 2 --bus "
+               else:
+                       cmd = "tda1002x --init --scan --verbose --wakeup --inv 2 --bus "
                #FIXMEEEEEE hardcoded i2c devices for dm7025 and dm8000
                if nim_idx < 2:
                        cmd += str(nim_idx)