From f70fe619f352c00df9ab2bfa345164e0ca196b6b Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Wed, 8 Feb 2006 01:09:01 +0000 Subject: fix slowblank --- lib/driver/avswitch.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/driver/avswitch.cpp') 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 init_avswitch(eAutoInitNumbers::rc, "AVSwitch Driver"); -- cgit v1.2.3