Commit 9c8ddd10 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: seq: Follow standard EXPORT_SYMBOL() declarations

Just a tidy up to follow the standard EXPORT_SYMBOL*() declarations
in order to improve grep-ability.

- Move EXPORT_SYMBOL*() to the position right after its definition
- Remove superfluous blank line before EXPORT_SYMBOL*() lines
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 602d7d72
...@@ -1668,7 +1668,6 @@ int snd_seq_set_queue_tempo(int client, struct snd_seq_queue_tempo *tempo) ...@@ -1668,7 +1668,6 @@ int snd_seq_set_queue_tempo(int client, struct snd_seq_queue_tempo *tempo)
return -EPERM; return -EPERM;
return snd_seq_queue_timer_set_tempo(tempo->queue, client, tempo); return snd_seq_queue_timer_set_tempo(tempo->queue, client, tempo);
} }
EXPORT_SYMBOL(snd_seq_set_queue_tempo); EXPORT_SYMBOL(snd_seq_set_queue_tempo);
static int snd_seq_ioctl_set_queue_tempo(struct snd_seq_client *client, static int snd_seq_ioctl_set_queue_tempo(struct snd_seq_client *client,
...@@ -2200,7 +2199,6 @@ int snd_seq_create_kernel_client(struct snd_card *card, int client_index, ...@@ -2200,7 +2199,6 @@ int snd_seq_create_kernel_client(struct snd_card *card, int client_index,
/* return client number to caller */ /* return client number to caller */
return client->number; return client->number;
} }
EXPORT_SYMBOL(snd_seq_create_kernel_client); EXPORT_SYMBOL(snd_seq_create_kernel_client);
/* exported to kernel modules */ /* exported to kernel modules */
...@@ -2219,7 +2217,6 @@ int snd_seq_delete_kernel_client(int client) ...@@ -2219,7 +2217,6 @@ int snd_seq_delete_kernel_client(int client)
kfree(ptr); kfree(ptr);
return 0; return 0;
} }
EXPORT_SYMBOL(snd_seq_delete_kernel_client); EXPORT_SYMBOL(snd_seq_delete_kernel_client);
/* skeleton to enqueue event, called from snd_seq_kernel_client_enqueue /* skeleton to enqueue event, called from snd_seq_kernel_client_enqueue
...@@ -2269,7 +2266,6 @@ int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event * ev, ...@@ -2269,7 +2266,6 @@ int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event * ev,
{ {
return kernel_client_enqueue(client, ev, NULL, 0, atomic, hop); return kernel_client_enqueue(client, ev, NULL, 0, atomic, hop);
} }
EXPORT_SYMBOL(snd_seq_kernel_client_enqueue); EXPORT_SYMBOL(snd_seq_kernel_client_enqueue);
/* /*
...@@ -2283,7 +2279,6 @@ int snd_seq_kernel_client_enqueue_blocking(int client, struct snd_seq_event * ev ...@@ -2283,7 +2279,6 @@ int snd_seq_kernel_client_enqueue_blocking(int client, struct snd_seq_event * ev
{ {
return kernel_client_enqueue(client, ev, file, 1, atomic, hop); return kernel_client_enqueue(client, ev, file, 1, atomic, hop);
} }
EXPORT_SYMBOL(snd_seq_kernel_client_enqueue_blocking); EXPORT_SYMBOL(snd_seq_kernel_client_enqueue_blocking);
/* /*
...@@ -2321,7 +2316,6 @@ int snd_seq_kernel_client_dispatch(int client, struct snd_seq_event * ev, ...@@ -2321,7 +2316,6 @@ int snd_seq_kernel_client_dispatch(int client, struct snd_seq_event * ev,
snd_seq_client_unlock(cptr); snd_seq_client_unlock(cptr);
return result; return result;
} }
EXPORT_SYMBOL(snd_seq_kernel_client_dispatch); EXPORT_SYMBOL(snd_seq_kernel_client_dispatch);
/** /**
...@@ -2354,7 +2348,6 @@ int snd_seq_kernel_client_ctl(int clientid, unsigned int cmd, void *arg) ...@@ -2354,7 +2348,6 @@ int snd_seq_kernel_client_ctl(int clientid, unsigned int cmd, void *arg)
cmd, _IOC_TYPE(cmd), _IOC_NR(cmd)); cmd, _IOC_TYPE(cmd), _IOC_NR(cmd));
return -ENOTTY; return -ENOTTY;
} }
EXPORT_SYMBOL(snd_seq_kernel_client_ctl); EXPORT_SYMBOL(snd_seq_kernel_client_ctl);
/* exported (for OSS emulator) */ /* exported (for OSS emulator) */
...@@ -2372,7 +2365,6 @@ int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table ...@@ -2372,7 +2365,6 @@ int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table
return 1; return 1;
return 0; return 0;
} }
EXPORT_SYMBOL(snd_seq_kernel_client_write_poll); EXPORT_SYMBOL(snd_seq_kernel_client_write_poll);
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
......
...@@ -40,7 +40,6 @@ void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line) ...@@ -40,7 +40,6 @@ void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line)
schedule_timeout_uninterruptible(1); schedule_timeout_uninterruptible(1);
} }
} }
EXPORT_SYMBOL(snd_use_lock_sync_helper); EXPORT_SYMBOL(snd_use_lock_sync_helper);
#endif #endif
...@@ -118,7 +118,6 @@ int snd_seq_dump_var_event(const struct snd_seq_event *event, ...@@ -118,7 +118,6 @@ int snd_seq_dump_var_event(const struct snd_seq_event *event,
} }
return 0; return 0;
} }
EXPORT_SYMBOL(snd_seq_dump_var_event); EXPORT_SYMBOL(snd_seq_dump_var_event);
...@@ -169,7 +168,6 @@ int snd_seq_expand_var_event(const struct snd_seq_event *event, int count, char ...@@ -169,7 +168,6 @@ int snd_seq_expand_var_event(const struct snd_seq_event *event, int count, char
&buf); &buf);
return err < 0 ? err : newlen; return err < 0 ? err : newlen;
} }
EXPORT_SYMBOL(snd_seq_expand_var_event); EXPORT_SYMBOL(snd_seq_expand_var_event);
/* /*
......
...@@ -236,6 +236,7 @@ snd_midi_process_event(struct snd_midi_op *ops, ...@@ -236,6 +236,7 @@ snd_midi_process_event(struct snd_midi_op *ops,
break; break;
} }
} }
EXPORT_SYMBOL(snd_midi_process_event);
/* /*
...@@ -409,6 +410,7 @@ snd_midi_channel_set_clear(struct snd_midi_channel_set *chset) ...@@ -409,6 +410,7 @@ snd_midi_channel_set_clear(struct snd_midi_channel_set *chset)
chan->drum_channel = 0; chan->drum_channel = 0;
} }
} }
EXPORT_SYMBOL(snd_midi_channel_set_clear);
/* /*
* Process a rpn message. * Process a rpn message.
...@@ -701,6 +703,7 @@ struct snd_midi_channel_set *snd_midi_channel_alloc_set(int n) ...@@ -701,6 +703,7 @@ struct snd_midi_channel_set *snd_midi_channel_alloc_set(int n)
} }
return chset; return chset;
} }
EXPORT_SYMBOL(snd_midi_channel_alloc_set);
/* /*
* Reset the midi controllers on a particular channel to default values. * Reset the midi controllers on a particular channel to default values.
...@@ -724,6 +727,7 @@ void snd_midi_channel_free_set(struct snd_midi_channel_set *chset) ...@@ -724,6 +727,7 @@ void snd_midi_channel_free_set(struct snd_midi_channel_set *chset)
kfree(chset->channels); kfree(chset->channels);
kfree(chset); kfree(chset);
} }
EXPORT_SYMBOL(snd_midi_channel_free_set);
static int __init alsa_seq_midi_emul_init(void) static int __init alsa_seq_midi_emul_init(void)
{ {
...@@ -736,8 +740,3 @@ static void __exit alsa_seq_midi_emul_exit(void) ...@@ -736,8 +740,3 @@ static void __exit alsa_seq_midi_emul_exit(void)
module_init(alsa_seq_midi_emul_init) module_init(alsa_seq_midi_emul_init)
module_exit(alsa_seq_midi_emul_exit) module_exit(alsa_seq_midi_emul_exit)
EXPORT_SYMBOL(snd_midi_process_event);
EXPORT_SYMBOL(snd_midi_channel_set_clear);
EXPORT_SYMBOL(snd_midi_channel_alloc_set);
EXPORT_SYMBOL(snd_midi_channel_free_set);
...@@ -134,6 +134,7 @@ int snd_midi_event_new(int bufsize, struct snd_midi_event **rdev) ...@@ -134,6 +134,7 @@ int snd_midi_event_new(int bufsize, struct snd_midi_event **rdev)
*rdev = dev; *rdev = dev;
return 0; return 0;
} }
EXPORT_SYMBOL(snd_midi_event_new);
void snd_midi_event_free(struct snd_midi_event *dev) void snd_midi_event_free(struct snd_midi_event *dev)
{ {
...@@ -142,6 +143,7 @@ void snd_midi_event_free(struct snd_midi_event *dev) ...@@ -142,6 +143,7 @@ void snd_midi_event_free(struct snd_midi_event *dev)
kfree(dev); kfree(dev);
} }
} }
EXPORT_SYMBOL(snd_midi_event_free);
/* /*
* initialize record * initialize record
...@@ -161,6 +163,7 @@ void snd_midi_event_reset_encode(struct snd_midi_event *dev) ...@@ -161,6 +163,7 @@ void snd_midi_event_reset_encode(struct snd_midi_event *dev)
reset_encode(dev); reset_encode(dev);
spin_unlock_irqrestore(&dev->lock, flags); spin_unlock_irqrestore(&dev->lock, flags);
} }
EXPORT_SYMBOL(snd_midi_event_reset_encode);
void snd_midi_event_reset_decode(struct snd_midi_event *dev) void snd_midi_event_reset_decode(struct snd_midi_event *dev)
{ {
...@@ -170,6 +173,7 @@ void snd_midi_event_reset_decode(struct snd_midi_event *dev) ...@@ -170,6 +173,7 @@ void snd_midi_event_reset_decode(struct snd_midi_event *dev)
dev->lastcmd = 0xff; dev->lastcmd = 0xff;
spin_unlock_irqrestore(&dev->lock, flags); spin_unlock_irqrestore(&dev->lock, flags);
} }
EXPORT_SYMBOL(snd_midi_event_reset_decode);
#if 0 #if 0
void snd_midi_event_init(struct snd_midi_event *dev) void snd_midi_event_init(struct snd_midi_event *dev)
...@@ -183,6 +187,7 @@ void snd_midi_event_no_status(struct snd_midi_event *dev, int on) ...@@ -183,6 +187,7 @@ void snd_midi_event_no_status(struct snd_midi_event *dev, int on)
{ {
dev->nostat = on ? 1 : 0; dev->nostat = on ? 1 : 0;
} }
EXPORT_SYMBOL(snd_midi_event_no_status);
/* /*
* resize buffer * resize buffer
...@@ -232,6 +237,7 @@ long snd_midi_event_encode(struct snd_midi_event *dev, unsigned char *buf, long ...@@ -232,6 +237,7 @@ long snd_midi_event_encode(struct snd_midi_event *dev, unsigned char *buf, long
return result; return result;
} }
EXPORT_SYMBOL(snd_midi_event_encode);
/* /*
* read one byte and encode to sequencer event: * read one byte and encode to sequencer event:
...@@ -307,6 +313,7 @@ int snd_midi_event_encode_byte(struct snd_midi_event *dev, int c, ...@@ -307,6 +313,7 @@ int snd_midi_event_encode_byte(struct snd_midi_event *dev, int c,
spin_unlock_irqrestore(&dev->lock, flags); spin_unlock_irqrestore(&dev->lock, flags);
return rc; return rc;
} }
EXPORT_SYMBOL(snd_midi_event_encode_byte);
/* encode note event */ /* encode note event */
static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev) static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev)
...@@ -408,6 +415,7 @@ long snd_midi_event_decode(struct snd_midi_event *dev, unsigned char *buf, long ...@@ -408,6 +415,7 @@ long snd_midi_event_decode(struct snd_midi_event *dev, unsigned char *buf, long
return qlen; return qlen;
} }
} }
EXPORT_SYMBOL(snd_midi_event_decode);
/* decode note event */ /* decode note event */
...@@ -524,19 +532,6 @@ static int extra_decode_xrpn(struct snd_midi_event *dev, unsigned char *buf, ...@@ -524,19 +532,6 @@ static int extra_decode_xrpn(struct snd_midi_event *dev, unsigned char *buf,
return idx; return idx;
} }
/*
* exports
*/
EXPORT_SYMBOL(snd_midi_event_new);
EXPORT_SYMBOL(snd_midi_event_free);
EXPORT_SYMBOL(snd_midi_event_reset_encode);
EXPORT_SYMBOL(snd_midi_event_reset_decode);
EXPORT_SYMBOL(snd_midi_event_no_status);
EXPORT_SYMBOL(snd_midi_event_encode);
EXPORT_SYMBOL(snd_midi_event_encode_byte);
EXPORT_SYMBOL(snd_midi_event_decode);
static int __init alsa_seq_midi_event_init(void) static int __init alsa_seq_midi_event_init(void)
{ {
return 0; return 0;
......
...@@ -685,7 +685,6 @@ int snd_seq_event_port_attach(int client, ...@@ -685,7 +685,6 @@ int snd_seq_event_port_attach(int client,
return ret; return ret;
} }
EXPORT_SYMBOL(snd_seq_event_port_attach); EXPORT_SYMBOL(snd_seq_event_port_attach);
/* /*
...@@ -706,5 +705,4 @@ int snd_seq_event_port_detach(int client, int port) ...@@ -706,5 +705,4 @@ int snd_seq_event_port_detach(int client, int port)
return err; return err;
} }
EXPORT_SYMBOL(snd_seq_event_port_detach); EXPORT_SYMBOL(snd_seq_event_port_detach);
...@@ -534,6 +534,7 @@ int snd_virmidi_new(struct snd_card *card, int device, struct snd_rawmidi **rrmi ...@@ -534,6 +534,7 @@ int snd_virmidi_new(struct snd_card *card, int device, struct snd_rawmidi **rrmi
*rrmidi = rmidi; *rrmidi = rmidi;
return 0; return 0;
} }
EXPORT_SYMBOL(snd_virmidi_new);
/* /*
* ENTRY functions * ENTRY functions
...@@ -550,5 +551,3 @@ static void __exit alsa_virmidi_exit(void) ...@@ -550,5 +551,3 @@ static void __exit alsa_virmidi_exit(void)
module_init(alsa_virmidi_init) module_init(alsa_virmidi_init)
module_exit(alsa_virmidi_exit) module_exit(alsa_virmidi_exit)
EXPORT_SYMBOL(snd_virmidi_new);
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