aboutsummaryrefslogtreecommitdiffstats
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:53 -0400
commit91715ed934fb645948ff17b6c20c6f7fd7688a70 (patch)
tree74a32f914cdcb8fae864ab1b6fd64bef9ddcffdb
parentc0d3fb39e9511c6fad17d059a3a50d1be33add24 (diff)
[ALSA] Clean up EXPORT_SYMBOL()s in snd-seq module
Move EXPORT_SYMBOL()s to places adjacent to functions/variables. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/core/seq/seq.c22
-rw-r--r--sound/core/seq/seq_clientmgr.c12
-rw-r--r--sound/core/seq/seq_lock.c2
-rw-r--r--sound/core/seq/seq_memory.c3
-rw-r--r--sound/core/seq/seq_ports.c3
5 files changed, 20 insertions, 22 deletions
diff --git a/sound/core/seq/seq.c b/sound/core/seq/seq.c
index 20f954bc7aa0..2f0d8773ac6b 100644
--- a/sound/core/seq/seq.c
+++ b/sound/core/seq/seq.c
@@ -129,25 +129,3 @@ static void __exit alsa_seq_exit(void)
129 129
130module_init(alsa_seq_init) 130module_init(alsa_seq_init)
131module_exit(alsa_seq_exit) 131module_exit(alsa_seq_exit)
132
133 /* seq_clientmgr.c */
134EXPORT_SYMBOL(snd_seq_create_kernel_client);
135EXPORT_SYMBOL(snd_seq_delete_kernel_client);
136EXPORT_SYMBOL(snd_seq_kernel_client_enqueue);
137EXPORT_SYMBOL(snd_seq_kernel_client_enqueue_blocking);
138EXPORT_SYMBOL(snd_seq_kernel_client_dispatch);
139EXPORT_SYMBOL(snd_seq_kernel_client_ctl);
140EXPORT_SYMBOL(snd_seq_kernel_client_write_poll);
141EXPORT_SYMBOL(snd_seq_set_queue_tempo);
142 /* seq_memory.c */
143EXPORT_SYMBOL(snd_seq_expand_var_event);
144EXPORT_SYMBOL(snd_seq_dump_var_event);
145 /* seq_ports.c */
146EXPORT_SYMBOL(snd_seq_event_port_attach);
147EXPORT_SYMBOL(snd_seq_event_port_detach);
148 /* seq_lock.c */
149#if defined(CONFIG_SMP) || defined(CONFIG_SND_DEBUG)
150/*EXPORT_SYMBOL(snd_seq_sleep_in_lock);*/
151/*EXPORT_SYMBOL(snd_seq_sleep_timeout_in_lock);*/
152EXPORT_SYMBOL(snd_use_lock_sync_helper);
153#endif
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c
index bb15d9ee8842..532a660df51d 100644
--- a/sound/core/seq/seq_clientmgr.c
+++ b/sound/core/seq/seq_clientmgr.c
@@ -1714,6 +1714,8 @@ int snd_seq_set_queue_tempo(int client, struct snd_seq_queue_tempo *tempo)
1714 return snd_seq_queue_timer_set_tempo(tempo->queue, client, tempo); 1714 return snd_seq_queue_timer_set_tempo(tempo->queue, client, tempo);
1715} 1715}
1716 1716
1717EXPORT_SYMBOL(snd_seq_set_queue_tempo);
1718
1717static int snd_seq_ioctl_set_queue_tempo(struct snd_seq_client *client, 1719static int snd_seq_ioctl_set_queue_tempo(struct snd_seq_client *client,
1718 void __user *arg) 1720 void __user *arg)
1719{ 1721{
@@ -2264,6 +2266,8 @@ int snd_seq_create_kernel_client(struct snd_card *card, int client_index,
2264 return client->number; 2266 return client->number;
2265} 2267}
2266 2268
2269EXPORT_SYMBOL(snd_seq_create_kernel_client);
2270
2267/* exported to kernel modules */ 2271/* exported to kernel modules */
2268int snd_seq_delete_kernel_client(int client) 2272int snd_seq_delete_kernel_client(int client)
2269{ 2273{
@@ -2280,6 +2284,7 @@ int snd_seq_delete_kernel_client(int client)
2280 return 0; 2284 return 0;
2281} 2285}
2282 2286
2287EXPORT_SYMBOL(snd_seq_delete_kernel_client);
2283 2288
2284/* skeleton to enqueue event, called from snd_seq_kernel_client_enqueue 2289/* skeleton to enqueue event, called from snd_seq_kernel_client_enqueue
2285 * and snd_seq_kernel_client_enqueue_blocking 2290 * and snd_seq_kernel_client_enqueue_blocking
@@ -2328,6 +2333,8 @@ int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event * ev,
2328 return kernel_client_enqueue(client, ev, NULL, 0, atomic, hop); 2333 return kernel_client_enqueue(client, ev, NULL, 0, atomic, hop);
2329} 2334}
2330 2335
2336EXPORT_SYMBOL(snd_seq_kernel_client_enqueue);
2337
2331/* 2338/*
2332 * exported, called by kernel clients to enqueue events (with blocking) 2339 * exported, called by kernel clients to enqueue events (with blocking)
2333 * 2340 *
@@ -2340,6 +2347,7 @@ int snd_seq_kernel_client_enqueue_blocking(int client, struct snd_seq_event * ev
2340 return kernel_client_enqueue(client, ev, file, 1, atomic, hop); 2347 return kernel_client_enqueue(client, ev, file, 1, atomic, hop);
2341} 2348}
2342 2349
2350EXPORT_SYMBOL(snd_seq_kernel_client_enqueue_blocking);
2343 2351
2344/* 2352/*
2345 * exported, called by kernel clients to dispatch events directly to other 2353 * exported, called by kernel clients to dispatch events directly to other
@@ -2376,6 +2384,7 @@ int snd_seq_kernel_client_dispatch(int client, struct snd_seq_event * ev,
2376 return result; 2384 return result;
2377} 2385}
2378 2386
2387EXPORT_SYMBOL(snd_seq_kernel_client_dispatch);
2379 2388
2380/* 2389/*
2381 * exported, called by kernel clients to perform same functions as with 2390 * exported, called by kernel clients to perform same functions as with
@@ -2396,6 +2405,7 @@ int snd_seq_kernel_client_ctl(int clientid, unsigned int cmd, void *arg)
2396 return result; 2405 return result;
2397} 2406}
2398 2407
2408EXPORT_SYMBOL(snd_seq_kernel_client_ctl);
2399 2409
2400/* exported (for OSS emulator) */ 2410/* exported (for OSS emulator) */
2401int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table *wait) 2411int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table *wait)
@@ -2413,6 +2423,8 @@ int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table
2413 return 0; 2423 return 0;
2414} 2424}
2415 2425
2426EXPORT_SYMBOL(snd_seq_kernel_client_write_poll);
2427
2416/*---------------------------------------------------------------------------*/ 2428/*---------------------------------------------------------------------------*/
2417 2429
2418#ifdef CONFIG_PROC_FS 2430#ifdef CONFIG_PROC_FS
diff --git a/sound/core/seq/seq_lock.c b/sound/core/seq/seq_lock.c
index a837a94b2d2a..1a34941d4217 100644
--- a/sound/core/seq/seq_lock.c
+++ b/sound/core/seq/seq_lock.c
@@ -44,4 +44,6 @@ void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line)
44 } 44 }
45} 45}
46 46
47EXPORT_SYMBOL(snd_use_lock_sync_helper);
48
47#endif 49#endif
diff --git a/sound/core/seq/seq_memory.c b/sound/core/seq/seq_memory.c
index 40b4f679c80e..4bffe509f719 100644
--- a/sound/core/seq/seq_memory.c
+++ b/sound/core/seq/seq_memory.c
@@ -118,6 +118,8 @@ int snd_seq_dump_var_event(const struct snd_seq_event *event,
118 return 0; 118 return 0;
119} 119}
120 120
121EXPORT_SYMBOL(snd_seq_dump_var_event);
122
121 123
122/* 124/*
123 * exported: 125 * exported:
@@ -167,6 +169,7 @@ int snd_seq_expand_var_event(const struct snd_seq_event *event, int count, char
167 return err < 0 ? err : newlen; 169 return err < 0 ? err : newlen;
168} 170}
169 171
172EXPORT_SYMBOL(snd_seq_expand_var_event);
170 173
171/* 174/*
172 * release this cell, free extended data if available 175 * release this cell, free extended data if available
diff --git a/sound/core/seq/seq_ports.c b/sound/core/seq/seq_ports.c
index 41e078c938cd..5f46ee9e2174 100644
--- a/sound/core/seq/seq_ports.c
+++ b/sound/core/seq/seq_ports.c
@@ -677,6 +677,7 @@ int snd_seq_event_port_attach(int client,
677 return ret; 677 return ret;
678} 678}
679 679
680EXPORT_SYMBOL(snd_seq_event_port_attach);
680 681
681/* 682/*
682 * Detach the driver from a port. 683 * Detach the driver from a port.
@@ -696,3 +697,5 @@ int snd_seq_event_port_detach(int client, int port)
696 697
697 return err; 698 return err;
698} 699}
700
701EXPORT_SYMBOL(snd_seq_event_port_detach);