Commit 3c98f857 authored by Sam Lantinga's avatar Sam Lantinga

Date: Fri, 12 Jul 2002 11:25:32 GMT+1

From: Patrice Mandin <pmandin@caramail.com>
Subject: [SDL][PATCH] Audio for Atari, and XFree86 compilation

I corrected a little bug in the Atari audio driver in SDL.
I also added the patch for xfree86 detection in configure.in

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40429
parent 7a17d3a0
...@@ -548,7 +548,7 @@ CheckX11() ...@@ -548,7 +548,7 @@ CheckX11()
AC_PATH_X AC_PATH_X
AC_PATH_XTRA AC_PATH_XTRA
if test x$have_x = xyes; then if test x$have_x = xyes; then
CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_X11 -I\$(top_srcdir)/include -I\$(top_srcdir)/src/video" CFLAGS="$CFLAGS $X_CFLAGS -DENABLE_X11 -I$srcdir/include -I$srcdir/src/video"
if test x$ac_cv_func_shmat != xyes; then if test x$ac_cv_func_shmat != xyes; then
CFLAGS="$CFLAGS -DNO_SHARED_MEMORY" CFLAGS="$CFLAGS -DNO_SHARED_MEMORY"
fi fi
......
...@@ -30,14 +30,17 @@ ...@@ -30,14 +30,17 @@
.text .text
_SDL_MintAudio_IntDma: _SDL_MintAudio_IntDma:
/* Reenable interrupts, so other interrupts can work */
movew #0x2300,sr
/* Clear service bit, so other MFP interrupts can work */
bclr #5,0xfffffa0f:w
/* Check if we are not already running */ /* Check if we are not already running */
tstw _SDL_MintAudio_mutex tstw _SDL_MintAudio_mutex
bnes intdma_end bnes intdma_end
notw _SDL_MintAudio_mutex notw _SDL_MintAudio_mutex
/* Reenable interrupts */
movew #0x2300,sr
/* Swap buffers */ /* Swap buffers */
moveml d0-d1/a0-a1,sp@- moveml d0-d1/a0-a1,sp@-
...@@ -76,7 +79,6 @@ intdma_buffer0: ...@@ -76,7 +79,6 @@ intdma_buffer0:
clrw _SDL_MintAudio_mutex clrw _SDL_MintAudio_mutex
intdma_end: intdma_end:
bclr #5,0xfffffa0f:w
rte rte
/*--- Xbios interrupt vector ---*/ /*--- Xbios interrupt vector ---*/
...@@ -84,14 +86,17 @@ intdma_end: ...@@ -84,14 +86,17 @@ intdma_end:
.text .text
_SDL_MintAudio_IntXbios: _SDL_MintAudio_IntXbios:
/* Reenable interrupts, so other interrupts can work */
movew #0x2300,sr
/* Clear service bit, so other MFP interrupts can work */
bclr #5,0xfffffa0f:w
/* Check if we are not already running */ /* Check if we are not already running */
tstw _SDL_MintAudio_mutex tstw _SDL_MintAudio_mutex
bnes intxbios_end bnes intxbios_end
notw _SDL_MintAudio_mutex notw _SDL_MintAudio_mutex
/* Reenable interrupts */
movew #0x2300,sr
/* Swap buffers */ /* Swap buffers */
moveml d0-d2/a0-a2,sp@- moveml d0-d2/a0-a2,sp@-
...@@ -123,7 +128,6 @@ intxbios_buffer0: ...@@ -123,7 +128,6 @@ intxbios_buffer0:
clrw _SDL_MintAudio_mutex clrw _SDL_MintAudio_mutex
intxbios_end: intxbios_end:
bclr #5,0xfffffa0f:w
rte rte
/*--- GSXB interrupt vector ---*/ /*--- GSXB interrupt vector ---*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment