diff options
author | Jaroslav Kysela <perex@suse.cz> | 2004-10-29 21:16:52 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2004-10-29 21:16:52 +0200 |
commit | 325d184fc77e24ad7ef2be7f7472c0fea38c6d94 (patch) | |
tree | 8b4889ff404676cdaf33f4072e72e33a83d27f91 /sound | |
parent | 2b5223e780d558eb255e3f631f1a0400c6ead531 (diff) | |
download | history-325d184fc77e24ad7ef2be7f7472c0fea38c6d94.tar.gz |
[ALSA] remove dead exports
ALSA Core,Instrument layer,AD1848 driver,ES1688 driver
Alsa currently has tons of dead exports, often with totally unused
functions behind them.
This removes some of them.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/init.c | 3 | ||||
-rw-r--r-- | sound/core/seq/instr/ainstr_fm.c | 5 | ||||
-rw-r--r-- | sound/core/seq/instr/ainstr_gf1.c | 5 | ||||
-rw-r--r-- | sound/core/seq/instr/ainstr_iw.c | 5 | ||||
-rw-r--r-- | sound/core/seq/instr/ainstr_simple.c | 5 | ||||
-rw-r--r-- | sound/core/sound.c | 1 | ||||
-rw-r--r-- | sound/isa/ad1848/ad1848_lib.c | 18 | ||||
-rw-r--r-- | sound/isa/es1688/es1688_lib.c | 3 |
8 files changed, 11 insertions, 34 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index 2873a17bd34b82..2ffe74143d918a 100644 --- a/sound/core/init.c +++ b/sound/core/init.c @@ -37,7 +37,6 @@ struct snd_shutdown_f_ops { struct snd_shutdown_f_ops *next; }; -int snd_cards_count = 0; unsigned int snd_cards_lock = 0; /* locked for registering/using */ snd_card_t *snd_cards[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = NULL}; rwlock_t snd_card_rwlock = RW_LOCK_UNLOCKED; @@ -251,7 +250,6 @@ int snd_card_free(snd_card_t * card) return -EINVAL; write_lock(&snd_card_rwlock); snd_cards[card->number] = NULL; - snd_cards_count--; write_unlock(&snd_card_rwlock); #ifdef CONFIG_PM @@ -441,7 +439,6 @@ int snd_card_register(snd_card_t * card) if (card->id[0] == '\0') choose_default_id(card); snd_cards[card->number] = card; - snd_cards_count++; write_unlock(&snd_card_rwlock); if ((err = snd_info_card_register(card)) < 0) { snd_printd("unable to create card info\n"); diff --git a/sound/core/seq/instr/ainstr_fm.c b/sound/core/seq/instr/ainstr_fm.c index 52a070b909182d..5c671e69884f9f 100644 --- a/sound/core/seq/instr/ainstr_fm.c +++ b/sound/core/seq/instr/ainstr_fm.c @@ -30,8 +30,6 @@ MODULE_AUTHOR("Uros Bizjak <uros@kss-loka.si>"); MODULE_DESCRIPTION("Advanced Linux Sound Architecture FM Instrument support."); MODULE_LICENSE("GPL"); -char *snd_seq_fm_id = SNDRV_SEQ_INSTR_ID_OPL2_3; - static int snd_seq_fm_put(void *private_data, snd_seq_kinstr_t *instr, char __user *instr_data, long len, int atomic, int cmd) { @@ -129,7 +127,7 @@ int snd_seq_fm_init(snd_seq_kinstr_ops_t *ops, memset(ops, 0, sizeof(*ops)); // ops->private_data = private_data; ops->add_len = sizeof(fm_instrument_t); - ops->instr_type = snd_seq_fm_id; + ops->instr_type = SNDRV_SEQ_INSTR_ID_OPL2_3; ops->put = snd_seq_fm_put; ops->get = snd_seq_fm_get; ops->get_size = snd_seq_fm_get_size; @@ -155,5 +153,4 @@ static void __exit alsa_ainstr_fm_exit(void) module_init(alsa_ainstr_fm_init) module_exit(alsa_ainstr_fm_exit) -EXPORT_SYMBOL(snd_seq_fm_id); EXPORT_SYMBOL(snd_seq_fm_init); diff --git a/sound/core/seq/instr/ainstr_gf1.c b/sound/core/seq/instr/ainstr_gf1.c index 6c21e52ca61ea9..0779c41ca03769 100644 --- a/sound/core/seq/instr/ainstr_gf1.c +++ b/sound/core/seq/instr/ainstr_gf1.c @@ -31,8 +31,6 @@ MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); MODULE_DESCRIPTION("Advanced Linux Sound Architecture GF1 (GUS) Patch support."); MODULE_LICENSE("GPL"); -char *snd_seq_gf1_id = SNDRV_SEQ_INSTR_ID_GUS_PATCH; - static unsigned int snd_seq_gf1_size(unsigned int size, unsigned int format) { unsigned int result = size; @@ -331,7 +329,7 @@ int snd_seq_gf1_init(snd_gf1_ops_t *ops, ops->private_data = private_data; ops->kops.private_data = ops; ops->kops.add_len = sizeof(gf1_instrument_t); - ops->kops.instr_type = snd_seq_gf1_id; + ops->kops.instr_type = SNDRV_SEQ_INSTR_ID_GUS_PATCH; ops->kops.put = snd_seq_gf1_put; ops->kops.get = snd_seq_gf1_get; ops->kops.get_size = snd_seq_gf1_get_size; @@ -357,5 +355,4 @@ static void __exit alsa_ainstr_gf1_exit(void) module_init(alsa_ainstr_gf1_init) module_exit(alsa_ainstr_gf1_exit) -EXPORT_SYMBOL(snd_seq_gf1_id); EXPORT_SYMBOL(snd_seq_gf1_init); diff --git a/sound/core/seq/instr/ainstr_iw.c b/sound/core/seq/instr/ainstr_iw.c index 005171abe94dc9..39ff72b2aab367 100644 --- a/sound/core/seq/instr/ainstr_iw.c +++ b/sound/core/seq/instr/ainstr_iw.c @@ -31,8 +31,6 @@ MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); MODULE_DESCRIPTION("Advanced Linux Sound Architecture IWFFFF support."); MODULE_LICENSE("GPL"); -char *snd_seq_iwffff_id = SNDRV_SEQ_INSTR_ID_INTERWAVE; - static unsigned int snd_seq_iwffff_size(unsigned int size, unsigned int format) { unsigned int result = size; @@ -595,7 +593,7 @@ int snd_seq_iwffff_init(snd_iwffff_ops_t *ops, ops->private_data = private_data; ops->kops.private_data = ops; ops->kops.add_len = sizeof(iwffff_instrument_t); - ops->kops.instr_type = snd_seq_iwffff_id; + ops->kops.instr_type = SNDRV_SEQ_INSTR_ID_INTERWAVE; ops->kops.put = snd_seq_iwffff_put; ops->kops.get = snd_seq_iwffff_get; ops->kops.get_size = snd_seq_iwffff_get_size; @@ -621,5 +619,4 @@ static void __exit alsa_ainstr_iw_exit(void) module_init(alsa_ainstr_iw_init) module_exit(alsa_ainstr_iw_exit) -EXPORT_SYMBOL(snd_seq_iwffff_id); EXPORT_SYMBOL(snd_seq_iwffff_init); diff --git a/sound/core/seq/instr/ainstr_simple.c b/sound/core/seq/instr/ainstr_simple.c index 8ae5d10e51c164..6183d21510345c 100644 --- a/sound/core/seq/instr/ainstr_simple.c +++ b/sound/core/seq/instr/ainstr_simple.c @@ -31,8 +31,6 @@ MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); MODULE_DESCRIPTION("Advanced Linux Sound Architecture Simple Instrument support."); MODULE_LICENSE("GPL"); -char *snd_seq_simple_id = SNDRV_SEQ_INSTR_ID_SIMPLE; - static unsigned int snd_seq_simple_size(unsigned int size, unsigned int format) { unsigned int result = size; @@ -188,7 +186,7 @@ int snd_seq_simple_init(snd_simple_ops_t *ops, ops->private_data = private_data; ops->kops.private_data = ops; ops->kops.add_len = sizeof(simple_instrument_t); - ops->kops.instr_type = snd_seq_simple_id; + ops->kops.instr_type = SNDRV_SEQ_INSTR_ID_SIMPLE; ops->kops.put = snd_seq_simple_put; ops->kops.get = snd_seq_simple_get; ops->kops.get_size = snd_seq_simple_get_size; @@ -214,5 +212,4 @@ static void __exit alsa_ainstr_simple_exit(void) module_init(alsa_ainstr_simple_init) module_exit(alsa_ainstr_simple_exit) -EXPORT_SYMBOL(snd_seq_simple_id); EXPORT_SYMBOL(snd_seq_simple_init); diff --git a/sound/core/sound.c b/sound/core/sound.c index a9e477c2e72975..1fef4ed60a33b3 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c @@ -411,7 +411,6 @@ EXPORT_SYMBOL(snd_kmalloc_strdup); EXPORT_SYMBOL(copy_to_user_fromio); EXPORT_SYMBOL(copy_from_user_toio); /* init.c */ -EXPORT_SYMBOL(snd_cards_count); EXPORT_SYMBOL(snd_cards); #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) EXPORT_SYMBOL(snd_mixer_oss_notify_callback); diff --git a/sound/isa/ad1848/ad1848_lib.c b/sound/isa/ad1848/ad1848_lib.c index d0a62f71b5d8c8..7510dfff482eb7 100644 --- a/sound/isa/ad1848/ad1848_lib.c +++ b/sound/isa/ad1848/ad1848_lib.c @@ -119,9 +119,8 @@ void snd_ad1848_out(ad1848_t *chip, #endif } -void snd_ad1848_dout(ad1848_t *chip, - unsigned char reg, - unsigned char value) +static void snd_ad1848_dout(ad1848_t *chip, + unsigned char reg, unsigned char value) { int timeout; @@ -132,7 +131,7 @@ void snd_ad1848_dout(ad1848_t *chip, mb(); } -unsigned char snd_ad1848_in(ad1848_t *chip, unsigned char reg) +static unsigned char snd_ad1848_in(ad1848_t *chip, unsigned char reg) { int timeout; @@ -177,7 +176,7 @@ void snd_ad1848_debug(ad1848_t *chip) * AD1848 detection / MCE routines */ -void snd_ad1848_mce_up(ad1848_t *chip) +static void snd_ad1848_mce_up(ad1848_t *chip) { unsigned long flags; int timeout; @@ -198,7 +197,7 @@ void snd_ad1848_mce_up(ad1848_t *chip) spin_unlock_irqrestore(&chip->reg_lock, flags); } -void snd_ad1848_mce_down(ad1848_t *chip) +static void snd_ad1848_mce_down(ad1848_t *chip) { unsigned long flags; int timeout; @@ -584,7 +583,7 @@ static int snd_ad1848_capture_prepare(snd_pcm_substream_t * substream) return 0; } -irqreturn_t snd_ad1848_interrupt(int irq, void *dev_id, struct pt_regs *regs) +static irqreturn_t snd_ad1848_interrupt(int irq, void *dev_id, struct pt_regs *regs) { ad1848_t *chip = dev_id; @@ -1264,12 +1263,7 @@ int snd_ad1848_mixer(ad1848_t *chip) return 0; } -EXPORT_SYMBOL(snd_ad1848_in); EXPORT_SYMBOL(snd_ad1848_out); -EXPORT_SYMBOL(snd_ad1848_dout); -EXPORT_SYMBOL(snd_ad1848_mce_up); -EXPORT_SYMBOL(snd_ad1848_mce_down); -EXPORT_SYMBOL(snd_ad1848_interrupt); EXPORT_SYMBOL(snd_ad1848_create); EXPORT_SYMBOL(snd_ad1848_pcm); EXPORT_SYMBOL(snd_ad1848_get_pcm_ops); diff --git a/sound/isa/es1688/es1688_lib.c b/sound/isa/es1688/es1688_lib.c index c20bc7fc83d234..677a4d3133e398 100644 --- a/sound/isa/es1688/es1688_lib.c +++ b/sound/isa/es1688/es1688_lib.c @@ -479,7 +479,7 @@ static int snd_es1688_capture_trigger(snd_pcm_substream_t * substream, return snd_es1688_trigger(chip, cmd, 0x0f); } -irqreturn_t snd_es1688_interrupt(int irq, void *dev_id, struct pt_regs *regs) +static irqreturn_t snd_es1688_interrupt(int irq, void *dev_id, struct pt_regs *regs) { es1688_t *chip = dev_id; @@ -1042,7 +1042,6 @@ int snd_es1688_mixer(es1688_t *chip) EXPORT_SYMBOL(snd_es1688_mixer_write); EXPORT_SYMBOL(snd_es1688_mixer_read); -EXPORT_SYMBOL(snd_es1688_interrupt); EXPORT_SYMBOL(snd_es1688_create); EXPORT_SYMBOL(snd_es1688_pcm); EXPORT_SYMBOL(snd_es1688_mixer); |