+bool eAVSwitch::haveScartSwitch()
+{
+ char tmp[255];
+ int fd = open("/proc/stb/avs/0/input_choices", O_RDONLY);
+ if(fd < 0) {
+ eDebug("cannot open /proc/stb/avs/0/input_choices");
+ return false;
+ }
+ read(fd, tmp, 255);
+ close(fd);
+ return !!strstr(tmp, "scart");
+}
+