Commit 94e33418 authored by Patrice Mandin's avatar Patrice Mandin

Set MFP interrupt at end of frame

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401099
parent ab3f2307
...@@ -100,19 +100,13 @@ static int Audio_Available(void) ...@@ -100,19 +100,13 @@ static int Audio_Available(void)
} }
/* Check if we have 8 bits audio */ /* Check if we have 8 bits audio */
/*
if ((cookie_snd & SND_8BIT)==0) { if ((cookie_snd & SND_8BIT)==0) {
DEBUG_PRINT((DEBUG_NAME "no 8 bits sound\n")); DEBUG_PRINT((DEBUG_NAME "no 8 bits sound\n"));
return(0); return(0);
} }
*/
if ((cookie_mch>>16)>MCH_F30) {
DEBUG_PRINT((DEBUG_NAME "unknown 8 bits audio chip\n"));
return 0;
}
/* Check if audio is lockable */ /* Check if audio is lockable */
if ((cookie_mch>>16) == MCH_F30) { if (cookie_snd & SND_16BIT) {
if (Locksnd()!=1) { if (Locksnd()!=1) {
DEBUG_PRINT((DEBUG_NAME "audio locked by other application\n")); DEBUG_PRINT((DEBUG_NAME "audio locked by other application\n"));
return(0); return(0);
...@@ -247,6 +241,7 @@ static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec) ...@@ -247,6 +241,7 @@ static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec)
masterprediv=MASTERPREDIV_TT; masterprediv=MASTERPREDIV_TT;
break; break;
case MCH_F30: case MCH_F30:
case MCH_ARANYM:
masterclock=MASTERCLOCK_FALCON1; masterclock=MASTERCLOCK_FALCON1;
masterprediv=MASTERPREDIV_FALCON; masterprediv=MASTERPREDIV_FALCON;
sfreq=1; sfreq=1;
...@@ -318,6 +313,12 @@ static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec) ...@@ -318,6 +313,12 @@ static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_Dma8Interrupt); Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_Dma8Interrupt);
Jenabint(MFP_DMASOUND); Jenabint(MFP_DMASOUND);
if (cookie_snd & SND_16BIT) {
if (Setinterrupt(SI_TIMERA, SI_PLAY)<0) {
DEBUG_PRINT((DEBUG_NAME "Setinterrupt() failed\n"));
}
}
/* Go */ /* Go */
DMAAUDIO_IO.control = 3; /* playback + repeat */ DMAAUDIO_IO.control = 3; /* playback + repeat */
......
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