Skip to content

Commit

Permalink
[ALSA] emux - Move EXPORT_SYMBOL() to adjacent to each function
Browse files Browse the repository at this point in the history
Move EXPORT_SYMBOL() to adjacent to each exported function/variable.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai authored and Jaroslav Kysela committed Jun 22, 2006
1 parent cbef55f commit 95ff175
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
12 changes: 2 additions & 10 deletions sound/synth/emux/emux.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int snd_emux_new(struct snd_emux **remu)
return 0;
}

EXPORT_SYMBOL(snd_emux_new);

/*
*/
Expand Down Expand Up @@ -136,6 +137,7 @@ int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, ch
return 0;
}

EXPORT_SYMBOL(snd_emux_register);

/*
*/
Expand Down Expand Up @@ -171,18 +173,8 @@ int snd_emux_free(struct snd_emux *emu)
return 0;
}


EXPORT_SYMBOL(snd_emux_new);
EXPORT_SYMBOL(snd_emux_register);
EXPORT_SYMBOL(snd_emux_free);

EXPORT_SYMBOL(snd_emux_terminate_all);
EXPORT_SYMBOL(snd_emux_lock_voice);
EXPORT_SYMBOL(snd_emux_unlock_voice);

/* soundfont.c */
EXPORT_SYMBOL(snd_sf_linear_to_log);


/*
* INIT part
Expand Down
5 changes: 5 additions & 0 deletions sound/synth/emux/emux_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ snd_emux_terminate_all(struct snd_emux *emu)
spin_unlock_irqrestore(&emu->voice_lock, flags);
}

EXPORT_SYMBOL(snd_emux_terminate_all);

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

EXPORT_SYMBOL(snd_emux_lock_voice);

/*
*/
void snd_emux_unlock_voice(struct snd_emux *emu, int voice)
Expand All @@ -965,3 +968,5 @@ void snd_emux_unlock_voice(struct snd_emux *emu, int voice)
voice, emu->voices[voice].state);
spin_unlock_irqrestore(&emu->voice_lock, flags);
}

EXPORT_SYMBOL(snd_emux_unlock_voice);
4 changes: 3 additions & 1 deletion sound/synth/emux/soundfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,9 @@ snd_sf_linear_to_log(unsigned int amount, int offset, int ratio)
return v;
}

EXPORT_SYMBOL(snd_sf_linear_to_log);


#define OFFSET_MSEC 653117 /* base = 1000 */
#define OFFSET_ABSCENT 851781 /* base = 8176 */
#define OFFSET_SAMPLERATE 1011119 /* base = 44100 */
Expand Down Expand Up @@ -1485,4 +1488,3 @@ snd_soundfont_remove_unlocked(struct snd_sf_list *sflist)
unlock_preset(sflist);
return 0;
}

0 comments on commit 95ff175

Please sign in to comment.