Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
emu8000.h File Reference
#include <sound/emux_synth.h>
#include <sound/seq_kernel.h>

Go to the source code of this file.

Data Structures

struct  snd_emu8000
 

Macros

#define EMU8000_MAX_DRAM   (28 * 1024 * 1024) /* Max on-board mem is 28Mb ???*/
 
#define EMU8000_DRAM_OFFSET   0x200000 /* Beginning of on board ram */
 
#define EMU8000_CHANNELS   32 /* Number of hardware channels */
 
#define EMU8000_DRAM_VOICES   30 /* number of normal voices */
 
#define EMU8000_RAM_READ   0
 
#define EMU8000_RAM_WRITE   1
 
#define EMU8000_RAM_CLOSE   2
 
#define EMU8000_RAM_MODE_MASK   0x03
 
#define EMU8000_RAM_RIGHT   0x10 /* use 'right' DMA channel */
 
#define SNDRV_SEQ_DEV_ID_EMU8000   "emu8000-synth"
 

Enumerations

enum  {
  EMU8000_CONTROL_BASS = 0, EMU8000_CONTROL_TREBLE, EMU8000_CONTROL_CHORUS_MODE, EMU8000_CONTROL_REVERB_MODE,
  EMU8000_CONTROL_FM_CHORUS_DEPTH, EMU8000_CONTROL_FM_REVERB_DEPTH, EMU8000_NUM_CONTROLS
}
 

Functions

int snd_emu8000_new (struct snd_card *card, int device, long port, int seq_ports, struct snd_seq_device **ret)
 
void snd_emu8000_poke (struct snd_emu8000 *emu, unsigned int port, unsigned int reg, unsigned int val)
 
unsigned short snd_emu8000_peek (struct snd_emu8000 *emu, unsigned int port, unsigned int reg)
 
void snd_emu8000_poke_dw (struct snd_emu8000 *emu, unsigned int port, unsigned int reg, unsigned int val)
 
unsigned int snd_emu8000_peek_dw (struct snd_emu8000 *emu, unsigned int port, unsigned int reg)
 
void snd_emu8000_dma_chan (struct snd_emu8000 *emu, int ch, int mode)
 
void snd_emu8000_init_fm (struct snd_emu8000 *emu)
 
void snd_emu8000_update_chorus_mode (struct snd_emu8000 *emu)
 
void snd_emu8000_update_reverb_mode (struct snd_emu8000 *emu)
 
void snd_emu8000_update_equalizer (struct snd_emu8000 *emu)
 
int snd_emu8000_load_chorus_fx (struct snd_emu8000 *emu, int mode, const void __user *buf, long len)
 
int snd_emu8000_load_reverb_fx (struct snd_emu8000 *emu, int mode, const void __user *buf, long len)
 

Macro Definition Documentation

#define EMU8000_CHANNELS   32 /* Number of hardware channels */

Definition at line 32 of file emu8000.h.

#define EMU8000_DRAM_OFFSET   0x200000 /* Beginning of on board ram */

Definition at line 31 of file emu8000.h.

#define EMU8000_DRAM_VOICES   30 /* number of normal voices */

Definition at line 33 of file emu8000.h.

#define EMU8000_MAX_DRAM   (28 * 1024 * 1024) /* Max on-board mem is 28Mb ???*/

Definition at line 30 of file emu8000.h.

#define EMU8000_RAM_CLOSE   2

Definition at line 38 of file emu8000.h.

#define EMU8000_RAM_MODE_MASK   0x03

Definition at line 39 of file emu8000.h.

#define EMU8000_RAM_READ   0

Definition at line 36 of file emu8000.h.

#define EMU8000_RAM_RIGHT   0x10 /* use 'right' DMA channel */

Definition at line 40 of file emu8000.h.

#define EMU8000_RAM_WRITE   1

Definition at line 37 of file emu8000.h.

#define SNDRV_SEQ_DEV_ID_EMU8000   "emu8000-synth"

Definition at line 97 of file emu8000.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
EMU8000_CONTROL_BASS 
EMU8000_CONTROL_TREBLE 
EMU8000_CONTROL_CHORUS_MODE 
EMU8000_CONTROL_REVERB_MODE 
EMU8000_CONTROL_FM_CHORUS_DEPTH 
EMU8000_CONTROL_FM_REVERB_DEPTH 
EMU8000_NUM_CONTROLS 

Definition at line 42 of file emu8000.h.

Function Documentation

void snd_emu8000_dma_chan ( struct snd_emu8000 emu,
int  ch,
int  mode 
)

Definition at line 110 of file emu8000.c.

void snd_emu8000_init_fm ( struct snd_emu8000 emu)

Definition at line 470 of file emu8000.c.

int snd_emu8000_load_chorus_fx ( struct snd_emu8000 emu,
int  mode,
const void __user buf,
long  len 
)

Definition at line 665 of file emu8000.c.

int snd_emu8000_load_reverb_fx ( struct snd_emu8000 emu,
int  mode,
const void __user buf,
long  len 
)

Definition at line 792 of file emu8000.c.

int snd_emu8000_new ( struct snd_card card,
int  device,
long  port,
int  seq_ports,
struct snd_seq_device **  ret 
)

Definition at line 1086 of file emu8000.c.

unsigned short snd_emu8000_peek ( struct snd_emu8000 emu,
unsigned int  port,
unsigned int  reg 
)

Definition at line 61 of file emu8000.c.

unsigned int snd_emu8000_peek_dw ( struct snd_emu8000 emu,
unsigned int  port,
unsigned int  reg 
)

Definition at line 90 of file emu8000.c.

void snd_emu8000_poke ( struct snd_emu8000 emu,
unsigned int  port,
unsigned int  reg,
unsigned int  val 
)

Definition at line 48 of file emu8000.c.

void snd_emu8000_poke_dw ( struct snd_emu8000 emu,
unsigned int  port,
unsigned int  reg,
unsigned int  val 
)

Definition at line 76 of file emu8000.c.

void snd_emu8000_update_chorus_mode ( struct snd_emu8000 emu)

Definition at line 680 of file emu8000.c.

void snd_emu8000_update_equalizer ( struct snd_emu8000 emu)

Definition at line 600 of file emu8000.c.

void snd_emu8000_update_reverb_mode ( struct snd_emu8000 emu)

Definition at line 808 of file emu8000.c.