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 bf873b88bc7da7cdd9d317810663d98d200bacff..e5c56424c37d8d6e851c94e56a5776ac0b9bcb01 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_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 = {
                elif slot.isCompatible("DVB-T"):
                        nim.configMode = ConfigSelection(
                                choices = {
index 9e7c539a99f6554176c800a49af2be04ac695933..afcdbfa1378cc4bee94e27a01a9a3469c6e71d95 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 = "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"]
                        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:
                                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"
                        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"
                        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"
                        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"
                        cmd += " --sr "
                        cmd += str(cableConfig.scan_sr_ext2.value)
                        cmd += "000"