store configmode in advanced sat mode
[enigma2.git] / lib / driver / avswitch.cpp
index 40db19ae03bc52b3eb4a6b04145c6dacd5eef748..2556ab0d32b12f6e24a6ddedd1e3d9655dd0c567 100644 (file)
@@ -6,7 +6,6 @@
 
 #include <lib/base/init.h>
 #include <lib/base/init_num.h>
-#include <lib/base/econfig.h>
 #include <lib/base/eerror.h>
 
 eAVSwitch *eAVSwitch::instance = 0;
@@ -46,6 +45,13 @@ 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"};
 
        
@@ -54,7 +60,7 @@ void eAVSwitch::setInput(int val)
                return;
        }
 
-       write(fd, input[val], strlen(fb[0]));
+       write(fd, fb[val], strlen(fb[0]));
        close(fd);
 }
 
@@ -68,6 +74,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) {
@@ -84,6 +91,9 @@ void eAVSwitch::setColorFormat(int format)
                case 2:
                        write(fd, svideo, strlen(svideo));
                        break;
+               case 3:
+                       write(fd, yuv, strlen(yuv));
+                       break;
        }       
        close(fd);
 }