aboutsummaryrefslogtreecommitdiff
path: root/lib/driver/avswitch.cpp
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-25 22:31:56 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-25 22:31:56 +0000
commitc31bef10af2174fc72b9e5658edc81681da4e47e (patch)
tree5fec94e98d33a699ffb2a99104df5ee098c17fa2 /lib/driver/avswitch.cpp
parent619eb71144de89c98d651bdbc55e424a20bca4a5 (diff)
downloadenigma2-c31bef10af2174fc72b9e5658edc81681da4e47e.tar.gz
enigma2-c31bef10af2174fc72b9e5658edc81681da4e47e.zip
fix (or hack) scart switching because the value in /proc/stb/avs/0/fb reads low, while it is not low
i think it should better be fixed in the drivers(?)
Diffstat (limited to 'lib/driver/avswitch.cpp')
-rw-r--r--lib/driver/avswitch.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/driver/avswitch.cpp b/lib/driver/avswitch.cpp
index 5038ee53..40db19ae 100644
--- a/lib/driver/avswitch.cpp
+++ b/lib/driver/avswitch.cpp
@@ -45,6 +45,17 @@ void eAVSwitch::setInput(int val)
write(fd, input[val], strlen(input[val]));
close(fd);
+
+ char *fb[] = {"low", "high", "vcr"};
+
+
+ if((fd = open("/proc/stb/avs/0/fb", O_WRONLY)) < 0) {
+ printf("cannot open /proc/stb/avs/0/fb\n");
+ return;
+ }
+
+ write(fd, input[val], strlen(fb[0]));
+ close(fd);
}
void eAVSwitch::setColorFormat(int format)