aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ac97/ac97_codec.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:54 -0400
commit7b09679c431ba91551a90203f7e7dadbb4c26d1b (patch)
tree9e919199a28caeb8d40ca63384c06917457ea8b0 /sound/pci/ac97/ac97_codec.c
parent91715ed934fb645948ff17b6c20c6f7fd7688a70 (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/ac97/ac97_codec.c')
-rw-r--r--sound/pci/ac97/ac97_codec.c40
1 files changed, 18 insertions, 22 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c
index 6c1937ff0d5..72e33b9532f 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
256EXPORT_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
286EXPORT_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
309EXPORT_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
340EXPORT_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
367EXPORT_SYMBOL(snd_ac97_update_bits);
368
359/* no lock version - see snd_ac97_updat_bits() */ 369/* no lock version - see snd_ac97_updat_bits() */
360int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg, 370int 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
1695EXPORT_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
1788EXPORT_SYMBOL(snd_ac97_bus);
1789
1777/* stop no dev release warning */ 1790/* stop no dev release warning */
1778static void ac97_device_release(struct device * dev) 1791static 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
2133EXPORT_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
2183EXPORT_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
2287EXPORT_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
2598EXPORT_SYMBOL(snd_ac97_write);
2599EXPORT_SYMBOL(snd_ac97_read);
2600EXPORT_SYMBOL(snd_ac97_write_cache);
2601EXPORT_SYMBOL(snd_ac97_update);
2602EXPORT_SYMBOL(snd_ac97_update_bits);
2603EXPORT_SYMBOL(snd_ac97_get_short_name);
2604EXPORT_SYMBOL(snd_ac97_bus);
2605EXPORT_SYMBOL(snd_ac97_mixer);
2606EXPORT_SYMBOL(snd_ac97_pcm_assign);
2607EXPORT_SYMBOL(snd_ac97_pcm_open);
2608EXPORT_SYMBOL(snd_ac97_pcm_close);
2609EXPORT_SYMBOL(snd_ac97_pcm_double_rate_rules);
2610EXPORT_SYMBOL(snd_ac97_tune_hardware); 2611EXPORT_SYMBOL(snd_ac97_tune_hardware);
2611EXPORT_SYMBOL(snd_ac97_set_rate);
2612#ifdef CONFIG_PM
2613EXPORT_SYMBOL(snd_ac97_resume);
2614EXPORT_SYMBOL(snd_ac97_suspend);
2615#endif
2616 2612
2617/* 2613/*
2618 * INIT part 2614 * INIT part