Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
emu8000.c File Reference
#include <linux/wait.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/export.h>
#include <linux/delay.h>
#include <sound/core.h>
#include <sound/emu8000.h>
#include <sound/emu8000_reg.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <linux/init.h>
#include <sound/control.h>
#include <sound/initval.h>

Go to the source code of this file.

Data Structures

struct  soundfont_chorus_fx
 
struct  soundfont_reverb_fx
 
struct  reverb_cmd_pair
 

Macros

#define UNIQUE_ID1   0xa5b9
 
#define UNIQUE_ID2   0x9d53
 
#define SNDRV_EMU8000_CHORUS_1   0
 
#define SNDRV_EMU8000_CHORUS_2   1
 
#define SNDRV_EMU8000_CHORUS_3   2
 
#define SNDRV_EMU8000_CHORUS_4   3
 
#define SNDRV_EMU8000_CHORUS_FEEDBACK   4
 
#define SNDRV_EMU8000_CHORUS_FLANGER   5
 
#define SNDRV_EMU8000_CHORUS_SHORTDELAY   6
 
#define SNDRV_EMU8000_CHORUS_SHORTDELAY2   7
 
#define SNDRV_EMU8000_CHORUS_PREDEFINED   8
 
#define SNDRV_EMU8000_CHORUS_NUMBERS   32
 
#define SNDRV_EMU8000_REVERB_ROOM1   0
 
#define SNDRV_EMU8000_REVERB_ROOM2   1
 
#define SNDRV_EMU8000_REVERB_ROOM3   2
 
#define SNDRV_EMU8000_REVERB_HALL1   3
 
#define SNDRV_EMU8000_REVERB_HALL2   4
 
#define SNDRV_EMU8000_REVERB_PLATE   5
 
#define SNDRV_EMU8000_REVERB_DELAY   6
 
#define SNDRV_EMU8000_REVERB_PANNINGDELAY   7
 
#define SNDRV_EMU8000_REVERB_PREDEFINED   8
 
#define SNDRV_EMU8000_REVERB_NUMBERS   32
 
#define AWE_INIT1(c)   EMU8000_CMD(2,c), DATA1
 
#define AWE_INIT2(c)   EMU8000_CMD(2,c), DATA2
 
#define AWE_INIT3(c)   EMU8000_CMD(3,c), DATA1
 
#define AWE_INIT4(c)   EMU8000_CMD(3,c), DATA2
 

Enumerations

enum  { DATA1, DATA2 }
 

Functions

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_equalizer (struct snd_emu8000 *emu)
 
int snd_emu8000_load_chorus_fx (struct snd_emu8000 *emu, int mode, const void __user *buf, long len)
 
void snd_emu8000_update_chorus_mode (struct snd_emu8000 *emu)
 
int snd_emu8000_load_reverb_fx (struct snd_emu8000 *emu, int mode, const void __user *buf, long len)
 
void snd_emu8000_update_reverb_mode (struct snd_emu8000 *emu)
 
int __devinit snd_emu8000_new (struct snd_card *card, int index, long port, int seq_ports, struct snd_seq_device **awe_ret)
 
 EXPORT_SYMBOL (snd_emu8000_poke)
 
 EXPORT_SYMBOL (snd_emu8000_peek)
 
 EXPORT_SYMBOL (snd_emu8000_poke_dw)
 
 EXPORT_SYMBOL (snd_emu8000_peek_dw)
 
 EXPORT_SYMBOL (snd_emu8000_dma_chan)
 
 EXPORT_SYMBOL (snd_emu8000_init_fm)
 
 EXPORT_SYMBOL (snd_emu8000_load_chorus_fx)
 
 EXPORT_SYMBOL (snd_emu8000_load_reverb_fx)
 
 EXPORT_SYMBOL (snd_emu8000_update_chorus_mode)
 
 EXPORT_SYMBOL (snd_emu8000_update_reverb_mode)
 
 EXPORT_SYMBOL (snd_emu8000_update_equalizer)
 

Macro Definition Documentation

#define AWE_INIT1 (   c)    EMU8000_CMD(2,c), DATA1

Definition at line 774 of file emu8000.c.

#define AWE_INIT2 (   c)    EMU8000_CMD(2,c), DATA2

Definition at line 775 of file emu8000.c.

#define AWE_INIT3 (   c)    EMU8000_CMD(3,c), DATA1

Definition at line 776 of file emu8000.c.

#define AWE_INIT4 (   c)    EMU8000_CMD(3,c), DATA2

Definition at line 777 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_1   0

Definition at line 631 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_2   1

Definition at line 632 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_3   2

Definition at line 633 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_4   3

Definition at line 634 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_FEEDBACK   4

Definition at line 635 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_FLANGER   5

Definition at line 636 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_NUMBERS   32

Definition at line 641 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_PREDEFINED   8

Definition at line 639 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_SHORTDELAY   6

Definition at line 637 of file emu8000.c.

#define SNDRV_EMU8000_CHORUS_SHORTDELAY2   7

Definition at line 638 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_DELAY   6

Definition at line 708 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_HALL1   3

Definition at line 705 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_HALL2   4

Definition at line 706 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_NUMBERS   32

Definition at line 712 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_PANNINGDELAY   7

Definition at line 709 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_PLATE   5

Definition at line 707 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_PREDEFINED   8

Definition at line 710 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_ROOM1   0

Definition at line 702 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_ROOM2   1

Definition at line 703 of file emu8000.c.

#define SNDRV_EMU8000_REVERB_ROOM3   2

Definition at line 704 of file emu8000.c.

#define UNIQUE_ID1   0xa5b9

Definition at line 369 of file emu8000.c.

#define UNIQUE_ID2   0x9d53

Definition at line 370 of file emu8000.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DATA1 
DATA2 

Definition at line 773 of file emu8000.c.

Function Documentation

EXPORT_SYMBOL ( snd_emu8000_poke  )
EXPORT_SYMBOL ( snd_emu8000_peek  )
EXPORT_SYMBOL ( snd_emu8000_poke_dw  )
EXPORT_SYMBOL ( snd_emu8000_peek_dw  )
EXPORT_SYMBOL ( snd_emu8000_dma_chan  )
EXPORT_SYMBOL ( snd_emu8000_init_fm  )
EXPORT_SYMBOL ( snd_emu8000_load_chorus_fx  )
EXPORT_SYMBOL ( snd_emu8000_load_reverb_fx  )
EXPORT_SYMBOL ( snd_emu8000_update_chorus_mode  )
EXPORT_SYMBOL ( snd_emu8000_update_reverb_mode  )
EXPORT_SYMBOL ( snd_emu8000_update_equalizer  )
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 __devinit snd_emu8000_new ( struct snd_card card,
int  index,
long  port,
int  seq_ports,
struct snd_seq_device **  awe_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.