Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
emux_seq.c File Reference
#include "emux_voice.h"
#include <linux/slab.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define MIDI_CHANNELS   16
 
#define DEFAULT_MIDI_TYPE
 
#define DEFAULT_DRUM_FLAGS   (1<<9)
 

Functions

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_portsnd_emux_create_port (struct snd_emux *emu, char *name, int max_channels, int oss_port, struct snd_seq_port_callback *callback)
 
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)
 
int snd_emux_inc_count (struct snd_emux *emu)
 
void snd_emux_dec_count (struct snd_emux *emu)
 
int snd_emux_init_virmidi (struct snd_emux *emu, struct snd_card *card)
 
int snd_emux_delete_virmidi (struct snd_emux *emu)
 

Macro Definition Documentation

#define DEFAULT_DRUM_FLAGS   (1<<9)

Definition at line 206 of file emux_seq.c.

#define DEFAULT_MIDI_TYPE
Value:
SNDRV_SEQ_PORT_TYPE_MIDI_GM |\
SNDRV_SEQ_PORT_TYPE_MIDI_GS |\
SNDRV_SEQ_PORT_TYPE_MIDI_XG |\
SNDRV_SEQ_PORT_TYPE_HARDWARE |\
SNDRV_SEQ_PORT_TYPE_SYNTHESIZER)

Definition at line 54 of file emux_seq.c.

#define MIDI_CHANNELS   16

Definition at line 49 of file emux_seq.c.

Function Documentation

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 
)
read

Definition at line 141 of file emux_seq.c.

void snd_emux_dec_count ( struct snd_emux emu)

Definition at line 292 of file emux_seq.c.

int snd_emux_delete_virmidi ( struct snd_emux emu)

Definition at line 389 of file emux_seq.c.

void snd_emux_detach_seq ( struct snd_emux emu)

Definition at line 122 of file emux_seq.c.

int snd_emux_event_input ( struct snd_seq_event ev,
int  direct,
void private_data,
int  atomic,
int  hop 
)

Definition at line 254 of file emux_seq.c.

int snd_emux_inc_count ( struct snd_emux emu)

Definition at line 273 of file emux_seq.c.

int snd_emux_init_seq ( struct snd_emux emu,
struct snd_card card,
int  index 
)

Definition at line 68 of file emux_seq.c.

int snd_emux_init_virmidi ( struct snd_emux emu,
struct snd_card card 
)

Definition at line 352 of file emux_seq.c.

void snd_emux_reset_port ( struct snd_emux_port port)

Definition at line 225 of file emux_seq.c.