-rw-r--r-- | libopie/odevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 62e3569..7d862cd 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp | |||
@@ -1283,49 +1283,49 @@ void Zaurus::initButtons ( ) | |||
1283 | #define SHARP_LED_SETSTATUS (SHARP_LED_IOCTL_START+1) | 1283 | #define SHARP_LED_SETSTATUS (SHARP_LED_IOCTL_START+1) |
1284 | 1284 | ||
1285 | typedef struct sharp_led_status { | 1285 | typedef struct sharp_led_status { |
1286 | int which; /* select which LED status is wanted. */ | 1286 | int which; /* select which LED status is wanted. */ |
1287 | int status; /* set new led status if you call SHARP_LED_SETSTATUS */ | 1287 | int status; /* set new led status if you call SHARP_LED_SETSTATUS */ |
1288 | } sharp_led_status; | 1288 | } sharp_led_status; |
1289 | 1289 | ||
1290 | #define SHARP_LED_MAIL_EXISTS 9 /* mail status (exists or not) */ | 1290 | #define SHARP_LED_MAIL_EXISTS 9 /* mail status (exists or not) */ |
1291 | 1291 | ||
1292 | #define LED_MAIL_NO_UNREAD_MAIL 0 /* for SHARP_LED_MAIL_EXISTS */ | 1292 | #define LED_MAIL_NO_UNREAD_MAIL 0 /* for SHARP_LED_MAIL_EXISTS */ |
1293 | #define LED_MAIL_NEWMAIL_EXISTS 1 /* for SHARP_LED_MAIL_EXISTS */ | 1293 | #define LED_MAIL_NEWMAIL_EXISTS 1 /* for SHARP_LED_MAIL_EXISTS */ |
1294 | #define LED_MAIL_UNREAD_MAIL_EX 2 /* for SHARP_LED_MAIL_EXISTS */ | 1294 | #define LED_MAIL_UNREAD_MAIL_EX 2 /* for SHARP_LED_MAIL_EXISTS */ |
1295 | 1295 | ||
1296 | // #include <asm/sharp_apm.h> // including kernel headers is evil ... | 1296 | // #include <asm/sharp_apm.h> // including kernel headers is evil ... |
1297 | 1297 | ||
1298 | #define APM_IOCGEVTSRC OD_IOR( 'A', 203, int ) | 1298 | #define APM_IOCGEVTSRC OD_IOR( 'A', 203, int ) |
1299 | #define APM_IOCSEVTSRC OD_IORW( 'A', 204, int ) | 1299 | #define APM_IOCSEVTSRC OD_IORW( 'A', 204, int ) |
1300 | #define APM_EVT_POWER_BUTTON (1 << 0) | 1300 | #define APM_EVT_POWER_BUTTON (1 << 0) |
1301 | 1301 | ||
1302 | #define FL_IOCTL_STEP_CONTRAST 100 | 1302 | #define FL_IOCTL_STEP_CONTRAST 100 |
1303 | 1303 | ||
1304 | 1304 | ||
1305 | void Zaurus::buzzer ( int sound ) | 1305 | void Zaurus::buzzer ( int sound ) |
1306 | { | 1306 | { |
1307 | static int fd = ::open ( "/dev/sharp_buz", O_WRONLY|O_NONBLOCK ); | 1307 | int fd = ::open ( "/dev/sharp_buz", O_WRONLY|O_NONBLOCK ); |
1308 | 1308 | ||
1309 | if ( fd >= 0 ) { | 1309 | if ( fd >= 0 ) { |
1310 | ::ioctl ( fd, SHARP_BUZZER_MAKESOUND, sound ); | 1310 | ::ioctl ( fd, SHARP_BUZZER_MAKESOUND, sound ); |
1311 | ::close ( fd ); | 1311 | ::close ( fd ); |
1312 | } | 1312 | } |
1313 | } | 1313 | } |
1314 | 1314 | ||
1315 | 1315 | ||
1316 | void Zaurus::alarmSound ( ) | 1316 | void Zaurus::alarmSound ( ) |
1317 | { | 1317 | { |
1318 | buzzer ( SHARP_BUZ_SCHEDULE_ALARM ); | 1318 | buzzer ( SHARP_BUZ_SCHEDULE_ALARM ); |
1319 | } | 1319 | } |
1320 | 1320 | ||
1321 | void Zaurus::touchSound ( ) | 1321 | void Zaurus::touchSound ( ) |
1322 | { | 1322 | { |
1323 | buzzer ( SHARP_BUZ_TOUCHSOUND ); | 1323 | buzzer ( SHARP_BUZ_TOUCHSOUND ); |
1324 | } | 1324 | } |
1325 | 1325 | ||
1326 | void Zaurus::keySound ( ) | 1326 | void Zaurus::keySound ( ) |
1327 | { | 1327 | { |
1328 | buzzer ( SHARP_BUZ_KEYSOUND ); | 1328 | buzzer ( SHARP_BUZ_KEYSOUND ); |
1329 | } | 1329 | } |
1330 | 1330 | ||
1331 | 1331 | ||