#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/seq_kernel.h>
#include <sound/seq_midi_event.h>
#include <sound/asoundef.h>
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
#define ST_INVALID …
#define ST_SPECIAL …
#define ST_SYSEX …
static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
static void one_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
static void pitchbend_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
static void two_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
static void one_param_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
static void songpos_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
static void note_decode(struct snd_seq_event *ev, unsigned char *buf);
static void one_param_decode(struct snd_seq_event *ev, unsigned char *buf);
static void pitchbend_decode(struct snd_seq_event *ev, unsigned char *buf);
static void two_param_decode(struct snd_seq_event *ev, unsigned char *buf);
static void songpos_decode(struct snd_seq_event *ev, unsigned char *buf);
static struct status_event_list { … } status_event[] = …;
static int extra_decode_ctrl14(struct snd_midi_event *dev, unsigned char *buf, int len,
struct snd_seq_event *ev);
static int extra_decode_xrpn(struct snd_midi_event *dev, unsigned char *buf, int count,
struct snd_seq_event *ev);
static struct extra_event_list { … } extra_event[] = …;
int snd_midi_event_new(int bufsize, struct snd_midi_event **rdev)
{ … }
EXPORT_SYMBOL(…);
void snd_midi_event_free(struct snd_midi_event *dev)
{ … }
EXPORT_SYMBOL(…);
static inline void reset_encode(struct snd_midi_event *dev)
{ … }
void snd_midi_event_reset_encode(struct snd_midi_event *dev)
{ … }
EXPORT_SYMBOL(…);
void snd_midi_event_reset_decode(struct snd_midi_event *dev)
{ … }
EXPORT_SYMBOL(…);
void snd_midi_event_no_status(struct snd_midi_event *dev, int on)
{ … }
EXPORT_SYMBOL(…);
bool snd_midi_event_encode_byte(struct snd_midi_event *dev, unsigned char c,
struct snd_seq_event *ev)
{ … }
EXPORT_SYMBOL(…);
static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev)
{ … }
static void one_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev)
{ … }
static void pitchbend_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev)
{ … }
static void two_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev)
{ … }
static void one_param_event(struct snd_midi_event *dev, struct snd_seq_event *ev)
{ … }
static void songpos_event(struct snd_midi_event *dev, struct snd_seq_event *ev)
{ … }
long snd_midi_event_decode(struct snd_midi_event *dev, unsigned char *buf, long count,
struct snd_seq_event *ev)
{ … }
EXPORT_SYMBOL(…);
static void note_decode(struct snd_seq_event *ev, unsigned char *buf)
{ … }
static void one_param_decode(struct snd_seq_event *ev, unsigned char *buf)
{ … }
static void pitchbend_decode(struct snd_seq_event *ev, unsigned char *buf)
{ … }
static void two_param_decode(struct snd_seq_event *ev, unsigned char *buf)
{ … }
static void songpos_decode(struct snd_seq_event *ev, unsigned char *buf)
{ … }
static int extra_decode_ctrl14(struct snd_midi_event *dev, unsigned char *buf,
int count, struct snd_seq_event *ev)
{ … }
static int extra_decode_xrpn(struct snd_midi_event *dev, unsigned char *buf,
int count, struct snd_seq_event *ev)
{ … }