update dm7080 hardware drivers (frontend / demux was broken in 20170409)
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-4.3.1r1 / 0005-fixed-tuner-defaults-for-single-C-T-tuners-and-multi.patch
1 From 26c85c182fa59cb3388fe22f3a1d034e69ace531 Mon Sep 17 00:00:00 2001
2 From: ghost <andreas.monzner@dream-property.net>
3 Date: Tue, 28 Mar 2017 01:14:20 +0200
4 Subject: [PATCH 5/9] fixed tuner defaults for single C/T tuners and multitype
5  C/T tuners
6
7 ---
8  usr/lib/enigma2/python/Components/NimManager.py | 14 ++++----------
9  1 file changed, 4 insertions(+), 10 deletions(-)
10
11 diff --git a/usr/lib/enigma2/python/Components/NimManager.py b/usr/lib/enigma2/python/Components/NimManager.py
12 index c28bf9d..7ae7ab0 100644
13 --- a/usr/lib/enigma2/python/Components/NimManager.py
14 +++ b/usr/lib/enigma2/python/Components/NimManager.py
15 @@ -1733,11 +1733,8 @@ def InitNimManager(nimmgr, slot_no = None):
16                         isEmpty = False
17                         nim.cable = ConfigSubsection()
18                         nim.cable.configMode = ConfigSelection(
19 -                               choices = {
20 -                                       "enabled": _("connected"),
21 -                                       "nothing": _("nothing connected"),
22 -                                       },
23 -                               default = "nothing")
24 +                               choices = [ getConfigModeTuple("enabled"), getConfigModeTuple("nothing") ],
25 +                               default = "enabled" if not slot.isMultiType() or slot.types[nim.multiType.value] == "DVB-C" else "nothing")
26                         list = [ ]
27                         n = 0
28                         for x in nimmgr.cablesList:
29 @@ -1781,11 +1778,8 @@ def InitNimManager(nimmgr, slot_no = None):
30                         isEmpty = False
31                         nim.terrest = ConfigSubsection()
32                         nim.terrest.configMode = ConfigSelection(
33 -                               choices = {
34 -                                       "enabled": NimManager.config_mode_str["enabled"],
35 -                                       "nothing": NimManager.config_mode_str["nothing"],
36 -                                       },
37 -                               default = "nothing")
38 +                               choices = [ getConfigModeTuple("enabled"), getConfigModeTuple("nothing") ],
39 +                               default = "enabled" if not slot.isMultiType() or slot.types[nim.multiType.value].startswith("DVB-T") else "nothing")
40                         provider = []
41                         n = 0
42                         for x in nimmgr.terrestrialsList:
43 -- 
44 2.1.4
45