[openfirmware] [commit] r3532 - cpu/arm/olpc

repository service svn at openfirmware.info
Mon Feb 4 08:47:39 CET 2013


Author: quozl
Date: Mon Feb  4 08:47:38 2013
New Revision: 3532
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3532

Log:
OLPC ARM - sound, avoid some possible races with the buffer refill alarm handler.

Modified:
   cpu/arm/olpc/sound.fth

Modified: cpu/arm/olpc/sound.fth
==============================================================================
--- cpu/arm/olpc/sound.fth	Wed Jan 30 09:28:52 2013	(r3531)
+++ cpu/arm/olpc/sound.fth	Mon Feb  4 08:47:38 2013	(r3532)
@@ -442,8 +442,8 @@
 ;
 : uninstall-playback-alarm   ( -- )
    alarmed?  if
-      ['] playback-alarm d#  0 alarm
       false to alarmed?
+      ['] playback-alarm d#  0 alarm
    then
 ;
 
@@ -498,8 +498,8 @@
    out-len  if  copy-out  then  \ Prefill the second buffer
    start-out-ring
    master-tx
-   install-playback-alarm
    true to playing?
+   install-playback-alarm
 ;
 
 : audio-out  ( adr len -- actual )  tuck start-audio-out  ;



More information about the openfirmware mailing list