aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers/opl4/opl4_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 08:13:47 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:18:06 -0500
commita42dd420bea7a5cd130162183d95f640c299a337 (patch)
treeb9c8a88c957b973faf3e5a4faf027a39a0d8343f /sound/drivers/opl4/opl4_local.h
parent5b1646a8eceff0a4ff06f309abb6e7f43f99a498 (diff)
[ALSA] Remove xxx_t typedefs: OPL4
Modules: OPL4 Remove xxx_t typedefs from the OPL4 driver Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/opl4/opl4_local.h')
-rw-r--r--sound/drivers/opl4/opl4_local.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/sound/drivers/opl4/opl4_local.h b/sound/drivers/opl4/opl4_local.h
index c455680843f6..7e088a4a2f4c 100644
--- a/sound/drivers/opl4/opl4_local.h
+++ b/sound/drivers/opl4/opl4_local.h
@@ -131,7 +131,7 @@
131#define SNDRV_SEQ_DEV_ID_OPL4 "opl4-synth" 131#define SNDRV_SEQ_DEV_ID_OPL4 "opl4-synth"
132 132
133 133
134typedef struct opl4_sound { 134struct opl4_sound {
135 u16 tone; 135 u16 tone;
136 s16 pitch_offset; 136 s16 pitch_offset;
137 u8 key_scaling; 137 u8 key_scaling;
@@ -144,42 +144,42 @@ typedef struct opl4_sound {
144 u8 reg_level_decay2; 144 u8 reg_level_decay2;
145 u8 reg_release_correction; 145 u8 reg_release_correction;
146 u8 reg_tremolo; 146 u8 reg_tremolo;
147} opl4_sound_t; 147};
148 148
149typedef struct opl4_region { 149struct opl4_region {
150 u8 key_min, key_max; 150 u8 key_min, key_max;
151 opl4_sound_t sound; 151 struct opl4_sound sound;
152} opl4_region_t; 152};
153 153
154typedef struct opl4_region_ptr { 154struct opl4_region_ptr {
155 int count; 155 int count;
156 const opl4_region_t *regions; 156 const struct opl4_region *regions;
157} opl4_region_ptr_t; 157};
158 158
159typedef struct opl4_voice { 159struct opl4_voice {
160 struct list_head list; 160 struct list_head list;
161 int number; 161 int number;
162 snd_midi_channel_t *chan; 162 struct snd_midi_channel *chan;
163 int note; 163 int note;
164 int velocity; 164 int velocity;
165 const opl4_sound_t *sound; 165 const struct opl4_sound *sound;
166 u8 level_direct; 166 u8 level_direct;
167 u8 reg_f_number; 167 u8 reg_f_number;
168 u8 reg_misc; 168 u8 reg_misc;
169 u8 reg_lfo_vibrato; 169 u8 reg_lfo_vibrato;
170} opl4_voice_t; 170};
171 171
172struct opl4 { 172struct snd_opl4 {
173 unsigned long fm_port; 173 unsigned long fm_port;
174 unsigned long pcm_port; 174 unsigned long pcm_port;
175 struct resource *res_fm_port; 175 struct resource *res_fm_port;
176 struct resource *res_pcm_port; 176 struct resource *res_pcm_port;
177 unsigned short hardware; 177 unsigned short hardware;
178 spinlock_t reg_lock; 178 spinlock_t reg_lock;
179 snd_card_t *card; 179 struct snd_card *card;
180 180
181#ifdef CONFIG_PROC_FS 181#ifdef CONFIG_PROC_FS
182 snd_info_entry_t *proc_entry; 182 struct snd_info_entry *proc_entry;
183 int memory_access; 183 int memory_access;
184#endif 184#endif
185 struct semaphore access_mutex; 185 struct semaphore access_mutex;
@@ -189,44 +189,44 @@ struct opl4 {
189 189
190 int seq_dev_num; 190 int seq_dev_num;
191 int seq_client; 191 int seq_client;
192 snd_seq_device_t *seq_dev; 192 struct snd_seq_device *seq_dev;
193 193
194 snd_midi_channel_set_t *chset; 194 struct snd_midi_channel_set *chset;
195 opl4_voice_t voices[OPL4_MAX_VOICES]; 195 struct opl4_voice voices[OPL4_MAX_VOICES];
196 struct list_head off_voices; 196 struct list_head off_voices;
197 struct list_head on_voices; 197 struct list_head on_voices;
198#endif 198#endif
199}; 199};
200 200
201/* opl4_lib.c */ 201/* opl4_lib.c */
202void snd_opl4_write(opl4_t *opl4, u8 reg, u8 value); 202void snd_opl4_write(struct snd_opl4 *opl4, u8 reg, u8 value);
203u8 snd_opl4_read(opl4_t *opl4, u8 reg); 203u8 snd_opl4_read(struct snd_opl4 *opl4, u8 reg);
204void snd_opl4_read_memory(opl4_t *opl4, char *buf, int offset, int size); 204void snd_opl4_read_memory(struct snd_opl4 *opl4, char *buf, int offset, int size);
205void snd_opl4_write_memory(opl4_t *opl4, const char *buf, int offset, int size); 205void snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, int size);
206 206
207/* opl4_mixer.c */ 207/* opl4_mixer.c */
208int snd_opl4_create_mixer(opl4_t *opl4); 208int snd_opl4_create_mixer(struct snd_opl4 *opl4);
209 209
210#ifdef CONFIG_PROC_FS 210#ifdef CONFIG_PROC_FS
211/* opl4_proc.c */ 211/* opl4_proc.c */
212int snd_opl4_create_proc(opl4_t *opl4); 212int snd_opl4_create_proc(struct snd_opl4 *opl4);
213void snd_opl4_free_proc(opl4_t *opl4); 213void snd_opl4_free_proc(struct snd_opl4 *opl4);
214#endif 214#endif
215 215
216/* opl4_seq.c */ 216/* opl4_seq.c */
217extern int volume_boost; 217extern int volume_boost;
218 218
219/* opl4_synth.c */ 219/* opl4_synth.c */
220void snd_opl4_synth_reset(opl4_t *opl4); 220void snd_opl4_synth_reset(struct snd_opl4 *opl4);
221void snd_opl4_synth_shutdown(opl4_t *opl4); 221void snd_opl4_synth_shutdown(struct snd_opl4 *opl4);
222void snd_opl4_note_on(void *p, int note, int vel, snd_midi_channel_t *chan); 222void snd_opl4_note_on(void *p, int note, int vel, struct snd_midi_channel *chan);
223void snd_opl4_note_off(void *p, int note, int vel, snd_midi_channel_t *chan); 223void snd_opl4_note_off(void *p, int note, int vel, struct snd_midi_channel *chan);
224void snd_opl4_terminate_note(void *p, int note, snd_midi_channel_t *chan); 224void snd_opl4_terminate_note(void *p, int note, struct snd_midi_channel *chan);
225void snd_opl4_control(void *p, int type, snd_midi_channel_t *chan); 225void snd_opl4_control(void *p, int type, struct snd_midi_channel *chan);
226void snd_opl4_sysex(void *p, unsigned char *buf, int len, int parsed, snd_midi_channel_set_t *chset); 226void snd_opl4_sysex(void *p, unsigned char *buf, int len, int parsed, struct snd_midi_channel_set *chset);
227 227
228/* yrw801.c */ 228/* yrw801.c */
229int snd_yrw801_detect(opl4_t *opl4); 229int snd_yrw801_detect(struct snd_opl4 *opl4);
230extern const opl4_region_ptr_t snd_yrw801_regions[]; 230extern const struct opl4_region_ptr snd_yrw801_regions[];
231 231
232#endif /* __OPL4_LOCAL_H */ 232#endif /* __OPL4_LOCAL_H */