comparison src/audio/mint/SDL_mintaudio_dma8.h @ 961:185acc07127a

Date: Fri, 29 Oct 2004 11:47:09 +0200 From: Patrice Mandin Subject: Reworked audio drivers for Atari platform These are reworked audio drivers for the Atari platform. Previous drivers were missing some features: - Test external clock plugged to DSP port on Atari Falcon 030. - Ability to select internal or external clock. So now, I generate a list of frequencies available, with the master clock and predivisor to use. One big caveat to this: I do not have an external clock, so I hope it works.
author Patrice Mandin <patmandin@gmail.com>
date Fri, 29 Oct 2004 09:56:53 +0000
parents b8d311d90021
children d910939febfa
comparison
equal deleted inserted replaced
960:eec28a5278be 961:185acc07127a
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 22
23 /* 23 /*
24 DMA 8bits audio definitions 24 DMA 8bits and Falcon Codec audio definitions
25 25
26 Patrice Mandin 26 Patrice Mandin, Didier Méquignon
27 */ 27 */
28 28
29 #ifndef _SDL_mintaudio_dma8_h 29 #ifndef _SDL_mintaudio_dma8_h
30 #define _SDL_mintaudio_dma8_h 30 #define _SDL_mintaudio_dma8_h
31 31
55 unsigned char dummy9; 55 unsigned char dummy9;
56 unsigned char end_low; 56 unsigned char end_low;
57 57
58 unsigned char dummy10[12]; 58 unsigned char dummy10[12];
59 59
60 unsigned char track_select; /* CODEC only */ 60 unsigned char track_ctrl; /* CODEC only */
61 unsigned char mode; 61 unsigned char sound_ctrl;
62 unsigned short sound_data;
63 unsigned short sound_mask;
64
65 unsigned char dummy11[10];
66
67 unsigned short dev_ctrl;
68 unsigned short dest_ctrl;
69 unsigned short sync_div;
70 unsigned char track_rec;
71 unsigned char adderin_input;
72 unsigned char channel_input;
73 unsigned char channel_amplification;
74 unsigned char channel_reduction;
75
76 unsigned char dummy12[6];
77
78 unsigned char data_direction;
79 unsigned char dummy13;
80 unsigned char dev_data;
62 }; 81 };
63 #define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE)) 82 #define DMAAUDIO_IO ((*(volatile struct DMAAUDIO_IO_S *)DMAAUDIO_IO_BASE))
64 83
65 #endif /* _SDL_mintaudio_dma8_h */ 84 #endif /* _SDL_mintaudio_dma8_h */