[ALSA] sound/core/: possible cleanups

PCM Midlevel,ALSA Core,Timer Midlevel,ALSA sequencer,Virtual Midi
This patch contains the following possible cleanups:
- make needlessly global code static
- #if 0 the following unused global functions
- remove the following unneeded EXPORT_SYMBOL's

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Adrian Bunk
2005-05-18 18:02:04 +02:00
committed by Jaroslav Kysela
parent 5218064c88
commit 123992f728
15 changed files with 42 additions and 66 deletions

View File

@@ -845,7 +845,7 @@ int snd_timer_dev_register(snd_device_t *dev)
return 0;
}
int snd_timer_unregister(snd_timer_t *timer)
static int snd_timer_unregister(snd_timer_t *timer)
{
struct list_head *p, *n;
snd_timer_instance_t *ti;
@@ -946,11 +946,6 @@ struct snd_timer_system_private {
unsigned long correction;
};
unsigned int snd_timer_system_resolution(void)
{
return 1000000000L / HZ;
}
static void snd_timer_s_function(unsigned long data)
{
snd_timer_t *timer = (snd_timer_t *)data;
@@ -1938,4 +1933,3 @@ EXPORT_SYMBOL(snd_timer_global_free);
EXPORT_SYMBOL(snd_timer_global_register);
EXPORT_SYMBOL(snd_timer_global_unregister);
EXPORT_SYMBOL(snd_timer_interrupt);
EXPORT_SYMBOL(snd_timer_system_resolution);