remove obsolete eConfig
[vuplus_dvbapp] / lib / driver / avswitch.cpp
index 482a0f0..2556ab0 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;
@@ -47,7 +46,7 @@ void eAVSwitch::setInput(int val)
        close(fd);
        
        if (val == 1)
-               setFastBlank(0);
+               setFastBlank(2);
 }
 
 void eAVSwitch::setFastBlank(int val)
@@ -75,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) {
@@ -91,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);
 }