forked from Minki/linux
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: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
9c8ddd105e
commit
988563929d
@ -319,6 +319,7 @@ int snd_timer_open(struct snd_timer_instance **ti,
|
||||
*ti = timeri;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_open);
|
||||
|
||||
/*
|
||||
* close a timer instance
|
||||
@ -384,6 +385,7 @@ int snd_timer_close(struct snd_timer_instance *timeri)
|
||||
mutex_unlock(®ister_mutex);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_close);
|
||||
|
||||
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;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_resolution);
|
||||
|
||||
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)
|
||||
else
|
||||
return snd_timer_start1(timeri, true, ticks);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_start);
|
||||
|
||||
/*
|
||||
* stop the timer instance.
|
||||
@ -602,6 +606,7 @@ int snd_timer_stop(struct snd_timer_instance *timeri)
|
||||
else
|
||||
return snd_timer_stop1(timeri, true);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_stop);
|
||||
|
||||
/*
|
||||
* start again.. the tick is kept.
|
||||
@ -617,6 +622,7 @@ int snd_timer_continue(struct snd_timer_instance *timeri)
|
||||
else
|
||||
return snd_timer_start1(timeri, false, 0);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_continue);
|
||||
|
||||
/*
|
||||
* pause.. remember the ticks left
|
||||
@ -628,6 +634,7 @@ int snd_timer_pause(struct snd_timer_instance * timeri)
|
||||
else
|
||||
return snd_timer_stop1(timeri, false);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_pause);
|
||||
|
||||
/*
|
||||
* reschedule the timer
|
||||
@ -809,6 +816,7 @@ void snd_timer_interrupt(struct snd_timer * timer, unsigned long ticks_left)
|
||||
if (use_tasklet)
|
||||
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,
|
||||
*rtimer = timer;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_new);
|
||||
|
||||
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
|
||||
}
|
||||
spin_unlock_irqrestore(&timer->lock, flags);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_notify);
|
||||
|
||||
/*
|
||||
* exported functions for global timers
|
||||
@ -993,11 +1003,13 @@ int snd_timer_global_new(char *id, int device, struct snd_timer **rtimer)
|
||||
tid.subdevice = 0;
|
||||
return snd_timer_new(NULL, id, &tid, rtimer);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_global_new);
|
||||
|
||||
int snd_timer_global_free(struct snd_timer *timer)
|
||||
{
|
||||
return snd_timer_free(timer);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_global_free);
|
||||
|
||||
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;
|
||||
return snd_timer_dev_register(&dev);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_timer_global_register);
|
||||
|
||||
/*
|
||||
* System timer
|
||||
@ -2113,17 +2126,3 @@ static void __exit alsa_timer_exit(void)
|
||||
|
||||
module_init(alsa_timer_init)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user