Commit 7b09679c authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[ALSA] ac97 - Move EXPORT_SYMBOL() to adjacent to each function

Move EXPORT_SYMBOL() to adjacent to each exported function/variable.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 91715ed9
...@@ -253,6 +253,8 @@ void snd_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short va ...@@ -253,6 +253,8 @@ void snd_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short va
ac97->bus->ops->write(ac97, reg, value); ac97->bus->ops->write(ac97, reg, value);
} }
EXPORT_SYMBOL(snd_ac97_write);
/** /**
* snd_ac97_read - read a value from the given register * snd_ac97_read - read a value from the given register
* *
...@@ -281,6 +283,8 @@ static inline unsigned short snd_ac97_read_cache(struct snd_ac97 *ac97, unsigned ...@@ -281,6 +283,8 @@ static inline unsigned short snd_ac97_read_cache(struct snd_ac97 *ac97, unsigned
return ac97->regs[reg]; return ac97->regs[reg];
} }
EXPORT_SYMBOL(snd_ac97_read);
/** /**
* snd_ac97_write_cache - write a value on the given register and update the cache * snd_ac97_write_cache - write a value on the given register and update the cache
* @ac97: the ac97 instance * @ac97: the ac97 instance
...@@ -302,6 +306,8 @@ void snd_ac97_write_cache(struct snd_ac97 *ac97, unsigned short reg, unsigned sh ...@@ -302,6 +306,8 @@ void snd_ac97_write_cache(struct snd_ac97 *ac97, unsigned short reg, unsigned sh
mutex_unlock(&ac97->reg_mutex); mutex_unlock(&ac97->reg_mutex);
} }
EXPORT_SYMBOL(snd_ac97_write_cache);
/** /**
* snd_ac97_update - update the value on the given register * snd_ac97_update - update the value on the given register
* @ac97: the ac97 instance * @ac97: the ac97 instance
...@@ -331,6 +337,8 @@ int snd_ac97_update(struct snd_ac97 *ac97, unsigned short reg, unsigned short va ...@@ -331,6 +337,8 @@ int snd_ac97_update(struct snd_ac97 *ac97, unsigned short reg, unsigned short va
return change; return change;
} }
EXPORT_SYMBOL(snd_ac97_update);
/** /**
* snd_ac97_update_bits - update the bits on the given register * snd_ac97_update_bits - update the bits on the given register
* @ac97: the ac97 instance * @ac97: the ac97 instance
...@@ -356,6 +364,8 @@ int snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned sho ...@@ -356,6 +364,8 @@ int snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned sho
return change; return change;
} }
EXPORT_SYMBOL(snd_ac97_update_bits);
/* no lock version - see snd_ac97_updat_bits() */ /* no lock version - see snd_ac97_updat_bits() */
int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg, int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg,
unsigned short mask, unsigned short value) unsigned short mask, unsigned short value)
...@@ -1682,6 +1692,7 @@ const char *snd_ac97_get_short_name(struct snd_ac97 *ac97) ...@@ -1682,6 +1692,7 @@ const char *snd_ac97_get_short_name(struct snd_ac97 *ac97)
return "unknown codec"; return "unknown codec";
} }
EXPORT_SYMBOL(snd_ac97_get_short_name);
/* wait for a while until registers are accessible after RESET /* wait for a while until registers are accessible after RESET
* return 0 if ok, negative not ready * 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,6 +1785,8 @@ int snd_ac97_bus(struct snd_card *card, int num, struct snd_ac97_bus_ops *ops,
return 0; return 0;
} }
EXPORT_SYMBOL(snd_ac97_bus);
/* stop no dev release warning */ /* stop no dev release warning */
static void ac97_device_release(struct device * dev) static void ac97_device_release(struct device * dev)
{ {
...@@ -2117,6 +2130,7 @@ int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, ...@@ -2117,6 +2130,7 @@ int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template,
return 0; return 0;
} }
EXPORT_SYMBOL(snd_ac97_mixer);
/* /*
* Power down the chip. * Power down the chip.
...@@ -2166,6 +2180,8 @@ void snd_ac97_suspend(struct snd_ac97 *ac97) ...@@ -2166,6 +2180,8 @@ void snd_ac97_suspend(struct snd_ac97 *ac97)
snd_ac97_powerdown(ac97); snd_ac97_powerdown(ac97);
} }
EXPORT_SYMBOL(snd_ac97_suspend);
/* /*
* restore ac97 status * restore ac97 status
*/ */
...@@ -2267,6 +2283,8 @@ void snd_ac97_resume(struct snd_ac97 *ac97) ...@@ -2267,6 +2283,8 @@ void snd_ac97_resume(struct snd_ac97 *ac97)
snd_ac97_restore_iec958(ac97); snd_ac97_restore_iec958(ac97);
} }
} }
EXPORT_SYMBOL(snd_ac97_resume);
#endif #endif
...@@ -2590,29 +2608,7 @@ int snd_ac97_tune_hardware(struct snd_ac97 *ac97, struct ac97_quirk *quirk, cons ...@@ -2590,29 +2608,7 @@ int snd_ac97_tune_hardware(struct snd_ac97 *ac97, struct ac97_quirk *quirk, cons
return 0; return 0;
} }
/*
* Exported symbols
*/
EXPORT_SYMBOL(snd_ac97_write);
EXPORT_SYMBOL(snd_ac97_read);
EXPORT_SYMBOL(snd_ac97_write_cache);
EXPORT_SYMBOL(snd_ac97_update);
EXPORT_SYMBOL(snd_ac97_update_bits);
EXPORT_SYMBOL(snd_ac97_get_short_name);
EXPORT_SYMBOL(snd_ac97_bus);
EXPORT_SYMBOL(snd_ac97_mixer);
EXPORT_SYMBOL(snd_ac97_pcm_assign);
EXPORT_SYMBOL(snd_ac97_pcm_open);
EXPORT_SYMBOL(snd_ac97_pcm_close);
EXPORT_SYMBOL(snd_ac97_pcm_double_rate_rules);
EXPORT_SYMBOL(snd_ac97_tune_hardware); EXPORT_SYMBOL(snd_ac97_tune_hardware);
EXPORT_SYMBOL(snd_ac97_set_rate);
#ifdef CONFIG_PM
EXPORT_SYMBOL(snd_ac97_resume);
EXPORT_SYMBOL(snd_ac97_suspend);
#endif
/* /*
* INIT part * INIT part
......
...@@ -317,6 +317,8 @@ int snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate) ...@@ -317,6 +317,8 @@ int snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate)
return 0; return 0;
} }
EXPORT_SYMBOL(snd_ac97_set_rate);
static unsigned short get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *spdif_slots) static unsigned short get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *spdif_slots)
{ {
if (!ac97_is_audio(ac97)) if (!ac97_is_audio(ac97))
...@@ -550,6 +552,8 @@ int snd_ac97_pcm_assign(struct snd_ac97_bus *bus, ...@@ -550,6 +552,8 @@ int snd_ac97_pcm_assign(struct snd_ac97_bus *bus,
return 0; return 0;
} }
EXPORT_SYMBOL(snd_ac97_pcm_assign);
/** /**
* snd_ac97_pcm_open - opens the given AC97 pcm * snd_ac97_pcm_open - opens the given AC97 pcm
* @pcm: the ac97 pcm instance * @pcm: the ac97 pcm instance
...@@ -633,6 +637,8 @@ int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate, ...@@ -633,6 +637,8 @@ int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate,
return err; return err;
} }
EXPORT_SYMBOL(snd_ac97_pcm_open);
/** /**
* snd_ac97_pcm_close - closes the given AC97 pcm * snd_ac97_pcm_close - closes the given AC97 pcm
* @pcm: the ac97 pcm instance * @pcm: the ac97 pcm instance
...@@ -658,6 +664,8 @@ int snd_ac97_pcm_close(struct ac97_pcm *pcm) ...@@ -658,6 +664,8 @@ int snd_ac97_pcm_close(struct ac97_pcm *pcm)
return 0; return 0;
} }
EXPORT_SYMBOL(snd_ac97_pcm_close);
static int double_rate_hw_constraint_rate(struct snd_pcm_hw_params *params, static int double_rate_hw_constraint_rate(struct snd_pcm_hw_params *params,
struct snd_pcm_hw_rule *rule) struct snd_pcm_hw_rule *rule)
{ {
...@@ -709,3 +717,5 @@ int snd_ac97_pcm_double_rate_rules(struct snd_pcm_runtime *runtime) ...@@ -709,3 +717,5 @@ int snd_ac97_pcm_double_rate_rules(struct snd_pcm_runtime *runtime)
SNDRV_PCM_HW_PARAM_RATE, -1); SNDRV_PCM_HW_PARAM_RATE, -1);
return err; return err;
} }
EXPORT_SYMBOL(snd_ac97_pcm_double_rate_rules);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment