X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fdriver%2Favswitch.cpp;h=12a8f7d9b9848139025b8cdce8eef52be4356f2c;hb=f70fe619f352c00df9ab2bfa345164e0ca196b6b;hp=09b1ec33fe2aad5a253966f2a7e06c889ec40fac;hpb=a2705e2beab9649b7ad70d0873aba014778e5d20;p=vuplus_dvbapp diff --git a/lib/driver/avswitch.cpp b/lib/driver/avswitch.cpp index 09b1ec3..12a8f7d 100644 --- a/lib/driver/avswitch.cpp +++ b/lib/driver/avswitch.cpp @@ -6,7 +6,6 @@ #include #include -#include #include eAVSwitch *eAVSwitch::instance = 0; @@ -151,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 init_avswitch(eAutoInitNumbers::rc, "AVSwitch Driver");