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

Go to the source code of this file.

Data Structures

struct  opl4_sound
 
struct  opl4_region
 
struct  opl4_region_ptr
 
struct  opl4_voice
 
struct  snd_opl4
 

Macros

#define OPL4_REG_TEST0   0x00
 
#define OPL4_REG_TEST1   0x01
 
#define OPL4_REG_MEMORY_CONFIGURATION   0x02
 
#define OPL4_MODE_BIT   0x01
 
#define OPL4_MTYPE_BIT   0x02
 
#define OPL4_TONE_HEADER_MASK   0x1c
 
#define OPL4_DEVICE_ID_MASK   0xe0
 
#define OPL4_REG_MEMORY_ADDRESS_HIGH   0x03
 
#define OPL4_REG_MEMORY_ADDRESS_MID   0x04
 
#define OPL4_REG_MEMORY_ADDRESS_LOW   0x05
 
#define OPL4_REG_MEMORY_DATA   0x06
 
#define OPL4_REG_TONE_NUMBER   0x08
 
#define OPL4_REG_F_NUMBER   0x20
 
#define OPL4_TONE_NUMBER_BIT8   0x01
 
#define OPL4_F_NUMBER_LOW_MASK   0xfe
 
#define OPL4_REG_OCTAVE   0x38
 
#define OPL4_F_NUMBER_HIGH_MASK   0x07
 
#define OPL4_BLOCK_MASK   0xf0
 
#define OPL4_PSEUDO_REVERB_BIT   0x08
 
#define OPL4_REG_LEVEL   0x50
 
#define OPL4_TOTAL_LEVEL_MASK   0xfe
 
#define OPL4_LEVEL_DIRECT_BIT   0x01
 
#define OPL4_REG_MISC   0x68
 
#define OPL4_KEY_ON_BIT   0x80
 
#define OPL4_DAMP_BIT   0x40
 
#define OPL4_LFO_RESET_BIT   0x20
 
#define OPL4_OUTPUT_CHANNEL_BIT   0x10
 
#define OPL4_PAN_POT_MASK   0x0f
 
#define OPL4_REG_LFO_VIBRATO   0x80
 
#define OPL4_LFO_FREQUENCY_MASK   0x38
 
#define OPL4_VIBRATO_DEPTH_MASK   0x07
 
#define OPL4_CHORUS_SEND_MASK   0xc0 /* ML only */
 
#define OPL4_REG_ATTACK_DECAY1   0x98
 
#define OPL4_ATTACK_RATE_MASK   0xf0
 
#define OPL4_DECAY1_RATE_MASK   0x0f
 
#define OPL4_REG_LEVEL_DECAY2   0xb0
 
#define OPL4_DECAY_LEVEL_MASK   0xf0
 
#define OPL4_DECAY2_RATE_MASK   0x0f
 
#define OPL4_REG_RELEASE_CORRECTION   0xc8
 
#define OPL4_RELEASE_RATE_MASK   0x0f
 
#define OPL4_RATE_INTERPOLATION_MASK   0xf0
 
#define OPL4_REG_TREMOLO   0xe0
 
#define OPL4_TREMOLO_DEPTH_MASK   0x07
 
#define OPL4_REVERB_SEND_MASK   0xe0 /* ML only */
 
#define OPL4_REG_MIX_CONTROL_FM   0xf8
 
#define OPL4_REG_MIX_CONTROL_PCM   0xf9
 
#define OPL4_MIX_LEFT_MASK   0x07
 
#define OPL4_MIX_RIGHT_MASK   0x38
 
#define OPL4_REG_ATC   0xfa
 
#define OPL4_ATC_BIT   0x01 /* ???, ML only */
 
#define OPL4_STATUS_BUSY   0x01
 
#define OPL4_STATUS_LOAD   0x02
 
#define OPL4_MAX_VOICES   24
 
#define SNDRV_SEQ_DEV_ID_OPL4   "opl4-synth"
 

Functions

void snd_opl4_write (struct snd_opl4 *opl4, u8 reg, u8 value)
 
u8 snd_opl4_read (struct snd_opl4 *opl4, u8 reg)
 
void snd_opl4_read_memory (struct snd_opl4 *opl4, char *buf, int offset, int size)
 
void snd_opl4_write_memory (struct snd_opl4 *opl4, const char *buf, int offset, int size)
 
int snd_opl4_create_mixer (struct snd_opl4 *opl4)
 
