fix (or hack) scart switching because the value in /proc/stb/avs/0/fb reads low,...
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 25 Dec 2005 22:31:56 +0000 (22:31 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 25 Dec 2005 22:31:56 +0000 (22:31 +0000)
i think it should better be fixed in the drivers(?)

lib/driver/avswitch.cpp

index 5038ee5..40db19a 100644 (file)
@@ -45,6 +45,17 @@ void eAVSwitch::setInput(int val)
 
        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)