diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-04-28 09:13:39 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-06-22 15:32:58 -0400 |
commit | 2dd31deeeb238a4f40c9fc9e219dc210fcbf8765 (patch) | |
tree | 19156b05b4e8a6624a1d9a87cc2236db435b90b4 /sound | |
parent | 4181e5fe4b27b0a049402a359a4a5d8b80308528 (diff) |
[ALSA] emu10k1 - Move EXPORT_SYMBOL() to adjacent to each function
Move EXPORT_SYMBOL() to adjacent to each exported function/variable.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/emu10k1/emu10k1_main.c | 13 | ||||
-rw-r--r-- | sound/pci/emu10k1/io.c | 4 | ||||
-rw-r--r-- | sound/pci/emu10k1/memory.c | 8 | ||||
-rw-r--r-- | sound/pci/emu10k1/voice.c | 4 |
4 files changed, 16 insertions, 13 deletions
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c index e71485c23cc7..42a358f989c3 100644 --- a/sound/pci/emu10k1/emu10k1_main.c +++ b/sound/pci/emu10k1/emu10k1_main.c | |||
@@ -1459,16 +1459,3 @@ void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu) | |||
1459 | } | 1459 | } |
1460 | } | 1460 | } |
1461 | #endif | 1461 | #endif |
1462 | |||
1463 | /* memory.c */ | ||
1464 | EXPORT_SYMBOL(snd_emu10k1_synth_alloc); | ||
1465 | EXPORT_SYMBOL(snd_emu10k1_synth_free); | ||
1466 | EXPORT_SYMBOL(snd_emu10k1_synth_bzero); | ||
1467 | EXPORT_SYMBOL(snd_emu10k1_synth_copy_from_user); | ||
1468 | EXPORT_SYMBOL(snd_emu10k1_memblk_map); | ||
1469 | /* voice.c */ | ||
1470 | EXPORT_SYMBOL(snd_emu10k1_voice_alloc); | ||
1471 | EXPORT_SYMBOL(snd_emu10k1_voice_free); | ||
1472 | /* io.c */ | ||
1473 | EXPORT_SYMBOL(snd_emu10k1_ptr_read); | ||
1474 | EXPORT_SYMBOL(snd_emu10k1_ptr_write); | ||
diff --git a/sound/pci/emu10k1/io.c b/sound/pci/emu10k1/io.c index ef5304df8c11..029e7856c43b 100644 --- a/sound/pci/emu10k1/io.c +++ b/sound/pci/emu10k1/io.c | |||
@@ -62,6 +62,8 @@ unsigned int snd_emu10k1_ptr_read(struct snd_emu10k1 * emu, unsigned int reg, un | |||
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
65 | EXPORT_SYMBOL(snd_emu10k1_ptr_read); | ||
66 | |||
65 | void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned int data) | 67 | void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned int chn, unsigned int data) |
66 | { | 68 | { |
67 | unsigned int regptr; | 69 | unsigned int regptr; |
@@ -92,6 +94,8 @@ void snd_emu10k1_ptr_write(struct snd_emu10k1 *emu, unsigned int reg, unsigned i | |||
92 | } | 94 | } |
93 | } | 95 | } |
94 | 96 | ||
97 | EXPORT_SYMBOL(snd_emu10k1_ptr_write); | ||
98 | |||
95 | unsigned int snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu, | 99 | unsigned int snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu, |
96 | unsigned int reg, | 100 | unsigned int reg, |
97 | unsigned int chn) | 101 | unsigned int chn) |
diff --git a/sound/pci/emu10k1/memory.c b/sound/pci/emu10k1/memory.c index e7ec98649f04..4fcaefe5a3c5 100644 --- a/sound/pci/emu10k1/memory.c +++ b/sound/pci/emu10k1/memory.c | |||
@@ -287,6 +287,8 @@ int snd_emu10k1_memblk_map(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *b | |||
287 | return err; | 287 | return err; |
288 | } | 288 | } |
289 | 289 | ||
290 | EXPORT_SYMBOL(snd_emu10k1_memblk_map); | ||
291 | |||
290 | /* | 292 | /* |
291 | * page allocation for DMA | 293 | * page allocation for DMA |
292 | */ | 294 | */ |
@@ -387,6 +389,7 @@ snd_emu10k1_synth_alloc(struct snd_emu10k1 *hw, unsigned int size) | |||
387 | return (struct snd_util_memblk *)blk; | 389 | return (struct snd_util_memblk *)blk; |
388 | } | 390 | } |
389 | 391 | ||
392 | EXPORT_SYMBOL(snd_emu10k1_synth_alloc); | ||
390 | 393 | ||
391 | /* | 394 | /* |
392 | * free a synth sample area | 395 | * free a synth sample area |
@@ -409,6 +412,7 @@ snd_emu10k1_synth_free(struct snd_emu10k1 *emu, struct snd_util_memblk *memblk) | |||
409 | return 0; | 412 | return 0; |
410 | } | 413 | } |
411 | 414 | ||
415 | EXPORT_SYMBOL(snd_emu10k1_synth_free); | ||
412 | 416 | ||
413 | /* check new allocation range */ | 417 | /* check new allocation range */ |
414 | static void get_single_page_range(struct snd_util_memhdr *hdr, | 418 | static void get_single_page_range(struct snd_util_memhdr *hdr, |
@@ -540,6 +544,8 @@ int snd_emu10k1_synth_bzero(struct snd_emu10k1 *emu, struct snd_util_memblk *blk | |||
540 | return 0; | 544 | return 0; |
541 | } | 545 | } |
542 | 546 | ||
547 | EXPORT_SYMBOL(snd_emu10k1_synth_bzero); | ||
548 | |||
543 | /* | 549 | /* |
544 | * copy_from_user(blk + offset, data, size) | 550 | * copy_from_user(blk + offset, data, size) |
545 | */ | 551 | */ |
@@ -568,3 +574,5 @@ int snd_emu10k1_synth_copy_from_user(struct snd_emu10k1 *emu, struct snd_util_me | |||
568 | } while (offset < end_offset); | 574 | } while (offset < end_offset); |
569 | return 0; | 575 | return 0; |
570 | } | 576 | } |
577 | |||
578 | EXPORT_SYMBOL(snd_emu10k1_synth_copy_from_user); | ||
diff --git a/sound/pci/emu10k1/voice.c b/sound/pci/emu10k1/voice.c index 56ffb7dc3ee2..94eca82dd4fc 100644 --- a/sound/pci/emu10k1/voice.c +++ b/sound/pci/emu10k1/voice.c | |||
@@ -139,6 +139,8 @@ int snd_emu10k1_voice_alloc(struct snd_emu10k1 *emu, int type, int number, | |||
139 | return result; | 139 | return result; |
140 | } | 140 | } |
141 | 141 | ||
142 | EXPORT_SYMBOL(snd_emu10k1_voice_alloc); | ||
143 | |||
142 | int snd_emu10k1_voice_free(struct snd_emu10k1 *emu, | 144 | int snd_emu10k1_voice_free(struct snd_emu10k1 *emu, |
143 | struct snd_emu10k1_voice *pvoice) | 145 | struct snd_emu10k1_voice *pvoice) |
144 | { | 146 | { |
@@ -153,3 +155,5 @@ int snd_emu10k1_voice_free(struct snd_emu10k1 *emu, | |||
153 | spin_unlock_irqrestore(&emu->voice_lock, flags); | 155 | spin_unlock_irqrestore(&emu->voice_lock, flags); |
154 | return 0; | 156 | return 0; |
155 | } | 157 | } |
158 | |||
159 | EXPORT_SYMBOL(snd_emu10k1_voice_free); | ||