aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/gus/gus_simple.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 08:36:44 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:18:27 -0500
commit5e2da20648e39a0e3cb33861499b686a6fe38112 (patch)
treee5f3117e2f44b262f9b6d45cfbd9e17a0ea913bd /sound/isa/gus/gus_simple.c
parent029d64b0cfa30abc10f722e2f67d282abe09c9da (diff)
[ALSA] Remove xxx_t typedefs: ISA GUS
Remove xxx_t typedefs from the ISA GUS drivers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/gus/gus_simple.c')
-rw-r--r--sound/isa/gus/gus_simple.c86
1 files changed, 43 insertions, 43 deletions
diff --git a/sound/isa/gus/gus_simple.c b/sound/isa/gus/gus_simple.c
index dfed85b58b3a..dcad6ed0198c 100644
--- a/sound/isa/gus/gus_simple.c
+++ b/sound/isa/gus/gus_simple.c
@@ -29,19 +29,19 @@
29 * 29 *
30 */ 30 */
31 31
32static void interrupt_wave(snd_gus_card_t *gus, snd_gus_voice_t *voice); 32static void interrupt_wave(struct snd_gus_card *gus, struct snd_gus_voice *voice);
33static void interrupt_volume(snd_gus_card_t *gus, snd_gus_voice_t *voice); 33static void interrupt_volume(struct snd_gus_card *gus, struct snd_gus_voice *voice);
34static void interrupt_effect(snd_gus_card_t *gus, snd_gus_voice_t *voice); 34static void interrupt_effect(struct snd_gus_card *gus, struct snd_gus_voice *voice);
35 35
36static void sample_start(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_position_t position); 36static void sample_start(struct snd_gus_card *gus, struct snd_gus_voice *voice, snd_seq_position_t position);
37static void sample_stop(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_stop_mode_t mode); 37static void sample_stop(struct snd_gus_card *gus, struct snd_gus_voice *voice, int mode);
38static void sample_freq(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_frequency_t freq); 38static void sample_freq(struct snd_gus_card *gus, struct snd_gus_voice *voice, snd_seq_frequency_t freq);
39static void sample_volume(snd_gus_card_t *card, snd_gus_voice_t *voice, snd_seq_ev_volume_t *volume); 39static void sample_volume(struct snd_gus_card *card, struct snd_gus_voice *voice, struct snd_seq_ev_volume *volume);
40static void sample_loop(snd_gus_card_t *card, snd_gus_voice_t *voice, snd_seq_ev_loop_t *loop); 40static void sample_loop(struct snd_gus_card *card, struct snd_gus_voice *voice, struct snd_seq_ev_loop *loop);
41static void sample_pos(snd_gus_card_t *card, snd_gus_voice_t *voice, snd_seq_position_t position); 41static void sample_pos(struct snd_gus_card *card, struct snd_gus_voice *voice, snd_seq_position_t position);
42static void sample_private1(snd_gus_card_t *card, snd_gus_voice_t *voice, unsigned char *data); 42static void sample_private1(struct snd_gus_card *card, struct snd_gus_voice *voice, unsigned char *data);
43 43
44static snd_gus_sample_ops_t sample_ops = { 44static struct snd_gus_sample_ops sample_ops = {
45 sample_start, 45 sample_start,
46 sample_stop, 46 sample_stop,
47 sample_freq, 47 sample_freq,
@@ -53,13 +53,13 @@ static snd_gus_sample_ops_t sample_ops = {
53 53
54#if 0 54#if 0
55 55
56static void note_stop(snd_gus_card_t *gus, snd_gus_voice_t *voice, int wait); 56static void note_stop(struct snd_gus_card *gus, struct snd_gus_voice *voice, int wait);
57static void note_wait(snd_gus_card_t *gus, snd_gus_voice_t *voice); 57static void note_wait(struct snd_gus_card *gus, struct snd_gus_voice *voice);
58static void note_off(snd_gus_card_t *gus, snd_gus_voice_t *voice); 58static void note_off(struct snd_gus_card *gus, struct snd_gus_voice *voice);
59static void note_volume(snd_gus_card_t *card, snd_gus_voice_t *voice); 59static void note_volume(struct snd_gus_card *card, struct snd_gus_voice *voice);
60static void note_pitchbend(snd_gus_card_t *card, snd_gus_voice_t *voice); 60static void note_pitchbend(struct snd_gus_card *card, struct snd_gus_voice *voice);
61static void note_vibrato(snd_gus_card_t *card, snd_gus_voice_t *voice); 61static void note_vibrato(struct snd_gus_card *card, struct snd_gus_voice *voice);
62static void note_tremolo(snd_gus_card_t *card, snd_gus_voice_t *voice); 62static void note_tremolo(struct snd_gus_card *card, struct snd_gus_voice *voice);
63 63
64static struct snd_gus_note_handlers note_commands = { 64static struct snd_gus_note_handlers note_commands = {
65 note_stop, 65 note_stop,
@@ -71,7 +71,7 @@ static struct snd_gus_note_handlers note_commands = {
71 note_tremolo 71 note_tremolo
72}; 72};
73 73
74static void chn_trigger_down(snd_gus_card_t *card, ultra_channel_t *channel, ultra_instrument_t *instrument, unsigned char note, unsigned char velocity, unsigned char priority ); 74static void chn_trigger_down(struct snd_gus_card *card, ultra_channel_t *channel, ultra_instrument_t *instrument, unsigned char note, unsigned char velocity, unsigned char priority );
75static void chn_trigger_up( ultra_card_t *card, ultra_note_t *note ); 75static void chn_trigger_up( ultra_card_t *card, ultra_note_t *note );
76static void chn_control( ultra_card_t *card, ultra_channel_t *channel, unsigned short p1, unsigned short p2 ); 76static void chn_control( ultra_card_t *card, ultra_channel_t *channel, unsigned short p1, unsigned short p2 );
77 77
@@ -83,14 +83,14 @@ static struct ULTRA_STRU_INSTRUMENT_CHANNEL_COMMANDS channel_commands = {
83 83
84#endif 84#endif
85 85
86static void do_volume_envelope(snd_gus_card_t *card, snd_gus_voice_t *voice); 86static void do_volume_envelope(struct snd_gus_card *card, struct snd_gus_voice *voice);
87static void do_pan_envelope(snd_gus_card_t *card, snd_gus_voice_t *voice); 87static void do_pan_envelope(struct snd_gus_card *card, struct snd_gus_voice *voice);
88 88
89/* 89/*
90 * 90 *
91 */ 91 */
92 92
93static void interrupt_wave(snd_gus_card_t *gus, snd_gus_voice_t *voice) 93static void interrupt_wave(struct snd_gus_card *gus, struct snd_gus_voice *voice)
94{ 94{
95 spin_lock(&gus->event_lock); 95 spin_lock(&gus->event_lock);
96 snd_gf1_stop_voice(gus, voice->number); 96 snd_gf1_stop_voice(gus, voice->number);
@@ -102,7 +102,7 @@ static void interrupt_wave(snd_gus_card_t *gus, snd_gus_voice_t *voice)
102 spin_unlock(&gus->event_lock); 102 spin_unlock(&gus->event_lock);
103} 103}
104 104
105static void interrupt_volume(snd_gus_card_t *gus, snd_gus_voice_t *voice) 105static void interrupt_volume(struct snd_gus_card *gus, struct snd_gus_voice *voice)
106{ 106{
107 spin_lock(&gus->event_lock); 107 spin_lock(&gus->event_lock);
108 if (voice->flags & SNDRV_GF1_VFLG_RUNNING) 108 if (voice->flags & SNDRV_GF1_VFLG_RUNNING)
@@ -112,7 +112,7 @@ static void interrupt_volume(snd_gus_card_t *gus, snd_gus_voice_t *voice)
112 spin_unlock(&gus->event_lock); 112 spin_unlock(&gus->event_lock);
113} 113}
114 114
115static void interrupt_effect(snd_gus_card_t *gus, snd_gus_voice_t *voice) 115static void interrupt_effect(struct snd_gus_card *gus, struct snd_gus_voice *voice)
116{ 116{
117 spin_lock(&gus->event_lock); 117 spin_lock(&gus->event_lock);
118 if ((voice->flags & (SNDRV_GF1_VFLG_RUNNING|SNDRV_GF1_VFLG_EFFECT_TIMER1)) == 118 if ((voice->flags & (SNDRV_GF1_VFLG_RUNNING|SNDRV_GF1_VFLG_EFFECT_TIMER1)) ==
@@ -125,7 +125,7 @@ static void interrupt_effect(snd_gus_card_t *gus, snd_gus_voice_t *voice)
125 * 125 *
126 */ 126 */
127 127
128static void do_volume_envelope(snd_gus_card_t *gus, snd_gus_voice_t *voice) 128static void do_volume_envelope(struct snd_gus_card *gus, struct snd_gus_voice *voice)
129{ 129{
130 unsigned short next, rate, old_volume; 130 unsigned short next, rate, old_volume;
131 int program_next_ramp; 131 int program_next_ramp;
@@ -229,7 +229,7 @@ static void do_volume_envelope(snd_gus_card_t *gus, snd_gus_voice_t *voice)
229 } 229 }
230} 230}
231 231
232static void do_pan_envelope(snd_gus_card_t *gus, snd_gus_voice_t *voice) 232static void do_pan_envelope(struct snd_gus_card *gus, struct snd_gus_voice *voice)
233{ 233{
234 unsigned long flags; 234 unsigned long flags;
235 unsigned char old_pan; 235 unsigned char old_pan;
@@ -276,7 +276,7 @@ static void do_pan_envelope(snd_gus_card_t *gus, snd_gus_voice_t *voice)
276#endif 276#endif
277} 277}
278 278
279static void set_enhanced_pan(snd_gus_card_t *gus, snd_gus_voice_t *voice, unsigned short pan) 279static void set_enhanced_pan(struct snd_gus_card *gus, struct snd_gus_voice *voice, unsigned short pan)
280{ 280{
281 unsigned long flags; 281 unsigned long flags;
282 unsigned short vlo, vro; 282 unsigned short vlo, vro;
@@ -307,13 +307,13 @@ static void set_enhanced_pan(snd_gus_card_t *gus, snd_gus_voice_t *voice, unsign
307 * 307 *
308 */ 308 */
309 309
310static void sample_start(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_position_t position) 310static void sample_start(struct snd_gus_card *gus, struct snd_gus_voice *voice, snd_seq_position_t position)
311{ 311{
312 unsigned long flags; 312 unsigned long flags;
313 unsigned int begin, addr, addr_end, addr_start; 313 unsigned int begin, addr, addr_end, addr_start;
314 int w_16; 314 int w_16;
315 simple_instrument_t *simple; 315 struct simple_instrument *simple;
316 snd_seq_kinstr_t *instr; 316 struct snd_seq_kinstr *instr;
317 317
318 instr = snd_seq_instr_find(gus->gf1.ilist, &voice->instr, 0, 1); 318 instr = snd_seq_instr_find(gus->gf1.ilist, &voice->instr, 0, 1);
319 if (instr == NULL) 319 if (instr == NULL)
@@ -397,7 +397,7 @@ static void sample_start(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_po
397 snd_seq_instr_free_use(gus->gf1.ilist, instr); 397 snd_seq_instr_free_use(gus->gf1.ilist, instr);
398} 398}
399 399
400static void sample_stop(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_stop_mode_t mode) 400static void sample_stop(struct snd_gus_card *gus, struct snd_gus_voice *voice, int mode)
401{ 401{
402 unsigned char control; 402 unsigned char control;
403 unsigned long flags; 403 unsigned long flags;
@@ -433,7 +433,7 @@ static void sample_stop(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_sto
433 } 433 }
434} 434}
435 435
436static void sample_freq(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_frequency_t freq) 436static void sample_freq(struct snd_gus_card *gus, struct snd_gus_voice *voice, snd_seq_frequency_t freq)
437{ 437{
438 unsigned long flags; 438 unsigned long flags;
439 439
@@ -444,7 +444,7 @@ static void sample_freq(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_fre
444 spin_unlock_irqrestore(&gus->reg_lock, flags); 444 spin_unlock_irqrestore(&gus->reg_lock, flags);
445} 445}
446 446
447static void sample_volume(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_ev_volume_t *volume) 447static void sample_volume(struct snd_gus_card *gus, struct snd_gus_voice *voice, struct snd_seq_ev_volume *volume)
448{ 448{
449 if (volume->volume >= 0) { 449 if (volume->volume >= 0) {
450 volume->volume &= 0x3fff; 450 volume->volume &= 0x3fff;
@@ -471,13 +471,13 @@ static void sample_volume(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_e
471 } 471 }
472} 472}
473 473
474static void sample_loop(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_ev_loop_t *loop) 474static void sample_loop(struct snd_gus_card *gus, struct snd_gus_voice *voice, struct snd_seq_ev_loop *loop)
475{ 475{
476 unsigned long flags; 476 unsigned long flags;
477 int w_16 = voice->control & 0x04; 477 int w_16 = voice->control & 0x04;
478 unsigned int begin, addr_start, addr_end; 478 unsigned int begin, addr_start, addr_end;
479 simple_instrument_t *simple; 479 struct simple_instrument *simple;
480 snd_seq_kinstr_t *instr; 480 struct snd_seq_kinstr *instr;
481 481
482#if 0 482#if 0
483 printk("voice_loop: start = 0x%x, end = 0x%x\n", loop->start, loop->end); 483 printk("voice_loop: start = 0x%x, end = 0x%x\n", loop->start, loop->end);
@@ -500,13 +500,13 @@ static void sample_loop(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_ev_
500 snd_seq_instr_free_use(gus->gf1.ilist, instr); 500 snd_seq_instr_free_use(gus->gf1.ilist, instr);
501} 501}
502 502
503static void sample_pos(snd_gus_card_t *gus, snd_gus_voice_t *voice, snd_seq_position_t position) 503static void sample_pos(struct snd_gus_card *gus, struct snd_gus_voice *voice, snd_seq_position_t position)
504{ 504{
505 unsigned long flags; 505 unsigned long flags;
506 int w_16 = voice->control & 0x04; 506 int w_16 = voice->control & 0x04;
507 unsigned int begin, addr; 507 unsigned int begin, addr;
508 simple_instrument_t *simple; 508 struct simple_instrument *simple;
509 snd_seq_kinstr_t *instr; 509 struct snd_seq_kinstr *instr;
510 510
511#if 0 511#if 0
512 printk("voice_loop: start = 0x%x, end = 0x%x\n", loop->start, loop->end); 512 printk("voice_loop: start = 0x%x, end = 0x%x\n", loop->start, loop->end);
@@ -537,7 +537,7 @@ static unsigned char get_effects_mask( ultra_card_t *card, int value )
537 537
538#endif 538#endif
539 539
540static void sample_private1(snd_gus_card_t *card, snd_gus_voice_t *voice, unsigned char *data) 540static void sample_private1(struct snd_gus_card *card, struct snd_gus_voice *voice, unsigned char *data)
541{ 541{
542#if 0 542#if 0
543 unsigned long flags; 543 unsigned long flags;
@@ -624,7 +624,7 @@ static void chn_control( ultra_card_t *card, ultra_channel_t *channel, unsigned
624 624
625#endif 625#endif
626 626
627void snd_gf1_simple_init(snd_gus_voice_t *voice) 627void snd_gf1_simple_init(struct snd_gus_voice *voice)
628{ 628{
629 voice->handler_wave = interrupt_wave; 629 voice->handler_wave = interrupt_wave;
630 voice->handler_volume = interrupt_volume; 630 voice->handler_volume = interrupt_volume;