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: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
602d7d72c8
commit
9c8ddd105e
|
@ -1668,7 +1668,6 @@ int snd_seq_set_queue_tempo(int client, struct snd_seq_queue_tempo *tempo)
|
|||
return -EPERM;
|
||||
return snd_seq_queue_timer_set_tempo(tempo->queue, client, tempo);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(snd_seq_set_queue_tempo);
|
||||
|
||||
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,
|
|||
/* return client number to caller */
|
||||
return client->number;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(snd_seq_create_kernel_client);
|
||||
|
||||
/* exported to kernel modules */
|
||||
|
@ -2219,7 +2217,6 @@ int snd_seq_delete_kernel_client(int client)
|
|||
kfree(ptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(snd_seq_delete_kernel_client);
|
||||
|
||||
/* 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,
|
|||
{
|
||||
return kernel_client_enqueue(client, ev, NULL, 0, atomic, hop);
|
||||
}
|
||||
|
||||
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
|
|||
{
|
||||
return kernel_client_enqueue(client, ev, file, 1, atomic, hop);
|
||||
}
|
||||
|
||||
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,
|
|||
snd_seq_client_unlock(cptr);
|
||||
return result;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(snd_seq_kernel_client_dispatch);
|
||||
|
||||
/**
|
||||
|
@ -2354,7 +2348,6 @@ int snd_seq_kernel_client_ctl(int clientid, unsigned int cmd, void *arg)
|
|||
cmd, _IOC_TYPE(cmd), _IOC_NR(cmd));
|
||||
return -ENOTTY;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(snd_seq_kernel_client_ctl);
|
||||
|
||||
/* exported (for OSS emulator) */
|
||||
|
@ -2372,7 +2365,6 @@ int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table
|
|||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
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)
|
|||
schedule_timeout_uninterruptible(1);
|
||||
}
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(snd_use_lock_sync_helper);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -118,7 +118,6 @@ int snd_seq_dump_var_event(const struct snd_seq_event *event,
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
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
|
|||
&buf);
|
||||
return err < 0 ? err : newlen;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(snd_seq_expand_var_event);
|
||||
|
||||
/*
|
||||
|
|
|
@ -236,6 +236,7 @@ snd_midi_process_event(struct snd_midi_op *ops,
|
|||
break;
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_process_event);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -409,6 +410,7 @@ snd_midi_channel_set_clear(struct snd_midi_channel_set *chset)
|
|||
chan->drum_channel = 0;
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_channel_set_clear);
|
||||
|
||||
/*
|
||||
* Process a rpn message.
|
||||
|
@ -701,6 +703,7 @@ struct snd_midi_channel_set *snd_midi_channel_alloc_set(int n)
|
|||
}
|
||||
return chset;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_channel_alloc_set);
|
||||
|
||||
/*
|
||||
* 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)
|
|||
kfree(chset->channels);
|
||||
kfree(chset);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_channel_free_set);
|
||||
|
||||
static int __init alsa_seq_midi_emul_init(void)
|
||||
{
|
||||
|
@ -736,8 +740,3 @@ static void __exit alsa_seq_midi_emul_exit(void)
|
|||
|
||||
module_init(alsa_seq_midi_emul_init)
|
||||
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)
|
|||
*rdev = dev;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_event_new);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_event_free);
|
||||
|
||||
/*
|
||||
* initialize record
|
||||
|
@ -161,6 +163,7 @@ void snd_midi_event_reset_encode(struct snd_midi_event *dev)
|
|||
reset_encode(dev);
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_event_reset_encode);
|
||||
|
||||
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;
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_event_reset_decode);
|
||||
|
||||
#if 0
|
||||
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)
|
|||
{
|
||||
dev->nostat = on ? 1 : 0;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_event_no_status);
|
||||
|
||||
/*
|
||||
* resize buffer
|
||||
|
@ -232,6 +237,7 @@ long snd_midi_event_encode(struct snd_midi_event *dev, unsigned char *buf, long
|
|||
|
||||
return result;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_event_encode);
|
||||
|
||||
/*
|
||||
* 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,
|
|||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
return rc;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_event_encode_byte);
|
||||
|
||||
/* encode note event */
|
||||
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
|
|||
return qlen;
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(snd_midi_event_decode);
|
||||
|
||||
|
||||
/* decode note event */
|
||||
|
@ -524,19 +532,6 @@ static int extra_decode_xrpn(struct snd_midi_event *dev, unsigned char *buf,
|
|||
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)
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -685,7 +685,6 @@ int snd_seq_event_port_attach(int client,
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(snd_seq_event_port_attach);
|
||||
|
||||
/*
|
||||
|
@ -706,5 +705,4 @@ int snd_seq_event_port_detach(int client, int port)
|
|||
|
||||
return err;
|
||||
}
|
||||
|
||||
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
|
|||
*rrmidi = rmidi;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_virmidi_new);
|
||||
|
||||
/*
|
||||
* ENTRY functions
|
||||
|
@ -550,5 +551,3 @@ static void __exit alsa_virmidi_exit(void)
|
|||
|
||||
module_init(alsa_virmidi_init)
|
||||
module_exit(alsa_virmidi_exit)
|
||||
|
||||
EXPORT_SYMBOL(snd_virmidi_new);
|
||||
|
|
Loading…
Reference in New Issue