summaryrefslogtreecommitdiff
path: root/sound/drivers/opl4/opl4_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/drivers/opl4/opl4_local.h')
-rw-r--r--sound/drivers/opl4/opl4_local.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/sound/drivers/opl4/opl4_local.h b/sound/drivers/opl4/opl4_local.h
index c455680843f6..7e088a4a2f4c 100644
--- a/sound/drivers/opl4/opl4_local.h
+++ b/sound/drivers/opl4/opl4_local.h
@@ -131,7 +131,7 @@
#define SNDRV_SEQ_DEV_ID_OPL4 "opl4-synth"
-typedef struct opl4_sound {
+struct opl4_sound {
u16 tone;
s16 pitch_offset;
u8 key_scaling;
@@ -144,42 +144,42 @@ typedef struct opl4_sound {
u8 reg_level_decay2;
u8 reg_release_correction;
u8 reg_tremolo;
-} opl4_sound_t;
+};
-typedef struct opl4_region {
+struct opl4_region {
u8 key_min, key_max;
- opl4_sound_t sound;
-} opl4_region_t;
+ struct opl4_sound sound;
+};
-typedef struct opl4_region_ptr {
+struct opl4_region_ptr {
int count;
- const opl4_region_t *regions;
-} opl4_region_ptr_t;
+ const struct opl4_region *regions;
+};
-typedef struct opl4_voice {
+struct opl4_voice {
struct list_head list;
int number;
- snd_midi_channel_t *chan;
+ struct snd_midi_channel *chan;
int note;
int velocity;
- const opl4_sound_t *sound;
+ const struct opl4_sound *sound;
u8 level_direct;
u8 reg_f_number;
u8 reg_misc;
u8 reg_lfo_vibrato;
-} opl4_voice_t;
+};
-struct opl4 {
+struct snd_opl4 {
unsigned long fm_port;
unsigned long pcm_port;
struct resource *res_fm_port;
struct resource *res_pcm_port;
unsigned short hardware;
spinlock_t reg_lock;
- snd_card_t *card;
+ struct snd_card *card;
#ifdef CONFIG_PROC_FS
- snd_info_entry_t *proc_entry;
+ struct snd_info_entry *proc_entry;
int memory_access;
#endif
struct semaphore access_mutex;
@@ -189,44 +189,44 @@ struct opl4 {
int seq_dev_num;
int seq_client;
- snd_seq_device_t *seq_dev;
+ struct snd_seq_device *seq_dev;
- snd_midi_channel_set_t *chset;
- opl4_voice_t voices[OPL4_MAX_VOICES];
+ struct snd_midi_channel_set *chset;
+ struct opl4_voice voices[OPL4_MAX_VOICES];
struct list_head off_voices;
struct list_head on_voices;
#endif
};
/* opl4_lib.c */
-void snd_opl4_write(opl4_t *opl4, u8 reg, u8 value);
-u8 snd_opl4_read(opl4_t *opl4, u8 reg);
-void snd_opl4_read_memory(opl4_t *opl4, char *buf, int offset, int size);
-void snd_opl4_write_memory(opl4_t *opl4, const char *buf, int offset, int size);
+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);
/* opl4_mixer.c */
-int snd_opl4_create_mixer(opl4_t *opl4);
+int snd_opl4_create_mixer(struct snd_opl4 *opl4);
#ifdef CONFIG_PROC_FS
/* opl4_proc.c */
-int snd_opl4_create_proc(opl4_t *opl4);
-void snd_opl4_free_proc(opl4_t *opl4);
+int snd_opl4_create_proc(struct snd_opl4 *opl4);
+void snd_opl4_free_proc(struct snd_opl4 *opl4);
#endif
/* opl4_seq.c */
extern int volume_boost;
/* opl4_synth.c */
-void snd_opl4_synth_reset(opl4_t *opl4);
-void snd_opl4_synth_shutdown(opl4_t *opl4);
-void snd_opl4_note_on(void *p, int note, int vel, snd_midi_channel_t *chan);
-void snd_opl4_note_off(void *p, int note, int vel, snd_midi_channel_t *chan);
-void snd_opl4_terminate_note(void *p, int note, snd_midi_channel_t *chan);
-void snd_opl4_control(void *p, int type, snd_midi_channel_t *chan);
-void snd_opl4_sysex(void *p, unsigned char *buf, int len, int parsed, snd_midi_channel_set_t *chset);
+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);
/* yrw801.c */
-int snd_yrw801_detect(opl4_t *opl4);
-extern const opl4_region_ptr_t snd_yrw801_regions[];
+int snd_yrw801_detect(struct snd_opl4 *opl4);
+extern const struct opl4_region_ptr snd_yrw801_regions[];
#endif /* __OPL4_LOCAL_H */