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

Go to the source code of this file.

Macros

#define LIMITVALUE(x, a, b)   do { if ((x) < (a)) (x) = (a); else if ((x) > (b)) (x) = (b); } while (0)
 
#define LIMITMAX(x, a)   do {if ((x) > (a)) (x) = (a); } while (0)
 
#define LO_BYTE(v)   ((v) & 0xff)
 
#define HI_BYTE(v)   (((v) >> 8) & 0xff)
 

Functions

void snd_emux_note_on (void *p, int note, int vel, struct snd_midi_channel *chan)
 
void snd_emux_note_off (void *p, int note, int vel, struct snd_midi_channel *chan)
 
void snd_emux_timer_callback (unsigned long data)
 
void snd_emux_key_press (void *p, int note, int vel, struct snd_midi_channel *chan)
 
void snd_emux_update_channel (struct snd_emux_port *port, struct snd_midi_channel *chan, int update)
 
void snd_emux_update_port (struct snd_emux_port *port, int update)
 
void snd_emux_control (void *p, int type, struct snd_midi_channel *chan)
 
void snd_emux_terminate_note (void *p, int note, struct snd_midi_channel *chan)
 
void snd_emux_terminate_all (struct snd_emux *emu)
 
 EXPORT_SYMBOL (snd_emux_terminate_all)
 
void snd_emux_sounds_off_all (struct snd_emux_port *port)
 
void snd_emux_init_voices (struct snd_emux *emu)
 
void snd_emux_lock_voice (struct snd_emux *emu, int voice)
 
 EXPORT_SYMBOL (snd_emux_lock_voice)
 
void snd_emux_unlock_voice (struct snd_emux *emu, int voice)
 
 EXPORT_SYMBOL (snd_emux_unlock_voice)
 

Macro Definition Documentation

#define HI_BYTE (   v)    (((v) >> 8) & 0xff)

Definition at line 555 of file emux_synth.c.

#define LIMITMAX (   x,
  a 
)    do {if ((x) > (a)) (x) = (a); } while (0)

Definition at line 38 of file emux_synth.c.

#define LIMITVALUE (   x,
  a,
  b 
)    do { if ((x) < (a)) (x) = (a); else if ((x) > (b)) (x) = (b); } while (0)

Definition at line 37 of file emux_synth.c.

#define LO_BYTE (   v)    ((v) & 0xff)

Definition at line 554 of file emux_synth.c.

Function Documentation

EXPORT_SYMBOL ( snd_emux_terminate_all  )
EXPORT_SYMBOL ( snd_emux_lock_voice  )
EXPORT_SYMBOL ( snd_emux_unlock_voice  )
void snd_emux_control ( void p,
int  type,
struct snd_midi_channel chan 
)

Definition at line 327 of file emux_synth.c.

void snd_emux_init_voices ( struct snd_emux emu)

Definition at line 930 of file emux_synth.c.

void snd_emux_key_press ( void p,
int  note,
int  vel,
struct snd_midi_channel chan 
)

Definition at line 238 of file emux_synth.c.

void snd_emux_lock_voice ( struct snd_emux emu,
int  voice 
)

Definition at line 952 of file emux_synth.c.

void snd_emux_note_off ( void p,
int  note,
int  vel,
struct snd_midi_channel chan 
)

Definition at line 159 of file emux_synth.c.

void snd_emux_note_on ( void p,
int  note,
int  vel,
struct snd_midi_channel chan 
)

Definition at line 60 of file emux_synth.c.

void snd_emux_sounds_off_all ( struct snd_emux_port port)

Definition at line 452 of file emux_synth.c.

void snd_emux_terminate_all ( struct snd_emux emu)

Definition at line 422 of file emux_synth.c.

void snd_emux_terminate_note ( void p,
int  note,
struct snd_midi_channel chan 
)

Definition at line 401 of file emux_synth.c.

void snd_emux_timer_callback ( unsigned long  data)

Definition at line 206 of file emux_synth.c.

void snd_emux_unlock_voice ( struct snd_emux emu,
int  voice 
)

Definition at line 970 of file emux_synth.c.

void snd_emux_update_channel ( struct snd_emux_port port,
struct snd_midi_channel chan,
int  update 
)

Definition at line 271 of file emux_synth.c.

void snd_emux_update_port ( struct snd_emux_port port,
int  update 
)

Definition at line 298 of file emux_synth.c.