diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-06 17:58:59 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-06 17:58:59 +0100 |
| commit | d00d32df526b88b146c711ce8951008d72ec6a56 (patch) | |
| tree | 7a46fbf47c8b32f1a4f8f2401efe9cb87e03d774 /lib/driver | |
| parent | fc83470c30c0a314277fbda3e5c43a2ada4ac2d9 (diff) | |
| download | enigma2-d00d32df526b88b146c711ce8951008d72ec6a56.tar.gz enigma2-d00d32df526b88b146c711ce8951008d72ec6a56.zip | |
code cleanup ... use more /proc/stb/avs/0/* auto functions
this change needs current drivers (SRCDATE >= 20090206)
Diffstat (limited to 'lib/driver')
| -rw-r--r-- | lib/driver/avswitch.cpp | 30 | ||||
| -rw-r--r-- | lib/driver/avswitch.h | 2 |
2 files changed, 0 insertions, 32 deletions
diff --git a/lib/driver/avswitch.cpp b/lib/driver/avswitch.cpp index dbfebf5f..f05bdd95 100644 --- a/lib/driver/avswitch.cpp +++ b/lib/driver/avswitch.cpp @@ -132,23 +132,6 @@ void eAVSwitch::setInput(int val) write(fd, input[val], strlen(input[val])); close(fd); - - if (val == 1) - setFastBlank(2); -} - -void eAVSwitch::setFastBlank(int val) -{ - int fd; - const char *fb[] = {"low", "high", "vcr"}; - - if((fd = open("/proc/stb/avs/0/fb", O_WRONLY)) < 0) { - eDebug("cannot open /proc/stb/avs/0/fb"); - return; - } - - write(fd, fb[val], strlen(fb[0])); - close(fd); } void eAVSwitch::setColorFormat(int format) @@ -284,18 +267,5 @@ void eAVSwitch::setWSS(int val) // 0 = auto, 1 = auto(4:3_off) close(fd); } -void eAVSwitch::setSlowblank(int val) -{ - int fd; - if((fd = open("/proc/stb/avs/0/sb", O_WRONLY)) < 0) { - eDebug("cannot open /proc/stb/avs/0/sb"); - return; - } - const char *sb[] = {"0", "6", "12", "vcr", "auto"}; - write(fd, sb[val], strlen(sb[val])); -// eDebug("set slow blanking to %s", sb[val]); - 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 8fdafdd1..bcb29c40 100644 --- a/lib/driver/avswitch.h +++ b/lib/driver/avswitch.h @@ -26,12 +26,10 @@ public: static eAVSwitch *getInstance(); bool haveScartSwitch(); int getVCRSlowBlanking(); - void setFastBlank(int val); void setColorFormat(int format); void setAspectRatio(int ratio); void setVideomode(int mode); void setInput(int val); - void setSlowblank(int val); void setWSS(int val); PSignal1<void, int> vcr_sb_notifier; }; |
