[openfirmware] [commit] r2541 - cpu/x86

repository service svn at openfirmware.info
Wed Sep 28 03:00:13 CEST 2011


Author: wmb
Date: Wed Sep 28 03:00:13 2011
New Revision: 2541
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2541

Log:
WAV playing - defer freeing the WAV DMA buffer to prevent spurious sounds caused by later actions overwriting the buffer.

Modified:
   cpu/x86/adpcm.fth

Modified: cpu/x86/adpcm.fth
==============================================================================
--- cpu/x86/adpcm.fth	Wed Sep 28 02:57:26 2011	(r2540)
+++ cpu/x86/adpcm.fth	Wed Sep 28 03:00:13 2011	(r2541)
@@ -392,8 +392,9 @@
       h# 11  of  play-ima-adpcm   endof
       ( default )  ." Cannot play .wav format type: " dup .wav-cc true swap cr
    endcase
-   \ audio-ih close-dev
-   free-wav
+
+   \ We can't do this here because we may overlap the playing with other startup steps
+   \ audio-ih close-dev  free-wav
 ;
 
 : ($play-wav)  ( file-str -- )



More information about the openfirmware mailing list