void snd_opl4_synth_reset (struct snd_opl4 *opl4)
 
void snd_opl4_synth_shutdown (struct snd_opl4 *opl4)
 
void snd_opl4_note_on (void *p, int note, int vel, struct snd_midi_channel *chan)
 
void snd_opl4_note_off (void *p, int note, int vel, struct snd_midi_channel *chan)
 
void snd_opl4_terminate_note (void *p, int note, struct snd_midi_channel *chan)
 
void snd_opl4_control (void *p, int type, struct snd_midi_channel *chan)
 
void snd_opl4_sysex (void *p, unsigned char *buf, int len, int parsed, struct snd_midi_channel_set *chset)
 
int snd_yrw801_detect (struct snd_opl4 *opl4)
 

Variables

int volume_boost
 
struct opl4_region_ptr snd_yrw801_regions []
 

Macro Definition Documentation

#define OPL4_ATC_BIT   0x01 /* ???, ML only */

Definition at line 122 of file opl4_local.h.

#define OPL4_ATTACK_RATE_MASK   0xf0

Definition at line 97 of file opl4_local.h.

#define OPL4_BLOCK_MASK   0xf0

Definition at line 73 of file opl4_local.h.

#define OPL4_CHORUS_SEND_MASK   0xc0 /* ML only */

Definition at line 93 of file opl4_local.h.

#define OPL4_DAMP_BIT   0x40

Definition at line 84 of file opl4_local.h.

#define OPL4_DECAY1_RATE_MASK   0x0f

Definition at line 98 of file opl4_local.h.

#define OPL4_DECAY2_RATE_MASK   0x0f

Definition at line 103 of file opl4_local.h.

#define OPL4_DECAY_LEVEL_MASK   0xf0

Definition at line 102 of file opl4_local.h.

#define OPL4_DEVICE_ID_MASK   0xe0

Definition at line 50 of file opl4_local.h.

#define OPL4_F_NUMBER_HIGH_MASK   0x07

Definition at line 72 of file opl4_local.h.

#define OPL4_F_NUMBER_LOW_MASK   0xfe

Definition at line 68 of file opl4_local.h.

#define OPL4_KEY_ON_BIT   0x80

Definition at line 83 of file opl4_local.h.

#define OPL4_LEVEL_DIRECT_BIT   0x01

Definition at line 79 of file opl4_local.h.

#define OPL4_LFO_FREQUENCY_MASK   0x38

Definition at line 91 of file opl4_local.h.

#define OPL4_LFO_RESET_BIT   0x20

Definition at line 85 of file opl4_local.h.

#define OPL4_MAX_VOICES   24

Definition at line 129 of file opl4_local.h.

#define OPL4_MIX_LEFT_MASK   0x07

Definition at line 118 of file opl4_local.h.

#define OPL4_MIX_RIGHT_MASK   0x38

Definition at line 119 of file opl4_local.h.

#define OPL4_MODE_BIT   0x01

Definition at line 47 of file opl4_local.h.

#define OPL4_MTYPE_BIT   0x02

Definition at line 48 of file opl4_local.h.

#define OPL4_OUTPUT_CHANNEL_BIT   0x10

Definition at line 86 of file opl4_local.h.

#define OPL4_PAN_POT_MASK   0x0f

Definition at line 87 of file opl4_local.h.

#define OPL4_PSEUDO_REVERB_BIT   0x08

Definition at line 74 of file opl4_local.h.

#define OPL4_RATE_INTERPOLATION_MASK   0xf0

Definition at line 108 of file opl4_local.h.

#define OPL4_REG_ATC   0xfa

Definition at line 121 of file opl4_local.h.

#define OPL4_REG_ATTACK_DECAY1   0x98

Definition at line 96 of file opl4_local.h.

#define OPL4_REG_F_NUMBER   0x20

Definition at line 66 of file opl4_local.h.

#define OPL4_REG_LEVEL   0x50

Definition at line 77 of file opl4_local.h.

#define OPL4_REG_LEVEL_DECAY2   0xb0

Definition at line 101 of file opl4_local.h.

#define OPL4_REG_LFO_VIBRATO   0x80

Definition at line 90 of file opl4_local.h.

#define OPL4_REG_MEMORY_ADDRESS_HIGH   0x03

Definition at line 52 of file opl4_local.h.

