aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/init.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-04-28 09:13:39 -0400
committerJaroslav Kysela <perex@suse.cz>2006-06-22 15:32:52 -0400
commitc0d3fb39e9511c6fad17d059a3a50d1be33add24 (patch)
treeaa4c22034dcd035d919002f1c146153fe828e3a6 /sound/core/init.c
parent9bb22e215c28204faee73dd7ac0ad98c075d6f7b (diff)
[ALSA] Clean up EXPORT_SYMBOL()s in snd module
Move EXPORT_SYMBOL()s to places adjacent to functions/variables. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/init.c')
-rw-r--r--sound/core/init.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sound/core/init.c b/sound/core/init.c
index 39ed2e5bb0a..b145d17ba3b 100644
--- a/sound/core/init.c
+++ b/sound/core/init.c
@@ -40,10 +40,13 @@ struct snd_shutdown_f_ops {
40 40
41unsigned int snd_cards_lock = 0; /* locked for registering/using */ 41unsigned int snd_cards_lock = 0; /* locked for registering/using */
42struct snd_card *snd_cards[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = NULL}; 42struct snd_card *snd_cards[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = NULL};
43EXPORT_SYMBOL(snd_cards);
44
43DEFINE_RWLOCK(snd_card_rwlock); 45DEFINE_RWLOCK(snd_card_rwlock);
44 46
45#if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) 47#if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE)
46int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag); 48int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag);
49EXPORT_SYMBOL(snd_mixer_oss_notify_callback);
47#endif 50#endif
48 51
49#ifdef CONFIG_PROC_FS 52#ifdef CONFIG_PROC_FS
@@ -169,6 +172,8 @@ struct snd_card *snd_card_new(int idx, const char *xid,
169 return NULL; 172 return NULL;
170} 173}
171 174
175EXPORT_SYMBOL(snd_card_new);
176
172static loff_t snd_disconnect_llseek(struct file *file, loff_t offset, int orig) 177static loff_t snd_disconnect_llseek(struct file *file, loff_t offset, int orig)
173{ 178{
174 return -ENODEV; 179 return -ENODEV;
@@ -298,6 +303,8 @@ int snd_card_disconnect(struct snd_card *card)
298 return 0; 303 return 0;
299} 304}
300 305
306EXPORT_SYMBOL(snd_card_disconnect);
307
301/** 308/**
302 * snd_card_free - frees given soundcard structure 309 * snd_card_free - frees given soundcard structure
303 * @card: soundcard structure 310 * @card: soundcard structure
@@ -360,6 +367,8 @@ int snd_card_free(struct snd_card *card)
360 return 0; 367 return 0;
361} 368}
362 369
370EXPORT_SYMBOL(snd_card_free);
371
363static void snd_card_free_thread(void * __card) 372static void snd_card_free_thread(void * __card)
364{ 373{
365 struct snd_card *card = __card; 374 struct snd_card *card = __card;
@@ -405,6 +414,8 @@ int snd_card_free_in_thread(struct snd_card *card)
405 return -EFAULT; 414 return -EFAULT;
406} 415}
407 416
417EXPORT_SYMBOL(snd_card_free_in_thread);
418
408static void choose_default_id(struct snd_card *card) 419static void choose_default_id(struct snd_card *card)
409{ 420{
410 int i, len, idx_flag = 0, loops = SNDRV_CARDS; 421 int i, len, idx_flag = 0, loops = SNDRV_CARDS;
@@ -505,6 +516,8 @@ int snd_card_register(struct snd_card *card)
505 return 0; 516 return 0;
506} 517}
507 518
519EXPORT_SYMBOL(snd_card_register);
520
508#ifdef CONFIG_PROC_FS 521#ifdef CONFIG_PROC_FS
509static struct snd_info_entry *snd_card_info_entry = NULL; 522static struct snd_info_entry *snd_card_info_entry = NULL;
510 523
@@ -644,6 +657,8 @@ int snd_component_add(struct snd_card *card, const char *component)
644 return 0; 657 return 0;
645} 658}
646 659
660EXPORT_SYMBOL(snd_component_add);
661
647/** 662/**
648 * snd_card_file_add - add the file to the file list of the card 663 * snd_card_file_add - add the file to the file list of the card
649 * @card: soundcard structure 664 * @card: soundcard structure
@@ -676,6 +691,8 @@ int snd_card_file_add(struct snd_card *card, struct file *file)
676 return 0; 691 return 0;
677} 692}
678 693
694EXPORT_SYMBOL(snd_card_file_add);
695
679/** 696/**
680 * snd_card_file_remove - remove the file from the file list 697 * snd_card_file_remove - remove the file from the file list
681 * @card: soundcard structure 698 * @card: soundcard structure
@@ -717,6 +734,8 @@ int snd_card_file_remove(struct snd_card *card, struct file *file)
717 return 0; 734 return 0;
718} 735}
719 736
737EXPORT_SYMBOL(snd_card_file_remove);
738
720#ifdef CONFIG_PM 739#ifdef CONFIG_PM
721/** 740/**
722 * snd_power_wait - wait until the power-state is changed. 741 * snd_power_wait - wait until the power-state is changed.
@@ -753,4 +772,5 @@ int snd_power_wait(struct snd_card *card, unsigned int power_state)
753 return result; 772 return result;
754} 773}
755 774
775EXPORT_SYMBOL(snd_power_wait);
756#endif /* CONFIG_PM */ 776#endif /* CONFIG_PM */