Skip to content

Commit

Permalink
Date: Fri, 12 Jul 2002 11:25:32 GMT+1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
slouken committed Jul 29, 2002
1 parent e96845c commit 9370aa3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -548,7 +548,7 @@ CheckX11()
AC_PATH_X
AC_PATH_XTRA
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
CFLAGS="$CFLAGS -DNO_SHARED_MEMORY"
fi
Expand Down
20 changes: 12 additions & 8 deletions src/audio/mint/SDL_mintaudiointerrupt.S
Expand Up @@ -30,14 +30,17 @@
.text
_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 */
tstw _SDL_MintAudio_mutex
bnes intdma_end
notw _SDL_MintAudio_mutex

/* Reenable interrupts */
movew #0x2300,sr

/* Swap buffers */
moveml d0-d1/a0-a1,sp@-

Expand Down Expand Up @@ -76,22 +79,24 @@ intdma_buffer0:

clrw _SDL_MintAudio_mutex
intdma_end:
bclr #5,0xfffffa0f:w
rte

/*--- Xbios interrupt vector ---*/

.text
_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 */
tstw _SDL_MintAudio_mutex
bnes intxbios_end
notw _SDL_MintAudio_mutex

/* Reenable interrupts */
movew #0x2300,sr

/* Swap buffers */
moveml d0-d2/a0-a2,sp@-

Expand Down Expand Up @@ -123,7 +128,6 @@ intxbios_buffer0:

clrw _SDL_MintAudio_mutex
intxbios_end:
bclr #5,0xfffffa0f:w
rte

/*--- GSXB interrupt vector ---*/
Expand Down

0 comments on commit 9370aa3

Please sign in to comment.