diff options
Diffstat (limited to 'sound/pci/emu10k1/voice.c')
-rw-r--r-- | sound/pci/emu10k1/voice.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sound/pci/emu10k1/voice.c b/sound/pci/emu10k1/voice.c index d251d3440eec..56ffb7dc3ee2 100644 --- a/sound/pci/emu10k1/voice.c +++ b/sound/pci/emu10k1/voice.c | |||
@@ -45,9 +45,10 @@ | |||
45 | * --rlrevell | 45 | * --rlrevell |
46 | */ | 46 | */ |
47 | 47 | ||
48 | static int voice_alloc(emu10k1_t *emu, emu10k1_voice_type_t type, int number, emu10k1_voice_t **rvoice) | 48 | static int voice_alloc(struct snd_emu10k1 *emu, int type, int number, |
49 | struct snd_emu10k1_voice **rvoice) | ||
49 | { | 50 | { |
50 | emu10k1_voice_t *voice; | 51 | struct snd_emu10k1_voice *voice; |
51 | int i, j, k, first_voice, last_voice, skip; | 52 | int i, j, k, first_voice, last_voice, skip; |
52 | 53 | ||
53 | *rvoice = NULL; | 54 | *rvoice = NULL; |
@@ -105,7 +106,8 @@ static int voice_alloc(emu10k1_t *emu, emu10k1_voice_type_t type, int number, em | |||
105 | return 0; | 106 | return 0; |
106 | } | 107 | } |
107 | 108 | ||
108 | int snd_emu10k1_voice_alloc(emu10k1_t *emu, emu10k1_voice_type_t type, int number, emu10k1_voice_t **rvoice) | 109 | int snd_emu10k1_voice_alloc(struct snd_emu10k1 *emu, int type, int number, |
110 | struct snd_emu10k1_voice **rvoice) | ||
109 | { | 111 | { |
110 | unsigned long flags; | 112 | unsigned long flags; |
111 | int result; | 113 | int result; |
@@ -123,7 +125,7 @@ int snd_emu10k1_voice_alloc(emu10k1_t *emu, emu10k1_voice_type_t type, int numbe | |||
123 | if (emu->get_synth_voice) { | 125 | if (emu->get_synth_voice) { |
124 | result = emu->get_synth_voice(emu); | 126 | result = emu->get_synth_voice(emu); |
125 | if (result >= 0) { | 127 | if (result >= 0) { |
126 | emu10k1_voice_t *pvoice = &emu->voices[result]; | 128 | struct snd_emu10k1_voice *pvoice = &emu->voices[result]; |
127 | pvoice->interrupt = NULL; | 129 | pvoice->interrupt = NULL; |
128 | pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; | 130 | pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; |
129 | pvoice->epcm = NULL; | 131 | pvoice->epcm = NULL; |
@@ -137,7 +139,8 @@ int snd_emu10k1_voice_alloc(emu10k1_t *emu, emu10k1_voice_type_t type, int numbe | |||
137 | return result; | 139 | return result; |
138 | } | 140 | } |
139 | 141 | ||
140 | int snd_emu10k1_voice_free(emu10k1_t *emu, emu10k1_voice_t *pvoice) | 142 | int snd_emu10k1_voice_free(struct snd_emu10k1 *emu, |
143 | struct snd_emu10k1_voice *pvoice) | ||
141 | { | 144 | { |
142 | unsigned long flags; | 145 | unsigned long flags; |
143 | 146 | ||