'TT3L10' : 'tt3l10',
'TURBO' : 'vuplus_turbo_c',
'TT2L08' : 'tt2l08',
-'BCM3148' : 'bcm3148'
+'BCM3148' : 'bcm3148',
+'BCM3158' : 'bcm3148',
}
terrestrial_autoscan_nimtype = {
'SSH108' : 'ssh108_t2_scan',
'TT3L10' : 'tt3l10_t2_scan',
'TURBO' : 'vuplus_turbo_t',
-'TT2L08' : 'tt2l08_t2_scan'
+'TT2L08' : 'tt2l08_t2_scan',
+'BCM3466' : 'bcm3466'
}
+dual_tuner_list = ('TT3L10', 'BCM3466')
+
def GetDeviceId(filter, nim_idx):
tuners={}
device_id = 0
if nim_name is not None and nim_name != "":
device_id = ""
nim_name = nim_name.strip(':VTUNER').split(' ')[-1][4:-1]
- if nim_name == 'TT3L10':
+ if nim_name in dual_tuner_list:
try:
- device_id = GetDeviceId('TT3L10', nim_idx)
+ device_id = GetDeviceId(nim_name, nim_idx)
device_id = "--device %s" % (device_id)
except Exception, err:
print "terrestrialTransponderGetCmd ->", err
(eDVBFrontendParametersSatellite.System_DVB_S2, _("DVB-S2")),
(eDVBFrontendParametersSatellite.System_DVB_S2X, _("DVB-S2X"))]
- self.scan_sat.system = ConfigSelection(default = defaultSat["system"], choices = sat_choices)
+ default_sat_system = defaultSat["system"]
+ if default_sat_system not in sat_choices:
+ default_sat_system = eDVBFrontendParametersSatellite.System_DVB_S
+
+ self.scan_sat.system = ConfigSelection(default = default_sat_system, choices = sat_choices)
self.scan_sat.system_dvbs2x = ConfigSelection(default = defaultSat["system"], choices = sat_choices_dvbs2x)
self.scan_sat.frequency = ConfigInteger(default = defaultSat["frequency"], limits = (1, 99999))
self.scan_sat.inversion = ConfigSelection(default = defaultSat["inversion"], choices = [
self.finished_cb = None
for nim in nimmanager.nim_slots:
- # collect networks provided by this tuner
+ # don't offer to scan nims if nothing is connected
+ if not nimmanager.somethingConnected(nim.slot):
+ continue
+ # collect networks provided by this tuner
need_scan = False
networks = self.getNetworksForNim(nim)
need_scan = True
print x, "not in ", known_networks
known_networks.append(x)
-
- # don't offer to scan nims if nothing is connected
- if not nimmanager.somethingConnected(nim.slot):
- need_scan = False
if need_scan:
nims_to_scan.append(nim)