aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/Videomode
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-02-06 17:58:59 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-02-06 17:58:59 +0100
commitd00d32df526b88b146c711ce8951008d72ec6a56 (patch)
tree7a46fbf47c8b32f1a4f8f2401efe9cb87e03d774 /lib/python/Plugins/SystemPlugins/Videomode
parentfc83470c30c0a314277fbda3e5c43a2ada4ac2d9 (diff)
downloadenigma2-d00d32df526b88b146c711ce8951008d72ec6a56.tar.gz
enigma2-d00d32df526b88b146c711ce8951008d72ec6a56.zip
code cleanup ... use more /proc/stb/avs/0/* auto functions
this change needs current drivers (SRCDATE >= 20090206)
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/Videomode')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
index 7149504a..6a85c4da 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
@@ -90,7 +90,6 @@ class VideoHardware:
def __init__(self):
self.last_modes_preferred = [ ]
self.on_hotplug = CList()
- self.standby = False
self.current_mode = None
self.current_port = None
@@ -107,7 +106,6 @@ class VideoHardware:
config.av.aspectratio.notifiers = [ ]
config.av.tvsystem.notifiers = [ ]
config.av.wss.notifiers = [ ]
- AVSwitch.setInput = self.AVSwitchSetInput
AVSwitch.getOutputAspect = self.getOutputAspect
config.av.aspect.addNotifier(self.updateAspect)
@@ -120,12 +118,6 @@ class VideoHardware:
# self.timer.callback.append(self.readPreferredModes)
# self.timer.start(1000)
- config.av.colorformat.addNotifier(self.updateFastblank)
-
- def AVSwitchSetInput(self, mode):
- self.standby = mode == "SCART"
- self.updateStandby()
-
def readAvailableModes(self):
try:
modes = open("/proc/stb/video/videomode_choices").read()[:-1]
@@ -322,42 +314,6 @@ class VideoHardware:
open("/proc/stb/video/policy2", "w").write(policy2)
except IOError:
pass
- self.updateSlowblank()
- self.updateFastblank()
-
- def updateSlowblank(self):
- if self.standby:
- from Components.SystemInfo import SystemInfo
- if SystemInfo["ScartSwitch"]:
- input = "scart"
- sb = "vcr"
- else:
- input = "off"
- sb = "0"
- else:
- input = "encoder"
- sb = "auto"
-
- open("/proc/stb/avs/0/sb", "w").write(sb)
- open("/proc/stb/avs/0/input", "w").write(input)
-
- def updateStandby(self):
- self.updateSlowblank()
- self.updateFastblank()
-
- def updateFastblank(self, *args):
- if self.standby:
- from Components.SystemInfo import SystemInfo
- if SystemInfo["ScartSwitch"]:
- fb = "vcr"
- else:
- fb = "low"
- else:
- if self.current_port == "Scart" and config.av.colorformat.value == "rgb":
- fb = "high"
- else:
- fb = "low"
- open("/proc/stb/avs/0/fb", "w").write(fb)
config.av.edid_override = ConfigYesNo(default = False)
video_hw = VideoHardware()