summaryrefslogtreecommitdiff
path: root/libopie
authorsandman <sandman>2002-12-17 23:38:52 (UTC)
committer sandman <sandman>2002-12-17 23:38:52 (UTC)
commit96a9654c2fccce382a4a9ad5d2d0b991b4191468 (patch) (unidiff)
tree4ecc6cbec54d3bc51fabfed4c51b494ef4c75583 /libopie
parent9a30159e1b0ac09b0be5918daae8c9530bf17d1d (diff)
downloadopie-96a9654c2fccce382a4a9ad5d2d0b991b4191468.zip
opie-96a9654c2fccce382a4a9ad5d2d0b991b4191468.tar.gz
opie-96a9654c2fccce382a4a9ad5d2d0b991b4191468.tar.bz2
fix for alarm volume handling on iPAQs
Diffstat (limited to 'libopie') (more/less context) (show whitespace changes)
-rw-r--r--libopie/odevice.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 9fd3ae2..c947630 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -592,12 +592,10 @@ void iPAQ::alarmSound ( )
592 volalarm = 100; 592 volalarm = 100;
593 volalarm |= ( volalarm << 8 ); 593 volalarm |= ( volalarm << 8 );
594 594
595 if (( volalarm & 0xff ) > ( vol & 0xff )) {
596 if ( ::ioctl ( fd, MIXER_WRITE( 0 ), &volalarm ) >= 0 ) 595 if ( ::ioctl ( fd, MIXER_WRITE( 0 ), &volalarm ) >= 0 )
597 vol_reset = true; 596 vol_reset = true;
598 } 597 }
599 } 598 }
600 }
601 599
602 snd. play ( ); 600 snd. play ( );
603 while ( !snd. isFinished ( )) 601 while ( !snd. isFinished ( ))