diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-25 23:29:43 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-25 23:29:43 +0000 |
| commit | 389ae07e59aaf1b8e504801cd49409072f7d3b6b (patch) | |
| tree | 97d2d95ef91ea825c23c550da92a3d81b20e4076 /lib/driver | |
| parent | 7843cbf34ccb5b867ae49fc9e7731247e525f81e (diff) | |
| download | enigma2-389ae07e59aaf1b8e504801cd49409072f7d3b6b.tar.gz enigma2-389ae07e59aaf1b8e504801cd49409072f7d3b6b.zip | |
add vcr scart switch to main menu
Diffstat (limited to 'lib/driver')
| -rw-r--r-- | lib/driver/avswitch.cpp | 9 | ||||
| -rw-r--r-- | lib/driver/avswitch.h | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/driver/avswitch.cpp b/lib/driver/avswitch.cpp index 40db19ae..482a0f06 100644 --- 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); + if (val == 1) + setFastBlank(0); +} + +void eAVSwitch::setFastBlank(int val) +{ + int fd; char *fb[] = {"low", "high", "vcr"}; @@ -54,7 +61,7 @@ void eAVSwitch::setInput(int val) return; } - write(fd, input[val], strlen(fb[0])); + write(fd, fb[val], strlen(fb[0])); close(fd); } diff --git a/lib/driver/avswitch.h b/lib/driver/avswitch.h index ec7d5c13..9f6eccb7 100644 --- a/lib/driver/avswitch.h +++ b/lib/driver/avswitch.h @@ -11,7 +11,8 @@ public: ~eAVSwitch(); static eAVSwitch *getInstance(); - + + void setFastBlank(int val); void setColorFormat(int format); void setAspectRatio(int ratio); void setVideomode(int mode); |
