revert 128 LNB change... this was per Tuner
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 8 Aug 2008 19:14:23 +0000 (19:14 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 8 Aug 2008 19:14:23 +0000 (19:14 +0000)
so now its possible to configure up to 36 LNBs per Tuner (32 + 4 just for
motorized dishes)
(max 144 LNBs now for all Tuners)

lib/dvb/sec.h
lib/python/Components/NimManager.py
lib/python/Screens/Satconfig.py

index 35213b39e1e65ea986f62e090efa0811e0b842d9..cba9fa41c139dab93316d89e0241e5f3913aabe0 100644 (file)
@@ -271,7 +271,7 @@ public:
 private:
 #ifndef SWIG
        static eDVBSatelliteEquipmentControl *instance;
-       eDVBSatelliteLNBParameters m_lnbs[128]; // i think its enough
+       eDVBSatelliteLNBParameters m_lnbs[144]; // i think its enough
        int m_lnbidx; // current index for set parameters
        std::map<int, eDVBSatelliteSwitchParameters>::iterator m_curSat;
        eSmartPtrList<eDVBRegisteredFrontend> &m_avail_frontends;
index f8dab1230207ea6ad5eccbf5e7cb66ee0665da58..ea234c1143f5ea81eb5f05645dff478f36244efa 100644 (file)
@@ -213,7 +213,7 @@ class SecConfigure:
 
        def updateAdvanced(self, sec, slotid):
                lnbSat = {}
-               for x in range(1,129):
+               for x in range(1,37):
                        lnbSat[x] = []
 
                #wildcard for all satellites ( for rotor )
@@ -230,7 +230,7 @@ class SecConfigure:
                                print "add", x[0], "to", lnb
                                lnbSat[lnb].append(x[0])
 
-               for x in range(1,129):
+               for x in range(1,37):
                        if len(lnbSat[x]) > 0:
                                currLnb = config.Nims[slotid].advanced.lnb[x]
                                sec.addLNB()
@@ -379,7 +379,7 @@ class SecConfigure:
                                        elif currSat.tonemode == "off":
                                                sec.setToneMode(switchParam.OFF)
                                                
-                                       if not currSat.usals.value and x < 125:
+                                       if not currSat.usals.value and x < 34:
                                                sec.setRotorPosNum(currSat.rotorposition.value)
                                        else:
                                                sec.setRotorPosNum(0) #USALS
@@ -894,7 +894,7 @@ def InitNimManager(nimmgr):
                        nim.advanced.sats = getConfigSatlist(192,nimmgr.satList+tmp)
                        nim.advanced.sat = ConfigSubDict()
                        lnbs = [("0", "not available")]
-                       for y in range(1, 125):
+                       for y in range(1, 33):
                                lnbs.append((str(y), "LNB " + str(y)))
 
                        for x in nimmgr.satList:
@@ -911,7 +911,7 @@ def InitNimManager(nimmgr):
                                nim.advanced.sat[x].tonemode = ConfigSelection(choices={"band": _("Band"), "on": _("On"), "off": _("Off")}, default = "band")
                                nim.advanced.sat[x].usals = ConfigYesNo(default=True)
                                nim.advanced.sat[x].rotorposition = ConfigInteger(default=1, limits=(1, 255))
-                               lnbnum = 125+x-3601
+                               lnbnum = 33+x-3601
                                nim.advanced.sat[x].lnb = ConfigSelection(choices = [("0", "not available"), (str(lnbnum), "LNB %d"%(lnbnum))], default="0")
 
                        csw = [("none", _("None")), ("AA", _("AA")), ("AB", _("AB")), ("BA", _("BA")), ("BB", _("BB"))]
@@ -924,7 +924,7 @@ def InitNimManager(nimmgr):
 
                        nim.advanced.lnb = ConfigSubList()
                        nim.advanced.lnb.append(ConfigNothing())
-                       for x in range(1, 129):
+                       for x in range(1, 37):
                                nim.advanced.lnb.append(ConfigSubsection())
                                nim.advanced.lnb[x].lof = ConfigSelection(choices={"universal_lnb": _("Universal LNB"), "c_band": _("C-Band"), "user_defined": _("User defined")}, default="universal_lnb")
                                nim.advanced.lnb[x].lofl = ConfigInteger(default=9750, limits = (0, 99999))
@@ -933,7 +933,7 @@ def InitNimManager(nimmgr):
 #                              nim.advanced.lnb[x].output_12v = ConfigSelection(choices = [("0V", _("0 V")), ("12V", _("12 V"))], default="0V")
                                nim.advanced.lnb[x].increased_voltage = ConfigYesNo(default=False)
                                nim.advanced.lnb[x].toneburst = ConfigSelection(choices = [("none", _("None")), ("A", _("A")), ("B", _("B"))], default = "none")
-                               if x > 124:
+                               if x > 32:
                                        nim.advanced.lnb[x].diseqcMode = ConfigSelection(choices = [("1_2", _("1.2"))], default = "1_2")
                                else:
                                        nim.advanced.lnb[x].diseqcMode = ConfigSelection(choices = [("none", _("None")), ("1_0", _("1.0")), ("1_1", _("1.1")), ("1_2", _("1.2"))], default = "none")
index 37208cdc5b19f25efab532f967b69c64b5fcf1b2..21c40905e0c64547f0f021c80d3e4705514bf861 100644 (file)
@@ -214,7 +214,7 @@ class NimSetup(Screen, ConfigListScreen):
                self.list.append(getConfigListEntry(_("Voltage mode"), Sat.voltage))
                self.list.append(getConfigListEntry(_("Tone mode"), Sat.tonemode))
                if currLnb and currLnb.diseqcMode.value == "1_2":
-                       if lnbnum < 125:
+                       if lnbnum < 33:
                                self.advancedUsalsEntry = getConfigListEntry(_("Use usals for this sat"), Sat.usals)
                                self.list.append(self.advancedUsalsEntry)
                                if not Sat.usals.value:
@@ -224,7 +224,7 @@ class NimSetup(Screen, ConfigListScreen):
                self.advancedLnbsEntry = getConfigListEntry(_("LNB"), Sat.lnb)
                self.list.append(self.advancedLnbsEntry)
                if currLnb:
-                       if lnbnum < 125:
+                       if lnbnum < 33:
                                self.advancedDiseqcMode = getConfigListEntry(_("DiSEqC mode"), currLnb.diseqcMode)
                                self.list.append(self.advancedDiseqcMode)
                        if currLnb.diseqcMode.value != "none":