git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix (or hack) scart switching because the value in /proc/stb/avs/0/fb reads low,...
[enigma2.git]
/
lib
/
driver
/
avswitch.cpp
diff --git
a/lib/driver/avswitch.cpp
b/lib/driver/avswitch.cpp
index 5038ee5384ca8a932a45f269b2d2b7fd57b0c90d..40db19ae03bc52b3eb4a6b04145c6dacd5eef748 100644
(file)
--- 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);
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)
}
void eAVSwitch::setColorFormat(int format)