aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/gus/gus_instr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/gus/gus_instr.c')
-rw-r--r--sound/isa/gus/gus_instr.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/sound/isa/gus/gus_instr.c b/sound/isa/gus/gus_instr.c
index 591a9a17feb5..d0c38e1856ef 100644
--- a/sound/isa/gus/gus_instr.c
+++ b/sound/isa/gus/gus_instr.c
@@ -28,11 +28,11 @@
28 * 28 *
29 */ 29 */
30 30
31int snd_gus_iwffff_put_sample(void *private_data, iwffff_wave_t *wave, 31int snd_gus_iwffff_put_sample(void *private_data, struct iwffff_wave *wave,
32 char __user *data, long len, int atomic) 32 char __user *data, long len, int atomic)
33{ 33{
34 snd_gus_card_t *gus = private_data; 34 struct snd_gus_card *gus = private_data;
35 snd_gf1_mem_block_t *block; 35 struct snd_gf1_mem_block *block;
36 int err; 36 int err;
37 37
38 if (wave->format & IWFFFF_WAVE_ROM) 38 if (wave->format & IWFFFF_WAVE_ROM)
@@ -58,19 +58,19 @@ int snd_gus_iwffff_put_sample(void *private_data, iwffff_wave_t *wave,
58 return 0; 58 return 0;
59} 59}
60 60
61int snd_gus_iwffff_get_sample(void *private_data, iwffff_wave_t *wave, 61int snd_gus_iwffff_get_sample(void *private_data, struct iwffff_wave *wave,
62 char __user *data, long len, int atomic) 62 char __user *data, long len, int atomic)
63{ 63{
64 snd_gus_card_t *gus = private_data; 64 struct snd_gus_card *gus = private_data;
65 65
66 return snd_gus_dram_read(gus, data, wave->address.memory, wave->size, 66 return snd_gus_dram_read(gus, data, wave->address.memory, wave->size,
67 wave->format & IWFFFF_WAVE_ROM ? 1 : 0); 67 wave->format & IWFFFF_WAVE_ROM ? 1 : 0);
68} 68}
69 69
70int snd_gus_iwffff_remove_sample(void *private_data, iwffff_wave_t *wave, 70int snd_gus_iwffff_remove_sample(void *private_data, struct iwffff_wave *wave,
71 int atomic) 71 int atomic)
72{ 72{
73 snd_gus_card_t *gus = private_data; 73 struct snd_gus_card *gus = private_data;
74 74
75 if (wave->format & IWFFFF_WAVE_ROM) 75 if (wave->format & IWFFFF_WAVE_ROM)
76 return 0; /* it's probably ok - verify the address? */ 76 return 0; /* it's probably ok - verify the address? */
@@ -81,11 +81,11 @@ int snd_gus_iwffff_remove_sample(void *private_data, iwffff_wave_t *wave,
81 * 81 *
82 */ 82 */
83 83
84int snd_gus_gf1_put_sample(void *private_data, gf1_wave_t *wave, 84int snd_gus_gf1_put_sample(void *private_data, struct gf1_wave *wave,
85 char __user *data, long len, int atomic) 85 char __user *data, long len, int atomic)
86{ 86{
87 snd_gus_card_t *gus = private_data; 87 struct snd_gus_card *gus = private_data;
88 snd_gf1_mem_block_t *block; 88 struct snd_gf1_mem_block *block;
89 int err; 89 int err;
90 90
91 if (wave->format & GF1_WAVE_STEREO) 91 if (wave->format & GF1_WAVE_STEREO)
@@ -109,18 +109,18 @@ int snd_gus_gf1_put_sample(void *private_data, gf1_wave_t *wave,
109 return 0; 109 return 0;
110} 110}
111 111
112int snd_gus_gf1_get_sample(void *private_data, gf1_wave_t *wave, 112int snd_gus_gf1_get_sample(void *private_data, struct gf1_wave *wave,
113 char __user *data, long len, int atomic) 113 char __user *data, long len, int atomic)
114{ 114{
115 snd_gus_card_t *gus = private_data; 115 struct snd_gus_card *gus = private_data;
116 116
117 return snd_gus_dram_read(gus, data, wave->address.memory, wave->size, 0); 117 return snd_gus_dram_read(gus, data, wave->address.memory, wave->size, 0);
118} 118}
119 119
120int snd_gus_gf1_remove_sample(void *private_data, gf1_wave_t *wave, 120int snd_gus_gf1_remove_sample(void *private_data, struct gf1_wave *wave,
121 int atomic) 121 int atomic)
122{ 122{
123 snd_gus_card_t *gus = private_data; 123 struct snd_gus_card *gus = private_data;
124 124
125 return snd_gf1_mem_free(&gus->gf1.mem_alloc, wave->address.memory); 125 return snd_gf1_mem_free(&gus->gf1.mem_alloc, wave->address.memory);
126} 126}
@@ -129,11 +129,11 @@ int snd_gus_gf1_remove_sample(void *private_data, gf1_wave_t *wave,
129 * 129 *
130 */ 130 */
131 131
132int snd_gus_simple_put_sample(void *private_data, simple_instrument_t *instr, 132int snd_gus_simple_put_sample(void *private_data, struct simple_instrument *instr,
133 char __user *data, long len, int atomic) 133 char __user *data, long len, int atomic)
134{ 134{
135 snd_gus_card_t *gus = private_data; 135 struct snd_gus_card *gus = private_data;
136 snd_gf1_mem_block_t *block; 136 struct snd_gf1_mem_block *block;
137 int err; 137 int err;
138 138
139 if (instr->format & SIMPLE_WAVE_STEREO) 139 if (instr->format & SIMPLE_WAVE_STEREO)
@@ -156,18 +156,18 @@ int snd_gus_simple_put_sample(void *private_data, simple_instrument_t *instr,
156 return 0; 156 return 0;
157} 157}
158 158
159int snd_gus_simple_get_sample(void *private_data, simple_instrument_t *instr, 159int snd_gus_simple_get_sample(void *private_data, struct simple_instrument *instr,
160 char __user *data, long len, int atomic) 160 char __user *data, long len, int atomic)
161{ 161{
162 snd_gus_card_t *gus = private_data; 162 struct snd_gus_card *gus = private_data;
163 163
164 return snd_gus_dram_read(gus, data, instr->address.memory, instr->size, 0); 164 return snd_gus_dram_read(gus, data, instr->address.memory, instr->size, 0);
165} 165}
166 166
167int snd_gus_simple_remove_sample(void *private_data, simple_instrument_t *instr, 167int snd_gus_simple_remove_sample(void *private_data, struct simple_instrument *instr,
168 int atomic) 168 int atomic)
169{ 169{
170 snd_gus_card_t *gus = private_data; 170 struct snd_gus_card *gus = private_data;
171 171
172 return snd_gf1_mem_free(&gus->gf1.mem_alloc, instr->address.memory); 172 return snd_gf1_mem_free(&gus->gf1.mem_alloc, instr->address.memory);
173} 173}