/* * Hardware parameters.
*/ #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 */
/* Flags to set a dma channel to read or write */ #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 */
/* * Structure to hold all state information for the emu8000 driver. * * Note 1: The chip supports 32 channels in hardware this is max_channels * some of the channels may be used for other things so max_channels is * the number in use for wave voices.
*/ struct snd_emu8000 {
struct snd_emux *emu;
int index; /* sequencer client index */ int seq_ports; /* number of sequencer ports */ int fm_chorus_depth; /* FM OPL3 chorus depth */ int fm_reverb_depth; /* FM OPL3 reverb depth */
int mem_size; /* memory size */ unsignedlong port1; /* Port usually base+0 */ unsignedlong port2; /* Port usually at base+0x400 */ unsignedlong port3; /* Port usually at base+0x800 */ unsignedshort last_reg;/* Last register command */
spinlock_t reg_lock;
int dram_checked;
struct snd_card *card; /* The card that this belongs to */
int chorus_mode; int reverb_mode; int bass_level; int treble_level;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.