convert event_id from string to long
[enigma2.git] / lib / driver / avswitch.cpp
index 5038ee5384ca8a932a45f269b2d2b7fd57b0c90d..47a60cf384f814e7a69be8fac49be815f08e0888 100644 (file)
@@ -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)