#include "emux_voice.h"
#include <linux/slab.h>
#include <linux/module.h>
static void free_port(void *private);
static void snd_emux_init_port(struct snd_emux_port *p);
static int snd_emux_use(void *private_data, struct snd_seq_port_subscribe *info);
static int snd_emux_unuse(void *private_data, struct snd_seq_port_subscribe *info);
static const struct snd_midi_op emux_ops = …;
#define MIDI_CHANNELS …
#define DEFAULT_MIDI_TYPE …
int
snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index)
{ … }
void
snd_emux_detach_seq(struct snd_emux *emu)
{ … }
struct snd_emux_port *
snd_emux_create_port(struct snd_emux *emu, char *name,
int max_channels, int oss_port,
struct snd_seq_port_callback *callback)
{ … }
static void
free_port(void *private_data)
{ … }
#define DEFAULT_DRUM_FLAGS …
static void
snd_emux_init_port(struct snd_emux_port *p)
{ … }
void
snd_emux_reset_port(struct snd_emux_port *port)
{ … }
int
snd_emux_event_input(struct snd_seq_event *ev, int direct, void *private_data,
int atomic, int hop)
{ … }
static int
__snd_emux_inc_count(struct snd_emux *emu)
{ … }
int snd_emux_inc_count(struct snd_emux *emu)
{ … }
static void
__snd_emux_dec_count(struct snd_emux *emu)
{ … }
void snd_emux_dec_count(struct snd_emux *emu)
{ … }
static int
snd_emux_use(void *private_data, struct snd_seq_port_subscribe *info)
{ … }
static int
snd_emux_unuse(void *private_data, struct snd_seq_port_subscribe *info)
{ … }
int snd_emux_init_virmidi(struct snd_emux *emu, struct snd_card *card)
{ … }
int snd_emux_delete_virmidi(struct snd_emux *emu)
{ … }