git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add something which doesn't work
[enigma2.git]
/
lib
/
driver
/
avswitch.cpp
diff --git
a/lib/driver/avswitch.cpp
b/lib/driver/avswitch.cpp
index 40db19ae03bc52b3eb4a6b04145c6dacd5eef748..09b1ec33fe2aad5a253966f2a7e06c889ec40fac 100644
(file)
--- a/
lib/driver/avswitch.cpp
+++ b/
lib/driver/avswitch.cpp
@@
-46,6
+46,13
@@
void eAVSwitch::setInput(int val)
write(fd, input[val], strlen(input[val]));
close(fd);
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"};
char *fb[] = {"low", "high", "vcr"};
@@
-54,7
+61,7
@@
void eAVSwitch::setInput(int val)
return;
}
return;
}
- write(fd,
input
[val], strlen(fb[0]));
+ write(fd,
fb
[val], strlen(fb[0]));
close(fd);
}
close(fd);
}
@@
-68,6
+75,7
@@
void eAVSwitch::setColorFormat(int format)
char *cvbs="cvbs";
char *rgb="rgb";
char *svideo="svideo";
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) {
int fd;
if((fd = open("/proc/stb/avs/0/colorformat", O_WRONLY)) < 0) {
@@
-84,6
+92,9
@@
void eAVSwitch::setColorFormat(int format)
case 2:
write(fd, svideo, strlen(svideo));
break;
case 2:
write(fd, svideo, strlen(svideo));
break;
+ case 3:
+ write(fd, yuv, strlen(yuv));
+ break;
}
close(fd);
}
}
close(fd);
}