#define OPL4_REG_MEMORY_ADDRESS_LOW   0x05

Definition at line 54 of file opl4_local.h.

#define OPL4_REG_MEMORY_ADDRESS_MID   0x04

Definition at line 53 of file opl4_local.h.

#define OPL4_REG_MEMORY_CONFIGURATION   0x02

Definition at line 46 of file opl4_local.h.

#define OPL4_REG_MEMORY_DATA   0x06

Definition at line 55 of file opl4_local.h.

#define OPL4_REG_MISC   0x68

Definition at line 82 of file opl4_local.h.

#define OPL4_REG_MIX_CONTROL_FM   0xf8

Definition at line 116 of file opl4_local.h.

#define OPL4_REG_MIX_CONTROL_PCM   0xf9

Definition at line 117 of file opl4_local.h.

#define OPL4_REG_OCTAVE   0x38

Definition at line 71 of file opl4_local.h.

#define OPL4_REG_RELEASE_CORRECTION   0xc8

Definition at line 106 of file opl4_local.h.

#define OPL4_REG_TEST0   0x00

Definition at line 43 of file opl4_local.h.

#define OPL4_REG_TEST1   0x01

Definition at line 44 of file opl4_local.h.

#define OPL4_REG_TONE_NUMBER   0x08

Definition at line 63 of file opl4_local.h.

#define OPL4_REG_TREMOLO   0xe0

Definition at line 111 of file opl4_local.h.

#define OPL4_RELEASE_RATE_MASK   0x0f

Definition at line 107 of file opl4_local.h.

#define OPL4_REVERB_SEND_MASK   0xe0 /* ML only */

Definition at line 113 of file opl4_local.h.

#define OPL4_STATUS_BUSY   0x01

Definition at line 125 of file opl4_local.h.

#define OPL4_STATUS_LOAD   0x02

Definition at line 126 of file opl4_local.h.

#define OPL4_TONE_HEADER_MASK   0x1c

Definition at line 49 of file opl4_local.h.

#define OPL4_TONE_NUMBER_BIT8   0x01

Definition at line 67 of file opl4_local.h.

#define OPL4_TOTAL_LEVEL_MASK   0xfe

Definition at line 78 of file opl4_local.h.

#define OPL4_TREMOLO_DEPTH_MASK   0x07

Definition at line 112 of file opl4_local.h.

#define OPL4_VIBRATO_DEPTH_MASK   0x07

Definition at line 92 of file opl4_local.h.

#define SNDRV_SEQ_DEV_ID_OPL4   "opl4-synth"

Definition at line 131 of file opl4_local.h.

Function Documentation

void snd_opl4_control ( void p,
int  type,
struct snd_midi_channel chan 
)

Definition at line 585 of file opl4_synth.c.

int snd_opl4_create_mixer ( struct snd_opl4 opl4)

Definition at line 82 of file opl4_mixer.c.

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

Definition at line 563 of file opl4_synth.c.

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

Definition at line 482 of file opl4_synth.c.

u8 snd_opl4_read ( struct snd_opl4 opl4,
u8  reg 
)

Definition at line 50 of file opl4_lib.c.

void snd_opl4_read_memory ( struct snd_opl4 opl4,
char buf,
int  offset,
int  size 
)

Definition at line 61 of file opl4_lib.c.

void snd_opl4_synth_reset ( struct snd_opl4 opl4)

Definition at line 273 of file opl4_synth.c.

void snd_opl4_synth_shutdown ( struct snd_opl4 opl4)

Definition at line 297 of file opl4_synth.c.

void snd_opl4_sysex ( void p,
unsigned char buf,
int  len,
int  parsed,
struct snd_midi_channel_set chset 
)

Definition at line 624 of file opl4_synth.c.

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

Definition at line 578 of file opl4_synth.c.

void snd_opl4_write ( struct snd_opl4 opl4,
u8  reg,
u8  value 
)

Definition at line 39 of file opl4_lib.c.

void snd_opl4_write_memory ( struct snd_opl4 opl4,
const char buf,
int  offset,
int  size 
)

Definition at line 87 of file opl4_lib.c.

int snd_yrw801_detect ( struct snd_opl4 opl4)

Definition at line 36 of file yrw801.c.

Variable Documentation

struct opl4_region_ptr snd_yrw801_regions[]

Definition at line 927 of file yrw801.c.

int volume_boost

Definition at line 44 of file opl4_seq.c.