Commit 98856392 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: timer: Follow standard EXPORT_SYMBOL() declarations

Just a tidy up to follow the standard EXPORT_SYMBOL*() declarations
in order to improve grep-ability.

- Move EXPORT_SYMBOL*() to the position right after its definition
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9c8ddd10
...@@ -319,6 +319,7 @@ int snd_timer_open(struct snd_timer_instance **ti, ...@@ -319,6 +319,7 @@ int snd_timer_open(struct snd_timer_instance **ti,
*ti = timeri; *ti = timeri;
return 0; return 0;
} }
EXPORT_SYMBOL(snd_timer_open);
/* /*
* close a timer instance * close a timer instance
...@@ -384,6 +385,7 @@ int snd_timer_close(struct snd_timer_instance *timeri) ...@@ -384,6 +385,7 @@ int snd_timer_close(struct snd_timer_instance *timeri)
mutex_unlock(&register_mutex); mutex_unlock(&register_mutex);
return 0; return 0;
} }
EXPORT_SYMBOL(snd_timer_close);
unsigned long snd_timer_resolution(struct snd_timer_instance *timeri) unsigned long snd_timer_resolution(struct snd_timer_instance *timeri)
{ {
...@@ -398,6 +400,7 @@ unsigned long snd_timer_resolution(struct snd_timer_instance *timeri) ...@@ -398,6 +400,7 @@ unsigned long snd_timer_resolution(struct snd_timer_instance *timeri)
} }
return 0; return 0;
} }
EXPORT_SYMBOL(snd_timer_resolution);
static void snd_timer_notify1(struct snd_timer_instance *ti, int event) static void snd_timer_notify1(struct snd_timer_instance *ti, int event)
{ {
...@@ -589,6 +592,7 @@ int snd_timer_start(struct snd_timer_instance *timeri, unsigned int ticks) ...@@ -589,6 +592,7 @@ int snd_timer_start(struct snd_timer_instance *timeri, unsigned int ticks)
else else
return snd_timer_start1(timeri, true, ticks); return snd_timer_start1(timeri, true, ticks);
} }
EXPORT_SYMBOL(snd_timer_start);
/* /*
* stop the timer instance. * stop the timer instance.
...@@ -602,6 +606,7 @@ int snd_timer_stop(struct snd_timer_instance *timeri) ...@@ -602,6 +606,7 @@ int snd_timer_stop(struct snd_timer_instance *timeri)
else else
return snd_timer_stop1(timeri, true); return snd_timer_stop1(timeri, true);
} }
EXPORT_SYMBOL(snd_timer_stop);
/* /*
* start again.. the tick is kept. * start again.. the tick is kept.
...@@ -617,6 +622,7 @@ int snd_timer_continue(struct snd_timer_instance *timeri) ...@@ -617,6 +622,7 @@ int snd_timer_continue(struct snd_timer_instance *timeri)
else else
return snd_timer_start1(timeri, false, 0); return snd_timer_start1(timeri, false, 0);
} }
EXPORT_SYMBOL(snd_timer_continue);
/* /*
* pause.. remember the ticks left * pause.. remember the ticks left
...@@ -628,6 +634,7 @@ int snd_timer_pause(struct snd_timer_instance * timeri) ...@@ -628,6 +634,7 @@ int snd_timer_pause(struct snd_timer_instance * timeri)
else else
return snd_timer_stop1(timeri, false); return snd_timer_stop1(timeri, false);
} }
EXPORT_SYMBOL(snd_timer_pause);
/* /*
* reschedule the timer * reschedule the timer
...@@ -809,6 +816,7 @@ void snd_timer_interrupt(struct snd_timer * timer, unsigned long ticks_left) ...@@ -809,6 +816,7 @@ void snd_timer_interrupt(struct snd_timer * timer, unsigned long ticks_left)
if (use_tasklet) if (use_tasklet)
tasklet_schedule(&timer->task_queue); tasklet_schedule(&timer->task_queue);
} }
EXPORT_SYMBOL(snd_timer_interrupt);
/* /*
...@@ -859,6 +867,7 @@ int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid, ...@@ -859,6 +867,7 @@ int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid,
*rtimer = timer; *rtimer = timer;
return 0; return 0;
} }
EXPORT_SYMBOL(snd_timer_new);
static int snd_timer_free(struct snd_timer *timer) static int snd_timer_free(struct snd_timer *timer)
{ {
...@@ -978,6 +987,7 @@ void snd_timer_notify(struct snd_timer *timer, int event, struct timespec *tstam ...@@ -978,6 +987,7 @@ void snd_timer_notify(struct snd_timer *timer, int event, struct timespec *tstam
} }
spin_unlock_irqrestore(&timer->lock, flags); spin_unlock_irqrestore(&timer->lock, flags);
} }
EXPORT_SYMBOL(snd_timer_notify);
/* /*
* exported functions for global timers * exported functions for global timers
...@@ -993,11 +1003,13 @@ int snd_timer_global_new(char *id, int device, struct snd_timer **rtimer) ...@@ -993,11 +1003,13 @@ int snd_timer_global_new(char *id, int device, struct snd_timer **rtimer)
tid.subdevice = 0; tid.subdevice = 0;
return snd_timer_new(NULL, id, &tid, rtimer); return snd_timer_new(NULL, id, &tid, rtimer);
} }
EXPORT_SYMBOL(snd_timer_global_new);
int snd_timer_global_free(struct snd_timer *timer) int snd_timer_global_free(struct snd_timer *timer)
{ {
return snd_timer_free(timer); return snd_timer_free(timer);
} }
EXPORT_SYMBOL(snd_timer_global_free);
int snd_timer_global_register(struct snd_timer *timer) int snd_timer_global_register(struct snd_timer *timer)
{ {
...@@ -1007,6 +1019,7 @@ int snd_timer_global_register(struct snd_timer *timer) ...@@ -1007,6 +1019,7 @@ int snd_timer_global_register(struct snd_timer *timer)
dev.device_data = timer; dev.device_data = timer;
return snd_timer_dev_register(&dev); return snd_timer_dev_register(&dev);
} }
EXPORT_SYMBOL(snd_timer_global_register);
/* /*
* System timer * System timer
...@@ -2113,17 +2126,3 @@ static void __exit alsa_timer_exit(void) ...@@ -2113,17 +2126,3 @@ static void __exit alsa_timer_exit(void)
module_init(alsa_timer_init) module_init(alsa_timer_init)
module_exit(alsa_timer_exit) module_exit(alsa_timer_exit)
EXPORT_SYMBOL(snd_timer_open);
EXPORT_SYMBOL(snd_timer_close);
EXPORT_SYMBOL(snd_timer_resolution);
EXPORT_SYMBOL(snd_timer_start);
EXPORT_SYMBOL(snd_timer_stop);
EXPORT_SYMBOL(snd_timer_continue);
EXPORT_SYMBOL(snd_timer_pause);
EXPORT_SYMBOL(snd_timer_new);
EXPORT_SYMBOL(snd_timer_notify);
EXPORT_SYMBOL(snd_timer_global_new);
EXPORT_SYMBOL(snd_timer_global_free);
EXPORT_SYMBOL(snd_timer_global_register);
EXPORT_SYMBOL(snd_timer_interrupt);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment