summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_ramses.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_ramses.cpp b/libopie2/opiecore/device/odevice_ramses.cpp
index c75ea3a..a060695 100644
--- a/libopie2/opiecore/device/odevice_ramses.cpp
+++ b/libopie2/opiecore/device/odevice_ramses.cpp
@@ -101,14 +101,12 @@ void Ramses::playAlarmSound()
101 static Sound snd ( "alarm" ); 101 static Sound snd ( "alarm" );
102 if(!snd.isFinished()) 102 if(!snd.isFinished())
103 return; 103 return;
104 104
105 changeMixerForAlarm( 0, "/dev/sound/mixer" , &snd); 105 changeMixerForAlarm( 0, "/dev/sound/mixer" , &snd);
106 snd.play(); 106 snd.play();
107#else
108#error QT_NO_SOUND defined
109#endif 107#endif
110} 108}
111 109
112 110
113bool Ramses::suspend() 111bool Ramses::suspend()
114{ 112{
@@ -121,13 +119,13 @@ bool Ramses::suspend()
121 int fd; 119 int fd;
122 if ((fd = ::open("/proc/sys/pm/suspend", O_WRONLY)) >= 0) { 120 if ((fd = ::open("/proc/sys/pm/suspend", O_WRONLY)) >= 0) {
123 char writeCommand[] = "1\n"; 121 char writeCommand[] = "1\n";
124 ::write(fd, writeCommand, sizeof(writeCommand) ); 122 ::write(fd, writeCommand, sizeof(writeCommand) );
125 ::close(fd); 123 ::close(fd);
126 } 124 }
127 125
128 ::usleep ( 200 * 1000 ); 126 ::usleep ( 200 * 1000 );
129 return true; 127 return true;
130} 128}
131 129
132 130
133bool Ramses::setDisplayBrightness(int bright) 131bool Ramses::setDisplayBrightness(int bright)