Skip to content

Commit 95ff175

Browse files
tiwaiJaroslav Kysela
authored andcommitted
[ALSA] emux - Move EXPORT_SYMBOL() to adjacent to each function
Move EXPORT_SYMBOL() to adjacent to each exported function/variable. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent cbef55f commit 95ff175

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

‎sound/synth/emux/emux.c‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ int snd_emux_new(struct snd_emux **remu)
6363
return 0;
6464
}
6565

66+
EXPORT_SYMBOL(snd_emux_new);
6667

6768
/*
6869
*/
@@ -136,6 +137,7 @@ int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, ch
136137
return 0;
137138
}
138139

140+
EXPORT_SYMBOL(snd_emux_register);
139141

140142
/*
141143
*/
@@ -171,18 +173,8 @@ int snd_emux_free(struct snd_emux *emu)
171173
return 0;
172174
}
173175

174-
175-
EXPORT_SYMBOL(snd_emux_new);
176-
EXPORT_SYMBOL(snd_emux_register);
177176
EXPORT_SYMBOL(snd_emux_free);
178177

179-
EXPORT_SYMBOL(snd_emux_terminate_all);
180-
EXPORT_SYMBOL(snd_emux_lock_voice);
181-
EXPORT_SYMBOL(snd_emux_unlock_voice);
182-
183-
/* soundfont.c */
184-
EXPORT_SYMBOL(snd_sf_linear_to_log);
185-
186178

187179
/*
188180
* INIT part

‎sound/synth/emux/emux_synth.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ snd_emux_terminate_all(struct snd_emux *emu)
434434
spin_unlock_irqrestore(&emu->voice_lock, flags);
435435
}
436436

437+
EXPORT_SYMBOL(snd_emux_terminate_all);
437438

438439
/*
439440
* Terminate all voices associated with the given port
@@ -951,6 +952,8 @@ void snd_emux_lock_voice(struct snd_emux *emu, int voice)
951952
spin_unlock_irqrestore(&emu->voice_lock, flags);
952953
}
953954

955+
EXPORT_SYMBOL(snd_emux_lock_voice);
956+
954957
/*
955958
*/
956959
void snd_emux_unlock_voice(struct snd_emux *emu, int voice)
@@ -965,3 +968,5 @@ void snd_emux_unlock_voice(struct snd_emux *emu, int voice)
965968
voice, emu->voices[voice].state);
966969
spin_unlock_irqrestore(&emu->voice_lock, flags);
967970
}
971+
972+
EXPORT_SYMBOL(snd_emux_unlock_voice);

‎sound/synth/emux/soundfont.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,9 @@ snd_sf_linear_to_log(unsigned int amount, int offset, int ratio)
810810
return v;
811811
}
812812

813+
EXPORT_SYMBOL(snd_sf_linear_to_log);
814+
815+
813816
#define OFFSET_MSEC 653117 /* base = 1000 */
814817
#define OFFSET_ABSCENT 851781 /* base = 8176 */
815818
#define OFFSET_SAMPLERATE 1011119 /* base = 44100 */
@@ -1485,4 +1488,3 @@ snd_soundfont_remove_unlocked(struct snd_sf_list *sflist)
14851488
unlock_preset(sflist);
14861489
return 0;
14871490
}
1488-

0 commit comments

Comments
 (0)