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:54 -0400 |
commit | 7b09679c431ba91551a90203f7e7dadbb4c26d1b (patch) | |
tree | 9e919199a28caeb8d40ca63384c06917457ea8b0 /sound/pci | |
parent | 91715ed934fb645948ff17b6c20c6f7fd7688a70 (diff) |
[ALSA] ac97 - 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/pci')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 40 | ||||
-rw-r--r-- | sound/pci/ac97/ac97_pcm.c | 10 |
2 files changed, 28 insertions, 22 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index 6c1937ff0d50..72e33b9532f0 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c | |||
@@ -253,6 +253,8 @@ void snd_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short va | |||
253 | ac97->bus->ops->write(ac97, reg, value); | 253 | ac97->bus->ops->write(ac97, reg, value); |
254 | } | 254 | } |
255 | 255 | ||
256 | EXPORT_SYMBOL(snd_ac97_write); | ||
257 | |||
256 | /** | 258 | /** |
257 | * snd_ac97_read - read a value from the given register | 259 | * snd_ac97_read - read a value from the given register |
258 | * | 260 | * |
@@ -281,6 +283,8 @@ static inline unsigned short snd_ac97_read_cache(struct snd_ac97 *ac97, unsigned | |||
281 | return ac97->regs[reg]; | 283 | return ac97->regs[reg]; |
282 | } | 284 | } |
283 | 285 | ||
286 | EXPORT_SYMBOL(snd_ac97_read); | ||
287 | |||
284 | /** | 288 | /** |
285 | * snd_ac97_write_cache - write a value on the given register and update the cache | 289 | * snd_ac97_write_cache - write a value on the given register and update the cache |
286 | * @ac97: the ac97 instance | 290 | * @ac97: the ac97 instance |
@@ -302,6 +306,8 @@ void snd_ac97_write_cache(struct snd_ac97 *ac97, unsigned short reg, unsigned sh | |||
302 | mutex_unlock(&ac97->reg_mutex); | 306 | mutex_unlock(&ac97->reg_mutex); |
303 | } | 307 | } |
304 | 308 | ||
309 | EXPORT_SYMBOL(snd_ac97_write_cache); | ||
310 | |||
305 | /** | 311 | /** |
306 | * snd_ac97_update - update the value on the given register | 312 | * snd_ac97_update - update the value on the given register |
307 | * @ac97: the ac97 instance | 313 | * @ac97: the ac97 instance |
@@ -331,6 +337,8 @@ int snd_ac97_update(struct snd_ac97 *ac97, unsigned short reg, unsigned short va | |||
331 | return change; | 337 | return change; |
332 | } | 338 | } |
333 | 339 | ||
340 | EXPORT_SYMBOL(snd_ac97_update); | ||
341 | |||
334 | /** | 342 | /** |
335 | * snd_ac97_update_bits - update the bits on the given register | 343 | * snd_ac97_update_bits - update the bits on the given register |
336 | * @ac97: the ac97 instance | 344 | * @ac97: the ac97 instance |
@@ -356,6 +364,8 @@ int snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned sho | |||
356 | return change; | 364 | return change; |
357 | } | 365 | } |
358 | 366 | ||
367 | EXPORT_SYMBOL(snd_ac97_update_bits); | ||
368 | |||
359 | /* no lock version - see snd_ac97_updat_bits() */ | 369 | /* no lock version - see snd_ac97_updat_bits() */ |
360 | int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg, | 370 | int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg, |
361 | unsigned short mask, unsigned short value) | 371 | unsigned short mask, unsigned short value) |
@@ -1682,6 +1692,7 @@ const char *snd_ac97_get_short_name(struct snd_ac97 *ac97) | |||
1682 | return "unknown codec"; | 1692 | return "unknown codec"; |
1683 | } | 1693 | } |
1684 | 1694 | ||
1695 | EXPORT_SYMBOL(snd_ac97_get_short_name); | ||
1685 | 1696 | ||
1686 | /* wait for a while until registers are accessible after RESET | 1697 | /* wait for a while until registers are accessible after RESET |
1687 | * return 0 if ok, negative not ready | 1698 | * return 0 if ok, negative not ready |
@@ -1774,6 +1785,8 @@ int snd_ac97_bus(struct snd_card *card, int num, struct snd_ac97_bus_ops *ops, | |||
1774 | return 0; | 1785 | return 0; |
1775 | } | 1786 | } |
1776 | 1787 | ||
1788 | EXPORT_SYMBOL(snd_ac97_bus); | ||
1789 | |||
1777 | /* stop no dev release warning */ | 1790 | /* stop no dev release warning */ |
1778 | static void ac97_device_release(struct device * dev) | 1791 | static void ac97_device_release(struct device * dev) |
1779 | { | 1792 | { |
@@ -2117,6 +2130,7 @@ int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, | |||
2117 | return 0; | 2130 | return 0; |
2118 | } | 2131 | } |
2119 | 2132 | ||
2133 | EXPORT_SYMBOL(snd_ac97_mixer); | ||
2120 | 2134 | ||
2121 | /* | 2135 | /* |
2122 | * Power down the chip. | 2136 | * Power down the chip. |
@@ -2166,6 +2180,8 @@ void snd_ac97_suspend(struct snd_ac97 *ac97) | |||
2166 | snd_ac97_powerdown(ac97); | 2180 | snd_ac97_powerdown(ac97); |
2167 | } | 2181 | } |
2168 | 2182 | ||
2183 | EXPORT_SYMBOL(snd_ac97_suspend); | ||
2184 | |||
2169 | /* | 2185 | /* |
2170 | * restore ac97 status | 2186 | * restore ac97 status |
2171 | */ | 2187 | */ |
@@ -2267,6 +2283,8 @@ __reset_ready: | |||
2267 | snd_ac97_restore_iec958(ac97); | 2283 | snd_ac97_restore_iec958(ac97); |
2268 | } | 2284 | } |
2269 | } | 2285 | } |
2286 | |||
2287 | EXPORT_SYMBOL(snd_ac97_resume); | ||
2270 | #endif | 2288 | #endif |
2271 | 2289 | ||
2272 | 2290 | ||
@@ -2590,29 +2608,7 @@ int snd_ac97_tune_hardware(struct snd_ac97 *ac97, struct ac97_quirk *quirk, cons | |||
2590 | return 0; | 2608 | return 0; |
2591 | } | 2609 | } |
2592 | 2610 | ||
2593 | |||
2594 | /* | ||
2595 | * Exported symbols | ||
2596 | */ | ||
2597 | |||
2598 | EXPORT_SYMBOL(snd_ac97_write); | ||
2599 | EXPORT_SYMBOL(snd_ac97_read); | ||
2600 | EXPORT_SYMBOL(snd_ac97_write_cache); | ||
2601 | EXPORT_SYMBOL(snd_ac97_update); | ||
2602 | EXPORT_SYMBOL(snd_ac97_update_bits); | ||
2603 | EXPORT_SYMBOL(snd_ac97_get_short_name); | ||
2604 | EXPORT_SYMBOL(snd_ac97_bus); | ||
2605 | EXPORT_SYMBOL(snd_ac97_mixer); | ||
2606 | EXPORT_SYMBOL(snd_ac97_pcm_assign); | ||
2607 | EXPORT_SYMBOL(snd_ac97_pcm_open); | ||
2608 | EXPORT_SYMBOL(snd_ac97_pcm_close); | ||
2609 | EXPORT_SYMBOL(snd_ac97_pcm_double_rate_rules); | ||
2610 | EXPORT_SYMBOL(snd_ac97_tune_hardware); | 2611 | EXPORT_SYMBOL(snd_ac97_tune_hardware); |
2611 | EXPORT_SYMBOL(snd_ac97_set_rate); | ||
2612 | #ifdef CONFIG_PM | ||
2613 | EXPORT_SYMBOL(snd_ac97_resume); | ||
2614 | EXPORT_SYMBOL(snd_ac97_suspend); | ||
2615 | #endif | ||
2616 | 2612 | ||
2617 | /* | 2613 | /* |
2618 | * INIT part | 2614 | * INIT part |
diff --git a/sound/pci/ac97/ac97_pcm.c b/sound/pci/ac97/ac97_pcm.c index 512a3583b0ce..f684aa2c0067 100644 --- a/sound/pci/ac97/ac97_pcm.c +++ b/sound/pci/ac97/ac97_pcm.c | |||
@@ -317,6 +317,8 @@ int snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate) | |||
317 | return 0; | 317 | return 0; |
318 | } | 318 | } |
319 | 319 | ||
320 | EXPORT_SYMBOL(snd_ac97_set_rate); | ||
321 | |||
320 | static unsigned short get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *spdif_slots) | 322 | static unsigned short get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *spdif_slots) |
321 | { | 323 | { |
322 | if (!ac97_is_audio(ac97)) | 324 | if (!ac97_is_audio(ac97)) |
@@ -550,6 +552,8 @@ int snd_ac97_pcm_assign(struct snd_ac97_bus *bus, | |||
550 | return 0; | 552 | return 0; |
551 | } | 553 | } |
552 | 554 | ||
555 | EXPORT_SYMBOL(snd_ac97_pcm_assign); | ||
556 | |||
553 | /** | 557 | /** |
554 | * snd_ac97_pcm_open - opens the given AC97 pcm | 558 | * snd_ac97_pcm_open - opens the given AC97 pcm |
555 | * @pcm: the ac97 pcm instance | 559 | * @pcm: the ac97 pcm instance |
@@ -633,6 +637,8 @@ int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate, | |||
633 | return err; | 637 | return err; |
634 | } | 638 | } |
635 | 639 | ||
640 | EXPORT_SYMBOL(snd_ac97_pcm_open); | ||
641 | |||
636 | /** | 642 | /** |
637 | * snd_ac97_pcm_close - closes the given AC97 pcm | 643 | * snd_ac97_pcm_close - closes the given AC97 pcm |
638 | * @pcm: the ac97 pcm instance | 644 | * @pcm: the ac97 pcm instance |
@@ -658,6 +664,8 @@ int snd_ac97_pcm_close(struct ac97_pcm *pcm) | |||
658 | return 0; | 664 | return 0; |
659 | } | 665 | } |
660 | 666 | ||
667 | EXPORT_SYMBOL(snd_ac97_pcm_close); | ||
668 | |||
661 | static int double_rate_hw_constraint_rate(struct snd_pcm_hw_params *params, | 669 | static int double_rate_hw_constraint_rate(struct snd_pcm_hw_params *params, |
662 | struct snd_pcm_hw_rule *rule) | 670 | struct snd_pcm_hw_rule *rule) |
663 | { | 671 | { |
@@ -709,3 +717,5 @@ int snd_ac97_pcm_double_rate_rules(struct snd_pcm_runtime *runtime) | |||
709 | SNDRV_PCM_HW_PARAM_RATE, -1); | 717 | SNDRV_PCM_HW_PARAM_RATE, -1); |
710 | return err; | 718 | return err; |
711 | } | 719 | } |
720 | |||
721 | EXPORT_SYMBOL(snd_ac97_pcm_double_rate_rules); | ||