fix symbolrate limits.. change parameter --scan_stepsize and --scan_bands to
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 1 Jun 2007 08:24:12 +0000 (08:24 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 1 Jun 2007 08:24:12 +0000 (08:24 +0000)
--scan-stepsize and --scan-bands

lib/python/Components/NimManager.py
lib/python/Screens/ScanSetup.py

index bf873b8..e5c5642 100644 (file)
@@ -905,8 +905,8 @@ def InitNimManager(nimmgr):
                        nim.cable.scan_mod_qam256 = ConfigYesNo(default = True)
                        nim.cable.scan_sr_6900 = ConfigYesNo(default = True)
                        nim.cable.scan_sr_6875 = ConfigYesNo(default = True)
-                       nim.cable.scan_sr_ext1 = ConfigInteger(default = 0, limits = (0, 15000))
-                       nim.cable.scan_sr_ext2 = ConfigInteger(default = 0, limits = (0, 15000))
+                       nim.cable.scan_sr_ext1 = ConfigInteger(default = 0, limits = (0, 7230))
+                       nim.cable.scan_sr_ext2 = ConfigInteger(default = 0, limits = (0, 7230))
                elif slot.isCompatible("DVB-T"):
                        nim.configMode = ConfigSelection(
                                choices = {
index 9e7c539..afcdbfa 100644 (file)
@@ -207,7 +207,7 @@ class CableTransponderSearchSupport:
                cmd = "tda1002x --scan --verbose --wakeup --bus="
                cmd += str(nim_idx)
                if cableConfig.scan_type.value == "bands":
-                       cmd += " --scan_bands="
+                       cmd += " --scan-bands="
                        bands = 0
                        if cableConfig.scan_band_EU_VHF_I.value:
                                bands |= cable_bands["DVBC_BAND_EU_VHF_I"]
@@ -235,7 +235,7 @@ class CableTransponderSearchSupport:
                                bands |= cable_bands["DVBC_BAND_US_HYPER"]
                        cmd += str(bands)
                else:
-                       cmd += " --scan_stepsize="
+                       cmd += " --scan-stepsize="
                        cmd += str(cableConfig.scan_frequency_steps.value)
                if cableConfig.scan_mod_qam16.value:
                        cmd += " --mod 16"
@@ -251,11 +251,11 @@ class CableTransponderSearchSupport:
                        cmd += " --sr 6900000"
                if cableConfig.scan_sr_6875.value:
                        cmd += " --sr 6875000"
-               if cableConfig.scan_sr_ext1.value > 1000:
+               if cableConfig.scan_sr_ext1.value > 450:
                        cmd += " --sr "
                        cmd += str(cableConfig.scan_sr_ext1.value)
                        cmd += "000"
-               if cableConfig.scan_sr_ext2.value > 1000:
+               if cableConfig.scan_sr_ext2.value > 450:
                        cmd += " --sr "
                        cmd += str(cableConfig.scan_sr_ext2.value)
                        cmd += "000"