diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-02-08 01:09:01 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-02-08 01:09:01 +0000 |
| commit | f70fe619f352c00df9ab2bfa345164e0ca196b6b (patch) | |
| tree | 70d578f5fa73799d93f4d74950385c1101537d0b /lib/driver | |
| parent | f6fc97e1d61e3701f3cde099979da716c3afa28d (diff) | |
| download | enigma2-f70fe619f352c00df9ab2bfa345164e0ca196b6b.tar.gz enigma2-f70fe619f352c00df9ab2bfa345164e0ca196b6b.zip | |
fix slowblank
Diffstat (limited to 'lib/driver')
| -rw-r--r-- | lib/driver/avswitch.cpp | 12 | ||||
| -rw-r--r-- | lib/driver/avswitch.h | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/driver/avswitch.cpp b/lib/driver/avswitch.cpp index 2556ab0d..12a8f7d9 100644 --- a/lib/driver/avswitch.cpp +++ b/lib/driver/avswitch.cpp @@ -150,5 +150,17 @@ void eAVSwitch::setVideomode(int mode) close(fd); } +void eAVSwitch::setSlowblank(int val) +{ + int fd; + if((fd = open("/proc/stb/avs/0/sb", O_WRONLY)) < 0) { + printf("cannot open /proc/stb/avs/0/sb\n"); + return; + } + const char *s = val ? "auto" : "vcr"; + write(fd, s, strlen(s)); + close(fd); +} + //FIXME: correct "run/startlevel" eAutoInitP0<eAVSwitch> init_avswitch(eAutoInitNumbers::rc, "AVSwitch Driver"); diff --git a/lib/driver/avswitch.h b/lib/driver/avswitch.h index d765e02a..ea451314 100644 --- a/lib/driver/avswitch.h +++ b/lib/driver/avswitch.h @@ -21,7 +21,7 @@ public: void setAspectRatio(int ratio); void setVideomode(int mode); void setInput(int val); - + void setSlowblank(int val); // 1: on, 0: off }; #endif |
