X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e41cbd8e4f84ce4ef23095e7eaba9c885922ba92..a2705e2beab9649b7ad70d0873aba014778e5d20:/lib/driver/avswitch.cpp?ds=sidebyside diff --git a/lib/driver/avswitch.cpp b/lib/driver/avswitch.cpp index 5038ee53..09b1ec33 100644 --- a/lib/driver/avswitch.cpp +++ b/lib/driver/avswitch.cpp @@ -45,6 +45,24 @@ void eAVSwitch::setInput(int val) write(fd, input[val], strlen(input[val])); close(fd); + + if (val == 1) + setFastBlank(2); +} + +void eAVSwitch::setFastBlank(int val) +{ + int 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, fb[val], strlen(fb[0])); + close(fd); } void eAVSwitch::setColorFormat(int format) @@ -57,6 +75,7 @@ void eAVSwitch::setColorFormat(int format) char *cvbs="cvbs"; char *rgb="rgb"; char *svideo="svideo"; + char *yuv="yuv"; int fd; if((fd = open("/proc/stb/avs/0/colorformat", O_WRONLY)) < 0) { @@ -73,6 +92,9 @@ void eAVSwitch::setColorFormat(int format) case 2: write(fd, svideo, strlen(svideo)); break; + case 3: + write(fd, yuv, strlen(yuv)); + break; } close(fd); }